summaryrefslogtreecommitdiff
path: root/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28
diff options
context:
space:
mode:
authorraveit65 (via Travis CI) <[email protected]>2024-07-30 21:03:41 +0000
committerraveit65 (via Travis CI) <[email protected]>2024-07-30 21:03:41 +0000
commit4988f6f941cfa6d538e9112d6dba2418e8c9c74d (patch)
tree5edd77dfc0bfe736037841e57878fb0a62e07d1b /2024-04-04-053447-3634-cppcheck@fee79b755996_1.28
downloadmate-desktop-gh-pages.tar.bz2
mate-desktop-gh-pages.tar.xz
Deploy mate-desktop/mate-desktop to github.com/mate-desktop/mate-desktop.git:gh-pagesgh-pages
Diffstat (limited to '2024-04-04-053447-3634-cppcheck@fee79b755996_1.28')
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/0.html863
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/1.html1309
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/10.html383
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/11.html533
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/12.html335
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/13.html8927
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/14.html2941
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/15.html439
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/16.html1171
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/17.html339
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/18.html3107
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/19.html1295
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/2.html1769
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/20.html373
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/21.html2915
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/22.html343
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/23.html4187
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/24.html637
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/25.html537
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/26.html405
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/27.html1373
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/28.html741
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/29.html4569
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/3.html397
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/30.html365
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/31.html553
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/32.html413
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/33.html1577
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/34.html417
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/4.html6759
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/5.html5985
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/6.html309
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/7.html489
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/8.html433
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/9.html721
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/index.html493
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/stats.html199
-rw-r--r--2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/style.css177
38 files changed, 58778 insertions, 0 deletions
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/0.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/0.html
new file mode 100644
index 0000000..e447c57
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/0.html
@@ -0,0 +1,863 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/display-name.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> display-name.c</p>
+<a href="0.html#line-25"> missingIncludeSystem 25</a><a href="0.html#line-26"> missingIncludeSystem 26</a><a href="0.html#line-27"> missingIncludeSystem 27</a><a href="0.html#line-28"> missingIncludeSystem 28</a><a href="0.html#line-29"> missingIncludeSystem 29</a><a href="0.html#line-30"> missingIncludeSystem 30</a><a href="0.html#line-31"> missingIncludeSystem 31</a><a href="0.html#line-196"> variableScope 196</a><a href="0.html#line-196"> variableScope 196</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal"> 10</span>
+<span class="normal"> 11</span>
+<span class="normal"> 12</span>
+<span class="normal"> 13</span>
+<span class="normal"> 14</span>
+<span class="normal"> 15</span>
+<span class="normal"> 16</span>
+<span class="normal"> 17</span>
+<span class="normal"> 18</span>
+<span class="normal"> 19</span>
+<span class="normal"> 20</span>
+<span class="normal"> 21</span>
+<span class="normal"> 22</span>
+<span class="normal"> 23</span>
+<span class="normal"> 24</span>
+<span class="normal"> 25</span>
+<span class="normal"> 26</span>
+<span class="normal"> 27</span>
+<span class="normal"> 28</span>
+<span class="normal"> 29</span>
+<span class="normal"> 30</span>
+<span class="normal"> 31</span>
+<span class="normal"> 32</span>
+<span class="normal"> 33</span>
+<span class="normal"> 34</span>
+<span class="normal"> 35</span>
+<span class="normal"> 36</span>
+<span class="normal"> 37</span>
+<span class="normal"> 38</span>
+<span class="normal"> 39</span>
+<span class="normal"> 40</span>
+<span class="normal"> 41</span>
+<span class="normal"> 42</span>
+<span class="normal"> 43</span>
+<span class="normal"> 44</span>
+<span class="normal"> 45</span>
+<span class="normal"> 46</span>
+<span class="normal"> 47</span>
+<span class="normal"> 48</span>
+<span class="normal"> 49</span>
+<span class="normal"> 50</span>
+<span class="normal"> 51</span>
+<span class="normal"> 52</span>
+<span class="normal"> 53</span>
+<span class="normal"> 54</span>
+<span class="normal"> 55</span>
+<span class="normal"> 56</span>
+<span class="normal"> 57</span>
+<span class="normal"> 58</span>
+<span class="normal"> 59</span>
+<span class="normal"> 60</span>
+<span class="normal"> 61</span>
+<span class="normal"> 62</span>
+<span class="normal"> 63</span>
+<span class="normal"> 64</span>
+<span class="normal"> 65</span>
+<span class="normal"> 66</span>
+<span class="normal"> 67</span>
+<span class="normal"> 68</span>
+<span class="normal"> 69</span>
+<span class="normal"> 70</span>
+<span class="normal"> 71</span>
+<span class="normal"> 72</span>
+<span class="normal"> 73</span>
+<span class="normal"> 74</span>
+<span class="normal"> 75</span>
+<span class="normal"> 76</span>
+<span class="normal"> 77</span>
+<span class="normal"> 78</span>
+<span class="normal"> 79</span>
+<span class="normal"> 80</span>
+<span class="normal"> 81</span>
+<span class="normal"> 82</span>
+<span class="normal"> 83</span>
+<span class="normal"> 84</span>
+<span class="normal"> 85</span>
+<span class="normal"> 86</span>
+<span class="normal"> 87</span>
+<span class="normal"> 88</span>
+<span class="normal"> 89</span>
+<span class="normal"> 90</span>
+<span class="normal"> 91</span>
+<span class="normal"> 92</span>
+<span class="normal"> 93</span>
+<span class="normal"> 94</span>
+<span class="normal"> 95</span>
+<span class="normal"> 96</span>
+<span class="normal"> 97</span>
+<span class="normal"> 98</span>
+<span class="normal"> 99</span>
+<span class="normal">100</span>
+<span class="normal">101</span>
+<span class="normal">102</span>
+<span class="normal">103</span>
+<span class="normal">104</span>
+<span class="normal">105</span>
+<span class="normal">106</span>
+<span class="normal">107</span>
+<span class="normal">108</span>
+<span class="normal">109</span>
+<span class="normal">110</span>
+<span class="normal">111</span>
+<span class="normal">112</span>
+<span class="normal">113</span>
+<span class="normal">114</span>
+<span class="normal">115</span>
+<span class="normal">116</span>
+<span class="normal">117</span>
+<span class="normal">118</span>
+<span class="normal">119</span>
+<span class="normal">120</span>
+<span class="normal">121</span>
+<span class="normal">122</span>
+<span class="normal">123</span>
+<span class="normal">124</span>
+<span class="normal">125</span>
+<span class="normal">126</span>
+<span class="normal">127</span>
+<span class="normal">128</span>
+<span class="normal">129</span>
+<span class="normal">130</span>
+<span class="normal">131</span>
+<span class="normal">132</span>
+<span class="normal">133</span>
+<span class="normal">134</span>
+<span class="normal">135</span>
+<span class="normal">136</span>
+<span class="normal">137</span>
+<span class="normal">138</span>
+<span class="normal">139</span>
+<span class="normal">140</span>
+<span class="normal">141</span>
+<span class="normal">142</span>
+<span class="normal">143</span>
+<span class="normal">144</span>
+<span class="normal">145</span>
+<span class="normal">146</span>
+<span class="normal">147</span>
+<span class="normal">148</span>
+<span class="normal">149</span>
+<span class="normal">150</span>
+<span class="normal">151</span>
+<span class="normal">152</span>
+<span class="normal">153</span>
+<span class="normal">154</span>
+<span class="normal">155</span>
+<span class="normal">156</span>
+<span class="normal">157</span>
+<span class="normal">158</span>
+<span class="normal">159</span>
+<span class="normal">160</span>
+<span class="normal">161</span>
+<span class="normal">162</span>
+<span class="normal">163</span>
+<span class="normal">164</span>
+<span class="normal">165</span>
+<span class="normal">166</span>
+<span class="normal">167</span>
+<span class="normal">168</span>
+<span class="normal">169</span>
+<span class="normal">170</span>
+<span class="normal">171</span>
+<span class="normal">172</span>
+<span class="normal">173</span>
+<span class="normal">174</span>
+<span class="normal">175</span>
+<span class="normal">176</span>
+<span class="normal">177</span>
+<span class="normal">178</span>
+<span class="normal">179</span>
+<span class="normal">180</span>
+<span class="normal">181</span>
+<span class="normal">182</span>
+<span class="normal">183</span>
+<span class="normal">184</span>
+<span class="normal">185</span>
+<span class="normal">186</span>
+<span class="normal">187</span>
+<span class="normal">188</span>
+<span class="normal">189</span>
+<span class="normal">190</span>
+<span class="normal">191</span>
+<span class="normal">192</span>
+<span class="normal">193</span>
+<span class="normal">194</span>
+<span class="normal">195</span>
+<span class="normal">196</span>
+<span class="normal">197</span>
+<span class="normal">198</span>
+<span class="normal">199</span>
+<span class="normal">200</span>
+<span class="normal">201</span>
+<span class="normal">202</span>
+<span class="normal">203</span>
+<span class="normal">204</span>
+<span class="normal">205</span>
+<span class="normal">206</span>
+<span class="normal">207</span>
+<span class="normal">208</span>
+<span class="normal">209</span>
+<span class="normal">210</span>
+<span class="normal">211</span>
+<span class="normal">212</span>
+<span class="normal">213</span>
+<span class="normal">214</span>
+<span class="normal">215</span>
+<span class="normal">216</span>
+<span class="normal">217</span>
+<span class="normal">218</span>
+<span class="normal">219</span>
+<span class="normal">220</span>
+<span class="normal">221</span>
+<span class="normal">222</span>
+<span class="normal">223</span>
+<span class="normal">224</span>
+<span class="normal">225</span>
+<span class="normal">226</span>
+<span class="normal">227</span>
+<span class="normal">228</span>
+<span class="normal">229</span>
+<span class="normal">230</span>
+<span class="normal">231</span>
+<span class="normal">232</span>
+<span class="normal">233</span>
+<span class="normal">234</span>
+<span class="normal">235</span>
+<span class="normal">236</span>
+<span class="normal">237</span>
+<span class="normal">238</span>
+<span class="normal">239</span>
+<span class="normal">240</span>
+<span class="normal">241</span>
+<span class="normal">242</span>
+<span class="normal">243</span>
+<span class="normal">244</span>
+<span class="normal">245</span>
+<span class="normal">246</span>
+<span class="normal">247</span>
+<span class="normal">248</span>
+<span class="normal">249</span>
+<span class="normal">250</span>
+<span class="normal">251</span>
+<span class="normal">252</span>
+<span class="normal">253</span>
+<span class="normal">254</span>
+<span class="normal">255</span>
+<span class="normal">256</span>
+<span class="normal">257</span>
+<span class="normal">258</span>
+<span class="normal">259</span>
+<span class="normal">260</span>
+<span class="normal">261</span>
+<span class="normal">262</span>
+<span class="normal">263</span>
+<span class="normal">264</span>
+<span class="normal">265</span>
+<span class="normal">266</span>
+<span class="normal">267</span>
+<span class="normal">268</span>
+<span class="normal">269</span>
+<span class="normal">270</span>
+<span class="normal">271</span>
+<span class="normal">272</span>
+<span class="normal">273</span>
+<span class="normal">274</span>
+<span class="normal">275</span>
+<span class="normal">276</span>
+<span class="normal">277</span>
+<span class="normal">278</span>
+<span class="normal">279</span>
+<span class="normal">280</span>
+<span class="normal">281</span>
+<span class="normal">282</span>
+<span class="normal">283</span>
+<span class="normal">284</span>
+<span class="normal">285</span>
+<span class="normal">286</span>
+<span class="normal">287</span>
+<span class="normal">288</span>
+<span class="normal">289</span>
+<span class="normal">290</span>
+<span class="normal">291</span>
+<span class="normal">292</span>
+<span class="normal">293</span>
+<span class="normal">294</span>
+<span class="normal">295</span>
+<span class="normal">296</span>
+<span class="normal">297</span>
+<span class="normal">298</span>
+<span class="normal">299</span>
+<span class="normal">300</span>
+<span class="normal">301</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span>
+<a id="line-2" name="line-2"></a><span class="cm"> * Copyright 2007 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * Permission is hereby granted, free of charge, to any person obtaining a</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * copy of this software and associated documentation files (the &quot;Software&quot;),</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * to deal in the Software without restriction, including without limitation</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * on the rights to use, copy, modify, merge, publish, distribute, sub</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * license, and/or sell copies of the Software, and to permit persons to whom</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * the Software is furnished to do so, subject to the following conditions:</span>
+<a id="line-10" name="line-10"></a><span class="cm"> *</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * The above copyright notice and this permission notice (including the next</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * paragraph) shall be included in all copies or substantial portions of the</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Software.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER</span>
+<a id="line-19" name="line-19"></a><span class="cm"> * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cm">/* Author: Soren Sandmann &lt;[email protected]&gt; */</span>
+<a id="line-24" name="line-24"></a>
+<a id="line-25" name="line-25"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;config.h&gt;</span><span class="error2">&lt;--- Include file: <config.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n-lib.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n-lib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdlib.h&gt;</span><span class="error2">&lt;--- Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;math.h&gt;</span><span class="error2">&lt;--- Include file: <math.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdio.h&gt;</span><span class="error2">&lt;--- Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-31" name="line-31"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib.h&gt;</span><span class="error2">&lt;--- Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-32" name="line-32"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;edid.h&quot;</span>
+<a id="line-33" name="line-33"></a>
+<a id="line-34" name="line-34"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">Vendor</span><span class="w"> </span><span class="n">Vendor</span><span class="p">;</span>
+<a id="line-35" name="line-35"></a>
+<a id="line-36" name="line-36"></a><span class="k">struct</span><span class="w"> </span><span class="nc">Vendor</span><span class="w"> </span><span class="p">{</span>
+<a id="line-37" name="line-37"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">vendor_id</span><span class="p">[</span><span class="mi">4</span><span class="p">];</span>
+<a id="line-38" name="line-38"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">vendor_name</span><span class="p">[</span><span class="mi">28</span><span class="p">];</span>
+<a id="line-39" name="line-39"></a><span class="p">};</span>
+<a id="line-40" name="line-40"></a>
+<a id="line-41" name="line-41"></a><span class="cm">/* This list of vendor codes derived from lshw</span>
+<a id="line-42" name="line-42"></a><span class="cm"> *</span>
+<a id="line-43" name="line-43"></a><span class="cm"> * http://ezix.org/project/wiki/HardwareLiSter</span>
+<a id="line-44" name="line-44"></a><span class="cm"> *</span>
+<a id="line-45" name="line-45"></a><span class="cm"> * Note: we now prefer to use data coming from hwdata (and shipped with</span>
+<a id="line-46" name="line-46"></a><span class="cm"> * mate-desktop). See</span>
+<a id="line-47" name="line-47"></a><span class="cm"> * http://git.fedorahosted.org/git/?p=hwdata.git;a=blob_plain;f=pnp.ids;hb=HEAD</span>
+<a id="line-48" name="line-48"></a><span class="cm"> * All contributions to the list of vendors should go there.</span>
+<a id="line-49" name="line-49"></a><span class="cm"> */</span>
+<a id="line-50" name="line-50"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">Vendor</span><span class="w"> </span><span class="n">vendors</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span>
+<a id="line-51" name="line-51"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;AIC&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;AG Neovo&quot;</span><span class="p">},</span>
+<a id="line-52" name="line-52"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;ACR&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Acer&quot;</span><span class="p">},</span>
+<a id="line-53" name="line-53"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;DEL&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;DELL&quot;</span><span class="p">},</span>
+<a id="line-54" name="line-54"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;SAM&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;SAMSUNG&quot;</span><span class="p">},</span>
+<a id="line-55" name="line-55"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;SNY&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;SONY&quot;</span><span class="p">},</span>
+<a id="line-56" name="line-56"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;SEC&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Epson&quot;</span><span class="p">},</span>
+<a id="line-57" name="line-57"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;WAC&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Wacom&quot;</span><span class="p">},</span>
+<a id="line-58" name="line-58"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;NEC&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;NEC&quot;</span><span class="p">},</span>
+<a id="line-59" name="line-59"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;CMO&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;CMO&quot;</span><span class="p">},</span><span class="w"> </span><span class="cm">/* Chi Mei */</span>
+<a id="line-60" name="line-60"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;BNQ&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;BenQ&quot;</span><span class="p">},</span>
+<a id="line-61" name="line-61"></a>
+<a id="line-62" name="line-62"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;ABP&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Advansys&quot;</span><span class="p">},</span>
+<a id="line-63" name="line-63"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;ACC&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Accton&quot;</span><span class="p">},</span>
+<a id="line-64" name="line-64"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;ACE&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Accton&quot;</span><span class="p">},</span>
+<a id="line-65" name="line-65"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;ADP&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Adaptec&quot;</span><span class="p">},</span>
+<a id="line-66" name="line-66"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;ADV&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;AMD&quot;</span><span class="p">},</span>
+<a id="line-67" name="line-67"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;AIR&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;AIR&quot;</span><span class="p">},</span>
+<a id="line-68" name="line-68"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;AMI&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;AMI&quot;</span><span class="p">},</span>
+<a id="line-69" name="line-69"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;ASU&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ASUS&quot;</span><span class="p">},</span>
+<a id="line-70" name="line-70"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;ATI&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ATI&quot;</span><span class="p">},</span>
+<a id="line-71" name="line-71"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;ATK&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Allied Telesyn&quot;</span><span class="p">},</span>
+<a id="line-72" name="line-72"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;AZT&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Aztech&quot;</span><span class="p">},</span>
+<a id="line-73" name="line-73"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;BAN&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Banya&quot;</span><span class="p">},</span>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;BRI&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Boca Research&quot;</span><span class="p">},</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;BUS&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Buslogic&quot;</span><span class="p">},</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;CCI&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Cache Computers Inc.&quot;</span><span class="p">},</span>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;CHA&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Chase&quot;</span><span class="p">},</span>
+<a id="line-78" name="line-78"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;CMD&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;CMD Technology, Inc.&quot;</span><span class="p">},</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;COG&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Cogent&quot;</span><span class="p">},</span>
+<a id="line-80" name="line-80"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;CPQ&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Compaq&quot;</span><span class="p">},</span>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;CRS&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Crescendo&quot;</span><span class="p">},</span>
+<a id="line-82" name="line-82"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;CSC&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Crystal&quot;</span><span class="p">},</span>
+<a id="line-83" name="line-83"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;CSI&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;CSI&quot;</span><span class="p">},</span>
+<a id="line-84" name="line-84"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;CTL&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Creative Labs&quot;</span><span class="p">},</span>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;DBI&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Digi&quot;</span><span class="p">},</span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;DEC&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Digital Equipment&quot;</span><span class="p">},</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;DBK&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Databook&quot;</span><span class="p">},</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;EGL&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Eagle Technology&quot;</span><span class="p">},</span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;ELS&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ELSA&quot;</span><span class="p">},</span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;ESS&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ESS&quot;</span><span class="p">},</span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;FAR&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Farallon&quot;</span><span class="p">},</span>
+<a id="line-92" name="line-92"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;FDC&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Future Domain&quot;</span><span class="p">},</span>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;HWP&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Hewlett-Packard&quot;</span><span class="p">},</span>
+<a id="line-94" name="line-94"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;IBM&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;IBM&quot;</span><span class="p">},</span>
+<a id="line-95" name="line-95"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;INT&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Intel&quot;</span><span class="p">},</span>
+<a id="line-96" name="line-96"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;ISA&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Iomega&quot;</span><span class="p">},</span>
+<a id="line-97" name="line-97"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;LEN&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Lenovo&quot;</span><span class="p">},</span>
+<a id="line-98" name="line-98"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;MDG&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Madge&quot;</span><span class="p">},</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;MDY&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Microdyne&quot;</span><span class="p">},</span>
+<a id="line-100" name="line-100"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;MET&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Metheus&quot;</span><span class="p">},</span>
+<a id="line-101" name="line-101"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;MIC&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Micronics&quot;</span><span class="p">},</span>
+<a id="line-102" name="line-102"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;MLX&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Mylex&quot;</span><span class="p">},</span>
+<a id="line-103" name="line-103"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;NVL&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Novell&quot;</span><span class="p">},</span>
+<a id="line-104" name="line-104"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;OLC&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Olicom&quot;</span><span class="p">},</span>
+<a id="line-105" name="line-105"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;PRO&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Proteon&quot;</span><span class="p">},</span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;RII&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Racal&quot;</span><span class="p">},</span>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;RTL&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Realtek&quot;</span><span class="p">},</span>
+<a id="line-108" name="line-108"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;SCM&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;SCM&quot;</span><span class="p">},</span>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;SKD&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;SysKonnect&quot;</span><span class="p">},</span>
+<a id="line-110" name="line-110"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;SGI&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;SGI&quot;</span><span class="p">},</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;SMC&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;SMC&quot;</span><span class="p">},</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;SNI&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Siemens Nixdorf&quot;</span><span class="p">},</span>
+<a id="line-113" name="line-113"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;STL&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Stallion Technologies&quot;</span><span class="p">},</span>
+<a id="line-114" name="line-114"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;SUN&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Sun&quot;</span><span class="p">},</span>
+<a id="line-115" name="line-115"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;SUP&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;SupraExpress&quot;</span><span class="p">},</span>
+<a id="line-116" name="line-116"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;SVE&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;SVEC&quot;</span><span class="p">},</span>
+<a id="line-117" name="line-117"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;TCC&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Thomas-Conrad&quot;</span><span class="p">},</span>
+<a id="line-118" name="line-118"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;TCI&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Tulip&quot;</span><span class="p">},</span>
+<a id="line-119" name="line-119"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;TCM&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;3Com&quot;</span><span class="p">},</span>
+<a id="line-120" name="line-120"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;TCO&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Thomas-Conrad&quot;</span><span class="p">},</span>
+<a id="line-121" name="line-121"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;TEC&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Tecmar&quot;</span><span class="p">},</span>
+<a id="line-122" name="line-122"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;TRU&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Truevision&quot;</span><span class="p">},</span>
+<a id="line-123" name="line-123"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;TOS&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Toshiba&quot;</span><span class="p">},</span>
+<a id="line-124" name="line-124"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;TYN&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Tyan&quot;</span><span class="p">},</span>
+<a id="line-125" name="line-125"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;UBI&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Ungermann-Bass&quot;</span><span class="p">},</span>
+<a id="line-126" name="line-126"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;USC&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UltraStor&quot;</span><span class="p">},</span>
+<a id="line-127" name="line-127"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;VDM&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Vadem&quot;</span><span class="p">},</span>
+<a id="line-128" name="line-128"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;VMI&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Vermont&quot;</span><span class="p">},</span>
+<a id="line-129" name="line-129"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;WDC&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Western Digital&quot;</span><span class="p">},</span>
+<a id="line-130" name="line-130"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;ZDS&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Zeos&quot;</span><span class="p">},</span>
+<a id="line-131" name="line-131"></a>
+<a id="line-132" name="line-132"></a><span class="w"> </span><span class="cm">/* From http://faydoc.tripod.com/structures/01/0136.htm */</span>
+<a id="line-133" name="line-133"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;ACT&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Targa&quot;</span><span class="p">},</span>
+<a id="line-134" name="line-134"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;ADI&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ADI&quot;</span><span class="p">},</span>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;AOC&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;AOC Intl&quot;</span><span class="p">},</span>
+<a id="line-136" name="line-136"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;API&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Acer America&quot;</span><span class="p">},</span>
+<a id="line-137" name="line-137"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;APP&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Apple Computer&quot;</span><span class="p">},</span>
+<a id="line-138" name="line-138"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;ART&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ArtMedia&quot;</span><span class="p">},</span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;AST&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;AST Research&quot;</span><span class="p">},</span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;CPL&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Compal&quot;</span><span class="p">},</span>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;CTX&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Chuntex Electronic Co.&quot;</span><span class="p">},</span>
+<a id="line-142" name="line-142"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;DPC&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Delta Electronics&quot;</span><span class="p">},</span>
+<a id="line-143" name="line-143"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;DWE&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Daewoo&quot;</span><span class="p">},</span>
+<a id="line-144" name="line-144"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;ECS&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ELITEGROUP&quot;</span><span class="p">},</span>
+<a id="line-145" name="line-145"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;EIZ&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;EIZO&quot;</span><span class="p">},</span>
+<a id="line-146" name="line-146"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;FCM&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Funai&quot;</span><span class="p">},</span>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;GSM&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;LG Electronics&quot;</span><span class="p">},</span>
+<a id="line-148" name="line-148"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;GWY&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Gateway 2000&quot;</span><span class="p">},</span>
+<a id="line-149" name="line-149"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;HEI&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Hyundai&quot;</span><span class="p">},</span>
+<a id="line-150" name="line-150"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;HIT&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Hitachi&quot;</span><span class="p">},</span>
+<a id="line-151" name="line-151"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;HSL&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Hansol&quot;</span><span class="p">},</span>
+<a id="line-152" name="line-152"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;HTC&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Hitachi&quot;</span><span class="p">},</span>
+<a id="line-153" name="line-153"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;ICL&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Fujitsu ICL&quot;</span><span class="p">},</span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;IVM&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Idek Iiyama&quot;</span><span class="p">},</span>
+<a id="line-155" name="line-155"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;KFC&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;KFC Computek&quot;</span><span class="p">},</span>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;LKM&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ADLAS&quot;</span><span class="p">},</span>
+<a id="line-157" name="line-157"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;LNK&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;LINK Tech&quot;</span><span class="p">},</span>
+<a id="line-158" name="line-158"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;LTN&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Lite-On&quot;</span><span class="p">},</span>
+<a id="line-159" name="line-159"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;MAG&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;MAG InnoVision&quot;</span><span class="p">},</span>
+<a id="line-160" name="line-160"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;MAX&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Maxdata&quot;</span><span class="p">},</span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;MEI&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Panasonic&quot;</span><span class="p">},</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;MEL&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Mitsubishi&quot;</span><span class="p">},</span>
+<a id="line-163" name="line-163"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;MIR&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;miro&quot;</span><span class="p">},</span>
+<a id="line-164" name="line-164"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;MTC&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;MITAC&quot;</span><span class="p">},</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;NAN&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;NANAO&quot;</span><span class="p">},</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;NEC&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;NEC Tech&quot;</span><span class="p">},</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;NOK&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Nokia&quot;</span><span class="p">},</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;OQI&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;OPTIQUEST&quot;</span><span class="p">},</span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;PBN&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Packard Bell&quot;</span><span class="p">},</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;PGS&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Princeton&quot;</span><span class="p">},</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;PHL&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Philips&quot;</span><span class="p">},</span>
+<a id="line-172" name="line-172"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;REL&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Relisys&quot;</span><span class="p">},</span>
+<a id="line-173" name="line-173"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;SDI&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Samtron&quot;</span><span class="p">},</span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;SMI&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Smile&quot;</span><span class="p">},</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;SPT&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Sceptre&quot;</span><span class="p">},</span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;SRC&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Shamrock Technology&quot;</span><span class="p">},</span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;STP&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Sceptre&quot;</span><span class="p">},</span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;TAT&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Tatung&quot;</span><span class="p">},</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;TRL&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Royal Information Company&quot;</span><span class="p">},</span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;TSB&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Toshiba, Inc.&quot;</span><span class="p">},</span>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;UNM&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Unisys&quot;</span><span class="p">},</span>
+<a id="line-182" name="line-182"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;VSC&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ViewSonic&quot;</span><span class="p">},</span>
+<a id="line-183" name="line-183"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;WTC&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Wen Tech&quot;</span><span class="p">},</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;ZCM&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Zenith Data Systems&quot;</span><span class="p">},</span>
+<a id="line-185" name="line-185"></a>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;???&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Unknown&quot;</span><span class="p">},</span>
+<a id="line-187" name="line-187"></a><span class="p">};</span>
+<a id="line-188" name="line-188"></a>
+<a id="line-189" name="line-189"></a><span class="k">static</span><span class="w"> </span><span class="n">GHashTable</span><span class="o">*</span><span class="w"> </span><span class="n">pnp_ids</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-190" name="line-190"></a>
+<a id="line-191" name="line-191"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">read_pnp_ids</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-192" name="line-192"></a><span class="p">{</span>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">gchar</span><span class="o">*</span><span class="w"> </span><span class="n">contents</span><span class="p">;</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">gchar</span><span class="o">**</span><span class="w"> </span><span class="n">lines</span><span class="p">;</span>
+<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">gchar</span><span class="o">*</span><span class="w"> </span><span class="n">line</span><span class="p">;</span>
+<a id="line-196" name="line-196"></a><span class="hll"><span class="w"> </span><span class="n">gchar</span><span class="o">*</span><span class="w"> </span><span class="n">code</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span><div class="verbose expandable"><span class="error2">&lt;--- The scope of the variable 'code' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable &apos;code&apos; can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for &apos;i&apos; can be reduced:
+void f(int x)
+{
+ int i = 0;
+ if (x) {
+ // it&apos;s safe to move &apos;int i = 0;&apos; here
+ for (int n = 0; n &lt; 10; ++n) {
+ // it is possible but not safe to move &apos;int i = 0;&apos; here
+ do_something(&amp;i);
+ }
+ }
+}
+When you see this message it is always safe to reduce the variable scope 1 level.</div></div><div class="verbose expandable"><span class="error2">&lt;--- The scope of the variable 'name' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable &apos;name&apos; can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for &apos;i&apos; can be reduced:
+void f(int x)
+{
+ int i = 0;
+ if (x) {
+ // it&apos;s safe to move &apos;int i = 0;&apos; here
+ for (int n = 0; n &lt; 10; ++n) {
+ // it is possible but not safe to move &apos;int i = 0;&apos; here
+ do_something(&amp;i);
+ }
+ }
+}
+When you see this message it is always safe to reduce the variable scope 1 level.</div></div>
+</span><a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-198" name="line-198"></a>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">pnp_ids</span><span class="p">)</span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-201" name="line-201"></a>
+<a id="line-202" name="line-202"></a><span class="w"> </span><span class="n">pnp_ids</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_new_full</span><span class="p">(</span><span class="n">g_str_hash</span><span class="p">,</span><span class="w"> </span><span class="n">g_str_equal</span><span class="p">,</span><span class="w"> </span><span class="n">g_free</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-203" name="line-203"></a>
+<a id="line-204" name="line-204"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_file_get_contents</span><span class="p">(</span><span class="n">PNP_IDS</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">contents</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="n">lines</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strsplit</span><span class="p">(</span><span class="n">contents</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span>
+<a id="line-207" name="line-207"></a>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">lines</span><span class="p">[</span><span class="n">i</span><span class="p">];</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">line</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">lines</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-211" name="line-211"></a>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">line</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">line</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">line</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">line</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;\t&#39;</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">line</span><span class="p">[</span><span class="mi">4</span><span class="p">])</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">code</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">line</span><span class="p">;</span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">line</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">;</span>
+<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">line</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">4</span><span class="p">;</span>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="p">(</span><span class="n">pnp_ids</span><span class="p">,</span><span class="w"> </span><span class="n">code</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span>
+<a id="line-218" name="line-218"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-219" name="line-219"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-220" name="line-220"></a>
+<a id="line-221" name="line-221"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">lines</span><span class="p">);</span>
+<a id="line-222" name="line-222"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">contents</span><span class="p">);</span>
+<a id="line-223" name="line-223"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-224" name="line-224"></a><span class="p">}</span>
+<a id="line-225" name="line-225"></a>
+<a id="line-226" name="line-226"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="nf">find_vendor</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="n">code</span><span class="p">)</span>
+<a id="line-227" name="line-227"></a><span class="p">{</span>
+<a id="line-228" name="line-228"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="n">vendor_name</span><span class="p">;</span>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-230" name="line-230"></a>
+<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">read_pnp_ids</span><span class="p">();</span>
+<a id="line-232" name="line-232"></a>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">vendor_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_lookup</span><span class="p">(</span><span class="n">pnp_ids</span><span class="p">,</span><span class="w"> </span><span class="n">code</span><span class="p">);</span>
+<a id="line-234" name="line-234"></a>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">vendor_name</span><span class="p">)</span>
+<a id="line-236" name="line-236"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">vendor_name</span><span class="p">;</span>
+<a id="line-237" name="line-237"></a>
+<a id="line-238" name="line-238"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">G_N_ELEMENTS</span><span class="w"> </span><span class="p">(</span><span class="n">vendors</span><span class="p">);</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-239" name="line-239"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-240" name="line-240"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">Vendor</span><span class="o">*</span><span class="w"> </span><span class="n">v</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&amp;</span><span class="p">(</span><span class="n">vendors</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span>
+<a id="line-241" name="line-241"></a>
+<a id="line-242" name="line-242"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">v</span><span class="o">-&gt;</span><span class="n">vendor_id</span><span class="p">,</span><span class="w"> </span><span class="n">code</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-243" name="line-243"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">v</span><span class="o">-&gt;</span><span class="n">vendor_name</span><span class="p">;</span>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-245" name="line-245"></a>
+<a id="line-246" name="line-246"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">code</span><span class="p">;</span>
+<a id="line-247" name="line-247"></a><span class="p">}</span>
+<a id="line-248" name="line-248"></a>
+<a id="line-249" name="line-249"></a><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="nf">make_display_name</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MonitorInfo</span><span class="o">*</span><span class="w"> </span><span class="n">info</span><span class="p">)</span>
+<a id="line-250" name="line-250"></a><span class="p">{</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="n">vendor</span><span class="p">;</span>
+<a id="line-252" name="line-252"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width_mm</span><span class="p">,</span><span class="w"> </span><span class="n">height_mm</span><span class="p">,</span><span class="w"> </span><span class="n">inches</span><span class="p">;</span>
+<a id="line-253" name="line-253"></a>
+<a id="line-254" name="line-254"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">)</span>
+<a id="line-255" name="line-255"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">vendor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">find_vendor</span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">manufacturer_code</span><span class="p">);</span>
+<a id="line-257" name="line-257"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="cm">/* Translators: &quot;Unknown&quot; here is used to identify a monitor for which</span>
+<a id="line-261" name="line-261"></a><span class="cm"> * we don&#39;t know the vendor. When a vendor is known, the name of the</span>
+<a id="line-262" name="line-262"></a><span class="cm"> * vendor is used. */</span>
+<a id="line-263" name="line-263"></a><span class="w"> </span><span class="n">vendor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">C_</span><span class="p">(</span><span class="s">&quot;Monitor vendor&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Unknown&quot;</span><span class="p">);</span>
+<a id="line-264" name="line-264"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-265" name="line-265"></a>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">width_mm</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">-1</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">height_mm</span><span class="p">)</span>
+<a id="line-267" name="line-267"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">width_mm</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">width_mm</span><span class="p">;</span>
+<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">height_mm</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">height_mm</span><span class="p">;</span>
+<a id="line-270" name="line-270"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-271" name="line-271"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">n_detailed_timings</span><span class="p">)</span>
+<a id="line-272" name="line-272"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">width_mm</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">detailed_timings</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="n">width_mm</span><span class="p">;</span>
+<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">height_mm</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">detailed_timings</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="n">height_mm</span><span class="p">;</span>
+<a id="line-275" name="line-275"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-276" name="line-276"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-277" name="line-277"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-278" name="line-278"></a><span class="w"> </span><span class="n">width_mm</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-279" name="line-279"></a><span class="w"> </span><span class="n">height_mm</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-280" name="line-280"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-281" name="line-281"></a>
+<a id="line-282" name="line-282"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">width_mm</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">-1</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">height_mm</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">-1</span><span class="p">)</span>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">d</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">sqrt</span><span class="w"> </span><span class="p">(</span><span class="n">width_mm</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">width_mm</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">height_mm</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">height_mm</span><span class="p">);</span>
+<a id="line-285" name="line-285"></a>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">inches</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">d</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">25.4</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="n">inches</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-292" name="line-292"></a>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">inches</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-294" name="line-294"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="p">(</span><span class="s">&quot;%s %d</span><span class="se">\&quot;</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">vendor</span><span class="p">,</span><span class="w"> </span><span class="n">inches</span><span class="p">);</span>
+<a id="line-296" name="line-296"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-297" name="line-297"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-298" name="line-298"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">vendor</span><span class="p">);</span>
+<a id="line-300" name="line-300"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-301" name="line-301"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/1.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/1.html
new file mode 100644
index 0000000..90f4a81
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/1.html
@@ -0,0 +1,1309 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/edid-parse.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> edid-parse.c</p>
+<a href="1.html#line-26"> missingIncludeSystem 26</a><a href="1.html#line-27"> missingIncludeSystem 27</a><a href="1.html#line-28"> missingIncludeSystem 28</a><a href="1.html#line-29"> missingIncludeSystem 29</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal"> 10</span>
+<span class="normal"> 11</span>
+<span class="normal"> 12</span>
+<span class="normal"> 13</span>
+<span class="normal"> 14</span>
+<span class="normal"> 15</span>
+<span class="normal"> 16</span>
+<span class="normal"> 17</span>
+<span class="normal"> 18</span>
+<span class="normal"> 19</span>
+<span class="normal"> 20</span>
+<span class="normal"> 21</span>
+<span class="normal"> 22</span>
+<span class="normal"> 23</span>
+<span class="normal"> 24</span>
+<span class="normal"> 25</span>
+<span class="normal"> 26</span>
+<span class="normal"> 27</span>
+<span class="normal"> 28</span>
+<span class="normal"> 29</span>
+<span class="normal"> 30</span>
+<span class="normal"> 31</span>
+<span class="normal"> 32</span>
+<span class="normal"> 33</span>
+<span class="normal"> 34</span>
+<span class="normal"> 35</span>
+<span class="normal"> 36</span>
+<span class="normal"> 37</span>
+<span class="normal"> 38</span>
+<span class="normal"> 39</span>
+<span class="normal"> 40</span>
+<span class="normal"> 41</span>
+<span class="normal"> 42</span>
+<span class="normal"> 43</span>
+<span class="normal"> 44</span>
+<span class="normal"> 45</span>
+<span class="normal"> 46</span>
+<span class="normal"> 47</span>
+<span class="normal"> 48</span>
+<span class="normal"> 49</span>
+<span class="normal"> 50</span>
+<span class="normal"> 51</span>
+<span class="normal"> 52</span>
+<span class="normal"> 53</span>
+<span class="normal"> 54</span>
+<span class="normal"> 55</span>
+<span class="normal"> 56</span>
+<span class="normal"> 57</span>
+<span class="normal"> 58</span>
+<span class="normal"> 59</span>
+<span class="normal"> 60</span>
+<span class="normal"> 61</span>
+<span class="normal"> 62</span>
+<span class="normal"> 63</span>
+<span class="normal"> 64</span>
+<span class="normal"> 65</span>
+<span class="normal"> 66</span>
+<span class="normal"> 67</span>
+<span class="normal"> 68</span>
+<span class="normal"> 69</span>
+<span class="normal"> 70</span>
+<span class="normal"> 71</span>
+<span class="normal"> 72</span>
+<span class="normal"> 73</span>
+<span class="normal"> 74</span>
+<span class="normal"> 75</span>
+<span class="normal"> 76</span>
+<span class="normal"> 77</span>
+<span class="normal"> 78</span>
+<span class="normal"> 79</span>
+<span class="normal"> 80</span>
+<span class="normal"> 81</span>
+<span class="normal"> 82</span>
+<span class="normal"> 83</span>
+<span class="normal"> 84</span>
+<span class="normal"> 85</span>
+<span class="normal"> 86</span>
+<span class="normal"> 87</span>
+<span class="normal"> 88</span>
+<span class="normal"> 89</span>
+<span class="normal"> 90</span>
+<span class="normal"> 91</span>
+<span class="normal"> 92</span>
+<span class="normal"> 93</span>
+<span class="normal"> 94</span>
+<span class="normal"> 95</span>
+<span class="normal"> 96</span>
+<span class="normal"> 97</span>
+<span class="normal"> 98</span>
+<span class="normal"> 99</span>
+<span class="normal">100</span>
+<span class="normal">101</span>
+<span class="normal">102</span>
+<span class="normal">103</span>
+<span class="normal">104</span>
+<span class="normal">105</span>
+<span class="normal">106</span>
+<span class="normal">107</span>
+<span class="normal">108</span>
+<span class="normal">109</span>
+<span class="normal">110</span>
+<span class="normal">111</span>
+<span class="normal">112</span>
+<span class="normal">113</span>
+<span class="normal">114</span>
+<span class="normal">115</span>
+<span class="normal">116</span>
+<span class="normal">117</span>
+<span class="normal">118</span>
+<span class="normal">119</span>
+<span class="normal">120</span>
+<span class="normal">121</span>
+<span class="normal">122</span>
+<span class="normal">123</span>
+<span class="normal">124</span>
+<span class="normal">125</span>
+<span class="normal">126</span>
+<span class="normal">127</span>
+<span class="normal">128</span>
+<span class="normal">129</span>
+<span class="normal">130</span>
+<span class="normal">131</span>
+<span class="normal">132</span>
+<span class="normal">133</span>
+<span class="normal">134</span>
+<span class="normal">135</span>
+<span class="normal">136</span>
+<span class="normal">137</span>
+<span class="normal">138</span>
+<span class="normal">139</span>
+<span class="normal">140</span>
+<span class="normal">141</span>
+<span class="normal">142</span>
+<span class="normal">143</span>
+<span class="normal">144</span>
+<span class="normal">145</span>
+<span class="normal">146</span>
+<span class="normal">147</span>
+<span class="normal">148</span>
+<span class="normal">149</span>
+<span class="normal">150</span>
+<span class="normal">151</span>
+<span class="normal">152</span>
+<span class="normal">153</span>
+<span class="normal">154</span>
+<span class="normal">155</span>
+<span class="normal">156</span>
+<span class="normal">157</span>
+<span class="normal">158</span>
+<span class="normal">159</span>
+<span class="normal">160</span>
+<span class="normal">161</span>
+<span class="normal">162</span>
+<span class="normal">163</span>
+<span class="normal">164</span>
+<span class="normal">165</span>
+<span class="normal">166</span>
+<span class="normal">167</span>
+<span class="normal">168</span>
+<span class="normal">169</span>
+<span class="normal">170</span>
+<span class="normal">171</span>
+<span class="normal">172</span>
+<span class="normal">173</span>
+<span class="normal">174</span>
+<span class="normal">175</span>
+<span class="normal">176</span>
+<span class="normal">177</span>
+<span class="normal">178</span>
+<span class="normal">179</span>
+<span class="normal">180</span>
+<span class="normal">181</span>
+<span class="normal">182</span>
+<span class="normal">183</span>
+<span class="normal">184</span>
+<span class="normal">185</span>
+<span class="normal">186</span>
+<span class="normal">187</span>
+<span class="normal">188</span>
+<span class="normal">189</span>
+<span class="normal">190</span>
+<span class="normal">191</span>
+<span class="normal">192</span>
+<span class="normal">193</span>
+<span class="normal">194</span>
+<span class="normal">195</span>
+<span class="normal">196</span>
+<span class="normal">197</span>
+<span class="normal">198</span>
+<span class="normal">199</span>
+<span class="normal">200</span>
+<span class="normal">201</span>
+<span class="normal">202</span>
+<span class="normal">203</span>
+<span class="normal">204</span>
+<span class="normal">205</span>
+<span class="normal">206</span>
+<span class="normal">207</span>
+<span class="normal">208</span>
+<span class="normal">209</span>
+<span class="normal">210</span>
+<span class="normal">211</span>
+<span class="normal">212</span>
+<span class="normal">213</span>
+<span class="normal">214</span>
+<span class="normal">215</span>
+<span class="normal">216</span>
+<span class="normal">217</span>
+<span class="normal">218</span>
+<span class="normal">219</span>
+<span class="normal">220</span>
+<span class="normal">221</span>
+<span class="normal">222</span>
+<span class="normal">223</span>
+<span class="normal">224</span>
+<span class="normal">225</span>
+<span class="normal">226</span>
+<span class="normal">227</span>
+<span class="normal">228</span>
+<span class="normal">229</span>
+<span class="normal">230</span>
+<span class="normal">231</span>
+<span class="normal">232</span>
+<span class="normal">233</span>
+<span class="normal">234</span>
+<span class="normal">235</span>
+<span class="normal">236</span>
+<span class="normal">237</span>
+<span class="normal">238</span>
+<span class="normal">239</span>
+<span class="normal">240</span>
+<span class="normal">241</span>
+<span class="normal">242</span>
+<span class="normal">243</span>
+<span class="normal">244</span>
+<span class="normal">245</span>
+<span class="normal">246</span>
+<span class="normal">247</span>
+<span class="normal">248</span>
+<span class="normal">249</span>
+<span class="normal">250</span>
+<span class="normal">251</span>
+<span class="normal">252</span>
+<span class="normal">253</span>
+<span class="normal">254</span>
+<span class="normal">255</span>
+<span class="normal">256</span>
+<span class="normal">257</span>
+<span class="normal">258</span>
+<span class="normal">259</span>
+<span class="normal">260</span>
+<span class="normal">261</span>
+<span class="normal">262</span>
+<span class="normal">263</span>
+<span class="normal">264</span>
+<span class="normal">265</span>
+<span class="normal">266</span>
+<span class="normal">267</span>
+<span class="normal">268</span>
+<span class="normal">269</span>
+<span class="normal">270</span>
+<span class="normal">271</span>
+<span class="normal">272</span>
+<span class="normal">273</span>
+<span class="normal">274</span>
+<span class="normal">275</span>
+<span class="normal">276</span>
+<span class="normal">277</span>
+<span class="normal">278</span>
+<span class="normal">279</span>
+<span class="normal">280</span>
+<span class="normal">281</span>
+<span class="normal">282</span>
+<span class="normal">283</span>
+<span class="normal">284</span>
+<span class="normal">285</span>
+<span class="normal">286</span>
+<span class="normal">287</span>
+<span class="normal">288</span>
+<span class="normal">289</span>
+<span class="normal">290</span>
+<span class="normal">291</span>
+<span class="normal">292</span>
+<span class="normal">293</span>
+<span class="normal">294</span>
+<span class="normal">295</span>
+<span class="normal">296</span>
+<span class="normal">297</span>
+<span class="normal">298</span>
+<span class="normal">299</span>
+<span class="normal">300</span>
+<span class="normal">301</span>
+<span class="normal">302</span>
+<span class="normal">303</span>
+<span class="normal">304</span>
+<span class="normal">305</span>
+<span class="normal">306</span>
+<span class="normal">307</span>
+<span class="normal">308</span>
+<span class="normal">309</span>
+<span class="normal">310</span>
+<span class="normal">311</span>
+<span class="normal">312</span>
+<span class="normal">313</span>
+<span class="normal">314</span>
+<span class="normal">315</span>
+<span class="normal">316</span>
+<span class="normal">317</span>
+<span class="normal">318</span>
+<span class="normal">319</span>
+<span class="normal">320</span>
+<span class="normal">321</span>
+<span class="normal">322</span>
+<span class="normal">323</span>
+<span class="normal">324</span>
+<span class="normal">325</span>
+<span class="normal">326</span>
+<span class="normal">327</span>
+<span class="normal">328</span>
+<span class="normal">329</span>
+<span class="normal">330</span>
+<span class="normal">331</span>
+<span class="normal">332</span>
+<span class="normal">333</span>
+<span class="normal">334</span>
+<span class="normal">335</span>
+<span class="normal">336</span>
+<span class="normal">337</span>
+<span class="normal">338</span>
+<span class="normal">339</span>
+<span class="normal">340</span>
+<span class="normal">341</span>
+<span class="normal">342</span>
+<span class="normal">343</span>
+<span class="normal">344</span>
+<span class="normal">345</span>
+<span class="normal">346</span>
+<span class="normal">347</span>
+<span class="normal">348</span>
+<span class="normal">349</span>
+<span class="normal">350</span>
+<span class="normal">351</span>
+<span class="normal">352</span>
+<span class="normal">353</span>
+<span class="normal">354</span>
+<span class="normal">355</span>
+<span class="normal">356</span>
+<span class="normal">357</span>
+<span class="normal">358</span>
+<span class="normal">359</span>
+<span class="normal">360</span>
+<span class="normal">361</span>
+<span class="normal">362</span>
+<span class="normal">363</span>
+<span class="normal">364</span>
+<span class="normal">365</span>
+<span class="normal">366</span>
+<span class="normal">367</span>
+<span class="normal">368</span>
+<span class="normal">369</span>
+<span class="normal">370</span>
+<span class="normal">371</span>
+<span class="normal">372</span>
+<span class="normal">373</span>
+<span class="normal">374</span>
+<span class="normal">375</span>
+<span class="normal">376</span>
+<span class="normal">377</span>
+<span class="normal">378</span>
+<span class="normal">379</span>
+<span class="normal">380</span>
+<span class="normal">381</span>
+<span class="normal">382</span>
+<span class="normal">383</span>
+<span class="normal">384</span>
+<span class="normal">385</span>
+<span class="normal">386</span>
+<span class="normal">387</span>
+<span class="normal">388</span>
+<span class="normal">389</span>
+<span class="normal">390</span>
+<span class="normal">391</span>
+<span class="normal">392</span>
+<span class="normal">393</span>
+<span class="normal">394</span>
+<span class="normal">395</span>
+<span class="normal">396</span>
+<span class="normal">397</span>
+<span class="normal">398</span>
+<span class="normal">399</span>
+<span class="normal">400</span>
+<span class="normal">401</span>
+<span class="normal">402</span>
+<span class="normal">403</span>
+<span class="normal">404</span>
+<span class="normal">405</span>
+<span class="normal">406</span>
+<span class="normal">407</span>
+<span class="normal">408</span>
+<span class="normal">409</span>
+<span class="normal">410</span>
+<span class="normal">411</span>
+<span class="normal">412</span>
+<span class="normal">413</span>
+<span class="normal">414</span>
+<span class="normal">415</span>
+<span class="normal">416</span>
+<span class="normal">417</span>
+<span class="normal">418</span>
+<span class="normal">419</span>
+<span class="normal">420</span>
+<span class="normal">421</span>
+<span class="normal">422</span>
+<span class="normal">423</span>
+<span class="normal">424</span>
+<span class="normal">425</span>
+<span class="normal">426</span>
+<span class="normal">427</span>
+<span class="normal">428</span>
+<span class="normal">429</span>
+<span class="normal">430</span>
+<span class="normal">431</span>
+<span class="normal">432</span>
+<span class="normal">433</span>
+<span class="normal">434</span>
+<span class="normal">435</span>
+<span class="normal">436</span>
+<span class="normal">437</span>
+<span class="normal">438</span>
+<span class="normal">439</span>
+<span class="normal">440</span>
+<span class="normal">441</span>
+<span class="normal">442</span>
+<span class="normal">443</span>
+<span class="normal">444</span>
+<span class="normal">445</span>
+<span class="normal">446</span>
+<span class="normal">447</span>
+<span class="normal">448</span>
+<span class="normal">449</span>
+<span class="normal">450</span>
+<span class="normal">451</span>
+<span class="normal">452</span>
+<span class="normal">453</span>
+<span class="normal">454</span>
+<span class="normal">455</span>
+<span class="normal">456</span>
+<span class="normal">457</span>
+<span class="normal">458</span>
+<span class="normal">459</span>
+<span class="normal">460</span>
+<span class="normal">461</span>
+<span class="normal">462</span>
+<span class="normal">463</span>
+<span class="normal">464</span>
+<span class="normal">465</span>
+<span class="normal">466</span>
+<span class="normal">467</span>
+<span class="normal">468</span>
+<span class="normal">469</span>
+<span class="normal">470</span>
+<span class="normal">471</span>
+<span class="normal">472</span>
+<span class="normal">473</span>
+<span class="normal">474</span>
+<span class="normal">475</span>
+<span class="normal">476</span>
+<span class="normal">477</span>
+<span class="normal">478</span>
+<span class="normal">479</span>
+<span class="normal">480</span>
+<span class="normal">481</span>
+<span class="normal">482</span>
+<span class="normal">483</span>
+<span class="normal">484</span>
+<span class="normal">485</span>
+<span class="normal">486</span>
+<span class="normal">487</span>
+<span class="normal">488</span>
+<span class="normal">489</span>
+<span class="normal">490</span>
+<span class="normal">491</span>
+<span class="normal">492</span>
+<span class="normal">493</span>
+<span class="normal">494</span>
+<span class="normal">495</span>
+<span class="normal">496</span>
+<span class="normal">497</span>
+<span class="normal">498</span>
+<span class="normal">499</span>
+<span class="normal">500</span>
+<span class="normal">501</span>
+<span class="normal">502</span>
+<span class="normal">503</span>
+<span class="normal">504</span>
+<span class="normal">505</span>
+<span class="normal">506</span>
+<span class="normal">507</span>
+<span class="normal">508</span>
+<span class="normal">509</span>
+<span class="normal">510</span>
+<span class="normal">511</span>
+<span class="normal">512</span>
+<span class="normal">513</span>
+<span class="normal">514</span>
+<span class="normal">515</span>
+<span class="normal">516</span>
+<span class="normal">517</span>
+<span class="normal">518</span>
+<span class="normal">519</span>
+<span class="normal">520</span>
+<span class="normal">521</span>
+<span class="normal">522</span>
+<span class="normal">523</span>
+<span class="normal">524</span>
+<span class="normal">525</span>
+<span class="normal">526</span>
+<span class="normal">527</span>
+<span class="normal">528</span>
+<span class="normal">529</span>
+<span class="normal">530</span>
+<span class="normal">531</span>
+<span class="normal">532</span>
+<span class="normal">533</span>
+<span class="normal">534</span>
+<span class="normal">535</span>
+<span class="normal">536</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span>
+<a id="line-2" name="line-2"></a><span class="cm"> * Copyright 2007 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * Permission is hereby granted, free of charge, to any person obtaining a</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * copy of this software and associated documentation files (the &quot;Software&quot;),</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * to deal in the Software without restriction, including without limitation</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * on the rights to use, copy, modify, merge, publish, distribute, sub</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * license, and/or sell copies of the Software, and to permit persons to whom</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * the Software is furnished to do so, subject to the following conditions:</span>
+<a id="line-10" name="line-10"></a><span class="cm"> *</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * The above copyright notice and this permission notice (including the next</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * paragraph) shall be included in all copies or substantial portions of the</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Software.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER</span>
+<a id="line-19" name="line-19"></a><span class="cm"> * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cm">/* Author: Soren Sandmann &lt;[email protected]&gt; */</span>
+<a id="line-24" name="line-24"></a>
+<a id="line-25" name="line-25"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;edid.h&quot;</span>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdlib.h&gt;</span><span class="error2">&lt;--- Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;math.h&gt;</span><span class="error2">&lt;--- Include file: <math.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib.h&gt;</span><span class="error2">&lt;--- Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a>
+<a id="line-31" name="line-31"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="nf">get_bit</span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">in</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">bit</span><span class="p">)</span>
+<a id="line-32" name="line-32"></a><span class="p">{</span>
+<a id="line-33" name="line-33"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">in</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="n">bit</span><span class="p">))</span><span class="w"> </span><span class="o">&gt;&gt;</span><span class="w"> </span><span class="n">bit</span><span class="p">;</span>
+<a id="line-34" name="line-34"></a><span class="p">}</span>
+<a id="line-35" name="line-35"></a>
+<a id="line-36" name="line-36"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="nf">get_bits</span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">in</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">begin</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">end</span><span class="p">)</span>
+<a id="line-37" name="line-37"></a><span class="p">{</span>
+<a id="line-38" name="line-38"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">mask</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="p">(</span><span class="n">end</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">begin</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">))</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">in</span><span class="w"> </span><span class="o">&gt;&gt;</span><span class="w"> </span><span class="n">begin</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">mask</span><span class="p">;</span>
+<a id="line-41" name="line-41"></a><span class="p">}</span>
+<a id="line-42" name="line-42"></a>
+<a id="line-43" name="line-43"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="nf">decode_header</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">uchar</span><span class="o">*</span><span class="w"> </span><span class="n">edid</span><span class="p">)</span>
+<a id="line-44" name="line-44"></a><span class="p">{</span>
+<a id="line-45" name="line-45"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">memcmp</span><span class="p">(</span><span class="n">edid</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;</span><span class="se">\x00\xff\xff\xff\xff\xff\xff\x00</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="mi">8</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-48" name="line-48"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-49" name="line-49"></a>
+<a id="line-50" name="line-50"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a><span class="p">}</span>
+<a id="line-52" name="line-52"></a>
+<a id="line-53" name="line-53"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="nf">decode_vendor_and_product_identification</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">uchar</span><span class="o">*</span><span class="w"> </span><span class="n">edid</span><span class="p">,</span><span class="w"> </span><span class="n">MonitorInfo</span><span class="o">*</span><span class="w"> </span><span class="n">info</span><span class="p">)</span>
+<a id="line-54" name="line-54"></a><span class="p">{</span>
+<a id="line-55" name="line-55"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">is_model_year</span><span class="p">;</span>
+<a id="line-56" name="line-56"></a>
+<a id="line-57" name="line-57"></a><span class="w"> </span><span class="cm">/* Manufacturer Code */</span>
+<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">manufacturer_code</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_bits</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x08</span><span class="p">],</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span>
+<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">manufacturer_code</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_bits</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x08</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">3</span><span class="p">;</span>
+<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">manufacturer_code</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">get_bits</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x09</span><span class="p">],</span><span class="w"> </span><span class="mi">5</span><span class="p">,</span><span class="w"> </span><span class="mi">7</span><span class="p">);</span>
+<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">manufacturer_code</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_bits</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x09</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">4</span><span class="p">);</span>
+<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">manufacturer_code</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">;</span>
+<a id="line-63" name="line-63"></a>
+<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">manufacturer_code</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="sc">&#39;A&#39;</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">manufacturer_code</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="sc">&#39;A&#39;</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">manufacturer_code</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="sc">&#39;A&#39;</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-67" name="line-67"></a>
+<a id="line-68" name="line-68"></a><span class="w"> </span><span class="cm">/* Product Code */</span>
+<a id="line-69" name="line-69"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">product_code</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">edid</span><span class="p">[</span><span class="mh">0x0b</span><span class="p">]</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">8</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">edid</span><span class="p">[</span><span class="mh">0x0a</span><span class="p">];</span>
+<a id="line-70" name="line-70"></a>
+<a id="line-71" name="line-71"></a><span class="w"> </span><span class="cm">/* Serial Number */</span>
+<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">serial_number</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">edid</span><span class="p">[</span><span class="mh">0x0c</span><span class="p">]</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">edid</span><span class="p">[</span><span class="mh">0x0d</span><span class="p">]</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">8</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">edid</span><span class="p">[</span><span class="mh">0x0e</span><span class="p">]</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">16</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">edid</span><span class="p">[</span><span class="mh">0x0f</span><span class="p">]</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">24</span><span class="p">;</span>
+<a id="line-73" name="line-73"></a>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="cm">/* Week and Year */</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">is_model_year</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-76" name="line-76"></a>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x10</span><span class="p">])</span>
+<a id="line-78" name="line-78"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mh">0x00</span><span class="p">:</span>
+<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">production_week</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-82" name="line-82"></a>
+<a id="line-83" name="line-83"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mh">0xff</span><span class="p">:</span>
+<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">production_week</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">is_model_year</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-87" name="line-87"></a>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">production_week</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">edid</span><span class="p">[</span><span class="mh">0x10</span><span class="p">];</span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-92" name="line-92"></a>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">is_model_year</span><span class="p">)</span>
+<a id="line-94" name="line-94"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">production_year</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-96" name="line-96"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">model_year</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1990</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">edid</span><span class="p">[</span><span class="mh">0x11</span><span class="p">];</span>
+<a id="line-97" name="line-97"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-98" name="line-98"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">production_year</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1990</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">edid</span><span class="p">[</span><span class="mh">0x11</span><span class="p">];</span>
+<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">model_year</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-102" name="line-102"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-103" name="line-103"></a>
+<a id="line-104" name="line-104"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-105" name="line-105"></a><span class="p">}</span>
+<a id="line-106" name="line-106"></a>
+<a id="line-107" name="line-107"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="nf">decode_edid_version</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">uchar</span><span class="o">*</span><span class="w"> </span><span class="n">edid</span><span class="p">,</span><span class="w"> </span><span class="n">MonitorInfo</span><span class="o">*</span><span class="w"> </span><span class="n">info</span><span class="p">)</span>
+<a id="line-108" name="line-108"></a><span class="p">{</span>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">major_version</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">edid</span><span class="p">[</span><span class="mh">0x12</span><span class="p">];</span>
+<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">minor_version</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">edid</span><span class="p">[</span><span class="mh">0x13</span><span class="p">];</span>
+<a id="line-111" name="line-111"></a>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-113" name="line-113"></a><span class="p">}</span>
+<a id="line-114" name="line-114"></a>
+<a id="line-115" name="line-115"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="nf">decode_display_parameters</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">uchar</span><span class="o">*</span><span class="w"> </span><span class="n">edid</span><span class="p">,</span><span class="w"> </span><span class="n">MonitorInfo</span><span class="o">*</span><span class="w"> </span><span class="n">info</span><span class="p">)</span>
+<a id="line-116" name="line-116"></a><span class="p">{</span>
+<a id="line-117" name="line-117"></a><span class="w"> </span><span class="cm">/* Digital vs Analog */</span>
+<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">is_digital</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_bit</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x14</span><span class="p">],</span><span class="w"> </span><span class="mi">7</span><span class="p">);</span>
+<a id="line-119" name="line-119"></a>
+<a id="line-120" name="line-120"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">is_digital</span><span class="p">)</span>
+<a id="line-121" name="line-121"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-122" name="line-122"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">bits</span><span class="p">;</span>
+<a id="line-123" name="line-123"></a>
+<a id="line-124" name="line-124"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">bit_depth</span><span class="p">[</span><span class="mi">8</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span>
+<a id="line-125" name="line-125"></a><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">,</span><span class="w"> </span><span class="mi">8</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="mi">12</span><span class="p">,</span><span class="w"> </span><span class="mi">14</span><span class="p">,</span><span class="w"> </span><span class="mi">16</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span>
+<a id="line-126" name="line-126"></a><span class="w"> </span><span class="p">};</span>
+<a id="line-127" name="line-127"></a>
+<a id="line-128" name="line-128"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">Interface</span><span class="w"> </span><span class="n">interfaces</span><span class="p">[</span><span class="mi">6</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span>
+<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">UNDEFINED</span><span class="p">,</span><span class="w"> </span><span class="n">DVI</span><span class="p">,</span><span class="w"> </span><span class="n">HDMI_A</span><span class="p">,</span><span class="w"> </span><span class="n">HDMI_B</span><span class="p">,</span><span class="w"> </span><span class="n">MDDI</span><span class="p">,</span><span class="w"> </span><span class="n">DISPLAY_PORT</span>
+<a id="line-130" name="line-130"></a><span class="w"> </span><span class="p">};</span>
+<a id="line-131" name="line-131"></a>
+<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">bits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_bits</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x14</span><span class="p">],</span><span class="w"> </span><span class="mi">4</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span>
+<a id="line-133" name="line-133"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">connector</span><span class="p">.</span><span class="n">digital</span><span class="p">.</span><span class="n">bits_per_primary</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">bit_depth</span><span class="p">[</span><span class="n">bits</span><span class="p">];</span>
+<a id="line-134" name="line-134"></a>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">bits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_bits</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x14</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">);</span>
+<a id="line-136" name="line-136"></a>
+<a id="line-137" name="line-137"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bits</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="mi">5</span><span class="p">)</span>
+<a id="line-138" name="line-138"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">connector</span><span class="p">.</span><span class="n">digital</span><span class="p">.</span><span class="n">interface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">interfaces</span><span class="p">[</span><span class="n">bits</span><span class="p">];</span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-142" name="line-142"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">connector</span><span class="p">.</span><span class="n">digital</span><span class="p">.</span><span class="n">interface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">UNDEFINED</span><span class="p">;</span>
+<a id="line-144" name="line-144"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-145" name="line-145"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-146" name="line-146"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-148" name="line-148"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">bits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_bits</span><span class="w"> </span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x14</span><span class="p">],</span><span class="w"> </span><span class="mi">5</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span>
+<a id="line-149" name="line-149"></a>
+<a id="line-150" name="line-150"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">levels</span><span class="p">[][</span><span class="mi">3</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span>
+<a id="line-151" name="line-151"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mf">0.7</span><span class="p">,</span><span class="w"> </span><span class="mf">0.3</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="w"> </span><span class="p">},</span>
+<a id="line-152" name="line-152"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mf">0.714</span><span class="p">,</span><span class="w"> </span><span class="mf">0.286</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="w"> </span><span class="p">},</span>
+<a id="line-153" name="line-153"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mf">1.0</span><span class="p">,</span><span class="w"> </span><span class="mf">0.4</span><span class="p">,</span><span class="w"> </span><span class="mf">1.4</span><span class="w"> </span><span class="p">},</span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mf">0.7</span><span class="p">,</span><span class="w"> </span><span class="mf">0.0</span><span class="p">,</span><span class="w"> </span><span class="mf">0.7</span><span class="w"> </span><span class="p">},</span>
+<a id="line-155" name="line-155"></a><span class="w"> </span><span class="p">};</span>
+<a id="line-156" name="line-156"></a>
+<a id="line-157" name="line-157"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">connector</span><span class="p">.</span><span class="n">analog</span><span class="p">.</span><span class="n">video_signal_level</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">levels</span><span class="p">[</span><span class="n">bits</span><span class="p">][</span><span class="mi">0</span><span class="p">];</span>
+<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">connector</span><span class="p">.</span><span class="n">analog</span><span class="p">.</span><span class="n">sync_signal_level</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">levels</span><span class="p">[</span><span class="n">bits</span><span class="p">][</span><span class="mi">1</span><span class="p">];</span>
+<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">connector</span><span class="p">.</span><span class="n">analog</span><span class="p">.</span><span class="n">total_signal_level</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">levels</span><span class="p">[</span><span class="n">bits</span><span class="p">][</span><span class="mi">2</span><span class="p">];</span>
+<a id="line-160" name="line-160"></a>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">connector</span><span class="p">.</span><span class="n">analog</span><span class="p">.</span><span class="n">blank_to_black</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_bit</span><span class="w"> </span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x14</span><span class="p">],</span><span class="w"> </span><span class="mi">4</span><span class="p">);</span>
+<a id="line-162" name="line-162"></a>
+<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">connector</span><span class="p">.</span><span class="n">analog</span><span class="p">.</span><span class="n">separate_hv_sync</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_bit</span><span class="w"> </span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x14</span><span class="p">],</span><span class="w"> </span><span class="mi">3</span><span class="p">);</span>
+<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">connector</span><span class="p">.</span><span class="n">analog</span><span class="p">.</span><span class="n">composite_sync_on_h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_bit</span><span class="w"> </span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x14</span><span class="p">],</span><span class="w"> </span><span class="mi">2</span><span class="p">);</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">connector</span><span class="p">.</span><span class="n">analog</span><span class="p">.</span><span class="n">composite_sync_on_green</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_bit</span><span class="w"> </span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x14</span><span class="p">],</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-166" name="line-166"></a>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">connector</span><span class="p">.</span><span class="n">analog</span><span class="p">.</span><span class="n">serration_on_vsync</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_bit</span><span class="w"> </span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x14</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-169" name="line-169"></a>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="cm">/* Screen Size / Aspect Ratio */</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x15</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">edid</span><span class="p">[</span><span class="mh">0x16</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-172" name="line-172"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-173" name="line-173"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">width_mm</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">height_mm</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">aspect_ratio</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">-1.0</span><span class="p">;</span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x16</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">width_mm</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">height_mm</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">aspect_ratio</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">100.0</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x15</span><span class="p">]</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">99</span><span class="p">);</span>
+<a id="line-182" name="line-182"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-183" name="line-183"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x15</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">width_mm</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">height_mm</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">aspect_ratio</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">100.0</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x16</span><span class="p">]</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">99</span><span class="p">);</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">aspect_ratio</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="o">/</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">aspect_ratio</span><span class="p">;</span><span class="w"> </span><span class="cm">/* portrait */</span>
+<a id="line-189" name="line-189"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">width_mm</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">10</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">edid</span><span class="p">[</span><span class="mh">0x15</span><span class="p">];</span>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">height_mm</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">10</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">edid</span><span class="p">[</span><span class="mh">0x16</span><span class="p">];</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-195" name="line-195"></a>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="cm">/* Gamma */</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x17</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0xFF</span><span class="p">)</span>
+<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">gamma</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">-1.0</span><span class="p">;</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">gamma</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x17</span><span class="p">]</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">100.0</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">100.0</span><span class="p">;</span>
+<a id="line-201" name="line-201"></a>
+<a id="line-202" name="line-202"></a><span class="w"> </span><span class="cm">/* Features */</span>
+<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">standby</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_bit</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x18</span><span class="p">],</span><span class="w"> </span><span class="mi">7</span><span class="p">);</span>
+<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">suspend</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_bit</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x18</span><span class="p">],</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">active_off</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_bit</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x18</span><span class="p">],</span><span class="w"> </span><span class="mi">5</span><span class="p">);</span>
+<a id="line-206" name="line-206"></a>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">is_digital</span><span class="p">)</span>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">connector</span><span class="p">.</span><span class="n">digital</span><span class="p">.</span><span class="n">rgb444</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-210" name="line-210"></a>
+<a id="line-211" name="line-211"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">get_bit</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x18</span><span class="p">],</span><span class="w"> </span><span class="mi">3</span><span class="p">))</span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">connector</span><span class="p">.</span><span class="n">digital</span><span class="p">.</span><span class="n">ycrcb444</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">get_bit</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x18</span><span class="p">],</span><span class="w"> </span><span class="mi">4</span><span class="p">))</span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">connector</span><span class="p">.</span><span class="n">digital</span><span class="p">.</span><span class="n">ycrcb422</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-216" name="line-216"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-218" name="line-218"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">bits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_bits</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x18</span><span class="p">],</span><span class="w"> </span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="mi">4</span><span class="p">);</span>
+<a id="line-219" name="line-219"></a>
+<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">ColorType</span><span class="w"> </span><span class="n">color_type</span><span class="p">[</span><span class="mi">4</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span>
+<a id="line-221" name="line-221"></a><span class="w"> </span><span class="n">MONOCHROME</span><span class="p">,</span><span class="w"> </span><span class="n">RGB</span><span class="p">,</span><span class="w"> </span><span class="n">OTHER_COLOR</span><span class="p">,</span><span class="w"> </span><span class="n">UNDEFINED_COLOR</span>
+<a id="line-222" name="line-222"></a><span class="w"> </span><span class="p">};</span>
+<a id="line-223" name="line-223"></a>
+<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">connector</span><span class="p">.</span><span class="n">analog</span><span class="p">.</span><span class="n">color_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color_type</span><span class="p">[</span><span class="n">bits</span><span class="p">];</span>
+<a id="line-225" name="line-225"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-226" name="line-226"></a>
+<a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">srgb_is_standard</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_bit</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x18</span><span class="p">],</span><span class="w"> </span><span class="mi">2</span><span class="p">);</span>
+<a id="line-228" name="line-228"></a>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="cm">/* In 1.3 this is called &quot;has preferred timing&quot; */</span>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">preferred_timing_includes_native</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_bit</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x18</span><span class="p">],</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-231" name="line-231"></a>
+<a id="line-232" name="line-232"></a><span class="w"> </span><span class="cm">/* FIXME: In 1.3 this indicates whether the monitor accepts GTF */</span>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">continuous_frequency</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_bit</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x18</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-234" name="line-234"></a>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-236" name="line-236"></a><span class="p">}</span>
+<a id="line-237" name="line-237"></a>
+<a id="line-238" name="line-238"></a><span class="k">static</span><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="nf">decode_fraction</span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">high</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">low</span><span class="p">)</span>
+<a id="line-239" name="line-239"></a><span class="p">{</span>
+<a id="line-240" name="line-240"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.0</span><span class="p">;</span>
+<a id="line-241" name="line-241"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-242" name="line-242"></a>
+<a id="line-243" name="line-243"></a><span class="w"> </span><span class="n">high</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">high</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">2</span><span class="p">)</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">low</span><span class="p">;</span>
+<a id="line-244" name="line-244"></a>
+<a id="line-245" name="line-245"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">10</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-246" name="line-246"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">get_bit</span><span class="w"> </span><span class="p">(</span><span class="n">high</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">pow</span><span class="w"> </span><span class="p">(</span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">10</span><span class="p">);</span>
+<a id="line-248" name="line-248"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-249" name="line-249"></a>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-251" name="line-251"></a><span class="p">}</span>
+<a id="line-252" name="line-252"></a>
+<a id="line-253" name="line-253"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="nf">decode_color_characteristics</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">uchar</span><span class="o">*</span><span class="w"> </span><span class="n">edid</span><span class="p">,</span><span class="w"> </span><span class="n">MonitorInfo</span><span class="o">*</span><span class="w"> </span><span class="n">info</span><span class="p">)</span>
+<a id="line-254" name="line-254"></a><span class="p">{</span>
+<a id="line-255" name="line-255"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">red_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">decode_fraction</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x1b</span><span class="p">],</span><span class="w"> </span><span class="n">get_bits</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x19</span><span class="p">],</span><span class="w"> </span><span class="mi">6</span><span class="p">,</span><span class="w"> </span><span class="mi">7</span><span class="p">));</span>
+<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">red_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">decode_fraction</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x1c</span><span class="p">],</span><span class="w"> </span><span class="n">get_bits</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x19</span><span class="p">],</span><span class="w"> </span><span class="mi">5</span><span class="p">,</span><span class="w"> </span><span class="mi">4</span><span class="p">));</span>
+<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">green_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">decode_fraction</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x1d</span><span class="p">],</span><span class="w"> </span><span class="n">get_bits</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x19</span><span class="p">],</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">));</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">green_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">decode_fraction</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x1e</span><span class="p">],</span><span class="w"> </span><span class="n">get_bits</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x19</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">));</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">blue_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">decode_fraction</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x1f</span><span class="p">],</span><span class="w"> </span><span class="n">get_bits</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x1a</span><span class="p">],</span><span class="w"> </span><span class="mi">6</span><span class="p">,</span><span class="w"> </span><span class="mi">7</span><span class="p">));</span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">blue_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">decode_fraction</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x20</span><span class="p">],</span><span class="w"> </span><span class="n">get_bits</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x1a</span><span class="p">],</span><span class="w"> </span><span class="mi">4</span><span class="p">,</span><span class="w"> </span><span class="mi">5</span><span class="p">));</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">white_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">decode_fraction</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x21</span><span class="p">],</span><span class="w"> </span><span class="n">get_bits</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x1a</span><span class="p">],</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">));</span>
+<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">white_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">decode_fraction</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x22</span><span class="p">],</span><span class="w"> </span><span class="n">get_bits</span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="mh">0x1a</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">));</span>
+<a id="line-263" name="line-263"></a>
+<a id="line-264" name="line-264"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-265" name="line-265"></a><span class="p">}</span>
+<a id="line-266" name="line-266"></a>
+<a id="line-267" name="line-267"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="nf">decode_established_timings</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">uchar</span><span class="o">*</span><span class="w"> </span><span class="n">edid</span><span class="p">,</span><span class="w"> </span><span class="n">MonitorInfo</span><span class="o">*</span><span class="w"> </span><span class="n">info</span><span class="p">)</span>
+<a id="line-268" name="line-268"></a><span class="p">{</span>
+<a id="line-269" name="line-269"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">Timing</span><span class="w"> </span><span class="n">established</span><span class="p">[][</span><span class="mi">8</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span>
+<a id="line-270" name="line-270"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-271" name="line-271"></a><span class="w"> </span><span class="p">{</span><span class="mi">800</span><span class="p">,</span><span class="w"> </span><span class="mi">600</span><span class="p">,</span><span class="w"> </span><span class="mi">60</span><span class="p">},</span>
+<a id="line-272" name="line-272"></a><span class="w"> </span><span class="p">{</span><span class="mi">800</span><span class="p">,</span><span class="w"> </span><span class="mi">600</span><span class="p">,</span><span class="w"> </span><span class="mi">56</span><span class="p">},</span>
+<a id="line-273" name="line-273"></a><span class="w"> </span><span class="p">{</span><span class="mi">640</span><span class="p">,</span><span class="w"> </span><span class="mi">480</span><span class="p">,</span><span class="w"> </span><span class="mi">75</span><span class="p">},</span>
+<a id="line-274" name="line-274"></a><span class="w"> </span><span class="p">{</span><span class="mi">640</span><span class="p">,</span><span class="w"> </span><span class="mi">480</span><span class="p">,</span><span class="w"> </span><span class="mi">72</span><span class="p">},</span>
+<a id="line-275" name="line-275"></a><span class="w"> </span><span class="p">{</span><span class="mi">640</span><span class="p">,</span><span class="w"> </span><span class="mi">480</span><span class="p">,</span><span class="w"> </span><span class="mi">67</span><span class="p">},</span>
+<a id="line-276" name="line-276"></a><span class="w"> </span><span class="p">{</span><span class="mi">640</span><span class="p">,</span><span class="w"> </span><span class="mi">480</span><span class="p">,</span><span class="w"> </span><span class="mi">60</span><span class="p">},</span>
+<a id="line-277" name="line-277"></a><span class="w"> </span><span class="p">{</span><span class="mi">720</span><span class="p">,</span><span class="w"> </span><span class="mi">400</span><span class="p">,</span><span class="w"> </span><span class="mi">88</span><span class="p">},</span>
+<a id="line-278" name="line-278"></a><span class="w"> </span><span class="p">{</span><span class="mi">720</span><span class="p">,</span><span class="w"> </span><span class="mi">400</span><span class="p">,</span><span class="w"> </span><span class="mi">70</span><span class="p">}</span>
+<a id="line-279" name="line-279"></a><span class="w"> </span><span class="p">},</span>
+<a id="line-280" name="line-280"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-281" name="line-281"></a><span class="w"> </span><span class="p">{</span><span class="mi">1280</span><span class="p">,</span><span class="w"> </span><span class="mi">1024</span><span class="p">,</span><span class="w"> </span><span class="mi">75</span><span class="p">},</span>
+<a id="line-282" name="line-282"></a><span class="w"> </span><span class="p">{</span><span class="mi">1024</span><span class="p">,</span><span class="w"> </span><span class="mi">768</span><span class="p">,</span><span class="w"> </span><span class="mi">75</span><span class="p">},</span>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="p">{</span><span class="mi">1024</span><span class="p">,</span><span class="w"> </span><span class="mi">768</span><span class="p">,</span><span class="w"> </span><span class="mi">70</span><span class="p">},</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="p">{</span><span class="mi">1024</span><span class="p">,</span><span class="w"> </span><span class="mi">768</span><span class="p">,</span><span class="w"> </span><span class="mi">60</span><span class="p">},</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="p">{</span><span class="mi">1024</span><span class="p">,</span><span class="w"> </span><span class="mi">768</span><span class="p">,</span><span class="w"> </span><span class="mi">87</span><span class="p">},</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="p">{</span><span class="mi">832</span><span class="p">,</span><span class="w"> </span><span class="mi">624</span><span class="p">,</span><span class="w"> </span><span class="mi">75</span><span class="p">},</span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="p">{</span><span class="mi">800</span><span class="p">,</span><span class="w"> </span><span class="mi">600</span><span class="p">,</span><span class="w"> </span><span class="mi">75</span><span class="p">},</span>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="p">{</span><span class="mi">800</span><span class="p">,</span><span class="w"> </span><span class="mi">600</span><span class="p">,</span><span class="w"> </span><span class="mi">72</span><span class="p">}</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="p">},</span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="p">{</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">},</span>
+<a id="line-292" name="line-292"></a><span class="w"> </span><span class="p">{</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">},</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="p">{</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">},</span>
+<a id="line-294" name="line-294"></a><span class="w"> </span><span class="p">{</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">},</span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="p">{</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">},</span>
+<a id="line-296" name="line-296"></a><span class="w"> </span><span class="p">{</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">},</span>
+<a id="line-297" name="line-297"></a><span class="w"> </span><span class="p">{</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">},</span>
+<a id="line-298" name="line-298"></a><span class="w"> </span><span class="p">{</span><span class="mi">1152</span><span class="p">,</span><span class="w"> </span><span class="mi">870</span><span class="p">,</span><span class="w"> </span><span class="mi">75</span><span class="p">}</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="p">},</span>
+<a id="line-300" name="line-300"></a><span class="w"> </span><span class="p">};</span>
+<a id="line-301" name="line-301"></a>
+<a id="line-302" name="line-302"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">j</span><span class="p">,</span><span class="w"> </span><span class="n">idx</span><span class="p">;</span>
+<a id="line-303" name="line-303"></a>
+<a id="line-304" name="line-304"></a><span class="w"> </span><span class="n">idx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-305" name="line-305"></a>
+<a id="line-306" name="line-306"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">3</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-307" name="line-307"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-308" name="line-308"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">8</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">j</span><span class="p">)</span>
+<a id="line-309" name="line-309"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-310" name="line-310"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">byte</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">edid</span><span class="p">[</span><span class="mh">0x23</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">i</span><span class="p">];</span>
+<a id="line-311" name="line-311"></a>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">get_bit</span><span class="w"> </span><span class="p">(</span><span class="n">byte</span><span class="p">,</span><span class="w"> </span><span class="n">j</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">established</span><span class="p">[</span><span class="n">i</span><span class="p">][</span><span class="n">j</span><span class="p">].</span><span class="n">frequency</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-313" name="line-313"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">established</span><span class="p">[</span><span class="n">idx</span><span class="o">++</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">established</span><span class="p">[</span><span class="n">i</span><span class="p">][</span><span class="n">j</span><span class="p">];</span>
+<a id="line-315" name="line-315"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-316" name="line-316"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-318" name="line-318"></a>
+<a id="line-319" name="line-319"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-320" name="line-320"></a><span class="p">}</span>
+<a id="line-321" name="line-321"></a>
+<a id="line-322" name="line-322"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="nf">decode_standard_timings</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">uchar</span><span class="o">*</span><span class="w"> </span><span class="n">edid</span><span class="p">,</span><span class="w"> </span><span class="n">MonitorInfo</span><span class="o">*</span><span class="w"> </span><span class="n">info</span><span class="p">)</span>
+<a id="line-323" name="line-323"></a><span class="p">{</span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-325" name="line-325"></a>
+<a id="line-326" name="line-326"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">8</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span>
+<a id="line-327" name="line-327"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-328" name="line-328"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">first</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">edid</span><span class="p">[</span><span class="mh">0x26</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">i</span><span class="p">];</span>
+<a id="line-329" name="line-329"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">second</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">edid</span><span class="p">[</span><span class="mh">0x27</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">i</span><span class="p">];</span>
+<a id="line-330" name="line-330"></a>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">first</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mh">0x01</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">second</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mh">0x01</span><span class="p">)</span>
+<a id="line-332" name="line-332"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-333" name="line-333"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">w</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">8</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">first</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">31</span><span class="p">);</span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-335" name="line-335"></a>
+<a id="line-336" name="line-336"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">get_bits</span><span class="p">(</span><span class="n">second</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">,</span><span class="w"> </span><span class="mi">7</span><span class="p">))</span>
+<a id="line-337" name="line-337"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mh">0x00</span><span class="p">:</span>
+<a id="line-339" name="line-339"></a><span class="w"> </span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">w</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">16</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">10</span><span class="p">;</span>
+<a id="line-340" name="line-340"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-341" name="line-341"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mh">0x01</span><span class="p">:</span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">w</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">4</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">3</span><span class="p">;</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mh">0x02</span><span class="p">:</span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">w</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">5</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">4</span><span class="p">;</span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mh">0x03</span><span class="p">:</span>
+<a id="line-348" name="line-348"></a><span class="w"> </span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">w</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">16</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">9</span><span class="p">;</span>
+<a id="line-349" name="line-349"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-350" name="line-350"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-351" name="line-351"></a>
+<a id="line-352" name="line-352"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">standard</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">w</span><span class="p">;</span>
+<a id="line-353" name="line-353"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">standard</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">h</span><span class="p">;</span>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">standard</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">frequency</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_bits</span><span class="p">(</span><span class="n">second</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">5</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">60</span><span class="p">;</span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-357" name="line-357"></a>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-359" name="line-359"></a><span class="p">}</span>
+<a id="line-360" name="line-360"></a>
+<a id="line-361" name="line-361"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">decode_lf_string</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">uchar</span><span class="o">*</span><span class="w"> </span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n_chars</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="n">result</span><span class="p">)</span>
+<a id="line-362" name="line-362"></a><span class="p">{</span>
+<a id="line-363" name="line-363"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-364" name="line-364"></a>
+<a id="line-365" name="line-365"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">n_chars</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-366" name="line-366"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-367" name="line-367"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0x0a</span><span class="p">)</span>
+<a id="line-368" name="line-368"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-369" name="line-369"></a><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">;</span>
+<a id="line-370" name="line-370"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-372" name="line-372"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0x00</span><span class="p">)</span>
+<a id="line-373" name="line-373"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-374" name="line-374"></a><span class="w"> </span><span class="cm">/* Convert embedded 0&#39;s to spaces */</span>
+<a id="line-375" name="line-375"></a><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39; &#39;</span><span class="p">;</span>
+<a id="line-376" name="line-376"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-377" name="line-377"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-378" name="line-378"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">s</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-382" name="line-382"></a><span class="p">}</span>
+<a id="line-383" name="line-383"></a>
+<a id="line-384" name="line-384"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">decode_display_descriptor</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">uchar</span><span class="o">*</span><span class="w"> </span><span class="n">desc</span><span class="p">,</span><span class="w"> </span><span class="n">MonitorInfo</span><span class="o">*</span><span class="w"> </span><span class="n">info</span><span class="p">)</span>
+<a id="line-385" name="line-385"></a><span class="p">{</span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">desc</span><span class="p">[</span><span class="mh">0x03</span><span class="p">])</span>
+<a id="line-387" name="line-387"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-388" name="line-388"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mh">0xFC</span><span class="p">:</span>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">decode_lf_string</span><span class="w"> </span><span class="p">(</span><span class="n">desc</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">5</span><span class="p">,</span><span class="w"> </span><span class="mi">13</span><span class="p">,</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">dsc_product_name</span><span class="p">);</span>
+<a id="line-390" name="line-390"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-391" name="line-391"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mh">0xFF</span><span class="p">:</span>
+<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">decode_lf_string</span><span class="w"> </span><span class="p">(</span><span class="n">desc</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">5</span><span class="p">,</span><span class="w"> </span><span class="mi">13</span><span class="p">,</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">dsc_serial_number</span><span class="p">);</span>
+<a id="line-393" name="line-393"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mh">0xFE</span><span class="p">:</span>
+<a id="line-395" name="line-395"></a><span class="w"> </span><span class="n">decode_lf_string</span><span class="w"> </span><span class="p">(</span><span class="n">desc</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">5</span><span class="p">,</span><span class="w"> </span><span class="mi">13</span><span class="p">,</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">dsc_string</span><span class="p">);</span>
+<a id="line-396" name="line-396"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-397" name="line-397"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mh">0xFD</span><span class="p">:</span>
+<a id="line-398" name="line-398"></a><span class="w"> </span><span class="cm">/* Range Limits */</span>
+<a id="line-399" name="line-399"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mh">0xFB</span><span class="p">:</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="cm">/* Color Point */</span>
+<a id="line-402" name="line-402"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-403" name="line-403"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mh">0xFA</span><span class="p">:</span>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="cm">/* Timing Identifications */</span>
+<a id="line-405" name="line-405"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-406" name="line-406"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mh">0xF9</span><span class="p">:</span>
+<a id="line-407" name="line-407"></a><span class="w"> </span><span class="cm">/* Color Management */</span>
+<a id="line-408" name="line-408"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mh">0xF8</span><span class="p">:</span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="cm">/* Timing Codes */</span>
+<a id="line-411" name="line-411"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mh">0xF7</span><span class="p">:</span>
+<a id="line-413" name="line-413"></a><span class="w"> </span><span class="cm">/* Established Timings */</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-415" name="line-415"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mh">0x10</span><span class="p">:</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-417" name="line-417"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-418" name="line-418"></a><span class="p">}</span>
+<a id="line-419" name="line-419"></a>
+<a id="line-420" name="line-420"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">decode_detailed_timing</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">uchar</span><span class="o">*</span><span class="w"> </span><span class="n">timing</span><span class="p">,</span><span class="w"> </span><span class="n">DetailedTiming</span><span class="o">*</span><span class="w"> </span><span class="n">detailed</span><span class="p">)</span>
+<a id="line-421" name="line-421"></a><span class="p">{</span>
+<a id="line-422" name="line-422"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">bits</span><span class="p">;</span>
+<a id="line-423" name="line-423"></a>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">StereoType</span><span class="w"> </span><span class="n">stereo</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span>
+<a id="line-425" name="line-425"></a><span class="w"> </span><span class="n">NO_STEREO</span><span class="p">,</span><span class="w"> </span><span class="n">NO_STEREO</span><span class="p">,</span><span class="w"> </span><span class="n">FIELD_RIGHT</span><span class="p">,</span><span class="w"> </span><span class="n">FIELD_LEFT</span><span class="p">,</span>
+<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">TWO_WAY_RIGHT_ON_EVEN</span><span class="p">,</span><span class="w"> </span><span class="n">TWO_WAY_LEFT_ON_EVEN</span><span class="p">,</span>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">FOUR_WAY_INTERLEAVED</span><span class="p">,</span><span class="w"> </span><span class="n">SIDE_BY_SIDE</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="p">};</span>
+<a id="line-429" name="line-429"></a>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">detailed</span><span class="o">-&gt;</span><span class="n">pixel_clock</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">timing</span><span class="p">[</span><span class="mh">0x00</span><span class="p">]</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">timing</span><span class="p">[</span><span class="mh">0x01</span><span class="p">]</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">8</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">10000</span><span class="p">;</span>
+<a id="line-431" name="line-431"></a><span class="w"> </span><span class="n">detailed</span><span class="o">-&gt;</span><span class="n">h_addr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">timing</span><span class="p">[</span><span class="mh">0x02</span><span class="p">]</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="p">((</span><span class="n">timing</span><span class="p">[</span><span class="mh">0x04</span><span class="p">]</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="mh">0xf0</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">4</span><span class="p">);</span>
+<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">detailed</span><span class="o">-&gt;</span><span class="n">h_blank</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">timing</span><span class="p">[</span><span class="mh">0x03</span><span class="p">]</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="p">((</span><span class="n">timing</span><span class="p">[</span><span class="mh">0x04</span><span class="p">]</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="mh">0x0f</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">8</span><span class="p">);</span>
+<a id="line-433" name="line-433"></a><span class="w"> </span><span class="n">detailed</span><span class="o">-&gt;</span><span class="n">v_addr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">timing</span><span class="p">[</span><span class="mh">0x05</span><span class="p">]</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="p">((</span><span class="n">timing</span><span class="p">[</span><span class="mh">0x07</span><span class="p">]</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="mh">0xf0</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">4</span><span class="p">);</span>
+<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">detailed</span><span class="o">-&gt;</span><span class="n">v_blank</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">timing</span><span class="p">[</span><span class="mh">0x06</span><span class="p">]</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="p">((</span><span class="n">timing</span><span class="p">[</span><span class="mh">0x07</span><span class="p">]</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="mh">0x0f</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">8</span><span class="p">);</span>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">detailed</span><span class="o">-&gt;</span><span class="n">h_front_porch</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">timing</span><span class="p">[</span><span class="mh">0x08</span><span class="p">]</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">get_bits</span><span class="p">(</span><span class="n">timing</span><span class="p">[</span><span class="mh">0x0b</span><span class="p">],</span><span class="w"> </span><span class="mi">6</span><span class="p">,</span><span class="w"> </span><span class="mi">7</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">8</span><span class="p">;</span>
+<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">detailed</span><span class="o">-&gt;</span><span class="n">h_sync</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">timing</span><span class="p">[</span><span class="mh">0x09</span><span class="p">]</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">get_bits</span><span class="p">(</span><span class="n">timing</span><span class="p">[</span><span class="mh">0x0b</span><span class="p">],</span><span class="w"> </span><span class="mi">4</span><span class="p">,</span><span class="w"> </span><span class="mi">5</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">8</span><span class="p">;</span>
+<a id="line-437" name="line-437"></a><span class="w"> </span><span class="n">detailed</span><span class="o">-&gt;</span><span class="n">v_front_porch</span><span class="w"> </span><span class="o">=</span>
+<a id="line-438" name="line-438"></a><span class="w"> </span><span class="n">get_bits</span><span class="w"> </span><span class="p">(</span><span class="n">timing</span><span class="p">[</span><span class="mh">0x0a</span><span class="p">],</span><span class="w"> </span><span class="mi">4</span><span class="p">,</span><span class="w"> </span><span class="mi">7</span><span class="p">)</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">get_bits</span><span class="p">(</span><span class="n">timing</span><span class="p">[</span><span class="mh">0x0b</span><span class="p">],</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">4</span><span class="p">;</span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">detailed</span><span class="o">-&gt;</span><span class="n">v_sync</span><span class="w"> </span><span class="o">=</span>
+<a id="line-440" name="line-440"></a><span class="w"> </span><span class="n">get_bits</span><span class="w"> </span><span class="p">(</span><span class="n">timing</span><span class="p">[</span><span class="mh">0x0a</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">)</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">get_bits</span><span class="p">(</span><span class="n">timing</span><span class="p">[</span><span class="mh">0x0b</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">4</span><span class="p">;</span>
+<a id="line-441" name="line-441"></a><span class="w"> </span><span class="n">detailed</span><span class="o">-&gt;</span><span class="n">width_mm</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">timing</span><span class="p">[</span><span class="mh">0x0c</span><span class="p">]</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">get_bits</span><span class="p">(</span><span class="n">timing</span><span class="p">[</span><span class="mh">0x0e</span><span class="p">],</span><span class="w"> </span><span class="mi">4</span><span class="p">,</span><span class="w"> </span><span class="mi">7</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">8</span><span class="p">;</span>
+<a id="line-442" name="line-442"></a><span class="w"> </span><span class="n">detailed</span><span class="o">-&gt;</span><span class="n">height_mm</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">timing</span><span class="p">[</span><span class="mh">0x0d</span><span class="p">]</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">get_bits</span><span class="p">(</span><span class="n">timing</span><span class="p">[</span><span class="mh">0x0e</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">8</span><span class="p">;</span>
+<a id="line-443" name="line-443"></a><span class="w"> </span><span class="n">detailed</span><span class="o">-&gt;</span><span class="n">right_border</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">timing</span><span class="p">[</span><span class="mh">0x0f</span><span class="p">];</span>
+<a id="line-444" name="line-444"></a><span class="w"> </span><span class="n">detailed</span><span class="o">-&gt;</span><span class="n">top_border</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">timing</span><span class="p">[</span><span class="mh">0x10</span><span class="p">];</span>
+<a id="line-445" name="line-445"></a>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">detailed</span><span class="o">-&gt;</span><span class="n">interlaced</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_bit</span><span class="p">(</span><span class="n">timing</span><span class="p">[</span><span class="mh">0x11</span><span class="p">],</span><span class="w"> </span><span class="mi">7</span><span class="p">);</span>
+<a id="line-447" name="line-447"></a>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="cm">/* Stereo */</span>
+<a id="line-449" name="line-449"></a><span class="w"> </span><span class="n">bits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_bits</span><span class="w"> </span><span class="p">(</span><span class="n">timing</span><span class="p">[</span><span class="mh">0x11</span><span class="p">],</span><span class="w"> </span><span class="mi">5</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">get_bit</span><span class="p">(</span><span class="n">timing</span><span class="p">[</span><span class="mh">0x11</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-450" name="line-450"></a><span class="w"> </span><span class="n">detailed</span><span class="o">-&gt;</span><span class="n">stereo</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">stereo</span><span class="p">[</span><span class="n">bits</span><span class="p">];</span>
+<a id="line-451" name="line-451"></a>
+<a id="line-452" name="line-452"></a><span class="w"> </span><span class="cm">/* Sync */</span>
+<a id="line-453" name="line-453"></a><span class="w"> </span><span class="n">bits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">timing</span><span class="p">[</span><span class="mh">0x11</span><span class="p">];</span>
+<a id="line-454" name="line-454"></a>
+<a id="line-455" name="line-455"></a><span class="w"> </span><span class="n">detailed</span><span class="o">-&gt;</span><span class="n">digital_sync</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_bit</span><span class="p">(</span><span class="n">bits</span><span class="p">,</span><span class="w"> </span><span class="mi">4</span><span class="p">);</span>
+<a id="line-456" name="line-456"></a>
+<a id="line-457" name="line-457"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">detailed</span><span class="o">-&gt;</span><span class="n">digital_sync</span><span class="p">)</span>
+<a id="line-458" name="line-458"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">detailed</span><span class="o">-&gt;</span><span class="n">connector</span><span class="p">.</span><span class="n">digital</span><span class="p">.</span><span class="n">composite</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">!</span><span class="n">get_bit</span><span class="p">(</span><span class="n">bits</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">);</span>
+<a id="line-460" name="line-460"></a>
+<a id="line-461" name="line-461"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">detailed</span><span class="o">-&gt;</span><span class="n">connector</span><span class="p">.</span><span class="n">digital</span><span class="p">.</span><span class="n">composite</span><span class="p">)</span>
+<a id="line-462" name="line-462"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">detailed</span><span class="o">-&gt;</span><span class="n">connector</span><span class="p">.</span><span class="n">digital</span><span class="p">.</span><span class="n">serrations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_bit</span><span class="p">(</span><span class="n">bits</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">);</span>
+<a id="line-464" name="line-464"></a><span class="w"> </span><span class="n">detailed</span><span class="o">-&gt;</span><span class="n">connector</span><span class="p">.</span><span class="n">digital</span><span class="p">.</span><span class="n">negative_vsync</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-466" name="line-466"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-467" name="line-467"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="n">detailed</span><span class="o">-&gt;</span><span class="n">connector</span><span class="p">.</span><span class="n">digital</span><span class="p">.</span><span class="n">serrations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">detailed</span><span class="o">-&gt;</span><span class="n">connector</span><span class="p">.</span><span class="n">digital</span><span class="p">.</span><span class="n">negative_vsync</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">!</span><span class="n">get_bit</span><span class="p">(</span><span class="n">bits</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">);</span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-471" name="line-471"></a>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="n">detailed</span><span class="o">-&gt;</span><span class="n">connector</span><span class="p">.</span><span class="n">digital</span><span class="p">.</span><span class="n">negative_hsync</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">!</span><span class="n">get_bit</span><span class="p">(</span><span class="n">bits</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-474" name="line-474"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-475" name="line-475"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-476" name="line-476"></a><span class="w"> </span><span class="n">detailed</span><span class="o">-&gt;</span><span class="n">connector</span><span class="p">.</span><span class="n">analog</span><span class="p">.</span><span class="n">bipolar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_bit</span><span class="p">(</span><span class="n">bits</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">);</span>
+<a id="line-477" name="line-477"></a><span class="w"> </span><span class="n">detailed</span><span class="o">-&gt;</span><span class="n">connector</span><span class="p">.</span><span class="n">analog</span><span class="p">.</span><span class="n">serrations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_bit</span><span class="p">(</span><span class="n">bits</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">);</span>
+<a id="line-478" name="line-478"></a><span class="w"> </span><span class="n">detailed</span><span class="o">-&gt;</span><span class="n">connector</span><span class="p">.</span><span class="n">analog</span><span class="p">.</span><span class="n">sync_on_green</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">!</span><span class="n">get_bit</span><span class="p">(</span><span class="n">bits</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-479" name="line-479"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-480" name="line-480"></a><span class="p">}</span>
+<a id="line-481" name="line-481"></a>
+<a id="line-482" name="line-482"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="nf">decode_descriptors</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">uchar</span><span class="o">*</span><span class="w"> </span><span class="n">edid</span><span class="p">,</span><span class="w"> </span><span class="n">MonitorInfo</span><span class="o">*</span><span class="w"> </span><span class="n">info</span><span class="p">)</span>
+<a id="line-483" name="line-483"></a><span class="p">{</span>
+<a id="line-484" name="line-484"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-485" name="line-485"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">timing_idx</span><span class="p">;</span>
+<a id="line-486" name="line-486"></a>
+<a id="line-487" name="line-487"></a><span class="w"> </span><span class="n">timing_idx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-488" name="line-488"></a>
+<a id="line-489" name="line-489"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">4</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-490" name="line-490"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-491" name="line-491"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">index</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mh">0x36</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">18</span><span class="p">;</span>
+<a id="line-492" name="line-492"></a>
+<a id="line-493" name="line-493"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">edid</span><span class="p">[</span><span class="n">index</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0x00</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">edid</span><span class="p">[</span><span class="n">index</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0x00</span><span class="p">)</span>
+<a id="line-494" name="line-494"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-495" name="line-495"></a><span class="w"> </span><span class="n">decode_display_descriptor</span><span class="p">(</span><span class="n">edid</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">index</span><span class="p">,</span><span class="w"> </span><span class="n">info</span><span class="p">);</span>
+<a id="line-496" name="line-496"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-497" name="line-497"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-498" name="line-498"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-499" name="line-499"></a><span class="w"> </span><span class="n">decode_detailed_timing</span><span class="p">(</span><span class="n">edid</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">index</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">detailed_timings</span><span class="p">[</span><span class="n">timing_idx</span><span class="o">++</span><span class="p">]));</span>
+<a id="line-500" name="line-500"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-501" name="line-501"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-502" name="line-502"></a>
+<a id="line-503" name="line-503"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">n_detailed_timings</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">timing_idx</span><span class="p">;</span>
+<a id="line-504" name="line-504"></a>
+<a id="line-505" name="line-505"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-506" name="line-506"></a><span class="p">}</span>
+<a id="line-507" name="line-507"></a>
+<a id="line-508" name="line-508"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">decode_check_sum</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">uchar</span><span class="o">*</span><span class="w"> </span><span class="n">edid</span><span class="p">,</span><span class="w"> </span><span class="n">MonitorInfo</span><span class="o">*</span><span class="w"> </span><span class="n">info</span><span class="p">)</span>
+<a id="line-509" name="line-509"></a><span class="p">{</span>
+<a id="line-510" name="line-510"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-511" name="line-511"></a><span class="w"> </span><span class="n">uchar</span><span class="w"> </span><span class="n">check</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-512" name="line-512"></a>
+<a id="line-513" name="line-513"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">128</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-514" name="line-514"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-515" name="line-515"></a><span class="w"> </span><span class="n">check</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">edid</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-516" name="line-516"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-517" name="line-517"></a>
+<a id="line-518" name="line-518"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">checksum</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">check</span><span class="p">;</span>
+<a id="line-519" name="line-519"></a><span class="p">}</span>
+<a id="line-520" name="line-520"></a>
+<a id="line-521" name="line-521"></a><span class="n">MonitorInfo</span><span class="o">*</span><span class="w"> </span><span class="nf">decode_edid</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">uchar</span><span class="o">*</span><span class="w"> </span><span class="n">edid</span><span class="p">)</span>
+<a id="line-522" name="line-522"></a><span class="p">{</span>
+<a id="line-523" name="line-523"></a><span class="w"> </span><span class="n">MonitorInfo</span><span class="o">*</span><span class="w"> </span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new0</span><span class="p">(</span><span class="n">MonitorInfo</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-524" name="line-524"></a>
+<a id="line-525" name="line-525"></a><span class="w"> </span><span class="n">decode_check_sum</span><span class="p">(</span><span class="n">edid</span><span class="p">,</span><span class="w"> </span><span class="n">info</span><span class="p">);</span>
+<a id="line-526" name="line-526"></a>
+<a id="line-527" name="line-527"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">decode_header</span><span class="p">(</span><span class="n">edid</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">decode_vendor_and_product_identification</span><span class="p">(</span><span class="n">edid</span><span class="p">,</span><span class="w"> </span><span class="n">info</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">decode_edid_version</span><span class="p">(</span><span class="n">edid</span><span class="p">,</span><span class="w"> </span><span class="n">info</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">decode_display_parameters</span><span class="p">(</span><span class="n">edid</span><span class="p">,</span><span class="w"> </span><span class="n">info</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">decode_color_characteristics</span><span class="p">(</span><span class="n">edid</span><span class="p">,</span><span class="w"> </span><span class="n">info</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">decode_established_timings</span><span class="p">(</span><span class="n">edid</span><span class="p">,</span><span class="w"> </span><span class="n">info</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">decode_standard_timings</span><span class="p">(</span><span class="n">edid</span><span class="p">,</span><span class="w"> </span><span class="n">info</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">decode_descriptors</span><span class="p">(</span><span class="n">edid</span><span class="p">,</span><span class="w"> </span><span class="n">info</span><span class="p">))</span>
+<a id="line-528" name="line-528"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-529" name="line-529"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">info</span><span class="p">;</span>
+<a id="line-530" name="line-530"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-531" name="line-531"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-532" name="line-532"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-533" name="line-533"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">info</span><span class="p">);</span>
+<a id="line-534" name="line-534"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-535" name="line-535"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-536" name="line-536"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/10.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/10.html
new file mode 100644
index 0000000..e8e3e16
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/10.html
@@ -0,0 +1,383 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/mate-colorseldialog.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-colorseldialog.h</p>
+<a href="10.html#line-30"> missingIncludeSystem 30</a><a href="10.html#line-31"> missingIncludeSystem 31</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal">10</span>
+<span class="normal">11</span>
+<span class="normal">12</span>
+<span class="normal">13</span>
+<span class="normal">14</span>
+<span class="normal">15</span>
+<span class="normal">16</span>
+<span class="normal">17</span>
+<span class="normal">18</span>
+<span class="normal">19</span>
+<span class="normal">20</span>
+<span class="normal">21</span>
+<span class="normal">22</span>
+<span class="normal">23</span>
+<span class="normal">24</span>
+<span class="normal">25</span>
+<span class="normal">26</span>
+<span class="normal">27</span>
+<span class="normal">28</span>
+<span class="normal">29</span>
+<span class="normal">30</span>
+<span class="normal">31</span>
+<span class="normal">32</span>
+<span class="normal">33</span>
+<span class="normal">34</span>
+<span class="normal">35</span>
+<span class="normal">36</span>
+<span class="normal">37</span>
+<span class="normal">38</span>
+<span class="normal">39</span>
+<span class="normal">40</span>
+<span class="normal">41</span>
+<span class="normal">42</span>
+<span class="normal">43</span>
+<span class="normal">44</span>
+<span class="normal">45</span>
+<span class="normal">46</span>
+<span class="normal">47</span>
+<span class="normal">48</span>
+<span class="normal">49</span>
+<span class="normal">50</span>
+<span class="normal">51</span>
+<span class="normal">52</span>
+<span class="normal">53</span>
+<span class="normal">54</span>
+<span class="normal">55</span>
+<span class="normal">56</span>
+<span class="normal">57</span>
+<span class="normal">58</span>
+<span class="normal">59</span>
+<span class="normal">60</span>
+<span class="normal">61</span>
+<span class="normal">62</span>
+<span class="normal">63</span>
+<span class="normal">64</span>
+<span class="normal">65</span>
+<span class="normal">66</span>
+<span class="normal">67</span>
+<span class="normal">68</span>
+<span class="normal">69</span>
+<span class="normal">70</span>
+<span class="normal">71</span>
+<span class="normal">72</span>
+<span class="normal">73</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* GTK - The GIMP Toolkit</span>
+<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-8" name="line-8"></a><span class="cm"> *</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-13" name="line-13"></a><span class="cm"> *</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * You should have received a copy of the GNU Lesser General Public</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * License along with this library; if not, write to the</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330,</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Boston, MA 02111-1307, USA.</span>
+<a id="line-18" name="line-18"></a><span class="cm"> */</span>
+<a id="line-19" name="line-19"></a>
+<a id="line-20" name="line-20"></a><span class="cm">/*</span>
+<a id="line-21" name="line-21"></a><span class="cm"> * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS</span>
+<a id="line-22" name="line-22"></a><span class="cm"> * file for a list of people on the GTK+ Team. See the ChangeLog</span>
+<a id="line-23" name="line-23"></a><span class="cm"> * files for a list of changes. These files are distributed with</span>
+<a id="line-24" name="line-24"></a><span class="cm"> * GTK+ at ftp://ftp.gtk.org/pub/gtk/.</span>
+<a id="line-25" name="line-25"></a><span class="cm"> */</span>
+<a id="line-26" name="line-26"></a>
+<a id="line-27" name="line-27"></a><span class="cp">#ifndef __MATE_COLOR_SELECTION_DIALOG_H__</span>
+<a id="line-28" name="line-28"></a><span class="cp">#define __MATE_COLOR_SELECTION_DIALOG_H__</span>
+<a id="line-29" name="line-29"></a>
+<a id="line-30" name="line-30"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib.h&gt;</span><span class="error2">&lt;--- Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-31" name="line-31"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-32" name="line-32"></a>
+<a id="line-33" name="line-33"></a><span class="n">G_BEGIN_DECLS</span>
+<a id="line-34" name="line-34"></a>
+<a id="line-35" name="line-35"></a><span class="cp">#define MATE_TYPE_COLOR_SELECTION_DIALOG (mate_color_selection_dialog_get_type ())</span>
+<a id="line-36" name="line-36"></a><span class="cp">#define MATE_COLOR_SELECTION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATE_TYPE_COLOR_SELECTION_DIALOG, MateColorSelectionDialog))</span>
+<a id="line-37" name="line-37"></a><span class="cp">#define MATE_COLOR_SELECTION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MATE_TYPE_COLOR_SELECTION_DIALOG, MateColorSelectionDialogClass))</span>
+<a id="line-38" name="line-38"></a><span class="cp">#define MATE_IS_COLOR_SELECTION_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MATE_TYPE_COLOR_SELECTION_DIALOG))</span>
+<a id="line-39" name="line-39"></a><span class="cp">#define MATE_IS_COLOR_SELECTION_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MATE_TYPE_COLOR_SELECTION_DIALOG))</span>
+<a id="line-40" name="line-40"></a><span class="cp">#define MATE_COLOR_SELECTION_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MATE_TYPE_COLOR_SELECTION_DIALOG, MateColorSelectionDialogClass))</span>
+<a id="line-41" name="line-41"></a>
+<a id="line-42" name="line-42"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_MateColorSelectionDialog</span><span class="w"> </span><span class="n">MateColorSelectionDialog</span><span class="p">;</span>
+<a id="line-43" name="line-43"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_MateColorSelectionDialogClass</span><span class="w"> </span><span class="n">MateColorSelectionDialogClass</span><span class="p">;</span>
+<a id="line-44" name="line-44"></a>
+<a id="line-45" name="line-45"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_MateColorSelectionDialog</span>
+<a id="line-46" name="line-46"></a><span class="p">{</span>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">GtkDialog</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span>
+<a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">;</span>
+<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">ok_button</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">cancel_button</span><span class="p">;</span>
+<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">help_button</span><span class="p">;</span>
+<a id="line-53" name="line-53"></a><span class="p">};</span>
+<a id="line-54" name="line-54"></a>
+<a id="line-55" name="line-55"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_MateColorSelectionDialogClass</span>
+<a id="line-56" name="line-56"></a><span class="p">{</span>
+<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">GtkDialogClass</span><span class="w"> </span><span class="n">parent_class</span><span class="p">;</span>
+<a id="line-58" name="line-58"></a>
+<a id="line-59" name="line-59"></a><span class="w"> </span><span class="cm">/* Padding for future expansion */</span>
+<a id="line-60" name="line-60"></a><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">_gtk_reserved1</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-61" name="line-61"></a><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">_gtk_reserved2</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-62" name="line-62"></a><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">_gtk_reserved3</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-63" name="line-63"></a><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">_gtk_reserved4</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-64" name="line-64"></a><span class="p">};</span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="cm">/* ColorSelectionDialog */</span>
+<a id="line-67" name="line-67"></a><span class="n">GType</span><span class="w"> </span><span class="nf">mate_color_selection_dialog_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"> </span><span class="n">G_GNUC_CONST</span><span class="p">;</span>
+<a id="line-68" name="line-68"></a><span class="n">GtkWidget</span><span class="o">*</span><span class="w"> </span><span class="nf">mate_color_selection_dialog_new</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">title</span><span class="p">);</span>
+<a id="line-69" name="line-69"></a><span class="n">GtkWidget</span><span class="o">*</span><span class="w"> </span><span class="nf">mate_color_selection_dialog_get_color_selection</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelectionDialog</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-70" name="line-70"></a>
+<a id="line-71" name="line-71"></a><span class="n">G_END_DECLS</span>
+<a id="line-72" name="line-72"></a>
+<a id="line-73" name="line-73"></a><span class="cp">#endif </span><span class="cm">/* __MATE_COLOR_SELECTION_DIALOG_H__ */</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/11.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/11.html
new file mode 100644
index 0000000..86fa392
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/11.html
@@ -0,0 +1,533 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/mate-dconf.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-dconf.c</p>
+<a href="11.html#line-29"> missingIncludeSystem 29</a><a href="11.html#line-32"> missingIncludeSystem 32</a><a href="11.html#line-34"> missingIncludeSystem 34</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal"> 10</span>
+<span class="normal"> 11</span>
+<span class="normal"> 12</span>
+<span class="normal"> 13</span>
+<span class="normal"> 14</span>
+<span class="normal"> 15</span>
+<span class="normal"> 16</span>
+<span class="normal"> 17</span>
+<span class="normal"> 18</span>
+<span class="normal"> 19</span>
+<span class="normal"> 20</span>
+<span class="normal"> 21</span>
+<span class="normal"> 22</span>
+<span class="normal"> 23</span>
+<span class="normal"> 24</span>
+<span class="normal"> 25</span>
+<span class="normal"> 26</span>
+<span class="normal"> 27</span>
+<span class="normal"> 28</span>
+<span class="normal"> 29</span>
+<span class="normal"> 30</span>
+<span class="normal"> 31</span>
+<span class="normal"> 32</span>
+<span class="normal"> 33</span>
+<span class="normal"> 34</span>
+<span class="normal"> 35</span>
+<span class="normal"> 36</span>
+<span class="normal"> 37</span>
+<span class="normal"> 38</span>
+<span class="normal"> 39</span>
+<span class="normal"> 40</span>
+<span class="normal"> 41</span>
+<span class="normal"> 42</span>
+<span class="normal"> 43</span>
+<span class="normal"> 44</span>
+<span class="normal"> 45</span>
+<span class="normal"> 46</span>
+<span class="normal"> 47</span>
+<span class="normal"> 48</span>
+<span class="normal"> 49</span>
+<span class="normal"> 50</span>
+<span class="normal"> 51</span>
+<span class="normal"> 52</span>
+<span class="normal"> 53</span>
+<span class="normal"> 54</span>
+<span class="normal"> 55</span>
+<span class="normal"> 56</span>
+<span class="normal"> 57</span>
+<span class="normal"> 58</span>
+<span class="normal"> 59</span>
+<span class="normal"> 60</span>
+<span class="normal"> 61</span>
+<span class="normal"> 62</span>
+<span class="normal"> 63</span>
+<span class="normal"> 64</span>
+<span class="normal"> 65</span>
+<span class="normal"> 66</span>
+<span class="normal"> 67</span>
+<span class="normal"> 68</span>
+<span class="normal"> 69</span>
+<span class="normal"> 70</span>
+<span class="normal"> 71</span>
+<span class="normal"> 72</span>
+<span class="normal"> 73</span>
+<span class="normal"> 74</span>
+<span class="normal"> 75</span>
+<span class="normal"> 76</span>
+<span class="normal"> 77</span>
+<span class="normal"> 78</span>
+<span class="normal"> 79</span>
+<span class="normal"> 80</span>
+<span class="normal"> 81</span>
+<span class="normal"> 82</span>
+<span class="normal"> 83</span>
+<span class="normal"> 84</span>
+<span class="normal"> 85</span>
+<span class="normal"> 86</span>
+<span class="normal"> 87</span>
+<span class="normal"> 88</span>
+<span class="normal"> 89</span>
+<span class="normal"> 90</span>
+<span class="normal"> 91</span>
+<span class="normal"> 92</span>
+<span class="normal"> 93</span>
+<span class="normal"> 94</span>
+<span class="normal"> 95</span>
+<span class="normal"> 96</span>
+<span class="normal"> 97</span>
+<span class="normal"> 98</span>
+<span class="normal"> 99</span>
+<span class="normal">100</span>
+<span class="normal">101</span>
+<span class="normal">102</span>
+<span class="normal">103</span>
+<span class="normal">104</span>
+<span class="normal">105</span>
+<span class="normal">106</span>
+<span class="normal">107</span>
+<span class="normal">108</span>
+<span class="normal">109</span>
+<span class="normal">110</span>
+<span class="normal">111</span>
+<span class="normal">112</span>
+<span class="normal">113</span>
+<span class="normal">114</span>
+<span class="normal">115</span>
+<span class="normal">116</span>
+<span class="normal">117</span>
+<span class="normal">118</span>
+<span class="normal">119</span>
+<span class="normal">120</span>
+<span class="normal">121</span>
+<span class="normal">122</span>
+<span class="normal">123</span>
+<span class="normal">124</span>
+<span class="normal">125</span>
+<span class="normal">126</span>
+<span class="normal">127</span>
+<span class="normal">128</span>
+<span class="normal">129</span>
+<span class="normal">130</span>
+<span class="normal">131</span>
+<span class="normal">132</span>
+<span class="normal">133</span>
+<span class="normal">134</span>
+<span class="normal">135</span>
+<span class="normal">136</span>
+<span class="normal">137</span>
+<span class="normal">138</span>
+<span class="normal">139</span>
+<span class="normal">140</span>
+<span class="normal">141</span>
+<span class="normal">142</span>
+<span class="normal">143</span>
+<span class="normal">144</span>
+<span class="normal">145</span>
+<span class="normal">146</span>
+<span class="normal">147</span>
+<span class="normal">148</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span>
+<a id="line-2" name="line-2"></a><span class="cm"> * mate-dconf.c: helper API for dconf</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * Copyright (C) 2011 Novell, Inc.</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * Copyright (C) 2013 Stefano Karapetsas</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * Copyright (C) 2013-2021 MATE Developers</span>
+<a id="line-7" name="line-7"></a><span class="cm"> *</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * This program is free software; you can redistribute it and/or</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * modify it under the terms of the GNU General Public License as</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * published by the Free Software Foundation; either version 2 of the</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * License, or (at your option) any later version.</span>
+<a id="line-12" name="line-12"></a><span class="cm"> *</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * This program is distributed in the hope that it will be useful, but</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * General Public License for more details.</span>
+<a id="line-17" name="line-17"></a><span class="cm"> *</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span>
+<a id="line-19" name="line-19"></a><span class="cm"> * along with this program; if not, write to the Free Software</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA</span>
+<a id="line-21" name="line-21"></a><span class="cm"> * 02110-1301, USA.</span>
+<a id="line-22" name="line-22"></a><span class="cm"> *</span>
+<a id="line-23" name="line-23"></a><span class="cm"> * Authors:</span>
+<a id="line-24" name="line-24"></a><span class="cm"> * Vincent Untz &lt;[email protected]&gt;</span>
+<a id="line-25" name="line-25"></a><span class="cm"> * Stefano Karapetsas &lt;[email protected]&gt;</span>
+<a id="line-26" name="line-26"></a><span class="cm"> */</span>
+<a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="cp">#ifdef HAVE_CONFIG_H</span>
+<a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;config.h&gt;</span><span class="error2">&lt;--- Include file: <config.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a><span class="cp">#endif</span>
+<a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-33" name="line-33"></a>
+<a id="line-34" name="line-34"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;dconf.h&gt;</span><span class="error2">&lt;--- Include file: <dconf.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-35" name="line-35"></a>
+<a id="line-36" name="line-36"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;mate-dconf.h&quot;</span>
+<a id="line-37" name="line-37"></a>
+<a id="line-38" name="line-38"></a><span class="k">static</span><span class="w"> </span><span class="n">DConfClient</span><span class="w"> </span><span class="o">*</span>
+<a id="line-39" name="line-39"></a><span class="nf">mate_dconf_client_get</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-40" name="line-40"></a><span class="p">{</span>
+<a id="line-41" name="line-41"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">dconf_client_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-42" name="line-42"></a><span class="p">}</span>
+<a id="line-43" name="line-43"></a>
+<a id="line-44" name="line-44"></a><span class="cm">/**</span>
+<a id="line-45" name="line-45"></a><span class="cm"> * mate_dconf_write_sync:</span>
+<a id="line-46" name="line-46"></a><span class="cm"> * @key: the key to write.</span>
+<a id="line-47" name="line-47"></a><span class="cm"> * @value: the value to write.</span>
+<a id="line-48" name="line-48"></a><span class="cm"> * @error: a variable to store the error, or NULL.</span>
+<a id="line-49" name="line-49"></a><span class="cm"> *</span>
+<a id="line-50" name="line-50"></a><span class="cm"> * Allow to write a value to dconf.</span>
+<a id="line-51" name="line-51"></a><span class="cm"> *</span>
+<a id="line-52" name="line-52"></a><span class="cm"> * Since: 1.7.1</span>
+<a id="line-53" name="line-53"></a><span class="cm"> */</span>
+<a id="line-54" name="line-54"></a><span class="n">gboolean</span>
+<a id="line-55" name="line-55"></a><span class="nf">mate_dconf_write_sync</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="p">,</span>
+<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span>
+<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-58" name="line-58"></a><span class="p">{</span>
+<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">DConfClient</span><span class="w"> </span><span class="o">*</span><span class="n">client</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_dconf_client_get</span><span class="w"> </span><span class="p">();</span>
+<a id="line-61" name="line-61"></a>
+<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dconf_client_write_sync</span><span class="w"> </span><span class="p">(</span><span class="n">client</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-63" name="line-63"></a>
+<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">client</span><span class="p">);</span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-67" name="line-67"></a><span class="p">}</span>
+<a id="line-68" name="line-68"></a>
+<a id="line-69" name="line-69"></a><span class="cm">/**</span>
+<a id="line-70" name="line-70"></a><span class="cm"> * mate_dconf_recursive_reset:</span>
+<a id="line-71" name="line-71"></a><span class="cm"> * @dir: the dconf directory to reset.</span>
+<a id="line-72" name="line-72"></a><span class="cm"> * @error: a variable to store the error, or NULL.</span>
+<a id="line-73" name="line-73"></a><span class="cm"> *</span>
+<a id="line-74" name="line-74"></a><span class="cm"> * Allow to reset a dconf path.</span>
+<a id="line-75" name="line-75"></a><span class="cm"> *</span>
+<a id="line-76" name="line-76"></a><span class="cm"> * Since: 1.7.1</span>
+<a id="line-77" name="line-77"></a><span class="cm"> */</span>
+<a id="line-78" name="line-78"></a><span class="n">gboolean</span>
+<a id="line-79" name="line-79"></a><span class="nf">mate_dconf_recursive_reset</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">dir</span><span class="p">,</span>
+<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-81" name="line-81"></a><span class="p">{</span>
+<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">DConfClient</span><span class="w"> </span><span class="o">*</span><span class="n">client</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_dconf_client_get</span><span class="w"> </span><span class="p">();</span>
+<a id="line-84" name="line-84"></a>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dconf_client_write_sync</span><span class="w"> </span><span class="p">(</span><span class="n">client</span><span class="p">,</span><span class="w"> </span><span class="n">dir</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-86" name="line-86"></a>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">client</span><span class="p">);</span>
+<a id="line-88" name="line-88"></a>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-90" name="line-90"></a><span class="p">}</span>
+<a id="line-91" name="line-91"></a>
+<a id="line-92" name="line-92"></a><span class="cm">/**</span>
+<a id="line-93" name="line-93"></a><span class="cm"> * mate_dconf_list_subdirs:</span>
+<a id="line-94" name="line-94"></a><span class="cm"> * @dir: the dconf directory.</span>
+<a id="line-95" name="line-95"></a><span class="cm"> * @remove_trailing_slash: whether to remove the trailing slash from</span>
+<a id="line-96" name="line-96"></a><span class="cm"> * paths.</span>
+<a id="line-97" name="line-97"></a><span class="cm"> *</span>
+<a id="line-98" name="line-98"></a><span class="cm"> * Returns the list of subdirectories of the given dconf directory.</span>
+<a id="line-99" name="line-99"></a><span class="cm"> *</span>
+<a id="line-100" name="line-100"></a><span class="cm"> * Return value: the list of subdirectories.</span>
+<a id="line-101" name="line-101"></a><span class="cm"> *</span>
+<a id="line-102" name="line-102"></a><span class="cm"> * Since: 1.7.1</span>
+<a id="line-103" name="line-103"></a><span class="cm"> */</span>
+<a id="line-104" name="line-104"></a><span class="n">gchar</span><span class="w"> </span><span class="o">**</span>
+<a id="line-105" name="line-105"></a><span class="nf">mate_dconf_list_subdirs</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">dir</span><span class="p">,</span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">remove_trailing_slash</span><span class="p">)</span>
+<a id="line-107" name="line-107"></a><span class="p">{</span>
+<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">GArray</span><span class="w"> </span><span class="o">*</span><span class="n">array</span><span class="p">;</span>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">children</span><span class="p">;</span>
+<a id="line-110" name="line-110"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">len</span><span class="p">;</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">DConfClient</span><span class="w"> </span><span class="o">*</span><span class="n">client</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_dconf_client_get</span><span class="w"> </span><span class="p">();</span>
+<a id="line-113" name="line-113"></a>
+<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">array</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_array_new</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="k">sizeof</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="p">));</span>
+<a id="line-115" name="line-115"></a>
+<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">children</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dconf_client_list</span><span class="w"> </span><span class="p">(</span><span class="n">client</span><span class="p">,</span><span class="w"> </span><span class="n">dir</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">len</span><span class="p">);</span>
+<a id="line-117" name="line-117"></a>
+<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">client</span><span class="p">);</span>
+<a id="line-119" name="line-119"></a>
+<a id="line-120" name="line-120"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">children</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-121" name="line-121"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dconf_is_rel_dir</span><span class="w"> </span><span class="p">(</span><span class="n">children</span><span class="p">[</span><span class="n">i</span><span class="p">],</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-122" name="line-122"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">children</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span>
+<a id="line-123" name="line-123"></a>
+<a id="line-124" name="line-124"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">remove_trailing_slash</span><span class="p">)</span>
+<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">val</span><span class="p">[</span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">val</span><span class="p">)</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">;</span>
+<a id="line-126" name="line-126"></a>
+<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">array</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_array_append_val</span><span class="w"> </span><span class="p">(</span><span class="n">array</span><span class="p">,</span><span class="w"> </span><span class="n">val</span><span class="p">);</span>
+<a id="line-128" name="line-128"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-129" name="line-129"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-130" name="line-130"></a>
+<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">children</span><span class="p">);</span>
+<a id="line-132" name="line-132"></a>
+<a id="line-133" name="line-133"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="p">)</span><span class="w"> </span><span class="n">g_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">array</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-134" name="line-134"></a><span class="p">}</span>
+<a id="line-135" name="line-135"></a>
+<a id="line-136" name="line-136"></a><span class="cm">/**</span>
+<a id="line-137" name="line-137"></a><span class="cm"> * mate_dconf_sync:</span>
+<a id="line-138" name="line-138"></a><span class="cm"> *</span>
+<a id="line-139" name="line-139"></a><span class="cm"> * Ensure dconf daemon syncs the written values.</span>
+<a id="line-140" name="line-140"></a><span class="cm"> *</span>
+<a id="line-141" name="line-141"></a><span class="cm"> * Since: 1.7.1</span>
+<a id="line-142" name="line-142"></a><span class="cm"> */</span>
+<a id="line-143" name="line-143"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_dconf_sync</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-144" name="line-144"></a><span class="p">{</span>
+<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">DConfClient</span><span class="w"> </span><span class="o">*</span><span class="n">client</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_dconf_client_get</span><span class="w"> </span><span class="p">();</span>
+<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">dconf_client_sync</span><span class="w"> </span><span class="p">(</span><span class="n">client</span><span class="p">);</span>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">client</span><span class="p">);</span>
+<a id="line-148" name="line-148"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/12.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/12.html
new file mode 100644
index 0000000..039f030
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/12.html
@@ -0,0 +1,335 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/mate-dconf.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-dconf.h</p>
+<a href="12.html#line-31"> missingIncludeSystem 31</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal">10</span>
+<span class="normal">11</span>
+<span class="normal">12</span>
+<span class="normal">13</span>
+<span class="normal">14</span>
+<span class="normal">15</span>
+<span class="normal">16</span>
+<span class="normal">17</span>
+<span class="normal">18</span>
+<span class="normal">19</span>
+<span class="normal">20</span>
+<span class="normal">21</span>
+<span class="normal">22</span>
+<span class="normal">23</span>
+<span class="normal">24</span>
+<span class="normal">25</span>
+<span class="normal">26</span>
+<span class="normal">27</span>
+<span class="normal">28</span>
+<span class="normal">29</span>
+<span class="normal">30</span>
+<span class="normal">31</span>
+<span class="normal">32</span>
+<span class="normal">33</span>
+<span class="normal">34</span>
+<span class="normal">35</span>
+<span class="normal">36</span>
+<span class="normal">37</span>
+<span class="normal">38</span>
+<span class="normal">39</span>
+<span class="normal">40</span>
+<span class="normal">41</span>
+<span class="normal">42</span>
+<span class="normal">43</span>
+<span class="normal">44</span>
+<span class="normal">45</span>
+<span class="normal">46</span>
+<span class="normal">47</span>
+<span class="normal">48</span>
+<span class="normal">49</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span>
+<a id="line-2" name="line-2"></a><span class="cm"> * mate-dconf.h: helper API for dconf</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * Copyright (C) 2011 Novell, Inc.</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * Copyright (C) 2013 Stefano Karapetsas</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * Copyright (C) 2013-2021 MATE Developers</span>
+<a id="line-7" name="line-7"></a><span class="cm"> *</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * This program is free software; you can redistribute it and/or</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * modify it under the terms of the GNU General Public License as</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * published by the Free Software Foundation; either version 2 of the</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * License, or (at your option) any later version.</span>
+<a id="line-12" name="line-12"></a><span class="cm"> *</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * This program is distributed in the hope that it will be useful, but</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * General Public License for more details.</span>
+<a id="line-17" name="line-17"></a><span class="cm"> *</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span>
+<a id="line-19" name="line-19"></a><span class="cm"> * along with this program; if not, write to the Free Software</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA</span>
+<a id="line-21" name="line-21"></a><span class="cm"> * 02110-1301, USA.</span>
+<a id="line-22" name="line-22"></a><span class="cm"> *</span>
+<a id="line-23" name="line-23"></a><span class="cm"> * Authors:</span>
+<a id="line-24" name="line-24"></a><span class="cm"> * Vincent Untz &lt;[email protected]&gt;</span>
+<a id="line-25" name="line-25"></a><span class="cm"> * Stefano Karapetsas &lt;[email protected]&gt;</span>
+<a id="line-26" name="line-26"></a><span class="cm"> */</span>
+<a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="cp">#ifndef __MATE_DCONF_H__</span>
+<a id="line-29" name="line-29"></a><span class="cp">#define __MATE_DCONF_H__</span>
+<a id="line-30" name="line-30"></a>
+<a id="line-31" name="line-31"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib.h&gt;</span><span class="error2">&lt;--- Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-32" name="line-32"></a>
+<a id="line-33" name="line-33"></a><span class="n">G_BEGIN_DECLS</span>
+<a id="line-34" name="line-34"></a>
+<a id="line-35" name="line-35"></a><span class="n">gboolean</span><span class="w"> </span><span class="n">mate_dconf_write_sync</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="p">,</span>
+<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">GVariant</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span>
+<a id="line-37" name="line-37"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">);</span>
+<a id="line-38" name="line-38"></a>
+<a id="line-39" name="line-39"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_dconf_recursive_reset</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">dir</span><span class="p">,</span>
+<a id="line-40" name="line-40"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">);</span>
+<a id="line-41" name="line-41"></a>
+<a id="line-42" name="line-42"></a><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="nf">mate_dconf_list_subdirs</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">dir</span><span class="p">,</span>
+<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">remove_trailing_slash</span><span class="p">);</span>
+<a id="line-44" name="line-44"></a>
+<a id="line-45" name="line-45"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_dconf_sync</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-46" name="line-46"></a>
+<a id="line-47" name="line-47"></a><span class="n">G_END_DECLS</span>
+<a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="cp">#endif </span><span class="cm">/* __MATE_DCONF_H__ */</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/13.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/13.html
new file mode 100644
index 0000000..407b8be
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/13.html
@@ -0,0 +1,8927 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/mate-desktop-item.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-desktop-item.c</p>
+<a href="13.html#line-30"> missingInclude 30</a><a href="13.html#line-32"> missingIncludeSystem 32</a><a href="13.html#line-33"> missingIncludeSystem 33</a><a href="13.html#line-34"> missingIncludeSystem 34</a><a href="13.html#line-35"> missingIncludeSystem 35</a><a href="13.html#line-36"> missingIncludeSystem 36</a><a href="13.html#line-37"> missingIncludeSystem 37</a><a href="13.html#line-38"> missingIncludeSystem 38</a><a href="13.html#line-39"> missingIncludeSystem 39</a><a href="13.html#line-40"> missingIncludeSystem 40</a><a href="13.html#line-41"> missingIncludeSystem 41</a><a href="13.html#line-42"> missingIncludeSystem 42</a><a href="13.html#line-43"> missingIncludeSystem 43</a><a href="13.html#line-45"> missingIncludeSystem 45</a><a href="13.html#line-49"> missingIncludeSystem 49</a><a href="13.html#line-50"> missingIncludeSystem 50</a><a href="13.html#line-51"> missingIncludeSystem 51</a><a href="13.html#line-52"> missingIncludeSystem 52</a><a href="13.html#line-57"> missingIncludeSystem 57</a><a href="13.html#line-58"> missingIncludeSystem 58</a><a href="13.html#line-916"> constVariablePointer 916</a><a href="13.html#line-945"> constVariablePointer 945</a><a href="13.html#line-2338"> variableScope 2338</a><a href="13.html#line-2844"> constVariablePointer 2844</a><a href="13.html#line-3156"> variableScope 3156</a><a href="13.html#line-3175"> varFuncNullUB 3175</a><a href="13.html#line-3177"> varFuncNullUB 3177</a><a href="13.html#line-3178"> varFuncNullUB 3178</a><a href="13.html#line-3179"> varFuncNullUB 3179</a><a href="13.html#line-3181"> varFuncNullUB 3181</a><a href="13.html#line-3183"> varFuncNullUB 3183</a><a href="13.html#line-3185"> varFuncNullUB 3185</a><a href="13.html#line-3186"> varFuncNullUB 3186</a><a href="13.html#line-3188"> varFuncNullUB 3188</a><a href="13.html#line-3189"> varFuncNullUB 3189</a><a href="13.html#line-3190"> varFuncNullUB 3190</a><a href="13.html#line-3191"> varFuncNullUB 3191</a><a href="13.html#line-3192"> varFuncNullUB 3192</a><a href="13.html#line-3193"> varFuncNullUB 3193</a><a href="13.html#line-3194"> varFuncNullUB 3194</a><a href="13.html#line-3195"> varFuncNullUB 3195</a><a href="13.html#line-3196"> varFuncNullUB 3196</a><a href="13.html#line-3197"> varFuncNullUB 3197</a><a href="13.html#line-3198"> varFuncNullUB 3198</a><a href="13.html#line-3199"> varFuncNullUB 3199</a><a href="13.html#line-3201"> varFuncNullUB 3201</a><a href="13.html#line-3203"> varFuncNullUB 3203</a><a href="13.html#line-3205"> varFuncNullUB 3205</a><a href="13.html#line-3422"> constVariablePointer 3422</a><a href="13.html#line-3497"> constParameterPointer 3497</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal"> 10</span>
+<span class="normal"> 11</span>
+<span class="normal"> 12</span>
+<span class="normal"> 13</span>
+<span class="normal"> 14</span>
+<span class="normal"> 15</span>
+<span class="normal"> 16</span>
+<span class="normal"> 17</span>
+<span class="normal"> 18</span>
+<span class="normal"> 19</span>
+<span class="normal"> 20</span>
+<span class="normal"> 21</span>
+<span class="normal"> 22</span>
+<span class="normal"> 23</span>
+<span class="normal"> 24</span>
+<span class="normal"> 25</span>
+<span class="normal"> 26</span>
+<span class="normal"> 27</span>
+<span class="normal"> 28</span>
+<span class="normal"> 29</span>
+<span class="normal"> 30</span>
+<span class="normal"> 31</span>
+<span class="normal"> 32</span>
+<span class="normal"> 33</span>
+<span class="normal"> 34</span>
+<span class="normal"> 35</span>
+<span class="normal"> 36</span>
+<span class="normal"> 37</span>
+<span class="normal"> 38</span>
+<span class="normal"> 39</span>
+<span class="normal"> 40</span>
+<span class="normal"> 41</span>
+<span class="normal"> 42</span>
+<span class="normal"> 43</span>
+<span class="normal"> 44</span>
+<span class="normal"> 45</span>
+<span class="normal"> 46</span>
+<span class="normal"> 47</span>
+<span class="normal"> 48</span>
+<span class="normal"> 49</span>
+<span class="normal"> 50</span>
+<span class="normal"> 51</span>
+<span class="normal"> 52</span>
+<span class="normal"> 53</span>
+<span class="normal"> 54</span>
+<span class="normal"> 55</span>
+<span class="normal"> 56</span>
+<span class="normal"> 57</span>
+<span class="normal"> 58</span>
+<span class="normal"> 59</span>
+<span class="normal"> 60</span>
+<span class="normal"> 61</span>
+<span class="normal"> 62</span>
+<span class="normal"> 63</span>
+<span class="normal"> 64</span>
+<span class="normal"> 65</span>
+<span class="normal"> 66</span>
+<span class="normal"> 67</span>
+<span class="normal"> 68</span>
+<span class="normal"> 69</span>
+<span class="normal"> 70</span>
+<span class="normal"> 71</span>
+<span class="normal"> 72</span>
+<span class="normal"> 73</span>
+<span class="normal"> 74</span>
+<span class="normal"> 75</span>
+<span class="normal"> 76</span>
+<span class="normal"> 77</span>
+<span class="normal"> 78</span>
+<span class="normal"> 79</span>
+<span class="normal"> 80</span>
+<span class="normal"> 81</span>
+<span class="normal"> 82</span>
+<span class="normal"> 83</span>
+<span class="normal"> 84</span>
+<span class="normal"> 85</span>
+<span class="normal"> 86</span>
+<span class="normal"> 87</span>
+<span class="normal"> 88</span>
+<span class="normal"> 89</span>
+<span class="normal"> 90</span>
+<span class="normal"> 91</span>
+<span class="normal"> 92</span>
+<span class="normal"> 93</span>
+<span class="normal"> 94</span>
+<span class="normal"> 95</span>
+<span class="normal"> 96</span>
+<span class="normal"> 97</span>
+<span class="normal"> 98</span>
+<span class="normal"> 99</span>
+<span class="normal"> 100</span>
+<span class="normal"> 101</span>
+<span class="normal"> 102</span>
+<span class="normal"> 103</span>
+<span class="normal"> 104</span>
+<span class="normal"> 105</span>
+<span class="normal"> 106</span>
+<span class="normal"> 107</span>
+<span class="normal"> 108</span>
+<span class="normal"> 109</span>
+<span class="normal"> 110</span>
+<span class="normal"> 111</span>
+<span class="normal"> 112</span>
+<span class="normal"> 113</span>
+<span class="normal"> 114</span>
+<span class="normal"> 115</span>
+<span class="normal"> 116</span>
+<span class="normal"> 117</span>
+<span class="normal"> 118</span>
+<span class="normal"> 119</span>
+<span class="normal"> 120</span>
+<span class="normal"> 121</span>
+<span class="normal"> 122</span>
+<span class="normal"> 123</span>
+<span class="normal"> 124</span>
+<span class="normal"> 125</span>
+<span class="normal"> 126</span>
+<span class="normal"> 127</span>
+<span class="normal"> 128</span>
+<span class="normal"> 129</span>
+<span class="normal"> 130</span>
+<span class="normal"> 131</span>
+<span class="normal"> 132</span>
+<span class="normal"> 133</span>
+<span class="normal"> 134</span>
+<span class="normal"> 135</span>
+<span class="normal"> 136</span>
+<span class="normal"> 137</span>
+<span class="normal"> 138</span>
+<span class="normal"> 139</span>
+<span class="normal"> 140</span>
+<span class="normal"> 141</span>
+<span class="normal"> 142</span>
+<span class="normal"> 143</span>
+<span class="normal"> 144</span>
+<span class="normal"> 145</span>
+<span class="normal"> 146</span>
+<span class="normal"> 147</span>
+<span class="normal"> 148</span>
+<span class="normal"> 149</span>
+<span class="normal"> 150</span>
+<span class="normal"> 151</span>
+<span class="normal"> 152</span>
+<span class="normal"> 153</span>
+<span class="normal"> 154</span>
+<span class="normal"> 155</span>
+<span class="normal"> 156</span>
+<span class="normal"> 157</span>
+<span class="normal"> 158</span>
+<span class="normal"> 159</span>
+<span class="normal"> 160</span>
+<span class="normal"> 161</span>
+<span class="normal"> 162</span>
+<span class="normal"> 163</span>
+<span class="normal"> 164</span>
+<span class="normal"> 165</span>
+<span class="normal"> 166</span>
+<span class="normal"> 167</span>
+<span class="normal"> 168</span>
+<span class="normal"> 169</span>
+<span class="normal"> 170</span>
+<span class="normal"> 171</span>
+<span class="normal"> 172</span>
+<span class="normal"> 173</span>
+<span class="normal"> 174</span>
+<span class="normal"> 175</span>
+<span class="normal"> 176</span>
+<span class="normal"> 177</span>
+<span class="normal"> 178</span>
+<span class="normal"> 179</span>
+<span class="normal"> 180</span>
+<span class="normal"> 181</span>
+<span class="normal"> 182</span>
+<span class="normal"> 183</span>
+<span class="normal"> 184</span>
+<span class="normal"> 185</span>
+<span class="normal"> 186</span>
+<span class="normal"> 187</span>
+<span class="normal"> 188</span>
+<span class="normal"> 189</span>
+<span class="normal"> 190</span>
+<span class="normal"> 191</span>
+<span class="normal"> 192</span>
+<span class="normal"> 193</span>
+<span class="normal"> 194</span>
+<span class="normal"> 195</span>
+<span class="normal"> 196</span>
+<span class="normal"> 197</span>
+<span class="normal"> 198</span>
+<span class="normal"> 199</span>
+<span class="normal"> 200</span>
+<span class="normal"> 201</span>
+<span class="normal"> 202</span>
+<span class="normal"> 203</span>
+<span class="normal"> 204</span>
+<span class="normal"> 205</span>
+<span class="normal"> 206</span>
+<span class="normal"> 207</span>
+<span class="normal"> 208</span>
+<span class="normal"> 209</span>
+<span class="normal"> 210</span>
+<span class="normal"> 211</span>
+<span class="normal"> 212</span>
+<span class="normal"> 213</span>
+<span class="normal"> 214</span>
+<span class="normal"> 215</span>
+<span class="normal"> 216</span>
+<span class="normal"> 217</span>
+<span class="normal"> 218</span>
+<span class="normal"> 219</span>
+<span class="normal"> 220</span>
+<span class="normal"> 221</span>
+<span class="normal"> 222</span>
+<span class="normal"> 223</span>
+<span class="normal"> 224</span>
+<span class="normal"> 225</span>
+<span class="normal"> 226</span>
+<span class="normal"> 227</span>
+<span class="normal"> 228</span>
+<span class="normal"> 229</span>
+<span class="normal"> 230</span>
+<span class="normal"> 231</span>
+<span class="normal"> 232</span>
+<span class="normal"> 233</span>
+<span class="normal"> 234</span>
+<span class="normal"> 235</span>
+<span class="normal"> 236</span>
+<span class="normal"> 237</span>
+<span class="normal"> 238</span>
+<span class="normal"> 239</span>
+<span class="normal"> 240</span>
+<span class="normal"> 241</span>
+<span class="normal"> 242</span>
+<span class="normal"> 243</span>
+<span class="normal"> 244</span>
+<span class="normal"> 245</span>
+<span class="normal"> 246</span>
+<span class="normal"> 247</span>
+<span class="normal"> 248</span>
+<span class="normal"> 249</span>
+<span class="normal"> 250</span>
+<span class="normal"> 251</span>
+<span class="normal"> 252</span>
+<span class="normal"> 253</span>
+<span class="normal"> 254</span>
+<span class="normal"> 255</span>
+<span class="normal"> 256</span>
+<span class="normal"> 257</span>
+<span class="normal"> 258</span>
+<span class="normal"> 259</span>
+<span class="normal"> 260</span>
+<span class="normal"> 261</span>
+<span class="normal"> 262</span>
+<span class="normal"> 263</span>
+<span class="normal"> 264</span>
+<span class="normal"> 265</span>
+<span class="normal"> 266</span>
+<span class="normal"> 267</span>
+<span class="normal"> 268</span>
+<span class="normal"> 269</span>
+<span class="normal"> 270</span>
+<span class="normal"> 271</span>
+<span class="normal"> 272</span>
+<span class="normal"> 273</span>
+<span class="normal"> 274</span>
+<span class="normal"> 275</span>
+<span class="normal"> 276</span>
+<span class="normal"> 277</span>
+<span class="normal"> 278</span>
+<span class="normal"> 279</span>
+<span class="normal"> 280</span>
+<span class="normal"> 281</span>
+<span class="normal"> 282</span>
+<span class="normal"> 283</span>
+<span class="normal"> 284</span>
+<span class="normal"> 285</span>
+<span class="normal"> 286</span>
+<span class="normal"> 287</span>
+<span class="normal"> 288</span>
+<span class="normal"> 289</span>
+<span class="normal"> 290</span>
+<span class="normal"> 291</span>
+<span class="normal"> 292</span>
+<span class="normal"> 293</span>
+<span class="normal"> 294</span>
+<span class="normal"> 295</span>
+<span class="normal"> 296</span>
+<span class="normal"> 297</span>
+<span class="normal"> 298</span>
+<span class="normal"> 299</span>
+<span class="normal"> 300</span>
+<span class="normal"> 301</span>
+<span class="normal"> 302</span>
+<span class="normal"> 303</span>
+<span class="normal"> 304</span>
+<span class="normal"> 305</span>
+<span class="normal"> 306</span>
+<span class="normal"> 307</span>
+<span class="normal"> 308</span>
+<span class="normal"> 309</span>
+<span class="normal"> 310</span>
+<span class="normal"> 311</span>
+<span class="normal"> 312</span>
+<span class="normal"> 313</span>
+<span class="normal"> 314</span>
+<span class="normal"> 315</span>
+<span class="normal"> 316</span>
+<span class="normal"> 317</span>
+<span class="normal"> 318</span>
+<span class="normal"> 319</span>
+<span class="normal"> 320</span>
+<span class="normal"> 321</span>
+<span class="normal"> 322</span>
+<span class="normal"> 323</span>
+<span class="normal"> 324</span>
+<span class="normal"> 325</span>
+<span class="normal"> 326</span>
+<span class="normal"> 327</span>
+<span class="normal"> 328</span>
+<span class="normal"> 329</span>
+<span class="normal"> 330</span>
+<span class="normal"> 331</span>
+<span class="normal"> 332</span>
+<span class="normal"> 333</span>
+<span class="normal"> 334</span>
+<span class="normal"> 335</span>
+<span class="normal"> 336</span>
+<span class="normal"> 337</span>
+<span class="normal"> 338</span>
+<span class="normal"> 339</span>
+<span class="normal"> 340</span>
+<span class="normal"> 341</span>
+<span class="normal"> 342</span>
+<span class="normal"> 343</span>
+<span class="normal"> 344</span>
+<span class="normal"> 345</span>
+<span class="normal"> 346</span>
+<span class="normal"> 347</span>
+<span class="normal"> 348</span>
+<span class="normal"> 349</span>
+<span class="normal"> 350</span>
+<span class="normal"> 351</span>
+<span class="normal"> 352</span>
+<span class="normal"> 353</span>
+<span class="normal"> 354</span>
+<span class="normal"> 355</span>
+<span class="normal"> 356</span>
+<span class="normal"> 357</span>
+<span class="normal"> 358</span>
+<span class="normal"> 359</span>
+<span class="normal"> 360</span>
+<span class="normal"> 361</span>
+<span class="normal"> 362</span>
+<span class="normal"> 363</span>
+<span class="normal"> 364</span>
+<span class="normal"> 365</span>
+<span class="normal"> 366</span>
+<span class="normal"> 367</span>
+<span class="normal"> 368</span>
+<span class="normal"> 369</span>
+<span class="normal"> 370</span>
+<span class="normal"> 371</span>
+<span class="normal"> 372</span>
+<span class="normal"> 373</span>
+<span class="normal"> 374</span>
+<span class="normal"> 375</span>
+<span class="normal"> 376</span>
+<span class="normal"> 377</span>
+<span class="normal"> 378</span>
+<span class="normal"> 379</span>
+<span class="normal"> 380</span>
+<span class="normal"> 381</span>
+<span class="normal"> 382</span>
+<span class="normal"> 383</span>
+<span class="normal"> 384</span>
+<span class="normal"> 385</span>
+<span class="normal"> 386</span>
+<span class="normal"> 387</span>
+<span class="normal"> 388</span>
+<span class="normal"> 389</span>
+<span class="normal"> 390</span>
+<span class="normal"> 391</span>
+<span class="normal"> 392</span>
+<span class="normal"> 393</span>
+<span class="normal"> 394</span>
+<span class="normal"> 395</span>
+<span class="normal"> 396</span>
+<span class="normal"> 397</span>
+<span class="normal"> 398</span>
+<span class="normal"> 399</span>
+<span class="normal"> 400</span>
+<span class="normal"> 401</span>
+<span class="normal"> 402</span>
+<span class="normal"> 403</span>
+<span class="normal"> 404</span>
+<span class="normal"> 405</span>
+<span class="normal"> 406</span>
+<span class="normal"> 407</span>
+<span class="normal"> 408</span>
+<span class="normal"> 409</span>
+<span class="normal"> 410</span>
+<span class="normal"> 411</span>
+<span class="normal"> 412</span>
+<span class="normal"> 413</span>
+<span class="normal"> 414</span>
+<span class="normal"> 415</span>
+<span class="normal"> 416</span>
+<span class="normal"> 417</span>
+<span class="normal"> 418</span>
+<span class="normal"> 419</span>
+<span class="normal"> 420</span>
+<span class="normal"> 421</span>
+<span class="normal"> 422</span>
+<span class="normal"> 423</span>
+<span class="normal"> 424</span>
+<span class="normal"> 425</span>
+<span class="normal"> 426</span>
+<span class="normal"> 427</span>
+<span class="normal"> 428</span>
+<span class="normal"> 429</span>
+<span class="normal"> 430</span>
+<span class="normal"> 431</span>
+<span class="normal"> 432</span>
+<span class="normal"> 433</span>
+<span class="normal"> 434</span>
+<span class="normal"> 435</span>
+<span class="normal"> 436</span>
+<span class="normal"> 437</span>
+<span class="normal"> 438</span>
+<span class="normal"> 439</span>
+<span class="normal"> 440</span>
+<span class="normal"> 441</span>
+<span class="normal"> 442</span>
+<span class="normal"> 443</span>
+<span class="normal"> 444</span>
+<span class="normal"> 445</span>
+<span class="normal"> 446</span>
+<span class="normal"> 447</span>
+<span class="normal"> 448</span>
+<span class="normal"> 449</span>
+<span class="normal"> 450</span>
+<span class="normal"> 451</span>
+<span class="normal"> 452</span>
+<span class="normal"> 453</span>
+<span class="normal"> 454</span>
+<span class="normal"> 455</span>
+<span class="normal"> 456</span>
+<span class="normal"> 457</span>
+<span class="normal"> 458</span>
+<span class="normal"> 459</span>
+<span class="normal"> 460</span>
+<span class="normal"> 461</span>
+<span class="normal"> 462</span>
+<span class="normal"> 463</span>
+<span class="normal"> 464</span>
+<span class="normal"> 465</span>
+<span class="normal"> 466</span>
+<span class="normal"> 467</span>
+<span class="normal"> 468</span>
+<span class="normal"> 469</span>
+<span class="normal"> 470</span>
+<span class="normal"> 471</span>
+<span class="normal"> 472</span>
+<span class="normal"> 473</span>
+<span class="normal"> 474</span>
+<span class="normal"> 475</span>
+<span class="normal"> 476</span>
+<span class="normal"> 477</span>
+<span class="normal"> 478</span>
+<span class="normal"> 479</span>
+<span class="normal"> 480</span>
+<span class="normal"> 481</span>
+<span class="normal"> 482</span>
+<span class="normal"> 483</span>
+<span class="normal"> 484</span>
+<span class="normal"> 485</span>
+<span class="normal"> 486</span>
+<span class="normal"> 487</span>
+<span class="normal"> 488</span>
+<span class="normal"> 489</span>
+<span class="normal"> 490</span>
+<span class="normal"> 491</span>
+<span class="normal"> 492</span>
+<span class="normal"> 493</span>
+<span class="normal"> 494</span>
+<span class="normal"> 495</span>
+<span class="normal"> 496</span>
+<span class="normal"> 497</span>
+<span class="normal"> 498</span>
+<span class="normal"> 499</span>
+<span class="normal"> 500</span>
+<span class="normal"> 501</span>
+<span class="normal"> 502</span>
+<span class="normal"> 503</span>
+<span class="normal"> 504</span>
+<span class="normal"> 505</span>
+<span class="normal"> 506</span>
+<span class="normal"> 507</span>
+<span class="normal"> 508</span>
+<span class="normal"> 509</span>
+<span class="normal"> 510</span>
+<span class="normal"> 511</span>
+<span class="normal"> 512</span>
+<span class="normal"> 513</span>
+<span class="normal"> 514</span>
+<span class="normal"> 515</span>
+<span class="normal"> 516</span>
+<span class="normal"> 517</span>
+<span class="normal"> 518</span>
+<span class="normal"> 519</span>
+<span class="normal"> 520</span>
+<span class="normal"> 521</span>
+<span class="normal"> 522</span>
+<span class="normal"> 523</span>
+<span class="normal"> 524</span>
+<span class="normal"> 525</span>
+<span class="normal"> 526</span>
+<span class="normal"> 527</span>
+<span class="normal"> 528</span>
+<span class="normal"> 529</span>
+<span class="normal"> 530</span>
+<span class="normal"> 531</span>
+<span class="normal"> 532</span>
+<span class="normal"> 533</span>
+<span class="normal"> 534</span>
+<span class="normal"> 535</span>
+<span class="normal"> 536</span>
+<span class="normal"> 537</span>
+<span class="normal"> 538</span>
+<span class="normal"> 539</span>
+<span class="normal"> 540</span>
+<span class="normal"> 541</span>
+<span class="normal"> 542</span>
+<span class="normal"> 543</span>
+<span class="normal"> 544</span>
+<span class="normal"> 545</span>
+<span class="normal"> 546</span>
+<span class="normal"> 547</span>
+<span class="normal"> 548</span>
+<span class="normal"> 549</span>
+<span class="normal"> 550</span>
+<span class="normal"> 551</span>
+<span class="normal"> 552</span>
+<span class="normal"> 553</span>
+<span class="normal"> 554</span>
+<span class="normal"> 555</span>
+<span class="normal"> 556</span>
+<span class="normal"> 557</span>
+<span class="normal"> 558</span>
+<span class="normal"> 559</span>
+<span class="normal"> 560</span>
+<span class="normal"> 561</span>
+<span class="normal"> 562</span>
+<span class="normal"> 563</span>
+<span class="normal"> 564</span>
+<span class="normal"> 565</span>
+<span class="normal"> 566</span>
+<span class="normal"> 567</span>
+<span class="normal"> 568</span>
+<span class="normal"> 569</span>
+<span class="normal"> 570</span>
+<span class="normal"> 571</span>
+<span class="normal"> 572</span>
+<span class="normal"> 573</span>
+<span class="normal"> 574</span>
+<span class="normal"> 575</span>
+<span class="normal"> 576</span>
+<span class="normal"> 577</span>
+<span class="normal"> 578</span>
+<span class="normal"> 579</span>
+<span class="normal"> 580</span>
+<span class="normal"> 581</span>
+<span class="normal"> 582</span>
+<span class="normal"> 583</span>
+<span class="normal"> 584</span>
+<span class="normal"> 585</span>
+<span class="normal"> 586</span>
+<span class="normal"> 587</span>
+<span class="normal"> 588</span>
+<span class="normal"> 589</span>
+<span class="normal"> 590</span>
+<span class="normal"> 591</span>
+<span class="normal"> 592</span>
+<span class="normal"> 593</span>
+<span class="normal"> 594</span>
+<span class="normal"> 595</span>
+<span class="normal"> 596</span>
+<span class="normal"> 597</span>
+<span class="normal"> 598</span>
+<span class="normal"> 599</span>
+<span class="normal"> 600</span>
+<span class="normal"> 601</span>
+<span class="normal"> 602</span>
+<span class="normal"> 603</span>
+<span class="normal"> 604</span>
+<span class="normal"> 605</span>
+<span class="normal"> 606</span>
+<span class="normal"> 607</span>
+<span class="normal"> 608</span>
+<span class="normal"> 609</span>
+<span class="normal"> 610</span>
+<span class="normal"> 611</span>
+<span class="normal"> 612</span>
+<span class="normal"> 613</span>
+<span class="normal"> 614</span>
+<span class="normal"> 615</span>
+<span class="normal"> 616</span>
+<span class="normal"> 617</span>
+<span class="normal"> 618</span>
+<span class="normal"> 619</span>
+<span class="normal"> 620</span>
+<span class="normal"> 621</span>
+<span class="normal"> 622</span>
+<span class="normal"> 623</span>
+<span class="normal"> 624</span>
+<span class="normal"> 625</span>
+<span class="normal"> 626</span>
+<span class="normal"> 627</span>
+<span class="normal"> 628</span>
+<span class="normal"> 629</span>
+<span class="normal"> 630</span>
+<span class="normal"> 631</span>
+<span class="normal"> 632</span>
+<span class="normal"> 633</span>
+<span class="normal"> 634</span>
+<span class="normal"> 635</span>
+<span class="normal"> 636</span>
+<span class="normal"> 637</span>
+<span class="normal"> 638</span>
+<span class="normal"> 639</span>
+<span class="normal"> 640</span>
+<span class="normal"> 641</span>
+<span class="normal"> 642</span>
+<span class="normal"> 643</span>
+<span class="normal"> 644</span>
+<span class="normal"> 645</span>
+<span class="normal"> 646</span>
+<span class="normal"> 647</span>
+<span class="normal"> 648</span>
+<span class="normal"> 649</span>
+<span class="normal"> 650</span>
+<span class="normal"> 651</span>
+<span class="normal"> 652</span>
+<span class="normal"> 653</span>
+<span class="normal"> 654</span>
+<span class="normal"> 655</span>
+<span class="normal"> 656</span>
+<span class="normal"> 657</span>
+<span class="normal"> 658</span>
+<span class="normal"> 659</span>
+<span class="normal"> 660</span>
+<span class="normal"> 661</span>
+<span class="normal"> 662</span>
+<span class="normal"> 663</span>
+<span class="normal"> 664</span>
+<span class="normal"> 665</span>
+<span class="normal"> 666</span>
+<span class="normal"> 667</span>
+<span class="normal"> 668</span>
+<span class="normal"> 669</span>
+<span class="normal"> 670</span>
+<span class="normal"> 671</span>
+<span class="normal"> 672</span>
+<span class="normal"> 673</span>
+<span class="normal"> 674</span>
+<span class="normal"> 675</span>
+<span class="normal"> 676</span>
+<span class="normal"> 677</span>
+<span class="normal"> 678</span>
+<span class="normal"> 679</span>
+<span class="normal"> 680</span>
+<span class="normal"> 681</span>
+<span class="normal"> 682</span>
+<span class="normal"> 683</span>
+<span class="normal"> 684</span>
+<span class="normal"> 685</span>
+<span class="normal"> 686</span>
+<span class="normal"> 687</span>
+<span class="normal"> 688</span>
+<span class="normal"> 689</span>
+<span class="normal"> 690</span>
+<span class="normal"> 691</span>
+<span class="normal"> 692</span>
+<span class="normal"> 693</span>
+<span class="normal"> 694</span>
+<span class="normal"> 695</span>
+<span class="normal"> 696</span>
+<span class="normal"> 697</span>
+<span class="normal"> 698</span>
+<span class="normal"> 699</span>
+<span class="normal"> 700</span>
+<span class="normal"> 701</span>
+<span class="normal"> 702</span>
+<span class="normal"> 703</span>
+<span class="normal"> 704</span>
+<span class="normal"> 705</span>
+<span class="normal"> 706</span>
+<span class="normal"> 707</span>
+<span class="normal"> 708</span>
+<span class="normal"> 709</span>
+<span class="normal"> 710</span>
+<span class="normal"> 711</span>
+<span class="normal"> 712</span>
+<span class="normal"> 713</span>
+<span class="normal"> 714</span>
+<span class="normal"> 715</span>
+<span class="normal"> 716</span>
+<span class="normal"> 717</span>
+<span class="normal"> 718</span>
+<span class="normal"> 719</span>
+<span class="normal"> 720</span>
+<span class="normal"> 721</span>
+<span class="normal"> 722</span>
+<span class="normal"> 723</span>
+<span class="normal"> 724</span>
+<span class="normal"> 725</span>
+<span class="normal"> 726</span>
+<span class="normal"> 727</span>
+<span class="normal"> 728</span>
+<span class="normal"> 729</span>
+<span class="normal"> 730</span>
+<span class="normal"> 731</span>
+<span class="normal"> 732</span>
+<span class="normal"> 733</span>
+<span class="normal"> 734</span>
+<span class="normal"> 735</span>
+<span class="normal"> 736</span>
+<span class="normal"> 737</span>
+<span class="normal"> 738</span>
+<span class="normal"> 739</span>
+<span class="normal"> 740</span>
+<span class="normal"> 741</span>
+<span class="normal"> 742</span>
+<span class="normal"> 743</span>
+<span class="normal"> 744</span>
+<span class="normal"> 745</span>
+<span class="normal"> 746</span>
+<span class="normal"> 747</span>
+<span class="normal"> 748</span>
+<span class="normal"> 749</span>
+<span class="normal"> 750</span>
+<span class="normal"> 751</span>
+<span class="normal"> 752</span>
+<span class="normal"> 753</span>
+<span class="normal"> 754</span>
+<span class="normal"> 755</span>
+<span class="normal"> 756</span>
+<span class="normal"> 757</span>
+<span class="normal"> 758</span>
+<span class="normal"> 759</span>
+<span class="normal"> 760</span>
+<span class="normal"> 761</span>
+<span class="normal"> 762</span>
+<span class="normal"> 763</span>
+<span class="normal"> 764</span>
+<span class="normal"> 765</span>
+<span class="normal"> 766</span>
+<span class="normal"> 767</span>
+<span class="normal"> 768</span>
+<span class="normal"> 769</span>
+<span class="normal"> 770</span>
+<span class="normal"> 771</span>
+<span class="normal"> 772</span>
+<span class="normal"> 773</span>
+<span class="normal"> 774</span>
+<span class="normal"> 775</span>
+<span class="normal"> 776</span>
+<span class="normal"> 777</span>
+<span class="normal"> 778</span>
+<span class="normal"> 779</span>
+<span class="normal"> 780</span>
+<span class="normal"> 781</span>
+<span class="normal"> 782</span>
+<span class="normal"> 783</span>
+<span class="normal"> 784</span>
+<span class="normal"> 785</span>
+<span class="normal"> 786</span>
+<span class="normal"> 787</span>
+<span class="normal"> 788</span>
+<span class="normal"> 789</span>
+<span class="normal"> 790</span>
+<span class="normal"> 791</span>
+<span class="normal"> 792</span>
+<span class="normal"> 793</span>
+<span class="normal"> 794</span>
+<span class="normal"> 795</span>
+<span class="normal"> 796</span>
+<span class="normal"> 797</span>
+<span class="normal"> 798</span>
+<span class="normal"> 799</span>
+<span class="normal"> 800</span>
+<span class="normal"> 801</span>
+<span class="normal"> 802</span>
+<span class="normal"> 803</span>
+<span class="normal"> 804</span>
+<span class="normal"> 805</span>
+<span class="normal"> 806</span>
+<span class="normal"> 807</span>
+<span class="normal"> 808</span>
+<span class="normal"> 809</span>
+<span class="normal"> 810</span>
+<span class="normal"> 811</span>
+<span class="normal"> 812</span>
+<span class="normal"> 813</span>
+<span class="normal"> 814</span>
+<span class="normal"> 815</span>
+<span class="normal"> 816</span>
+<span class="normal"> 817</span>
+<span class="normal"> 818</span>
+<span class="normal"> 819</span>
+<span class="normal"> 820</span>
+<span class="normal"> 821</span>
+<span class="normal"> 822</span>
+<span class="normal"> 823</span>
+<span class="normal"> 824</span>
+<span class="normal"> 825</span>
+<span class="normal"> 826</span>
+<span class="normal"> 827</span>
+<span class="normal"> 828</span>
+<span class="normal"> 829</span>
+<span class="normal"> 830</span>
+<span class="normal"> 831</span>
+<span class="normal"> 832</span>
+<span class="normal"> 833</span>
+<span class="normal"> 834</span>
+<span class="normal"> 835</span>
+<span class="normal"> 836</span>
+<span class="normal"> 837</span>
+<span class="normal"> 838</span>
+<span class="normal"> 839</span>
+<span class="normal"> 840</span>
+<span class="normal"> 841</span>
+<span class="normal"> 842</span>
+<span class="normal"> 843</span>
+<span class="normal"> 844</span>
+<span class="normal"> 845</span>
+<span class="normal"> 846</span>
+<span class="normal"> 847</span>
+<span class="normal"> 848</span>
+<span class="normal"> 849</span>
+<span class="normal"> 850</span>
+<span class="normal"> 851</span>
+<span class="normal"> 852</span>
+<span class="normal"> 853</span>
+<span class="normal"> 854</span>
+<span class="normal"> 855</span>
+<span class="normal"> 856</span>
+<span class="normal"> 857</span>
+<span class="normal"> 858</span>
+<span class="normal"> 859</span>
+<span class="normal"> 860</span>
+<span class="normal"> 861</span>
+<span class="normal"> 862</span>
+<span class="normal"> 863</span>
+<span class="normal"> 864</span>
+<span class="normal"> 865</span>
+<span class="normal"> 866</span>
+<span class="normal"> 867</span>
+<span class="normal"> 868</span>
+<span class="normal"> 869</span>
+<span class="normal"> 870</span>
+<span class="normal"> 871</span>
+<span class="normal"> 872</span>
+<span class="normal"> 873</span>
+<span class="normal"> 874</span>
+<span class="normal"> 875</span>
+<span class="normal"> 876</span>
+<span class="normal"> 877</span>
+<span class="normal"> 878</span>
+<span class="normal"> 879</span>
+<span class="normal"> 880</span>
+<span class="normal"> 881</span>
+<span class="normal"> 882</span>
+<span class="normal"> 883</span>
+<span class="normal"> 884</span>
+<span class="normal"> 885</span>
+<span class="normal"> 886</span>
+<span class="normal"> 887</span>
+<span class="normal"> 888</span>
+<span class="normal"> 889</span>
+<span class="normal"> 890</span>
+<span class="normal"> 891</span>
+<span class="normal"> 892</span>
+<span class="normal"> 893</span>
+<span class="normal"> 894</span>
+<span class="normal"> 895</span>
+<span class="normal"> 896</span>
+<span class="normal"> 897</span>
+<span class="normal"> 898</span>
+<span class="normal"> 899</span>
+<span class="normal"> 900</span>
+<span class="normal"> 901</span>
+<span class="normal"> 902</span>
+<span class="normal"> 903</span>
+<span class="normal"> 904</span>
+<span class="normal"> 905</span>
+<span class="normal"> 906</span>
+<span class="normal"> 907</span>
+<span class="normal"> 908</span>
+<span class="normal"> 909</span>
+<span class="normal"> 910</span>
+<span class="normal"> 911</span>
+<span class="normal"> 912</span>
+<span class="normal"> 913</span>
+<span class="normal"> 914</span>
+<span class="normal"> 915</span>
+<span class="normal"> 916</span>
+<span class="normal"> 917</span>
+<span class="normal"> 918</span>
+<span class="normal"> 919</span>
+<span class="normal"> 920</span>
+<span class="normal"> 921</span>
+<span class="normal"> 922</span>
+<span class="normal"> 923</span>
+<span class="normal"> 924</span>
+<span class="normal"> 925</span>
+<span class="normal"> 926</span>
+<span class="normal"> 927</span>
+<span class="normal"> 928</span>
+<span class="normal"> 929</span>
+<span class="normal"> 930</span>
+<span class="normal"> 931</span>
+<span class="normal"> 932</span>
+<span class="normal"> 933</span>
+<span class="normal"> 934</span>
+<span class="normal"> 935</span>
+<span class="normal"> 936</span>
+<span class="normal"> 937</span>
+<span class="normal"> 938</span>
+<span class="normal"> 939</span>
+<span class="normal"> 940</span>
+<span class="normal"> 941</span>
+<span class="normal"> 942</span>
+<span class="normal"> 943</span>
+<span class="normal"> 944</span>
+<span class="normal"> 945</span>
+<span class="normal"> 946</span>
+<span class="normal"> 947</span>
+<span class="normal"> 948</span>
+<span class="normal"> 949</span>
+<span class="normal"> 950</span>
+<span class="normal"> 951</span>
+<span class="normal"> 952</span>
+<span class="normal"> 953</span>
+<span class="normal"> 954</span>
+<span class="normal"> 955</span>
+<span class="normal"> 956</span>
+<span class="normal"> 957</span>
+<span class="normal"> 958</span>
+<span class="normal"> 959</span>
+<span class="normal"> 960</span>
+<span class="normal"> 961</span>
+<span class="normal"> 962</span>
+<span class="normal"> 963</span>
+<span class="normal"> 964</span>
+<span class="normal"> 965</span>
+<span class="normal"> 966</span>
+<span class="normal"> 967</span>
+<span class="normal"> 968</span>
+<span class="normal"> 969</span>
+<span class="normal"> 970</span>
+<span class="normal"> 971</span>
+<span class="normal"> 972</span>
+<span class="normal"> 973</span>
+<span class="normal"> 974</span>
+<span class="normal"> 975</span>
+<span class="normal"> 976</span>
+<span class="normal"> 977</span>
+<span class="normal"> 978</span>
+<span class="normal"> 979</span>
+<span class="normal"> 980</span>
+<span class="normal"> 981</span>
+<span class="normal"> 982</span>
+<span class="normal"> 983</span>
+<span class="normal"> 984</span>
+<span class="normal"> 985</span>
+<span class="normal"> 986</span>
+<span class="normal"> 987</span>
+<span class="normal"> 988</span>
+<span class="normal"> 989</span>
+<span class="normal"> 990</span>
+<span class="normal"> 991</span>
+<span class="normal"> 992</span>
+<span class="normal"> 993</span>
+<span class="normal"> 994</span>
+<span class="normal"> 995</span>
+<span class="normal"> 996</span>
+<span class="normal"> 997</span>
+<span class="normal"> 998</span>
+<span class="normal"> 999</span>
+<span class="normal">1000</span>
+<span class="normal">1001</span>
+<span class="normal">1002</span>
+<span class="normal">1003</span>
+<span class="normal">1004</span>
+<span class="normal">1005</span>
+<span class="normal">1006</span>
+<span class="normal">1007</span>
+<span class="normal">1008</span>
+<span class="normal">1009</span>
+<span class="normal">1010</span>
+<span class="normal">1011</span>
+<span class="normal">1012</span>
+<span class="normal">1013</span>
+<span class="normal">1014</span>
+<span class="normal">1015</span>
+<span class="normal">1016</span>
+<span class="normal">1017</span>
+<span class="normal">1018</span>
+<span class="normal">1019</span>
+<span class="normal">1020</span>
+<span class="normal">1021</span>
+<span class="normal">1022</span>
+<span class="normal">1023</span>
+<span class="normal">1024</span>
+<span class="normal">1025</span>
+<span class="normal">1026</span>
+<span class="normal">1027</span>
+<span class="normal">1028</span>
+<span class="normal">1029</span>
+<span class="normal">1030</span>
+<span class="normal">1031</span>
+<span class="normal">1032</span>
+<span class="normal">1033</span>
+<span class="normal">1034</span>
+<span class="normal">1035</span>
+<span class="normal">1036</span>
+<span class="normal">1037</span>
+<span class="normal">1038</span>
+<span class="normal">1039</span>
+<span class="normal">1040</span>
+<span class="normal">1041</span>
+<span class="normal">1042</span>
+<span class="normal">1043</span>
+<span class="normal">1044</span>
+<span class="normal">1045</span>
+<span class="normal">1046</span>
+<span class="normal">1047</span>
+<span class="normal">1048</span>
+<span class="normal">1049</span>
+<span class="normal">1050</span>
+<span class="normal">1051</span>
+<span class="normal">1052</span>
+<span class="normal">1053</span>
+<span class="normal">1054</span>
+<span class="normal">1055</span>
+<span class="normal">1056</span>
+<span class="normal">1057</span>
+<span class="normal">1058</span>
+<span class="normal">1059</span>
+<span class="normal">1060</span>
+<span class="normal">1061</span>
+<span class="normal">1062</span>
+<span class="normal">1063</span>
+<span class="normal">1064</span>
+<span class="normal">1065</span>
+<span class="normal">1066</span>
+<span class="normal">1067</span>
+<span class="normal">1068</span>
+<span class="normal">1069</span>
+<span class="normal">1070</span>
+<span class="normal">1071</span>
+<span class="normal">1072</span>
+<span class="normal">1073</span>
+<span class="normal">1074</span>
+<span class="normal">1075</span>
+<span class="normal">1076</span>
+<span class="normal">1077</span>
+<span class="normal">1078</span>
+<span class="normal">1079</span>
+<span class="normal">1080</span>
+<span class="normal">1081</span>
+<span class="normal">1082</span>
+<span class="normal">1083</span>
+<span class="normal">1084</span>
+<span class="normal">1085</span>
+<span class="normal">1086</span>
+<span class="normal">1087</span>
+<span class="normal">1088</span>
+<span class="normal">1089</span>
+<span class="normal">1090</span>
+<span class="normal">1091</span>
+<span class="normal">1092</span>
+<span class="normal">1093</span>
+<span class="normal">1094</span>
+<span class="normal">1095</span>
+<span class="normal">1096</span>
+<span class="normal">1097</span>
+<span class="normal">1098</span>
+<span class="normal">1099</span>
+<span class="normal">1100</span>
+<span class="normal">1101</span>
+<span class="normal">1102</span>
+<span class="normal">1103</span>
+<span class="normal">1104</span>
+<span class="normal">1105</span>
+<span class="normal">1106</span>
+<span class="normal">1107</span>
+<span class="normal">1108</span>
+<span class="normal">1109</span>
+<span class="normal">1110</span>
+<span class="normal">1111</span>
+<span class="normal">1112</span>
+<span class="normal">1113</span>
+<span class="normal">1114</span>
+<span class="normal">1115</span>
+<span class="normal">1116</span>
+<span class="normal">1117</span>
+<span class="normal">1118</span>
+<span class="normal">1119</span>
+<span class="normal">1120</span>
+<span class="normal">1121</span>
+<span class="normal">1122</span>
+<span class="normal">1123</span>
+<span class="normal">1124</span>
+<span class="normal">1125</span>
+<span class="normal">1126</span>
+<span class="normal">1127</span>
+<span class="normal">1128</span>
+<span class="normal">1129</span>
+<span class="normal">1130</span>
+<span class="normal">1131</span>
+<span class="normal">1132</span>
+<span class="normal">1133</span>
+<span class="normal">1134</span>
+<span class="normal">1135</span>
+<span class="normal">1136</span>
+<span class="normal">1137</span>
+<span class="normal">1138</span>
+<span class="normal">1139</span>
+<span class="normal">1140</span>
+<span class="normal">1141</span>
+<span class="normal">1142</span>
+<span class="normal">1143</span>
+<span class="normal">1144</span>
+<span class="normal">1145</span>
+<span class="normal">1146</span>
+<span class="normal">1147</span>
+<span class="normal">1148</span>
+<span class="normal">1149</span>
+<span class="normal">1150</span>
+<span class="normal">1151</span>
+<span class="normal">1152</span>
+<span class="normal">1153</span>
+<span class="normal">1154</span>
+<span class="normal">1155</span>
+<span class="normal">1156</span>
+<span class="normal">1157</span>
+<span class="normal">1158</span>
+<span class="normal">1159</span>
+<span class="normal">1160</span>
+<span class="normal">1161</span>
+<span class="normal">1162</span>
+<span class="normal">1163</span>
+<span class="normal">1164</span>
+<span class="normal">1165</span>
+<span class="normal">1166</span>
+<span class="normal">1167</span>
+<span class="normal">1168</span>
+<span class="normal">1169</span>
+<span class="normal">1170</span>
+<span class="normal">1171</span>
+<span class="normal">1172</span>
+<span class="normal">1173</span>
+<span class="normal">1174</span>
+<span class="normal">1175</span>
+<span class="normal">1176</span>
+<span class="normal">1177</span>
+<span class="normal">1178</span>
+<span class="normal">1179</span>
+<span class="normal">1180</span>
+<span class="normal">1181</span>
+<span class="normal">1182</span>
+<span class="normal">1183</span>
+<span class="normal">1184</span>
+<span class="normal">1185</span>
+<span class="normal">1186</span>
+<span class="normal">1187</span>
+<span class="normal">1188</span>
+<span class="normal">1189</span>
+<span class="normal">1190</span>
+<span class="normal">1191</span>
+<span class="normal">1192</span>
+<span class="normal">1193</span>
+<span class="normal">1194</span>
+<span class="normal">1195</span>
+<span class="normal">1196</span>
+<span class="normal">1197</span>
+<span class="normal">1198</span>
+<span class="normal">1199</span>
+<span class="normal">1200</span>
+<span class="normal">1201</span>
+<span class="normal">1202</span>
+<span class="normal">1203</span>
+<span class="normal">1204</span>
+<span class="normal">1205</span>
+<span class="normal">1206</span>
+<span class="normal">1207</span>
+<span class="normal">1208</span>
+<span class="normal">1209</span>
+<span class="normal">1210</span>
+<span class="normal">1211</span>
+<span class="normal">1212</span>
+<span class="normal">1213</span>
+<span class="normal">1214</span>
+<span class="normal">1215</span>
+<span class="normal">1216</span>
+<span class="normal">1217</span>
+<span class="normal">1218</span>
+<span class="normal">1219</span>
+<span class="normal">1220</span>
+<span class="normal">1221</span>
+<span class="normal">1222</span>
+<span class="normal">1223</span>
+<span class="normal">1224</span>
+<span class="normal">1225</span>
+<span class="normal">1226</span>
+<span class="normal">1227</span>
+<span class="normal">1228</span>
+<span class="normal">1229</span>
+<span class="normal">1230</span>
+<span class="normal">1231</span>
+<span class="normal">1232</span>
+<span class="normal">1233</span>
+<span class="normal">1234</span>
+<span class="normal">1235</span>
+<span class="normal">1236</span>
+<span class="normal">1237</span>
+<span class="normal">1238</span>
+<span class="normal">1239</span>
+<span class="normal">1240</span>
+<span class="normal">1241</span>
+<span class="normal">1242</span>
+<span class="normal">1243</span>
+<span class="normal">1244</span>
+<span class="normal">1245</span>
+<span class="normal">1246</span>
+<span class="normal">1247</span>
+<span class="normal">1248</span>
+<span class="normal">1249</span>
+<span class="normal">1250</span>
+<span class="normal">1251</span>
+<span class="normal">1252</span>
+<span class="normal">1253</span>
+<span class="normal">1254</span>
+<span class="normal">1255</span>
+<span class="normal">1256</span>
+<span class="normal">1257</span>
+<span class="normal">1258</span>
+<span class="normal">1259</span>
+<span class="normal">1260</span>
+<span class="normal">1261</span>
+<span class="normal">1262</span>
+<span class="normal">1263</span>
+<span class="normal">1264</span>
+<span class="normal">1265</span>
+<span class="normal">1266</span>
+<span class="normal">1267</span>
+<span class="normal">1268</span>
+<span class="normal">1269</span>
+<span class="normal">1270</span>
+<span class="normal">1271</span>
+<span class="normal">1272</span>
+<span class="normal">1273</span>
+<span class="normal">1274</span>
+<span class="normal">1275</span>
+<span class="normal">1276</span>
+<span class="normal">1277</span>
+<span class="normal">1278</span>
+<span class="normal">1279</span>
+<span class="normal">1280</span>
+<span class="normal">1281</span>
+<span class="normal">1282</span>
+<span class="normal">1283</span>
+<span class="normal">1284</span>
+<span class="normal">1285</span>
+<span class="normal">1286</span>
+<span class="normal">1287</span>
+<span class="normal">1288</span>
+<span class="normal">1289</span>
+<span class="normal">1290</span>
+<span class="normal">1291</span>
+<span class="normal">1292</span>
+<span class="normal">1293</span>
+<span class="normal">1294</span>
+<span class="normal">1295</span>
+<span class="normal">1296</span>
+<span class="normal">1297</span>
+<span class="normal">1298</span>
+<span class="normal">1299</span>
+<span class="normal">1300</span>
+<span class="normal">1301</span>
+<span class="normal">1302</span>
+<span class="normal">1303</span>
+<span class="normal">1304</span>
+<span class="normal">1305</span>
+<span class="normal">1306</span>
+<span class="normal">1307</span>
+<span class="normal">1308</span>
+<span class="normal">1309</span>
+<span class="normal">1310</span>
+<span class="normal">1311</span>
+<span class="normal">1312</span>
+<span class="normal">1313</span>
+<span class="normal">1314</span>
+<span class="normal">1315</span>
+<span class="normal">1316</span>
+<span class="normal">1317</span>
+<span class="normal">1318</span>
+<span class="normal">1319</span>
+<span class="normal">1320</span>
+<span class="normal">1321</span>
+<span class="normal">1322</span>
+<span class="normal">1323</span>
+<span class="normal">1324</span>
+<span class="normal">1325</span>
+<span class="normal">1326</span>
+<span class="normal">1327</span>
+<span class="normal">1328</span>
+<span class="normal">1329</span>
+<span class="normal">1330</span>
+<span class="normal">1331</span>
+<span class="normal">1332</span>
+<span class="normal">1333</span>
+<span class="normal">1334</span>
+<span class="normal">1335</span>
+<span class="normal">1336</span>
+<span class="normal">1337</span>
+<span class="normal">1338</span>
+<span class="normal">1339</span>
+<span class="normal">1340</span>
+<span class="normal">1341</span>
+<span class="normal">1342</span>
+<span class="normal">1343</span>
+<span class="normal">1344</span>
+<span class="normal">1345</span>
+<span class="normal">1346</span>
+<span class="normal">1347</span>
+<span class="normal">1348</span>
+<span class="normal">1349</span>
+<span class="normal">1350</span>
+<span class="normal">1351</span>
+<span class="normal">1352</span>
+<span class="normal">1353</span>
+<span class="normal">1354</span>
+<span class="normal">1355</span>
+<span class="normal">1356</span>
+<span class="normal">1357</span>
+<span class="normal">1358</span>
+<span class="normal">1359</span>
+<span class="normal">1360</span>
+<span class="normal">1361</span>
+<span class="normal">1362</span>
+<span class="normal">1363</span>
+<span class="normal">1364</span>
+<span class="normal">1365</span>
+<span class="normal">1366</span>
+<span class="normal">1367</span>
+<span class="normal">1368</span>
+<span class="normal">1369</span>
+<span class="normal">1370</span>
+<span class="normal">1371</span>
+<span class="normal">1372</span>
+<span class="normal">1373</span>
+<span class="normal">1374</span>
+<span class="normal">1375</span>
+<span class="normal">1376</span>
+<span class="normal">1377</span>
+<span class="normal">1378</span>
+<span class="normal">1379</span>
+<span class="normal">1380</span>
+<span class="normal">1381</span>
+<span class="normal">1382</span>
+<span class="normal">1383</span>
+<span class="normal">1384</span>
+<span class="normal">1385</span>
+<span class="normal">1386</span>
+<span class="normal">1387</span>
+<span class="normal">1388</span>
+<span class="normal">1389</span>
+<span class="normal">1390</span>
+<span class="normal">1391</span>
+<span class="normal">1392</span>
+<span class="normal">1393</span>
+<span class="normal">1394</span>
+<span class="normal">1395</span>
+<span class="normal">1396</span>
+<span class="normal">1397</span>
+<span class="normal">1398</span>
+<span class="normal">1399</span>
+<span class="normal">1400</span>
+<span class="normal">1401</span>
+<span class="normal">1402</span>
+<span class="normal">1403</span>
+<span class="normal">1404</span>
+<span class="normal">1405</span>
+<span class="normal">1406</span>
+<span class="normal">1407</span>
+<span class="normal">1408</span>
+<span class="normal">1409</span>
+<span class="normal">1410</span>
+<span class="normal">1411</span>
+<span class="normal">1412</span>
+<span class="normal">1413</span>
+<span class="normal">1414</span>
+<span class="normal">1415</span>
+<span class="normal">1416</span>
+<span class="normal">1417</span>
+<span class="normal">1418</span>
+<span class="normal">1419</span>
+<span class="normal">1420</span>
+<span class="normal">1421</span>
+<span class="normal">1422</span>
+<span class="normal">1423</span>
+<span class="normal">1424</span>
+<span class="normal">1425</span>
+<span class="normal">1426</span>
+<span class="normal">1427</span>
+<span class="normal">1428</span>
+<span class="normal">1429</span>
+<span class="normal">1430</span>
+<span class="normal">1431</span>
+<span class="normal">1432</span>
+<span class="normal">1433</span>
+<span class="normal">1434</span>
+<span class="normal">1435</span>
+<span class="normal">1436</span>
+<span class="normal">1437</span>
+<span class="normal">1438</span>
+<span class="normal">1439</span>
+<span class="normal">1440</span>
+<span class="normal">1441</span>
+<span class="normal">1442</span>
+<span class="normal">1443</span>
+<span class="normal">1444</span>
+<span class="normal">1445</span>
+<span class="normal">1446</span>
+<span class="normal">1447</span>
+<span class="normal">1448</span>
+<span class="normal">1449</span>
+<span class="normal">1450</span>
+<span class="normal">1451</span>
+<span class="normal">1452</span>
+<span class="normal">1453</span>
+<span class="normal">1454</span>
+<span class="normal">1455</span>
+<span class="normal">1456</span>
+<span class="normal">1457</span>
+<span class="normal">1458</span>
+<span class="normal">1459</span>
+<span class="normal">1460</span>
+<span class="normal">1461</span>
+<span class="normal">1462</span>
+<span class="normal">1463</span>
+<span class="normal">1464</span>
+<span class="normal">1465</span>
+<span class="normal">1466</span>
+<span class="normal">1467</span>
+<span class="normal">1468</span>
+<span class="normal">1469</span>
+<span class="normal">1470</span>
+<span class="normal">1471</span>
+<span class="normal">1472</span>
+<span class="normal">1473</span>
+<span class="normal">1474</span>
+<span class="normal">1475</span>
+<span class="normal">1476</span>
+<span class="normal">1477</span>
+<span class="normal">1478</span>
+<span class="normal">1479</span>
+<span class="normal">1480</span>
+<span class="normal">1481</span>
+<span class="normal">1482</span>
+<span class="normal">1483</span>
+<span class="normal">1484</span>
+<span class="normal">1485</span>
+<span class="normal">1486</span>
+<span class="normal">1487</span>
+<span class="normal">1488</span>
+<span class="normal">1489</span>
+<span class="normal">1490</span>
+<span class="normal">1491</span>
+<span class="normal">1492</span>
+<span class="normal">1493</span>
+<span class="normal">1494</span>
+<span class="normal">1495</span>
+<span class="normal">1496</span>
+<span class="normal">1497</span>
+<span class="normal">1498</span>
+<span class="normal">1499</span>
+<span class="normal">1500</span>
+<span class="normal">1501</span>
+<span class="normal">1502</span>
+<span class="normal">1503</span>
+<span class="normal">1504</span>
+<span class="normal">1505</span>
+<span class="normal">1506</span>
+<span class="normal">1507</span>
+<span class="normal">1508</span>
+<span class="normal">1509</span>
+<span class="normal">1510</span>
+<span class="normal">1511</span>
+<span class="normal">1512</span>
+<span class="normal">1513</span>
+<span class="normal">1514</span>
+<span class="normal">1515</span>
+<span class="normal">1516</span>
+<span class="normal">1517</span>
+<span class="normal">1518</span>
+<span class="normal">1519</span>
+<span class="normal">1520</span>
+<span class="normal">1521</span>
+<span class="normal">1522</span>
+<span class="normal">1523</span>
+<span class="normal">1524</span>
+<span class="normal">1525</span>
+<span class="normal">1526</span>
+<span class="normal">1527</span>
+<span class="normal">1528</span>
+<span class="normal">1529</span>
+<span class="normal">1530</span>
+<span class="normal">1531</span>
+<span class="normal">1532</span>
+<span class="normal">1533</span>
+<span class="normal">1534</span>
+<span class="normal">1535</span>
+<span class="normal">1536</span>
+<span class="normal">1537</span>
+<span class="normal">1538</span>
+<span class="normal">1539</span>
+<span class="normal">1540</span>
+<span class="normal">1541</span>
+<span class="normal">1542</span>
+<span class="normal">1543</span>
+<span class="normal">1544</span>
+<span class="normal">1545</span>
+<span class="normal">1546</span>
+<span class="normal">1547</span>
+<span class="normal">1548</span>
+<span class="normal">1549</span>
+<span class="normal">1550</span>
+<span class="normal">1551</span>
+<span class="normal">1552</span>
+<span class="normal">1553</span>
+<span class="normal">1554</span>
+<span class="normal">1555</span>
+<span class="normal">1556</span>
+<span class="normal">1557</span>
+<span class="normal">1558</span>
+<span class="normal">1559</span>
+<span class="normal">1560</span>
+<span class="normal">1561</span>
+<span class="normal">1562</span>
+<span class="normal">1563</span>
+<span class="normal">1564</span>
+<span class="normal">1565</span>
+<span class="normal">1566</span>
+<span class="normal">1567</span>
+<span class="normal">1568</span>
+<span class="normal">1569</span>
+<span class="normal">1570</span>
+<span class="normal">1571</span>
+<span class="normal">1572</span>
+<span class="normal">1573</span>
+<span class="normal">1574</span>
+<span class="normal">1575</span>
+<span class="normal">1576</span>
+<span class="normal">1577</span>
+<span class="normal">1578</span>
+<span class="normal">1579</span>
+<span class="normal">1580</span>
+<span class="normal">1581</span>
+<span class="normal">1582</span>
+<span class="normal">1583</span>
+<span class="normal">1584</span>
+<span class="normal">1585</span>
+<span class="normal">1586</span>
+<span class="normal">1587</span>
+<span class="normal">1588</span>
+<span class="normal">1589</span>
+<span class="normal">1590</span>
+<span class="normal">1591</span>
+<span class="normal">1592</span>
+<span class="normal">1593</span>
+<span class="normal">1594</span>
+<span class="normal">1595</span>
+<span class="normal">1596</span>
+<span class="normal">1597</span>
+<span class="normal">1598</span>
+<span class="normal">1599</span>
+<span class="normal">1600</span>
+<span class="normal">1601</span>
+<span class="normal">1602</span>
+<span class="normal">1603</span>
+<span class="normal">1604</span>
+<span class="normal">1605</span>
+<span class="normal">1606</span>
+<span class="normal">1607</span>
+<span class="normal">1608</span>
+<span class="normal">1609</span>
+<span class="normal">1610</span>
+<span class="normal">1611</span>
+<span class="normal">1612</span>
+<span class="normal">1613</span>
+<span class="normal">1614</span>
+<span class="normal">1615</span>
+<span class="normal">1616</span>
+<span class="normal">1617</span>
+<span class="normal">1618</span>
+<span class="normal">1619</span>
+<span class="normal">1620</span>
+<span class="normal">1621</span>
+<span class="normal">1622</span>
+<span class="normal">1623</span>
+<span class="normal">1624</span>
+<span class="normal">1625</span>
+<span class="normal">1626</span>
+<span class="normal">1627</span>
+<span class="normal">1628</span>
+<span class="normal">1629</span>
+<span class="normal">1630</span>
+<span class="normal">1631</span>
+<span class="normal">1632</span>
+<span class="normal">1633</span>
+<span class="normal">1634</span>
+<span class="normal">1635</span>
+<span class="normal">1636</span>
+<span class="normal">1637</span>
+<span class="normal">1638</span>
+<span class="normal">1639</span>
+<span class="normal">1640</span>
+<span class="normal">1641</span>
+<span class="normal">1642</span>
+<span class="normal">1643</span>
+<span class="normal">1644</span>
+<span class="normal">1645</span>
+<span class="normal">1646</span>
+<span class="normal">1647</span>
+<span class="normal">1648</span>
+<span class="normal">1649</span>
+<span class="normal">1650</span>
+<span class="normal">1651</span>
+<span class="normal">1652</span>
+<span class="normal">1653</span>
+<span class="normal">1654</span>
+<span class="normal">1655</span>
+<span class="normal">1656</span>
+<span class="normal">1657</span>
+<span class="normal">1658</span>
+<span class="normal">1659</span>
+<span class="normal">1660</span>
+<span class="normal">1661</span>
+<span class="normal">1662</span>
+<span class="normal">1663</span>
+<span class="normal">1664</span>
+<span class="normal">1665</span>
+<span class="normal">1666</span>
+<span class="normal">1667</span>
+<span class="normal">1668</span>
+<span class="normal">1669</span>
+<span class="normal">1670</span>
+<span class="normal">1671</span>
+<span class="normal">1672</span>
+<span class="normal">1673</span>
+<span class="normal">1674</span>
+<span class="normal">1675</span>
+<span class="normal">1676</span>
+<span class="normal">1677</span>
+<span class="normal">1678</span>
+<span class="normal">1679</span>
+<span class="normal">1680</span>
+<span class="normal">1681</span>
+<span class="normal">1682</span>
+<span class="normal">1683</span>
+<span class="normal">1684</span>
+<span class="normal">1685</span>
+<span class="normal">1686</span>
+<span class="normal">1687</span>
+<span class="normal">1688</span>
+<span class="normal">1689</span>
+<span class="normal">1690</span>
+<span class="normal">1691</span>
+<span class="normal">1692</span>
+<span class="normal">1693</span>
+<span class="normal">1694</span>
+<span class="normal">1695</span>
+<span class="normal">1696</span>
+<span class="normal">1697</span>
+<span class="normal">1698</span>
+<span class="normal">1699</span>
+<span class="normal">1700</span>
+<span class="normal">1701</span>
+<span class="normal">1702</span>
+<span class="normal">1703</span>
+<span class="normal">1704</span>
+<span class="normal">1705</span>
+<span class="normal">1706</span>
+<span class="normal">1707</span>
+<span class="normal">1708</span>
+<span class="normal">1709</span>
+<span class="normal">1710</span>
+<span class="normal">1711</span>
+<span class="normal">1712</span>
+<span class="normal">1713</span>
+<span class="normal">1714</span>
+<span class="normal">1715</span>
+<span class="normal">1716</span>
+<span class="normal">1717</span>
+<span class="normal">1718</span>
+<span class="normal">1719</span>
+<span class="normal">1720</span>
+<span class="normal">1721</span>
+<span class="normal">1722</span>
+<span class="normal">1723</span>
+<span class="normal">1724</span>
+<span class="normal">1725</span>
+<span class="normal">1726</span>
+<span class="normal">1727</span>
+<span class="normal">1728</span>
+<span class="normal">1729</span>
+<span class="normal">1730</span>
+<span class="normal">1731</span>
+<span class="normal">1732</span>
+<span class="normal">1733</span>
+<span class="normal">1734</span>
+<span class="normal">1735</span>
+<span class="normal">1736</span>
+<span class="normal">1737</span>
+<span class="normal">1738</span>
+<span class="normal">1739</span>
+<span class="normal">1740</span>
+<span class="normal">1741</span>
+<span class="normal">1742</span>
+<span class="normal">1743</span>
+<span class="normal">1744</span>
+<span class="normal">1745</span>
+<span class="normal">1746</span>
+<span class="normal">1747</span>
+<span class="normal">1748</span>
+<span class="normal">1749</span>
+<span class="normal">1750</span>
+<span class="normal">1751</span>
+<span class="normal">1752</span>
+<span class="normal">1753</span>
+<span class="normal">1754</span>
+<span class="normal">1755</span>
+<span class="normal">1756</span>
+<span class="normal">1757</span>
+<span class="normal">1758</span>
+<span class="normal">1759</span>
+<span class="normal">1760</span>
+<span class="normal">1761</span>
+<span class="normal">1762</span>
+<span class="normal">1763</span>
+<span class="normal">1764</span>
+<span class="normal">1765</span>
+<span class="normal">1766</span>
+<span class="normal">1767</span>
+<span class="normal">1768</span>
+<span class="normal">1769</span>
+<span class="normal">1770</span>
+<span class="normal">1771</span>
+<span class="normal">1772</span>
+<span class="normal">1773</span>
+<span class="normal">1774</span>
+<span class="normal">1775</span>
+<span class="normal">1776</span>
+<span class="normal">1777</span>
+<span class="normal">1778</span>
+<span class="normal">1779</span>
+<span class="normal">1780</span>
+<span class="normal">1781</span>
+<span class="normal">1782</span>
+<span class="normal">1783</span>
+<span class="normal">1784</span>
+<span class="normal">1785</span>
+<span class="normal">1786</span>
+<span class="normal">1787</span>
+<span class="normal">1788</span>
+<span class="normal">1789</span>
+<span class="normal">1790</span>
+<span class="normal">1791</span>
+<span class="normal">1792</span>
+<span class="normal">1793</span>
+<span class="normal">1794</span>
+<span class="normal">1795</span>
+<span class="normal">1796</span>
+<span class="normal">1797</span>
+<span class="normal">1798</span>
+<span class="normal">1799</span>
+<span class="normal">1800</span>
+<span class="normal">1801</span>
+<span class="normal">1802</span>
+<span class="normal">1803</span>
+<span class="normal">1804</span>
+<span class="normal">1805</span>
+<span class="normal">1806</span>
+<span class="normal">1807</span>
+<span class="normal">1808</span>
+<span class="normal">1809</span>
+<span class="normal">1810</span>
+<span class="normal">1811</span>
+<span class="normal">1812</span>
+<span class="normal">1813</span>
+<span class="normal">1814</span>
+<span class="normal">1815</span>
+<span class="normal">1816</span>
+<span class="normal">1817</span>
+<span class="normal">1818</span>
+<span class="normal">1819</span>
+<span class="normal">1820</span>
+<span class="normal">1821</span>
+<span class="normal">1822</span>
+<span class="normal">1823</span>
+<span class="normal">1824</span>
+<span class="normal">1825</span>
+<span class="normal">1826</span>
+<span class="normal">1827</span>
+<span class="normal">1828</span>
+<span class="normal">1829</span>
+<span class="normal">1830</span>
+<span class="normal">1831</span>
+<span class="normal">1832</span>
+<span class="normal">1833</span>
+<span class="normal">1834</span>
+<span class="normal">1835</span>
+<span class="normal">1836</span>
+<span class="normal">1837</span>
+<span class="normal">1838</span>
+<span class="normal">1839</span>
+<span class="normal">1840</span>
+<span class="normal">1841</span>
+<span class="normal">1842</span>
+<span class="normal">1843</span>
+<span class="normal">1844</span>
+<span class="normal">1845</span>
+<span class="normal">1846</span>
+<span class="normal">1847</span>
+<span class="normal">1848</span>
+<span class="normal">1849</span>
+<span class="normal">1850</span>
+<span class="normal">1851</span>
+<span class="normal">1852</span>
+<span class="normal">1853</span>
+<span class="normal">1854</span>
+<span class="normal">1855</span>
+<span class="normal">1856</span>
+<span class="normal">1857</span>
+<span class="normal">1858</span>
+<span class="normal">1859</span>
+<span class="normal">1860</span>
+<span class="normal">1861</span>
+<span class="normal">1862</span>
+<span class="normal">1863</span>
+<span class="normal">1864</span>
+<span class="normal">1865</span>
+<span class="normal">1866</span>
+<span class="normal">1867</span>
+<span class="normal">1868</span>
+<span class="normal">1869</span>
+<span class="normal">1870</span>
+<span class="normal">1871</span>
+<span class="normal">1872</span>
+<span class="normal">1873</span>
+<span class="normal">1874</span>
+<span class="normal">1875</span>
+<span class="normal">1876</span>
+<span class="normal">1877</span>
+<span class="normal">1878</span>
+<span class="normal">1879</span>
+<span class="normal">1880</span>
+<span class="normal">1881</span>
+<span class="normal">1882</span>
+<span class="normal">1883</span>
+<span class="normal">1884</span>
+<span class="normal">1885</span>
+<span class="normal">1886</span>
+<span class="normal">1887</span>
+<span class="normal">1888</span>
+<span class="normal">1889</span>
+<span class="normal">1890</span>
+<span class="normal">1891</span>
+<span class="normal">1892</span>
+<span class="normal">1893</span>
+<span class="normal">1894</span>
+<span class="normal">1895</span>
+<span class="normal">1896</span>
+<span class="normal">1897</span>
+<span class="normal">1898</span>
+<span class="normal">1899</span>
+<span class="normal">1900</span>
+<span class="normal">1901</span>
+<span class="normal">1902</span>
+<span class="normal">1903</span>
+<span class="normal">1904</span>
+<span class="normal">1905</span>
+<span class="normal">1906</span>
+<span class="normal">1907</span>
+<span class="normal">1908</span>
+<span class="normal">1909</span>
+<span class="normal">1910</span>
+<span class="normal">1911</span>
+<span class="normal">1912</span>
+<span class="normal">1913</span>
+<span class="normal">1914</span>
+<span class="normal">1915</span>
+<span class="normal">1916</span>
+<span class="normal">1917</span>
+<span class="normal">1918</span>
+<span class="normal">1919</span>
+<span class="normal">1920</span>
+<span class="normal">1921</span>
+<span class="normal">1922</span>
+<span class="normal">1923</span>
+<span class="normal">1924</span>
+<span class="normal">1925</span>
+<span class="normal">1926</span>
+<span class="normal">1927</span>
+<span class="normal">1928</span>
+<span class="normal">1929</span>
+<span class="normal">1930</span>
+<span class="normal">1931</span>
+<span class="normal">1932</span>
+<span class="normal">1933</span>
+<span class="normal">1934</span>
+<span class="normal">1935</span>
+<span class="normal">1936</span>
+<span class="normal">1937</span>
+<span class="normal">1938</span>
+<span class="normal">1939</span>
+<span class="normal">1940</span>
+<span class="normal">1941</span>
+<span class="normal">1942</span>
+<span class="normal">1943</span>
+<span class="normal">1944</span>
+<span class="normal">1945</span>
+<span class="normal">1946</span>
+<span class="normal">1947</span>
+<span class="normal">1948</span>
+<span class="normal">1949</span>
+<span class="normal">1950</span>
+<span class="normal">1951</span>
+<span class="normal">1952</span>
+<span class="normal">1953</span>
+<span class="normal">1954</span>
+<span class="normal">1955</span>
+<span class="normal">1956</span>
+<span class="normal">1957</span>
+<span class="normal">1958</span>
+<span class="normal">1959</span>
+<span class="normal">1960</span>
+<span class="normal">1961</span>
+<span class="normal">1962</span>
+<span class="normal">1963</span>
+<span class="normal">1964</span>
+<span class="normal">1965</span>
+<span class="normal">1966</span>
+<span class="normal">1967</span>
+<span class="normal">1968</span>
+<span class="normal">1969</span>
+<span class="normal">1970</span>
+<span class="normal">1971</span>
+<span class="normal">1972</span>
+<span class="normal">1973</span>
+<span class="normal">1974</span>
+<span class="normal">1975</span>
+<span class="normal">1976</span>
+<span class="normal">1977</span>
+<span class="normal">1978</span>
+<span class="normal">1979</span>
+<span class="normal">1980</span>
+<span class="normal">1981</span>
+<span class="normal">1982</span>
+<span class="normal">1983</span>
+<span class="normal">1984</span>
+<span class="normal">1985</span>
+<span class="normal">1986</span>
+<span class="normal">1987</span>
+<span class="normal">1988</span>
+<span class="normal">1989</span>
+<span class="normal">1990</span>
+<span class="normal">1991</span>
+<span class="normal">1992</span>
+<span class="normal">1993</span>
+<span class="normal">1994</span>
+<span class="normal">1995</span>
+<span class="normal">1996</span>
+<span class="normal">1997</span>
+<span class="normal">1998</span>
+<span class="normal">1999</span>
+<span class="normal">2000</span>
+<span class="normal">2001</span>
+<span class="normal">2002</span>
+<span class="normal">2003</span>
+<span class="normal">2004</span>
+<span class="normal">2005</span>
+<span class="normal">2006</span>
+<span class="normal">2007</span>
+<span class="normal">2008</span>
+<span class="normal">2009</span>
+<span class="normal">2010</span>
+<span class="normal">2011</span>
+<span class="normal">2012</span>
+<span class="normal">2013</span>
+<span class="normal">2014</span>
+<span class="normal">2015</span>
+<span class="normal">2016</span>
+<span class="normal">2017</span>
+<span class="normal">2018</span>
+<span class="normal">2019</span>
+<span class="normal">2020</span>
+<span class="normal">2021</span>
+<span class="normal">2022</span>
+<span class="normal">2023</span>
+<span class="normal">2024</span>
+<span class="normal">2025</span>
+<span class="normal">2026</span>
+<span class="normal">2027</span>
+<span class="normal">2028</span>
+<span class="normal">2029</span>
+<span class="normal">2030</span>
+<span class="normal">2031</span>
+<span class="normal">2032</span>
+<span class="normal">2033</span>
+<span class="normal">2034</span>
+<span class="normal">2035</span>
+<span class="normal">2036</span>
+<span class="normal">2037</span>
+<span class="normal">2038</span>
+<span class="normal">2039</span>
+<span class="normal">2040</span>
+<span class="normal">2041</span>
+<span class="normal">2042</span>
+<span class="normal">2043</span>
+<span class="normal">2044</span>
+<span class="normal">2045</span>
+<span class="normal">2046</span>
+<span class="normal">2047</span>
+<span class="normal">2048</span>
+<span class="normal">2049</span>
+<span class="normal">2050</span>
+<span class="normal">2051</span>
+<span class="normal">2052</span>
+<span class="normal">2053</span>
+<span class="normal">2054</span>
+<span class="normal">2055</span>
+<span class="normal">2056</span>
+<span class="normal">2057</span>
+<span class="normal">2058</span>
+<span class="normal">2059</span>
+<span class="normal">2060</span>
+<span class="normal">2061</span>
+<span class="normal">2062</span>
+<span class="normal">2063</span>
+<span class="normal">2064</span>
+<span class="normal">2065</span>
+<span class="normal">2066</span>
+<span class="normal">2067</span>
+<span class="normal">2068</span>
+<span class="normal">2069</span>
+<span class="normal">2070</span>
+<span class="normal">2071</span>
+<span class="normal">2072</span>
+<span class="normal">2073</span>
+<span class="normal">2074</span>
+<span class="normal">2075</span>
+<span class="normal">2076</span>
+<span class="normal">2077</span>
+<span class="normal">2078</span>
+<span class="normal">2079</span>
+<span class="normal">2080</span>
+<span class="normal">2081</span>
+<span class="normal">2082</span>
+<span class="normal">2083</span>
+<span class="normal">2084</span>
+<span class="normal">2085</span>
+<span class="normal">2086</span>
+<span class="normal">2087</span>
+<span class="normal">2088</span>
+<span class="normal">2089</span>
+<span class="normal">2090</span>
+<span class="normal">2091</span>
+<span class="normal">2092</span>
+<span class="normal">2093</span>
+<span class="normal">2094</span>
+<span class="normal">2095</span>
+<span class="normal">2096</span>
+<span class="normal">2097</span>
+<span class="normal">2098</span>
+<span class="normal">2099</span>
+<span class="normal">2100</span>
+<span class="normal">2101</span>
+<span class="normal">2102</span>
+<span class="normal">2103</span>
+<span class="normal">2104</span>
+<span class="normal">2105</span>
+<span class="normal">2106</span>
+<span class="normal">2107</span>
+<span class="normal">2108</span>
+<span class="normal">2109</span>
+<span class="normal">2110</span>
+<span class="normal">2111</span>
+<span class="normal">2112</span>
+<span class="normal">2113</span>
+<span class="normal">2114</span>
+<span class="normal">2115</span>
+<span class="normal">2116</span>
+<span class="normal">2117</span>
+<span class="normal">2118</span>
+<span class="normal">2119</span>
+<span class="normal">2120</span>
+<span class="normal">2121</span>
+<span class="normal">2122</span>
+<span class="normal">2123</span>
+<span class="normal">2124</span>
+<span class="normal">2125</span>
+<span class="normal">2126</span>
+<span class="normal">2127</span>
+<span class="normal">2128</span>
+<span class="normal">2129</span>
+<span class="normal">2130</span>
+<span class="normal">2131</span>
+<span class="normal">2132</span>
+<span class="normal">2133</span>
+<span class="normal">2134</span>
+<span class="normal">2135</span>
+<span class="normal">2136</span>
+<span class="normal">2137</span>
+<span class="normal">2138</span>
+<span class="normal">2139</span>
+<span class="normal">2140</span>
+<span class="normal">2141</span>
+<span class="normal">2142</span>
+<span class="normal">2143</span>
+<span class="normal">2144</span>
+<span class="normal">2145</span>
+<span class="normal">2146</span>
+<span class="normal">2147</span>
+<span class="normal">2148</span>
+<span class="normal">2149</span>
+<span class="normal">2150</span>
+<span class="normal">2151</span>
+<span class="normal">2152</span>
+<span class="normal">2153</span>
+<span class="normal">2154</span>
+<span class="normal">2155</span>
+<span class="normal">2156</span>
+<span class="normal">2157</span>
+<span class="normal">2158</span>
+<span class="normal">2159</span>
+<span class="normal">2160</span>
+<span class="normal">2161</span>
+<span class="normal">2162</span>
+<span class="normal">2163</span>
+<span class="normal">2164</span>
+<span class="normal">2165</span>
+<span class="normal">2166</span>
+<span class="normal">2167</span>
+<span class="normal">2168</span>
+<span class="normal">2169</span>
+<span class="normal">2170</span>
+<span class="normal">2171</span>
+<span class="normal">2172</span>
+<span class="normal">2173</span>
+<span class="normal">2174</span>
+<span class="normal">2175</span>
+<span class="normal">2176</span>
+<span class="normal">2177</span>
+<span class="normal">2178</span>
+<span class="normal">2179</span>
+<span class="normal">2180</span>
+<span class="normal">2181</span>
+<span class="normal">2182</span>
+<span class="normal">2183</span>
+<span class="normal">2184</span>
+<span class="normal">2185</span>
+<span class="normal">2186</span>
+<span class="normal">2187</span>
+<span class="normal">2188</span>
+<span class="normal">2189</span>
+<span class="normal">2190</span>
+<span class="normal">2191</span>
+<span class="normal">2192</span>
+<span class="normal">2193</span>
+<span class="normal">2194</span>
+<span class="normal">2195</span>
+<span class="normal">2196</span>
+<span class="normal">2197</span>
+<span class="normal">2198</span>
+<span class="normal">2199</span>
+<span class="normal">2200</span>
+<span class="normal">2201</span>
+<span class="normal">2202</span>
+<span class="normal">2203</span>
+<span class="normal">2204</span>
+<span class="normal">2205</span>
+<span class="normal">2206</span>
+<span class="normal">2207</span>
+<span class="normal">2208</span>
+<span class="normal">2209</span>
+<span class="normal">2210</span>
+<span class="normal">2211</span>
+<span class="normal">2212</span>
+<span class="normal">2213</span>
+<span class="normal">2214</span>
+<span class="normal">2215</span>
+<span class="normal">2216</span>
+<span class="normal">2217</span>
+<span class="normal">2218</span>
+<span class="normal">2219</span>
+<span class="normal">2220</span>
+<span class="normal">2221</span>
+<span class="normal">2222</span>
+<span class="normal">2223</span>
+<span class="normal">2224</span>
+<span class="normal">2225</span>
+<span class="normal">2226</span>
+<span class="normal">2227</span>
+<span class="normal">2228</span>
+<span class="normal">2229</span>
+<span class="normal">2230</span>
+<span class="normal">2231</span>
+<span class="normal">2232</span>
+<span class="normal">2233</span>
+<span class="normal">2234</span>
+<span class="normal">2235</span>
+<span class="normal">2236</span>
+<span class="normal">2237</span>
+<span class="normal">2238</span>
+<span class="normal">2239</span>
+<span class="normal">2240</span>
+<span class="normal">2241</span>
+<span class="normal">2242</span>
+<span class="normal">2243</span>
+<span class="normal">2244</span>
+<span class="normal">2245</span>
+<span class="normal">2246</span>
+<span class="normal">2247</span>
+<span class="normal">2248</span>
+<span class="normal">2249</span>
+<span class="normal">2250</span>
+<span class="normal">2251</span>
+<span class="normal">2252</span>
+<span class="normal">2253</span>
+<span class="normal">2254</span>
+<span class="normal">2255</span>
+<span class="normal">2256</span>
+<span class="normal">2257</span>
+<span class="normal">2258</span>
+<span class="normal">2259</span>
+<span class="normal">2260</span>
+<span class="normal">2261</span>
+<span class="normal">2262</span>
+<span class="normal">2263</span>
+<span class="normal">2264</span>
+<span class="normal">2265</span>
+<span class="normal">2266</span>
+<span class="normal">2267</span>
+<span class="normal">2268</span>
+<span class="normal">2269</span>
+<span class="normal">2270</span>
+<span class="normal">2271</span>
+<span class="normal">2272</span>
+<span class="normal">2273</span>
+<span class="normal">2274</span>
+<span class="normal">2275</span>
+<span class="normal">2276</span>
+<span class="normal">2277</span>
+<span class="normal">2278</span>
+<span class="normal">2279</span>
+<span class="normal">2280</span>
+<span class="normal">2281</span>
+<span class="normal">2282</span>
+<span class="normal">2283</span>
+<span class="normal">2284</span>
+<span class="normal">2285</span>
+<span class="normal">2286</span>
+<span class="normal">2287</span>
+<span class="normal">2288</span>
+<span class="normal">2289</span>
+<span class="normal">2290</span>
+<span class="normal">2291</span>
+<span class="normal">2292</span>
+<span class="normal">2293</span>
+<span class="normal">2294</span>
+<span class="normal">2295</span>
+<span class="normal">2296</span>
+<span class="normal">2297</span>
+<span class="normal">2298</span>
+<span class="normal">2299</span>
+<span class="normal">2300</span>
+<span class="normal">2301</span>
+<span class="normal">2302</span>
+<span class="normal">2303</span>
+<span class="normal">2304</span>
+<span class="normal">2305</span>
+<span class="normal">2306</span>
+<span class="normal">2307</span>
+<span class="normal">2308</span>
+<span class="normal">2309</span>
+<span class="normal">2310</span>
+<span class="normal">2311</span>
+<span class="normal">2312</span>
+<span class="normal">2313</span>
+<span class="normal">2314</span>
+<span class="normal">2315</span>
+<span class="normal">2316</span>
+<span class="normal">2317</span>
+<span class="normal">2318</span>
+<span class="normal">2319</span>
+<span class="normal">2320</span>
+<span class="normal">2321</span>
+<span class="normal">2322</span>
+<span class="normal">2323</span>
+<span class="normal">2324</span>
+<span class="normal">2325</span>
+<span class="normal">2326</span>
+<span class="normal">2327</span>
+<span class="normal">2328</span>
+<span class="normal">2329</span>
+<span class="normal">2330</span>
+<span class="normal">2331</span>
+<span class="normal">2332</span>
+<span class="normal">2333</span>
+<span class="normal">2334</span>
+<span class="normal">2335</span>
+<span class="normal">2336</span>
+<span class="normal">2337</span>
+<span class="normal">2338</span>
+<span class="normal">2339</span>
+<span class="normal">2340</span>
+<span class="normal">2341</span>
+<span class="normal">2342</span>
+<span class="normal">2343</span>
+<span class="normal">2344</span>
+<span class="normal">2345</span>
+<span class="normal">2346</span>
+<span class="normal">2347</span>
+<span class="normal">2348</span>
+<span class="normal">2349</span>
+<span class="normal">2350</span>
+<span class="normal">2351</span>
+<span class="normal">2352</span>
+<span class="normal">2353</span>
+<span class="normal">2354</span>
+<span class="normal">2355</span>
+<span class="normal">2356</span>
+<span class="normal">2357</span>
+<span class="normal">2358</span>
+<span class="normal">2359</span>
+<span class="normal">2360</span>
+<span class="normal">2361</span>
+<span class="normal">2362</span>
+<span class="normal">2363</span>
+<span class="normal">2364</span>
+<span class="normal">2365</span>
+<span class="normal">2366</span>
+<span class="normal">2367</span>
+<span class="normal">2368</span>
+<span class="normal">2369</span>
+<span class="normal">2370</span>
+<span class="normal">2371</span>
+<span class="normal">2372</span>
+<span class="normal">2373</span>
+<span class="normal">2374</span>
+<span class="normal">2375</span>
+<span class="normal">2376</span>
+<span class="normal">2377</span>
+<span class="normal">2378</span>
+<span class="normal">2379</span>
+<span class="normal">2380</span>
+<span class="normal">2381</span>
+<span class="normal">2382</span>
+<span class="normal">2383</span>
+<span class="normal">2384</span>
+<span class="normal">2385</span>
+<span class="normal">2386</span>
+<span class="normal">2387</span>
+<span class="normal">2388</span>
+<span class="normal">2389</span>
+<span class="normal">2390</span>
+<span class="normal">2391</span>
+<span class="normal">2392</span>
+<span class="normal">2393</span>
+<span class="normal">2394</span>
+<span class="normal">2395</span>
+<span class="normal">2396</span>
+<span class="normal">2397</span>
+<span class="normal">2398</span>
+<span class="normal">2399</span>
+<span class="normal">2400</span>
+<span class="normal">2401</span>
+<span class="normal">2402</span>
+<span class="normal">2403</span>
+<span class="normal">2404</span>
+<span class="normal">2405</span>
+<span class="normal">2406</span>
+<span class="normal">2407</span>
+<span class="normal">2408</span>
+<span class="normal">2409</span>
+<span class="normal">2410</span>
+<span class="normal">2411</span>
+<span class="normal">2412</span>
+<span class="normal">2413</span>
+<span class="normal">2414</span>
+<span class="normal">2415</span>
+<span class="normal">2416</span>
+<span class="normal">2417</span>
+<span class="normal">2418</span>
+<span class="normal">2419</span>
+<span class="normal">2420</span>
+<span class="normal">2421</span>
+<span class="normal">2422</span>
+<span class="normal">2423</span>
+<span class="normal">2424</span>
+<span class="normal">2425</span>
+<span class="normal">2426</span>
+<span class="normal">2427</span>
+<span class="normal">2428</span>
+<span class="normal">2429</span>
+<span class="normal">2430</span>
+<span class="normal">2431</span>
+<span class="normal">2432</span>
+<span class="normal">2433</span>
+<span class="normal">2434</span>
+<span class="normal">2435</span>
+<span class="normal">2436</span>
+<span class="normal">2437</span>
+<span class="normal">2438</span>
+<span class="normal">2439</span>
+<span class="normal">2440</span>
+<span class="normal">2441</span>
+<span class="normal">2442</span>
+<span class="normal">2443</span>
+<span class="normal">2444</span>
+<span class="normal">2445</span>
+<span class="normal">2446</span>
+<span class="normal">2447</span>
+<span class="normal">2448</span>
+<span class="normal">2449</span>
+<span class="normal">2450</span>
+<span class="normal">2451</span>
+<span class="normal">2452</span>
+<span class="normal">2453</span>
+<span class="normal">2454</span>
+<span class="normal">2455</span>
+<span class="normal">2456</span>
+<span class="normal">2457</span>
+<span class="normal">2458</span>
+<span class="normal">2459</span>
+<span class="normal">2460</span>
+<span class="normal">2461</span>
+<span class="normal">2462</span>
+<span class="normal">2463</span>
+<span class="normal">2464</span>
+<span class="normal">2465</span>
+<span class="normal">2466</span>
+<span class="normal">2467</span>
+<span class="normal">2468</span>
+<span class="normal">2469</span>
+<span class="normal">2470</span>
+<span class="normal">2471</span>
+<span class="normal">2472</span>
+<span class="normal">2473</span>
+<span class="normal">2474</span>
+<span class="normal">2475</span>
+<span class="normal">2476</span>
+<span class="normal">2477</span>
+<span class="normal">2478</span>
+<span class="normal">2479</span>
+<span class="normal">2480</span>
+<span class="normal">2481</span>
+<span class="normal">2482</span>
+<span class="normal">2483</span>
+<span class="normal">2484</span>
+<span class="normal">2485</span>
+<span class="normal">2486</span>
+<span class="normal">2487</span>
+<span class="normal">2488</span>
+<span class="normal">2489</span>
+<span class="normal">2490</span>
+<span class="normal">2491</span>
+<span class="normal">2492</span>
+<span class="normal">2493</span>
+<span class="normal">2494</span>
+<span class="normal">2495</span>
+<span class="normal">2496</span>
+<span class="normal">2497</span>
+<span class="normal">2498</span>
+<span class="normal">2499</span>
+<span class="normal">2500</span>
+<span class="normal">2501</span>
+<span class="normal">2502</span>
+<span class="normal">2503</span>
+<span class="normal">2504</span>
+<span class="normal">2505</span>
+<span class="normal">2506</span>
+<span class="normal">2507</span>
+<span class="normal">2508</span>
+<span class="normal">2509</span>
+<span class="normal">2510</span>
+<span class="normal">2511</span>
+<span class="normal">2512</span>
+<span class="normal">2513</span>
+<span class="normal">2514</span>
+<span class="normal">2515</span>
+<span class="normal">2516</span>
+<span class="normal">2517</span>
+<span class="normal">2518</span>
+<span class="normal">2519</span>
+<span class="normal">2520</span>
+<span class="normal">2521</span>
+<span class="normal">2522</span>
+<span class="normal">2523</span>
+<span class="normal">2524</span>
+<span class="normal">2525</span>
+<span class="normal">2526</span>
+<span class="normal">2527</span>
+<span class="normal">2528</span>
+<span class="normal">2529</span>
+<span class="normal">2530</span>
+<span class="normal">2531</span>
+<span class="normal">2532</span>
+<span class="normal">2533</span>
+<span class="normal">2534</span>
+<span class="normal">2535</span>
+<span class="normal">2536</span>
+<span class="normal">2537</span>
+<span class="normal">2538</span>
+<span class="normal">2539</span>
+<span class="normal">2540</span>
+<span class="normal">2541</span>
+<span class="normal">2542</span>
+<span class="normal">2543</span>
+<span class="normal">2544</span>
+<span class="normal">2545</span>
+<span class="normal">2546</span>
+<span class="normal">2547</span>
+<span class="normal">2548</span>
+<span class="normal">2549</span>
+<span class="normal">2550</span>
+<span class="normal">2551</span>
+<span class="normal">2552</span>
+<span class="normal">2553</span>
+<span class="normal">2554</span>
+<span class="normal">2555</span>
+<span class="normal">2556</span>
+<span class="normal">2557</span>
+<span class="normal">2558</span>
+<span class="normal">2559</span>
+<span class="normal">2560</span>
+<span class="normal">2561</span>
+<span class="normal">2562</span>
+<span class="normal">2563</span>
+<span class="normal">2564</span>
+<span class="normal">2565</span>
+<span class="normal">2566</span>
+<span class="normal">2567</span>
+<span class="normal">2568</span>
+<span class="normal">2569</span>
+<span class="normal">2570</span>
+<span class="normal">2571</span>
+<span class="normal">2572</span>
+<span class="normal">2573</span>
+<span class="normal">2574</span>
+<span class="normal">2575</span>
+<span class="normal">2576</span>
+<span class="normal">2577</span>
+<span class="normal">2578</span>
+<span class="normal">2579</span>
+<span class="normal">2580</span>
+<span class="normal">2581</span>
+<span class="normal">2582</span>
+<span class="normal">2583</span>
+<span class="normal">2584</span>
+<span class="normal">2585</span>
+<span class="normal">2586</span>
+<span class="normal">2587</span>
+<span class="normal">2588</span>
+<span class="normal">2589</span>
+<span class="normal">2590</span>
+<span class="normal">2591</span>
+<span class="normal">2592</span>
+<span class="normal">2593</span>
+<span class="normal">2594</span>
+<span class="normal">2595</span>
+<span class="normal">2596</span>
+<span class="normal">2597</span>
+<span class="normal">2598</span>
+<span class="normal">2599</span>
+<span class="normal">2600</span>
+<span class="normal">2601</span>
+<span class="normal">2602</span>
+<span class="normal">2603</span>
+<span class="normal">2604</span>
+<span class="normal">2605</span>
+<span class="normal">2606</span>
+<span class="normal">2607</span>
+<span class="normal">2608</span>
+<span class="normal">2609</span>
+<span class="normal">2610</span>
+<span class="normal">2611</span>
+<span class="normal">2612</span>
+<span class="normal">2613</span>
+<span class="normal">2614</span>
+<span class="normal">2615</span>
+<span class="normal">2616</span>
+<span class="normal">2617</span>
+<span class="normal">2618</span>
+<span class="normal">2619</span>
+<span class="normal">2620</span>
+<span class="normal">2621</span>
+<span class="normal">2622</span>
+<span class="normal">2623</span>
+<span class="normal">2624</span>
+<span class="normal">2625</span>
+<span class="normal">2626</span>
+<span class="normal">2627</span>
+<span class="normal">2628</span>
+<span class="normal">2629</span>
+<span class="normal">2630</span>
+<span class="normal">2631</span>
+<span class="normal">2632</span>
+<span class="normal">2633</span>
+<span class="normal">2634</span>
+<span class="normal">2635</span>
+<span class="normal">2636</span>
+<span class="normal">2637</span>
+<span class="normal">2638</span>
+<span class="normal">2639</span>
+<span class="normal">2640</span>
+<span class="normal">2641</span>
+<span class="normal">2642</span>
+<span class="normal">2643</span>
+<span class="normal">2644</span>
+<span class="normal">2645</span>
+<span class="normal">2646</span>
+<span class="normal">2647</span>
+<span class="normal">2648</span>
+<span class="normal">2649</span>
+<span class="normal">2650</span>
+<span class="normal">2651</span>
+<span class="normal">2652</span>
+<span class="normal">2653</span>
+<span class="normal">2654</span>
+<span class="normal">2655</span>
+<span class="normal">2656</span>
+<span class="normal">2657</span>
+<span class="normal">2658</span>
+<span class="normal">2659</span>
+<span class="normal">2660</span>
+<span class="normal">2661</span>
+<span class="normal">2662</span>
+<span class="normal">2663</span>
+<span class="normal">2664</span>
+<span class="normal">2665</span>
+<span class="normal">2666</span>
+<span class="normal">2667</span>
+<span class="normal">2668</span>
+<span class="normal">2669</span>
+<span class="normal">2670</span>
+<span class="normal">2671</span>
+<span class="normal">2672</span>
+<span class="normal">2673</span>
+<span class="normal">2674</span>
+<span class="normal">2675</span>
+<span class="normal">2676</span>
+<span class="normal">2677</span>
+<span class="normal">2678</span>
+<span class="normal">2679</span>
+<span class="normal">2680</span>
+<span class="normal">2681</span>
+<span class="normal">2682</span>
+<span class="normal">2683</span>
+<span class="normal">2684</span>
+<span class="normal">2685</span>
+<span class="normal">2686</span>
+<span class="normal">2687</span>
+<span class="normal">2688</span>
+<span class="normal">2689</span>
+<span class="normal">2690</span>
+<span class="normal">2691</span>
+<span class="normal">2692</span>
+<span class="normal">2693</span>
+<span class="normal">2694</span>
+<span class="normal">2695</span>
+<span class="normal">2696</span>
+<span class="normal">2697</span>
+<span class="normal">2698</span>
+<span class="normal">2699</span>
+<span class="normal">2700</span>
+<span class="normal">2701</span>
+<span class="normal">2702</span>
+<span class="normal">2703</span>
+<span class="normal">2704</span>
+<span class="normal">2705</span>
+<span class="normal">2706</span>
+<span class="normal">2707</span>
+<span class="normal">2708</span>
+<span class="normal">2709</span>
+<span class="normal">2710</span>
+<span class="normal">2711</span>
+<span class="normal">2712</span>
+<span class="normal">2713</span>
+<span class="normal">2714</span>
+<span class="normal">2715</span>
+<span class="normal">2716</span>
+<span class="normal">2717</span>
+<span class="normal">2718</span>
+<span class="normal">2719</span>
+<span class="normal">2720</span>
+<span class="normal">2721</span>
+<span class="normal">2722</span>
+<span class="normal">2723</span>
+<span class="normal">2724</span>
+<span class="normal">2725</span>
+<span class="normal">2726</span>
+<span class="normal">2727</span>
+<span class="normal">2728</span>
+<span class="normal">2729</span>
+<span class="normal">2730</span>
+<span class="normal">2731</span>
+<span class="normal">2732</span>
+<span class="normal">2733</span>
+<span class="normal">2734</span>
+<span class="normal">2735</span>
+<span class="normal">2736</span>
+<span class="normal">2737</span>
+<span class="normal">2738</span>
+<span class="normal">2739</span>
+<span class="normal">2740</span>
+<span class="normal">2741</span>
+<span class="normal">2742</span>
+<span class="normal">2743</span>
+<span class="normal">2744</span>
+<span class="normal">2745</span>
+<span class="normal">2746</span>
+<span class="normal">2747</span>
+<span class="normal">2748</span>
+<span class="normal">2749</span>
+<span class="normal">2750</span>
+<span class="normal">2751</span>
+<span class="normal">2752</span>
+<span class="normal">2753</span>
+<span class="normal">2754</span>
+<span class="normal">2755</span>
+<span class="normal">2756</span>
+<span class="normal">2757</span>
+<span class="normal">2758</span>
+<span class="normal">2759</span>
+<span class="normal">2760</span>
+<span class="normal">2761</span>
+<span class="normal">2762</span>
+<span class="normal">2763</span>
+<span class="normal">2764</span>
+<span class="normal">2765</span>
+<span class="normal">2766</span>
+<span class="normal">2767</span>
+<span class="normal">2768</span>
+<span class="normal">2769</span>
+<span class="normal">2770</span>
+<span class="normal">2771</span>
+<span class="normal">2772</span>
+<span class="normal">2773</span>
+<span class="normal">2774</span>
+<span class="normal">2775</span>
+<span class="normal">2776</span>
+<span class="normal">2777</span>
+<span class="normal">2778</span>
+<span class="normal">2779</span>
+<span class="normal">2780</span>
+<span class="normal">2781</span>
+<span class="normal">2782</span>
+<span class="normal">2783</span>
+<span class="normal">2784</span>
+<span class="normal">2785</span>
+<span class="normal">2786</span>
+<span class="normal">2787</span>
+<span class="normal">2788</span>
+<span class="normal">2789</span>
+<span class="normal">2790</span>
+<span class="normal">2791</span>
+<span class="normal">2792</span>
+<span class="normal">2793</span>
+<span class="normal">2794</span>
+<span class="normal">2795</span>
+<span class="normal">2796</span>
+<span class="normal">2797</span>
+<span class="normal">2798</span>
+<span class="normal">2799</span>
+<span class="normal">2800</span>
+<span class="normal">2801</span>
+<span class="normal">2802</span>
+<span class="normal">2803</span>
+<span class="normal">2804</span>
+<span class="normal">2805</span>
+<span class="normal">2806</span>
+<span class="normal">2807</span>
+<span class="normal">2808</span>
+<span class="normal">2809</span>
+<span class="normal">2810</span>
+<span class="normal">2811</span>
+<span class="normal">2812</span>
+<span class="normal">2813</span>
+<span class="normal">2814</span>
+<span class="normal">2815</span>
+<span class="normal">2816</span>
+<span class="normal">2817</span>
+<span class="normal">2818</span>
+<span class="normal">2819</span>
+<span class="normal">2820</span>
+<span class="normal">2821</span>
+<span class="normal">2822</span>
+<span class="normal">2823</span>
+<span class="normal">2824</span>
+<span class="normal">2825</span>
+<span class="normal">2826</span>
+<span class="normal">2827</span>
+<span class="normal">2828</span>
+<span class="normal">2829</span>
+<span class="normal">2830</span>
+<span class="normal">2831</span>
+<span class="normal">2832</span>
+<span class="normal">2833</span>
+<span class="normal">2834</span>
+<span class="normal">2835</span>
+<span class="normal">2836</span>
+<span class="normal">2837</span>
+<span class="normal">2838</span>
+<span class="normal">2839</span>
+<span class="normal">2840</span>
+<span class="normal">2841</span>
+<span class="normal">2842</span>
+<span class="normal">2843</span>
+<span class="normal">2844</span>
+<span class="normal">2845</span>
+<span class="normal">2846</span>
+<span class="normal">2847</span>
+<span class="normal">2848</span>
+<span class="normal">2849</span>
+<span class="normal">2850</span>
+<span class="normal">2851</span>
+<span class="normal">2852</span>
+<span class="normal">2853</span>
+<span class="normal">2854</span>
+<span class="normal">2855</span>
+<span class="normal">2856</span>
+<span class="normal">2857</span>
+<span class="normal">2858</span>
+<span class="normal">2859</span>
+<span class="normal">2860</span>
+<span class="normal">2861</span>
+<span class="normal">2862</span>
+<span class="normal">2863</span>
+<span class="normal">2864</span>
+<span class="normal">2865</span>
+<span class="normal">2866</span>
+<span class="normal">2867</span>
+<span class="normal">2868</span>
+<span class="normal">2869</span>
+<span class="normal">2870</span>
+<span class="normal">2871</span>
+<span class="normal">2872</span>
+<span class="normal">2873</span>
+<span class="normal">2874</span>
+<span class="normal">2875</span>
+<span class="normal">2876</span>
+<span class="normal">2877</span>
+<span class="normal">2878</span>
+<span class="normal">2879</span>
+<span class="normal">2880</span>
+<span class="normal">2881</span>
+<span class="normal">2882</span>
+<span class="normal">2883</span>
+<span class="normal">2884</span>
+<span class="normal">2885</span>
+<span class="normal">2886</span>
+<span class="normal">2887</span>
+<span class="normal">2888</span>
+<span class="normal">2889</span>
+<span class="normal">2890</span>
+<span class="normal">2891</span>
+<span class="normal">2892</span>
+<span class="normal">2893</span>
+<span class="normal">2894</span>
+<span class="normal">2895</span>
+<span class="normal">2896</span>
+<span class="normal">2897</span>
+<span class="normal">2898</span>
+<span class="normal">2899</span>
+<span class="normal">2900</span>
+<span class="normal">2901</span>
+<span class="normal">2902</span>
+<span class="normal">2903</span>
+<span class="normal">2904</span>
+<span class="normal">2905</span>
+<span class="normal">2906</span>
+<span class="normal">2907</span>
+<span class="normal">2908</span>
+<span class="normal">2909</span>
+<span class="normal">2910</span>
+<span class="normal">2911</span>
+<span class="normal">2912</span>
+<span class="normal">2913</span>
+<span class="normal">2914</span>
+<span class="normal">2915</span>
+<span class="normal">2916</span>
+<span class="normal">2917</span>
+<span class="normal">2918</span>
+<span class="normal">2919</span>
+<span class="normal">2920</span>
+<span class="normal">2921</span>
+<span class="normal">2922</span>
+<span class="normal">2923</span>
+<span class="normal">2924</span>
+<span class="normal">2925</span>
+<span class="normal">2926</span>
+<span class="normal">2927</span>
+<span class="normal">2928</span>
+<span class="normal">2929</span>
+<span class="normal">2930</span>
+<span class="normal">2931</span>
+<span class="normal">2932</span>
+<span class="normal">2933</span>
+<span class="normal">2934</span>
+<span class="normal">2935</span>
+<span class="normal">2936</span>
+<span class="normal">2937</span>
+<span class="normal">2938</span>
+<span class="normal">2939</span>
+<span class="normal">2940</span>
+<span class="normal">2941</span>
+<span class="normal">2942</span>
+<span class="normal">2943</span>
+<span class="normal">2944</span>
+<span class="normal">2945</span>
+<span class="normal">2946</span>
+<span class="normal">2947</span>
+<span class="normal">2948</span>
+<span class="normal">2949</span>
+<span class="normal">2950</span>
+<span class="normal">2951</span>
+<span class="normal">2952</span>
+<span class="normal">2953</span>
+<span class="normal">2954</span>
+<span class="normal">2955</span>
+<span class="normal">2956</span>
+<span class="normal">2957</span>
+<span class="normal">2958</span>
+<span class="normal">2959</span>
+<span class="normal">2960</span>
+<span class="normal">2961</span>
+<span class="normal">2962</span>
+<span class="normal">2963</span>
+<span class="normal">2964</span>
+<span class="normal">2965</span>
+<span class="normal">2966</span>
+<span class="normal">2967</span>
+<span class="normal">2968</span>
+<span class="normal">2969</span>
+<span class="normal">2970</span>
+<span class="normal">2971</span>
+<span class="normal">2972</span>
+<span class="normal">2973</span>
+<span class="normal">2974</span>
+<span class="normal">2975</span>
+<span class="normal">2976</span>
+<span class="normal">2977</span>
+<span class="normal">2978</span>
+<span class="normal">2979</span>
+<span class="normal">2980</span>
+<span class="normal">2981</span>
+<span class="normal">2982</span>
+<span class="normal">2983</span>
+<span class="normal">2984</span>
+<span class="normal">2985</span>
+<span class="normal">2986</span>
+<span class="normal">2987</span>
+<span class="normal">2988</span>
+<span class="normal">2989</span>
+<span class="normal">2990</span>
+<span class="normal">2991</span>
+<span class="normal">2992</span>
+<span class="normal">2993</span>
+<span class="normal">2994</span>
+<span class="normal">2995</span>
+<span class="normal">2996</span>
+<span class="normal">2997</span>
+<span class="normal">2998</span>
+<span class="normal">2999</span>
+<span class="normal">3000</span>
+<span class="normal">3001</span>
+<span class="normal">3002</span>
+<span class="normal">3003</span>
+<span class="normal">3004</span>
+<span class="normal">3005</span>
+<span class="normal">3006</span>
+<span class="normal">3007</span>
+<span class="normal">3008</span>
+<span class="normal">3009</span>
+<span class="normal">3010</span>
+<span class="normal">3011</span>
+<span class="normal">3012</span>
+<span class="normal">3013</span>
+<span class="normal">3014</span>
+<span class="normal">3015</span>
+<span class="normal">3016</span>
+<span class="normal">3017</span>
+<span class="normal">3018</span>
+<span class="normal">3019</span>
+<span class="normal">3020</span>
+<span class="normal">3021</span>
+<span class="normal">3022</span>
+<span class="normal">3023</span>
+<span class="normal">3024</span>
+<span class="normal">3025</span>
+<span class="normal">3026</span>
+<span class="normal">3027</span>
+<span class="normal">3028</span>
+<span class="normal">3029</span>
+<span class="normal">3030</span>
+<span class="normal">3031</span>
+<span class="normal">3032</span>
+<span class="normal">3033</span>
+<span class="normal">3034</span>
+<span class="normal">3035</span>
+<span class="normal">3036</span>
+<span class="normal">3037</span>
+<span class="normal">3038</span>
+<span class="normal">3039</span>
+<span class="normal">3040</span>
+<span class="normal">3041</span>
+<span class="normal">3042</span>
+<span class="normal">3043</span>
+<span class="normal">3044</span>
+<span class="normal">3045</span>
+<span class="normal">3046</span>
+<span class="normal">3047</span>
+<span class="normal">3048</span>
+<span class="normal">3049</span>
+<span class="normal">3050</span>
+<span class="normal">3051</span>
+<span class="normal">3052</span>
+<span class="normal">3053</span>
+<span class="normal">3054</span>
+<span class="normal">3055</span>
+<span class="normal">3056</span>
+<span class="normal">3057</span>
+<span class="normal">3058</span>
+<span class="normal">3059</span>
+<span class="normal">3060</span>
+<span class="normal">3061</span>
+<span class="normal">3062</span>
+<span class="normal">3063</span>
+<span class="normal">3064</span>
+<span class="normal">3065</span>
+<span class="normal">3066</span>
+<span class="normal">3067</span>
+<span class="normal">3068</span>
+<span class="normal">3069</span>
+<span class="normal">3070</span>
+<span class="normal">3071</span>
+<span class="normal">3072</span>
+<span class="normal">3073</span>
+<span class="normal">3074</span>
+<span class="normal">3075</span>
+<span class="normal">3076</span>
+<span class="normal">3077</span>
+<span class="normal">3078</span>
+<span class="normal">3079</span>
+<span class="normal">3080</span>
+<span class="normal">3081</span>
+<span class="normal">3082</span>
+<span class="normal">3083</span>
+<span class="normal">3084</span>
+<span class="normal">3085</span>
+<span class="normal">3086</span>
+<span class="normal">3087</span>
+<span class="normal">3088</span>
+<span class="normal">3089</span>
+<span class="normal">3090</span>
+<span class="normal">3091</span>
+<span class="normal">3092</span>
+<span class="normal">3093</span>
+<span class="normal">3094</span>
+<span class="normal">3095</span>
+<span class="normal">3096</span>
+<span class="normal">3097</span>
+<span class="normal">3098</span>
+<span class="normal">3099</span>
+<span class="normal">3100</span>
+<span class="normal">3101</span>
+<span class="normal">3102</span>
+<span class="normal">3103</span>
+<span class="normal">3104</span>
+<span class="normal">3105</span>
+<span class="normal">3106</span>
+<span class="normal">3107</span>
+<span class="normal">3108</span>
+<span class="normal">3109</span>
+<span class="normal">3110</span>
+<span class="normal">3111</span>
+<span class="normal">3112</span>
+<span class="normal">3113</span>
+<span class="normal">3114</span>
+<span class="normal">3115</span>
+<span class="normal">3116</span>
+<span class="normal">3117</span>
+<span class="normal">3118</span>
+<span class="normal">3119</span>
+<span class="normal">3120</span>
+<span class="normal">3121</span>
+<span class="normal">3122</span>
+<span class="normal">3123</span>
+<span class="normal">3124</span>
+<span class="normal">3125</span>
+<span class="normal">3126</span>
+<span class="normal">3127</span>
+<span class="normal">3128</span>
+<span class="normal">3129</span>
+<span class="normal">3130</span>
+<span class="normal">3131</span>
+<span class="normal">3132</span>
+<span class="normal">3133</span>
+<span class="normal">3134</span>
+<span class="normal">3135</span>
+<span class="normal">3136</span>
+<span class="normal">3137</span>
+<span class="normal">3138</span>
+<span class="normal">3139</span>
+<span class="normal">3140</span>
+<span class="normal">3141</span>
+<span class="normal">3142</span>
+<span class="normal">3143</span>
+<span class="normal">3144</span>
+<span class="normal">3145</span>
+<span class="normal">3146</span>
+<span class="normal">3147</span>
+<span class="normal">3148</span>
+<span class="normal">3149</span>
+<span class="normal">3150</span>
+<span class="normal">3151</span>
+<span class="normal">3152</span>
+<span class="normal">3153</span>
+<span class="normal">3154</span>
+<span class="normal">3155</span>
+<span class="normal">3156</span>
+<span class="normal">3157</span>
+<span class="normal">3158</span>
+<span class="normal">3159</span>
+<span class="normal">3160</span>
+<span class="normal">3161</span>
+<span class="normal">3162</span>
+<span class="normal">3163</span>
+<span class="normal">3164</span>
+<span class="normal">3165</span>
+<span class="normal">3166</span>
+<span class="normal">3167</span>
+<span class="normal">3168</span>
+<span class="normal">3169</span>
+<span class="normal">3170</span>
+<span class="normal">3171</span>
+<span class="normal">3172</span>
+<span class="normal">3173</span>
+<span class="normal">3174</span>
+<span class="normal">3175</span>
+<span class="normal">3176</span>
+<span class="normal">3177</span>
+<span class="normal">3178</span>
+<span class="normal">3179</span>
+<span class="normal">3180</span>
+<span class="normal">3181</span>
+<span class="normal">3182</span>
+<span class="normal">3183</span>
+<span class="normal">3184</span>
+<span class="normal">3185</span>
+<span class="normal">3186</span>
+<span class="normal">3187</span>
+<span class="normal">3188</span>
+<span class="normal">3189</span>
+<span class="normal">3190</span>
+<span class="normal">3191</span>
+<span class="normal">3192</span>
+<span class="normal">3193</span>
+<span class="normal">3194</span>
+<span class="normal">3195</span>
+<span class="normal">3196</span>
+<span class="normal">3197</span>
+<span class="normal">3198</span>
+<span class="normal">3199</span>
+<span class="normal">3200</span>
+<span class="normal">3201</span>
+<span class="normal">3202</span>
+<span class="normal">3203</span>
+<span class="normal">3204</span>
+<span class="normal">3205</span>
+<span class="normal">3206</span>
+<span class="normal">3207</span>
+<span class="normal">3208</span>
+<span class="normal">3209</span>
+<span class="normal">3210</span>
+<span class="normal">3211</span>
+<span class="normal">3212</span>
+<span class="normal">3213</span>
+<span class="normal">3214</span>
+<span class="normal">3215</span>
+<span class="normal">3216</span>
+<span class="normal">3217</span>
+<span class="normal">3218</span>
+<span class="normal">3219</span>
+<span class="normal">3220</span>
+<span class="normal">3221</span>
+<span class="normal">3222</span>
+<span class="normal">3223</span>
+<span class="normal">3224</span>
+<span class="normal">3225</span>
+<span class="normal">3226</span>
+<span class="normal">3227</span>
+<span class="normal">3228</span>
+<span class="normal">3229</span>
+<span class="normal">3230</span>
+<span class="normal">3231</span>
+<span class="normal">3232</span>
+<span class="normal">3233</span>
+<span class="normal">3234</span>
+<span class="normal">3235</span>
+<span class="normal">3236</span>
+<span class="normal">3237</span>
+<span class="normal">3238</span>
+<span class="normal">3239</span>
+<span class="normal">3240</span>
+<span class="normal">3241</span>
+<span class="normal">3242</span>
+<span class="normal">3243</span>
+<span class="normal">3244</span>
+<span class="normal">3245</span>
+<span class="normal">3246</span>
+<span class="normal">3247</span>
+<span class="normal">3248</span>
+<span class="normal">3249</span>
+<span class="normal">3250</span>
+<span class="normal">3251</span>
+<span class="normal">3252</span>
+<span class="normal">3253</span>
+<span class="normal">3254</span>
+<span class="normal">3255</span>
+<span class="normal">3256</span>
+<span class="normal">3257</span>
+<span class="normal">3258</span>
+<span class="normal">3259</span>
+<span class="normal">3260</span>
+<span class="normal">3261</span>
+<span class="normal">3262</span>
+<span class="normal">3263</span>
+<span class="normal">3264</span>
+<span class="normal">3265</span>
+<span class="normal">3266</span>
+<span class="normal">3267</span>
+<span class="normal">3268</span>
+<span class="normal">3269</span>
+<span class="normal">3270</span>
+<span class="normal">3271</span>
+<span class="normal">3272</span>
+<span class="normal">3273</span>
+<span class="normal">3274</span>
+<span class="normal">3275</span>
+<span class="normal">3276</span>
+<span class="normal">3277</span>
+<span class="normal">3278</span>
+<span class="normal">3279</span>
+<span class="normal">3280</span>
+<span class="normal">3281</span>
+<span class="normal">3282</span>
+<span class="normal">3283</span>
+<span class="normal">3284</span>
+<span class="normal">3285</span>
+<span class="normal">3286</span>
+<span class="normal">3287</span>
+<span class="normal">3288</span>
+<span class="normal">3289</span>
+<span class="normal">3290</span>
+<span class="normal">3291</span>
+<span class="normal">3292</span>
+<span class="normal">3293</span>
+<span class="normal">3294</span>
+<span class="normal">3295</span>
+<span class="normal">3296</span>
+<span class="normal">3297</span>
+<span class="normal">3298</span>
+<span class="normal">3299</span>
+<span class="normal">3300</span>
+<span class="normal">3301</span>
+<span class="normal">3302</span>
+<span class="normal">3303</span>
+<span class="normal">3304</span>
+<span class="normal">3305</span>
+<span class="normal">3306</span>
+<span class="normal">3307</span>
+<span class="normal">3308</span>
+<span class="normal">3309</span>
+<span class="normal">3310</span>
+<span class="normal">3311</span>
+<span class="normal">3312</span>
+<span class="normal">3313</span>
+<span class="normal">3314</span>
+<span class="normal">3315</span>
+<span class="normal">3316</span>
+<span class="normal">3317</span>
+<span class="normal">3318</span>
+<span class="normal">3319</span>
+<span class="normal">3320</span>
+<span class="normal">3321</span>
+<span class="normal">3322</span>
+<span class="normal">3323</span>
+<span class="normal">3324</span>
+<span class="normal">3325</span>
+<span class="normal">3326</span>
+<span class="normal">3327</span>
+<span class="normal">3328</span>
+<span class="normal">3329</span>
+<span class="normal">3330</span>
+<span class="normal">3331</span>
+<span class="normal">3332</span>
+<span class="normal">3333</span>
+<span class="normal">3334</span>
+<span class="normal">3335</span>
+<span class="normal">3336</span>
+<span class="normal">3337</span>
+<span class="normal">3338</span>
+<span class="normal">3339</span>
+<span class="normal">3340</span>
+<span class="normal">3341</span>
+<span class="normal">3342</span>
+<span class="normal">3343</span>
+<span class="normal">3344</span>
+<span class="normal">3345</span>
+<span class="normal">3346</span>
+<span class="normal">3347</span>
+<span class="normal">3348</span>
+<span class="normal">3349</span>
+<span class="normal">3350</span>
+<span class="normal">3351</span>
+<span class="normal">3352</span>
+<span class="normal">3353</span>
+<span class="normal">3354</span>
+<span class="normal">3355</span>
+<span class="normal">3356</span>
+<span class="normal">3357</span>
+<span class="normal">3358</span>
+<span class="normal">3359</span>
+<span class="normal">3360</span>
+<span class="normal">3361</span>
+<span class="normal">3362</span>
+<span class="normal">3363</span>
+<span class="normal">3364</span>
+<span class="normal">3365</span>
+<span class="normal">3366</span>
+<span class="normal">3367</span>
+<span class="normal">3368</span>
+<span class="normal">3369</span>
+<span class="normal">3370</span>
+<span class="normal">3371</span>
+<span class="normal">3372</span>
+<span class="normal">3373</span>
+<span class="normal">3374</span>
+<span class="normal">3375</span>
+<span class="normal">3376</span>
+<span class="normal">3377</span>
+<span class="normal">3378</span>
+<span class="normal">3379</span>
+<span class="normal">3380</span>
+<span class="normal">3381</span>
+<span class="normal">3382</span>
+<span class="normal">3383</span>
+<span class="normal">3384</span>
+<span class="normal">3385</span>
+<span class="normal">3386</span>
+<span class="normal">3387</span>
+<span class="normal">3388</span>
+<span class="normal">3389</span>
+<span class="normal">3390</span>
+<span class="normal">3391</span>
+<span class="normal">3392</span>
+<span class="normal">3393</span>
+<span class="normal">3394</span>
+<span class="normal">3395</span>
+<span class="normal">3396</span>
+<span class="normal">3397</span>
+<span class="normal">3398</span>
+<span class="normal">3399</span>
+<span class="normal">3400</span>
+<span class="normal">3401</span>
+<span class="normal">3402</span>
+<span class="normal">3403</span>
+<span class="normal">3404</span>
+<span class="normal">3405</span>
+<span class="normal">3406</span>
+<span class="normal">3407</span>
+<span class="normal">3408</span>
+<span class="normal">3409</span>
+<span class="normal">3410</span>
+<span class="normal">3411</span>
+<span class="normal">3412</span>
+<span class="normal">3413</span>
+<span class="normal">3414</span>
+<span class="normal">3415</span>
+<span class="normal">3416</span>
+<span class="normal">3417</span>
+<span class="normal">3418</span>
+<span class="normal">3419</span>
+<span class="normal">3420</span>
+<span class="normal">3421</span>
+<span class="normal">3422</span>
+<span class="normal">3423</span>
+<span class="normal">3424</span>
+<span class="normal">3425</span>
+<span class="normal">3426</span>
+<span class="normal">3427</span>
+<span class="normal">3428</span>
+<span class="normal">3429</span>
+<span class="normal">3430</span>
+<span class="normal">3431</span>
+<span class="normal">3432</span>
+<span class="normal">3433</span>
+<span class="normal">3434</span>
+<span class="normal">3435</span>
+<span class="normal">3436</span>
+<span class="normal">3437</span>
+<span class="normal">3438</span>
+<span class="normal">3439</span>
+<span class="normal">3440</span>
+<span class="normal">3441</span>
+<span class="normal">3442</span>
+<span class="normal">3443</span>
+<span class="normal">3444</span>
+<span class="normal">3445</span>
+<span class="normal">3446</span>
+<span class="normal">3447</span>
+<span class="normal">3448</span>
+<span class="normal">3449</span>
+<span class="normal">3450</span>
+<span class="normal">3451</span>
+<span class="normal">3452</span>
+<span class="normal">3453</span>
+<span class="normal">3454</span>
+<span class="normal">3455</span>
+<span class="normal">3456</span>
+<span class="normal">3457</span>
+<span class="normal">3458</span>
+<span class="normal">3459</span>
+<span class="normal">3460</span>
+<span class="normal">3461</span>
+<span class="normal">3462</span>
+<span class="normal">3463</span>
+<span class="normal">3464</span>
+<span class="normal">3465</span>
+<span class="normal">3466</span>
+<span class="normal">3467</span>
+<span class="normal">3468</span>
+<span class="normal">3469</span>
+<span class="normal">3470</span>
+<span class="normal">3471</span>
+<span class="normal">3472</span>
+<span class="normal">3473</span>
+<span class="normal">3474</span>
+<span class="normal">3475</span>
+<span class="normal">3476</span>
+<span class="normal">3477</span>
+<span class="normal">3478</span>
+<span class="normal">3479</span>
+<span class="normal">3480</span>
+<span class="normal">3481</span>
+<span class="normal">3482</span>
+<span class="normal">3483</span>
+<span class="normal">3484</span>
+<span class="normal">3485</span>
+<span class="normal">3486</span>
+<span class="normal">3487</span>
+<span class="normal">3488</span>
+<span class="normal">3489</span>
+<span class="normal">3490</span>
+<span class="normal">3491</span>
+<span class="normal">3492</span>
+<span class="normal">3493</span>
+<span class="normal">3494</span>
+<span class="normal">3495</span>
+<span class="normal">3496</span>
+<span class="normal">3497</span>
+<span class="normal">3498</span>
+<span class="normal">3499</span>
+<span class="normal">3500</span>
+<span class="normal">3501</span>
+<span class="normal">3502</span>
+<span class="normal">3503</span>
+<span class="normal">3504</span>
+<span class="normal">3505</span>
+<span class="normal">3506</span>
+<span class="normal">3507</span>
+<span class="normal">3508</span>
+<span class="normal">3509</span>
+<span class="normal">3510</span>
+<span class="normal">3511</span>
+<span class="normal">3512</span>
+<span class="normal">3513</span>
+<span class="normal">3514</span>
+<span class="normal">3515</span>
+<span class="normal">3516</span>
+<span class="normal">3517</span>
+<span class="normal">3518</span>
+<span class="normal">3519</span>
+<span class="normal">3520</span>
+<span class="normal">3521</span>
+<span class="normal">3522</span>
+<span class="normal">3523</span>
+<span class="normal">3524</span>
+<span class="normal">3525</span>
+<span class="normal">3526</span>
+<span class="normal">3527</span>
+<span class="normal">3528</span>
+<span class="normal">3529</span>
+<span class="normal">3530</span>
+<span class="normal">3531</span>
+<span class="normal">3532</span>
+<span class="normal">3533</span>
+<span class="normal">3534</span>
+<span class="normal">3535</span>
+<span class="normal">3536</span>
+<span class="normal">3537</span>
+<span class="normal">3538</span>
+<span class="normal">3539</span>
+<span class="normal">3540</span>
+<span class="normal">3541</span>
+<span class="normal">3542</span>
+<span class="normal">3543</span>
+<span class="normal">3544</span>
+<span class="normal">3545</span>
+<span class="normal">3546</span>
+<span class="normal">3547</span>
+<span class="normal">3548</span>
+<span class="normal">3549</span>
+<span class="normal">3550</span>
+<span class="normal">3551</span>
+<span class="normal">3552</span>
+<span class="normal">3553</span>
+<span class="normal">3554</span>
+<span class="normal">3555</span>
+<span class="normal">3556</span>
+<span class="normal">3557</span>
+<span class="normal">3558</span>
+<span class="normal">3559</span>
+<span class="normal">3560</span>
+<span class="normal">3561</span>
+<span class="normal">3562</span>
+<span class="normal">3563</span>
+<span class="normal">3564</span>
+<span class="normal">3565</span>
+<span class="normal">3566</span>
+<span class="normal">3567</span>
+<span class="normal">3568</span>
+<span class="normal">3569</span>
+<span class="normal">3570</span>
+<span class="normal">3571</span>
+<span class="normal">3572</span>
+<span class="normal">3573</span>
+<span class="normal">3574</span>
+<span class="normal">3575</span>
+<span class="normal">3576</span>
+<span class="normal">3577</span>
+<span class="normal">3578</span>
+<span class="normal">3579</span>
+<span class="normal">3580</span>
+<span class="normal">3581</span>
+<span class="normal">3582</span>
+<span class="normal">3583</span>
+<span class="normal">3584</span>
+<span class="normal">3585</span>
+<span class="normal">3586</span>
+<span class="normal">3587</span>
+<span class="normal">3588</span>
+<span class="normal">3589</span>
+<span class="normal">3590</span>
+<span class="normal">3591</span>
+<span class="normal">3592</span>
+<span class="normal">3593</span>
+<span class="normal">3594</span>
+<span class="normal">3595</span>
+<span class="normal">3596</span>
+<span class="normal">3597</span>
+<span class="normal">3598</span>
+<span class="normal">3599</span>
+<span class="normal">3600</span>
+<span class="normal">3601</span>
+<span class="normal">3602</span>
+<span class="normal">3603</span>
+<span class="normal">3604</span>
+<span class="normal">3605</span>
+<span class="normal">3606</span>
+<span class="normal">3607</span>
+<span class="normal">3608</span>
+<span class="normal">3609</span>
+<span class="normal">3610</span>
+<span class="normal">3611</span>
+<span class="normal">3612</span>
+<span class="normal">3613</span>
+<span class="normal">3614</span>
+<span class="normal">3615</span>
+<span class="normal">3616</span>
+<span class="normal">3617</span>
+<span class="normal">3618</span>
+<span class="normal">3619</span>
+<span class="normal">3620</span>
+<span class="normal">3621</span>
+<span class="normal">3622</span>
+<span class="normal">3623</span>
+<span class="normal">3624</span>
+<span class="normal">3625</span>
+<span class="normal">3626</span>
+<span class="normal">3627</span>
+<span class="normal">3628</span>
+<span class="normal">3629</span>
+<span class="normal">3630</span>
+<span class="normal">3631</span>
+<span class="normal">3632</span>
+<span class="normal">3633</span>
+<span class="normal">3634</span>
+<span class="normal">3635</span>
+<span class="normal">3636</span>
+<span class="normal">3637</span>
+<span class="normal">3638</span>
+<span class="normal">3639</span>
+<span class="normal">3640</span>
+<span class="normal">3641</span>
+<span class="normal">3642</span>
+<span class="normal">3643</span>
+<span class="normal">3644</span>
+<span class="normal">3645</span>
+<span class="normal">3646</span>
+<span class="normal">3647</span>
+<span class="normal">3648</span>
+<span class="normal">3649</span>
+<span class="normal">3650</span>
+<span class="normal">3651</span>
+<span class="normal">3652</span>
+<span class="normal">3653</span>
+<span class="normal">3654</span>
+<span class="normal">3655</span>
+<span class="normal">3656</span>
+<span class="normal">3657</span>
+<span class="normal">3658</span>
+<span class="normal">3659</span>
+<span class="normal">3660</span>
+<span class="normal">3661</span>
+<span class="normal">3662</span>
+<span class="normal">3663</span>
+<span class="normal">3664</span>
+<span class="normal">3665</span>
+<span class="normal">3666</span>
+<span class="normal">3667</span>
+<span class="normal">3668</span>
+<span class="normal">3669</span>
+<span class="normal">3670</span>
+<span class="normal">3671</span>
+<span class="normal">3672</span>
+<span class="normal">3673</span>
+<span class="normal">3674</span>
+<span class="normal">3675</span>
+<span class="normal">3676</span>
+<span class="normal">3677</span>
+<span class="normal">3678</span>
+<span class="normal">3679</span>
+<span class="normal">3680</span>
+<span class="normal">3681</span>
+<span class="normal">3682</span>
+<span class="normal">3683</span>
+<span class="normal">3684</span>
+<span class="normal">3685</span>
+<span class="normal">3686</span>
+<span class="normal">3687</span>
+<span class="normal">3688</span>
+<span class="normal">3689</span>
+<span class="normal">3690</span>
+<span class="normal">3691</span>
+<span class="normal">3692</span>
+<span class="normal">3693</span>
+<span class="normal">3694</span>
+<span class="normal">3695</span>
+<span class="normal">3696</span>
+<span class="normal">3697</span>
+<span class="normal">3698</span>
+<span class="normal">3699</span>
+<span class="normal">3700</span>
+<span class="normal">3701</span>
+<span class="normal">3702</span>
+<span class="normal">3703</span>
+<span class="normal">3704</span>
+<span class="normal">3705</span>
+<span class="normal">3706</span>
+<span class="normal">3707</span>
+<span class="normal">3708</span>
+<span class="normal">3709</span>
+<span class="normal">3710</span>
+<span class="normal">3711</span>
+<span class="normal">3712</span>
+<span class="normal">3713</span>
+<span class="normal">3714</span>
+<span class="normal">3715</span>
+<span class="normal">3716</span>
+<span class="normal">3717</span>
+<span class="normal">3718</span>
+<span class="normal">3719</span>
+<span class="normal">3720</span>
+<span class="normal">3721</span>
+<span class="normal">3722</span>
+<span class="normal">3723</span>
+<span class="normal">3724</span>
+<span class="normal">3725</span>
+<span class="normal">3726</span>
+<span class="normal">3727</span>
+<span class="normal">3728</span>
+<span class="normal">3729</span>
+<span class="normal">3730</span>
+<span class="normal">3731</span>
+<span class="normal">3732</span>
+<span class="normal">3733</span>
+<span class="normal">3734</span>
+<span class="normal">3735</span>
+<span class="normal">3736</span>
+<span class="normal">3737</span>
+<span class="normal">3738</span>
+<span class="normal">3739</span>
+<span class="normal">3740</span>
+<span class="normal">3741</span>
+<span class="normal">3742</span>
+<span class="normal">3743</span>
+<span class="normal">3744</span>
+<span class="normal">3745</span>
+<span class="normal">3746</span>
+<span class="normal">3747</span>
+<span class="normal">3748</span>
+<span class="normal">3749</span>
+<span class="normal">3750</span>
+<span class="normal">3751</span>
+<span class="normal">3752</span>
+<span class="normal">3753</span>
+<span class="normal">3754</span>
+<span class="normal">3755</span>
+<span class="normal">3756</span>
+<span class="normal">3757</span>
+<span class="normal">3758</span>
+<span class="normal">3759</span>
+<span class="normal">3760</span>
+<span class="normal">3761</span>
+<span class="normal">3762</span>
+<span class="normal">3763</span>
+<span class="normal">3764</span>
+<span class="normal">3765</span>
+<span class="normal">3766</span>
+<span class="normal">3767</span>
+<span class="normal">3768</span>
+<span class="normal">3769</span>
+<span class="normal">3770</span>
+<span class="normal">3771</span>
+<span class="normal">3772</span>
+<span class="normal">3773</span>
+<span class="normal">3774</span>
+<span class="normal">3775</span>
+<span class="normal">3776</span>
+<span class="normal">3777</span>
+<span class="normal">3778</span>
+<span class="normal">3779</span>
+<span class="normal">3780</span>
+<span class="normal">3781</span>
+<span class="normal">3782</span>
+<span class="normal">3783</span>
+<span class="normal">3784</span>
+<span class="normal">3785</span>
+<span class="normal">3786</span>
+<span class="normal">3787</span>
+<span class="normal">3788</span>
+<span class="normal">3789</span>
+<span class="normal">3790</span>
+<span class="normal">3791</span>
+<span class="normal">3792</span>
+<span class="normal">3793</span>
+<span class="normal">3794</span>
+<span class="normal">3795</span>
+<span class="normal">3796</span>
+<span class="normal">3797</span>
+<span class="normal">3798</span>
+<span class="normal">3799</span>
+<span class="normal">3800</span>
+<span class="normal">3801</span>
+<span class="normal">3802</span>
+<span class="normal">3803</span>
+<span class="normal">3804</span>
+<span class="normal">3805</span>
+<span class="normal">3806</span>
+<span class="normal">3807</span>
+<span class="normal">3808</span>
+<span class="normal">3809</span>
+<span class="normal">3810</span>
+<span class="normal">3811</span>
+<span class="normal">3812</span>
+<span class="normal">3813</span>
+<span class="normal">3814</span>
+<span class="normal">3815</span>
+<span class="normal">3816</span>
+<span class="normal">3817</span>
+<span class="normal">3818</span>
+<span class="normal">3819</span>
+<span class="normal">3820</span>
+<span class="normal">3821</span>
+<span class="normal">3822</span>
+<span class="normal">3823</span>
+<span class="normal">3824</span>
+<span class="normal">3825</span>
+<span class="normal">3826</span>
+<span class="normal">3827</span>
+<span class="normal">3828</span>
+<span class="normal">3829</span>
+<span class="normal">3830</span>
+<span class="normal">3831</span>
+<span class="normal">3832</span>
+<span class="normal">3833</span>
+<span class="normal">3834</span>
+<span class="normal">3835</span>
+<span class="normal">3836</span>
+<span class="normal">3837</span>
+<span class="normal">3838</span>
+<span class="normal">3839</span>
+<span class="normal">3840</span>
+<span class="normal">3841</span>
+<span class="normal">3842</span>
+<span class="normal">3843</span>
+<span class="normal">3844</span>
+<span class="normal">3845</span>
+<span class="normal">3846</span>
+<span class="normal">3847</span>
+<span class="normal">3848</span>
+<span class="normal">3849</span>
+<span class="normal">3850</span>
+<span class="normal">3851</span>
+<span class="normal">3852</span>
+<span class="normal">3853</span>
+<span class="normal">3854</span>
+<span class="normal">3855</span>
+<span class="normal">3856</span>
+<span class="normal">3857</span>
+<span class="normal">3858</span>
+<span class="normal">3859</span>
+<span class="normal">3860</span>
+<span class="normal">3861</span>
+<span class="normal">3862</span>
+<span class="normal">3863</span>
+<span class="normal">3864</span>
+<span class="normal">3865</span>
+<span class="normal">3866</span>
+<span class="normal">3867</span>
+<span class="normal">3868</span>
+<span class="normal">3869</span>
+<span class="normal">3870</span>
+<span class="normal">3871</span>
+<span class="normal">3872</span>
+<span class="normal">3873</span>
+<span class="normal">3874</span>
+<span class="normal">3875</span>
+<span class="normal">3876</span>
+<span class="normal">3877</span>
+<span class="normal">3878</span>
+<span class="normal">3879</span>
+<span class="normal">3880</span>
+<span class="normal">3881</span>
+<span class="normal">3882</span>
+<span class="normal">3883</span>
+<span class="normal">3884</span>
+<span class="normal">3885</span>
+<span class="normal">3886</span>
+<span class="normal">3887</span>
+<span class="normal">3888</span>
+<span class="normal">3889</span>
+<span class="normal">3890</span>
+<span class="normal">3891</span>
+<span class="normal">3892</span>
+<span class="normal">3893</span>
+<span class="normal">3894</span>
+<span class="normal">3895</span>
+<span class="normal">3896</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* -*- Mode: C; c-set-style: linux indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */</span>
+<a id="line-2" name="line-2"></a><span class="cm">/* mate-desktop-item.c - MATE Desktop File Representation</span>
+<a id="line-3" name="line-3"></a>
+<a id="line-4" name="line-4"></a><span class="cm"> Copyright (C) 1999, 2000 Red Hat Inc.</span>
+<a id="line-5" name="line-5"></a><span class="cm"> Copyright (C) 2001 Sid Vicious</span>
+<a id="line-6" name="line-6"></a><span class="cm"> All rights reserved.</span>
+<a id="line-7" name="line-7"></a>
+<a id="line-8" name="line-8"></a><span class="cm"> This file is part of the Mate Library.</span>
+<a id="line-9" name="line-9"></a>
+<a id="line-10" name="line-10"></a><span class="cm"> Developed by Elliot Lee &lt;[email protected]&gt; and Sid Vicious</span>
+<a id="line-11" name="line-11"></a>
+<a id="line-12" name="line-12"></a><span class="cm"> The Mate Library is free software; you can redistribute it and/or</span>
+<a id="line-13" name="line-13"></a><span class="cm"> modify it under the terms of the GNU Library General Public License as</span>
+<a id="line-14" name="line-14"></a><span class="cm"> published by the Free Software Foundation; either version 2 of the</span>
+<a id="line-15" name="line-15"></a><span class="cm"> License, or (at your option) any later version.</span>
+<a id="line-16" name="line-16"></a>
+<a id="line-17" name="line-17"></a><span class="cm"> The Mate Library is distributed in the hope that it will be useful,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-19" name="line-19"></a><span class="cm"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-20" name="line-20"></a><span class="cm"> Library General Public License for more details.</span>
+<a id="line-21" name="line-21"></a>
+<a id="line-22" name="line-22"></a><span class="cm"> You should have received a copy of the GNU Library General Public</span>
+<a id="line-23" name="line-23"></a><span class="cm"> License along with the Mate Library; see the file COPYING.LIB. If not,</span>
+<a id="line-24" name="line-24"></a><span class="cm"> write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,</span>
+<a id="line-25" name="line-25"></a><span class="cm"> Boston, MA 02110-1301, USA. */</span>
+<a id="line-26" name="line-26"></a><span class="cm">/*</span>
+<a id="line-27" name="line-27"></a><span class="cm"> @NOTATION@</span>
+<a id="line-28" name="line-28"></a><span class="cm"> */</span>
+<a id="line-29" name="line-29"></a>
+<a id="line-30" name="line-30"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;limits.h&gt;</span><span class="error2">&lt;--- Include file: <limits.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-33" name="line-33"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;ctype.h&gt;</span><span class="error2">&lt;--- Include file: <ctype.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-34" name="line-34"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdio.h&gt;</span><span class="error2">&lt;--- Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-35" name="line-35"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib.h&gt;</span><span class="error2">&lt;--- Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-36" name="line-36"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;sys/types.h&gt;</span><span class="error2">&lt;--- Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-37" name="line-37"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;dirent.h&gt;</span><span class="error2">&lt;--- Include file: <dirent.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-38" name="line-38"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;unistd.h&gt;</span><span class="error2">&lt;--- Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-39" name="line-39"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;time.h&gt;</span><span class="error2">&lt;--- Include file: <time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-40" name="line-40"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-41" name="line-41"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n-lib.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n-lib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-42" name="line-42"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;locale.h&gt;</span><span class="error2">&lt;--- Include file: <locale.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-43" name="line-43"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdlib.h&gt;</span><span class="error2">&lt;--- Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-44" name="line-44"></a>
+<a id="line-45" name="line-45"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gio/gio.h&gt;</span><span class="error2">&lt;--- Include file: <gio/gio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-46" name="line-46"></a>
+<a id="line-47" name="line-47"></a><span class="cp">#ifdef HAVE_STARTUP_NOTIFICATION</span>
+<a id="line-48" name="line-48"></a><span class="cp">#define SN_API_NOT_YET_FROZEN</span>
+<a id="line-49" name="line-49"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;libsn/sn.h&gt;</span><span class="error2">&lt;--- Include file: <libsn/sn.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-50" name="line-50"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdk.h&gt;</span><span class="error2">&lt;--- Include file: <gdk/gdk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-51" name="line-51"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdkx.h&gt;</span><span class="error2">&lt;--- Include file: <gdk/gdkx.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-52" name="line-52"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-53" name="line-53"></a><span class="cp">#endif</span>
+<a id="line-54" name="line-54"></a>
+<a id="line-55" name="line-55"></a><span class="cp">#define MATE_DESKTOP_USE_UNSTABLE_API</span>
+<a id="line-56" name="line-56"></a><span class="cp">#undef MATE_DISABLE_DEPRECATED</span>
+<a id="line-57" name="line-57"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;mate-desktop-item.h&gt;</span><span class="error2">&lt;--- Include file: <mate-desktop-item.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-58" name="line-58"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;mate-desktop-utils.h&gt;</span><span class="error2">&lt;--- Include file: <mate-desktop-utils.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-59" name="line-59"></a>
+<a id="line-60" name="line-60"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;private.h&quot;</span>
+<a id="line-61" name="line-61"></a>
+<a id="line-62" name="line-62"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_MateDesktopItem</span><span class="w"> </span><span class="p">{</span>
+<a id="line-63" name="line-63"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">refcount</span><span class="p">;</span>
+<a id="line-64" name="line-64"></a>
+<a id="line-65" name="line-65"></a><span class="w"> </span><span class="cm">/* all languages used */</span>
+<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">languages</span><span class="p">;</span>
+<a id="line-67" name="line-67"></a>
+<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">MateDesktopItemType</span><span class="w"> </span><span class="n">type</span><span class="p">;</span>
+<a id="line-69" name="line-69"></a>
+<a id="line-70" name="line-70"></a><span class="w"> </span><span class="cm">/* `modified&#39; means that the ditem has been</span>
+<a id="line-71" name="line-71"></a><span class="cm"> * modified since the last save. */</span>
+<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">modified</span><span class="p">;</span>
+<a id="line-73" name="line-73"></a>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="cm">/* Keys of the main section only */</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">keys</span><span class="p">;</span>
+<a id="line-76" name="line-76"></a>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">sections</span><span class="p">;</span>
+<a id="line-78" name="line-78"></a>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="cm">/* This includes ALL keys, including</span>
+<a id="line-80" name="line-80"></a><span class="cm"> * other sections, separated by &#39;/&#39; */</span>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">GHashTable</span><span class="w"> </span><span class="o">*</span><span class="n">main_hash</span><span class="p">;</span>
+<a id="line-82" name="line-82"></a>
+<a id="line-83" name="line-83"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">location</span><span class="p">;</span>
+<a id="line-84" name="line-84"></a>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">gint64</span><span class="w"> </span><span class="n">mtime</span><span class="p">;</span>
+<a id="line-86" name="line-86"></a>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">launch_time</span><span class="p">;</span>
+<a id="line-88" name="line-88"></a><span class="p">};</span>
+<a id="line-89" name="line-89"></a>
+<a id="line-90" name="line-90"></a><span class="cm">/* If mtime is set to this, set_location won&#39;t update mtime,</span>
+<a id="line-91" name="line-91"></a><span class="cm"> * this is to be used internally only. */</span>
+<a id="line-92" name="line-92"></a><span class="cp">#define DONT_UPDATE_MTIME ((gint64)-2)</span>
+<a id="line-93" name="line-93"></a>
+<a id="line-94" name="line-94"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="p">{</span>
+<a id="line-95" name="line-95"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span>
+<a id="line-96" name="line-96"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">keys</span><span class="p">;</span>
+<a id="line-97" name="line-97"></a><span class="p">}</span><span class="w"> </span><span class="n">Section</span><span class="p">;</span>
+<a id="line-98" name="line-98"></a>
+<a id="line-99" name="line-99"></a><span class="k">typedef</span><span class="w"> </span><span class="k">enum</span><span class="w"> </span><span class="p">{</span>
+<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">ENCODING_UNKNOWN</span><span class="p">,</span>
+<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">ENCODING_UTF8</span><span class="p">,</span>
+<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">ENCODING_LEGACY_MIXED</span>
+<a id="line-103" name="line-103"></a><span class="p">}</span><span class="w"> </span><span class="n">Encoding</span><span class="p">;</span>
+<a id="line-104" name="line-104"></a>
+<a id="line-105" name="line-105"></a><span class="cm">/*</span>
+<a id="line-106" name="line-106"></a><span class="cm"> * IO reading utils, that look like the libc buffered io stuff</span>
+<a id="line-107" name="line-107"></a><span class="cm"> */</span>
+<a id="line-108" name="line-108"></a>
+<a id="line-109" name="line-109"></a><span class="cp">#define READ_BUF_SIZE (32 * 1024)</span>
+<a id="line-110" name="line-110"></a>
+<a id="line-111" name="line-111"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="p">{</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span>
+<a id="line-113" name="line-113"></a><span class="w"> </span><span class="n">GFileInputStream</span><span class="w"> </span><span class="o">*</span><span class="n">stream</span><span class="p">;</span>
+<a id="line-114" name="line-114"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">;</span>
+<a id="line-115" name="line-115"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">buf</span><span class="p">;</span>
+<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">buf_needs_free</span><span class="p">;</span>
+<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">past_first_read</span><span class="p">;</span>
+<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">eof</span><span class="p">;</span>
+<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">guint64</span><span class="w"> </span><span class="n">size</span><span class="p">;</span>
+<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">pos</span><span class="p">;</span>
+<a id="line-121" name="line-121"></a><span class="p">}</span><span class="w"> </span><span class="n">ReadBuf</span><span class="p">;</span>
+<a id="line-122" name="line-122"></a>
+<a id="line-123" name="line-123"></a><span class="k">static</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="nf">ditem_load</span><span class="w"> </span><span class="p">(</span><span class="n">ReadBuf</span><span class="w"> </span><span class="o">*</span><span class="n">rb</span><span class="p">,</span>
+<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">no_translations</span><span class="p">,</span>
+<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">);</span>
+<a id="line-126" name="line-126"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">ditem_save</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-127" name="line-127"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span>
+<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">);</span>
+<a id="line-129" name="line-129"></a>
+<a id="line-130" name="line-130"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">mate_desktop_item_set_location_gfile</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">);</span>
+<a id="line-132" name="line-132"></a>
+<a id="line-133" name="line-133"></a><span class="k">static</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="nf">mate_desktop_item_new_from_gfile</span><span class="w"> </span><span class="p">(</span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">,</span>
+<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">MateDesktopItemLoadFlags</span><span class="w"> </span><span class="n">flags</span><span class="p">,</span>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">);</span>
+<a id="line-136" name="line-136"></a>
+<a id="line-137" name="line-137"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span>
+<a id="line-138" name="line-138"></a><span class="nf">readbuf_getc</span><span class="w"> </span><span class="p">(</span><span class="n">ReadBuf</span><span class="w"> </span><span class="o">*</span><span class="n">rb</span><span class="p">)</span>
+<a id="line-139" name="line-139"></a><span class="p">{</span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">eof</span><span class="p">)</span>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EOF</span><span class="p">;</span>
+<a id="line-142" name="line-142"></a>
+<a id="line-143" name="line-143"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">size</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span>
+<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">pos</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">size</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">gssize</span><span class="w"> </span><span class="n">bytes_read</span><span class="p">;</span>
+<a id="line-146" name="line-146"></a>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">stream</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-148" name="line-148"></a><span class="w"> </span><span class="n">bytes_read</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-149" name="line-149"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">bytes_read</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_input_stream_read</span><span class="w"> </span><span class="p">(</span><span class="n">G_INPUT_STREAM</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">stream</span><span class="p">),</span>
+<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">buf</span><span class="p">,</span>
+<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">READ_BUF_SIZE</span><span class="p">,</span>
+<a id="line-153" name="line-153"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-154" name="line-154"></a>
+<a id="line-155" name="line-155"></a><span class="w"> </span><span class="cm">/* FIXME: handle errors other than EOF */</span>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bytes_read</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-157" name="line-157"></a><span class="w"> </span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">eof</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-158" name="line-158"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">EOF</span><span class="p">;</span>
+<a id="line-159" name="line-159"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-160" name="line-160"></a>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">size</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">past_first_read</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">bytes_read</span><span class="p">;</span>
+<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">pos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-165" name="line-165"></a>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-167" name="line-167"></a>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">guchar</span><span class="p">)</span><span class="w"> </span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">buf</span><span class="p">[</span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">pos</span><span class="o">++</span><span class="p">];</span>
+<a id="line-169" name="line-169"></a><span class="p">}</span>
+<a id="line-170" name="line-170"></a>
+<a id="line-171" name="line-171"></a><span class="cm">/* Note, does not include the trailing \n */</span>
+<a id="line-172" name="line-172"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-173" name="line-173"></a><span class="nf">readbuf_gets</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">bufsize</span><span class="p">,</span><span class="w"> </span><span class="n">ReadBuf</span><span class="w"> </span><span class="o">*</span><span class="n">rb</span><span class="p">)</span>
+<a id="line-174" name="line-174"></a><span class="p">{</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">c</span><span class="p">;</span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">pos</span><span class="p">;</span>
+<a id="line-177" name="line-177"></a>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">buf</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-180" name="line-180"></a>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">pos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-182" name="line-182"></a><span class="w"> </span><span class="n">buf</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">;</span>
+<a id="line-183" name="line-183"></a>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">do</span><span class="w"> </span><span class="p">{</span>
+<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">readbuf_getc</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="p">);</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOF</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;\n&#39;</span><span class="p">)</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">buf</span><span class="p">[</span><span class="n">pos</span><span class="o">++</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">c</span><span class="p">;</span>
+<a id="line-189" name="line-189"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">pos</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">bufsize</span><span class="mi">-1</span><span class="p">);</span>
+<a id="line-190" name="line-190"></a>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOF</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">pos</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-192" name="line-192"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-193" name="line-193"></a>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">buf</span><span class="p">[</span><span class="n">pos</span><span class="o">++</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">;</span>
+<a id="line-195" name="line-195"></a>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">buf</span><span class="p">;</span>
+<a id="line-197" name="line-197"></a><span class="p">}</span>
+<a id="line-198" name="line-198"></a>
+<a id="line-199" name="line-199"></a><span class="k">static</span><span class="w"> </span><span class="n">ReadBuf</span><span class="w"> </span><span class="o">*</span>
+<a id="line-200" name="line-200"></a><span class="nf">readbuf_open</span><span class="w"> </span><span class="p">(</span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-201" name="line-201"></a><span class="p">{</span>
+<a id="line-202" name="line-202"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">local_error</span><span class="p">;</span>
+<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">GFileInputStream</span><span class="w"> </span><span class="o">*</span><span class="n">stream</span><span class="p">;</span>
+<a id="line-204" name="line-204"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">;</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">ReadBuf</span><span class="w"> </span><span class="o">*</span><span class="n">rb</span><span class="p">;</span>
+<a id="line-206" name="line-206"></a>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-208" name="line-208"></a>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_uri</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">local_error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">stream</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_read</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">local_error</span><span class="p">);</span>
+<a id="line-212" name="line-212"></a>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">stream</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="cm">/* FIXME: better errors */</span>
+<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ERROR</span><span class="p">,</span>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ERROR_CANNOT_OPEN</span><span class="p">,</span>
+<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Error reading file &#39;%s&#39;: %s&quot;</span><span class="p">),</span>
+<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">local_error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">local_error</span><span class="p">);</span>
+<a id="line-221" name="line-221"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">);</span>
+<a id="line-222" name="line-222"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-223" name="line-223"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-224" name="line-224"></a>
+<a id="line-225" name="line-225"></a><span class="w"> </span><span class="n">rb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new0</span><span class="w"> </span><span class="p">(</span><span class="n">ReadBuf</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">stream</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">stream</span><span class="p">;</span>
+<a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_dup</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">uri</span><span class="p">;</span>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">buf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_malloc</span><span class="w"> </span><span class="p">(</span><span class="n">READ_BUF_SIZE</span><span class="p">);</span>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">buf_needs_free</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-231" name="line-231"></a><span class="w"> </span><span class="cm">/* rb-&gt;past_first_read = FALSE; */</span>
+<a id="line-232" name="line-232"></a><span class="w"> </span><span class="cm">/* rb-&gt;eof = FALSE; */</span>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="cm">/* rb-&gt;size = 0; */</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="cm">/* rb-&gt;pos = 0; */</span>
+<a id="line-235" name="line-235"></a>
+<a id="line-236" name="line-236"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">rb</span><span class="p">;</span>
+<a id="line-237" name="line-237"></a><span class="p">}</span>
+<a id="line-238" name="line-238"></a>
+<a id="line-239" name="line-239"></a><span class="k">static</span><span class="w"> </span><span class="n">ReadBuf</span><span class="w"> </span><span class="o">*</span>
+<a id="line-240" name="line-240"></a><span class="nf">readbuf_new_from_string</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">gssize</span><span class="w"> </span><span class="n">length</span><span class="p">)</span>
+<a id="line-241" name="line-241"></a><span class="p">{</span>
+<a id="line-242" name="line-242"></a><span class="w"> </span><span class="n">ReadBuf</span><span class="w"> </span><span class="o">*</span><span class="n">rb</span><span class="p">;</span>
+<a id="line-243" name="line-243"></a>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">length</span><span class="w"> </span><span class="o">&gt;=</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-246" name="line-246"></a>
+<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">rb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new0</span><span class="w"> </span><span class="p">(</span><span class="n">ReadBuf</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-248" name="line-248"></a><span class="w"> </span><span class="cm">/* rb-&gt;file = NULL; */</span>
+<a id="line-249" name="line-249"></a><span class="w"> </span><span class="cm">/* rb-&gt;stream = NULL; */</span>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">);</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">buf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">string</span><span class="p">;</span>
+<a id="line-252" name="line-252"></a><span class="w"> </span><span class="cm">/* rb-&gt;buf_needs_free = FALSE; */</span>
+<a id="line-253" name="line-253"></a><span class="w"> </span><span class="cm">/* rb-&gt;past_first_read = FALSE; */</span>
+<a id="line-254" name="line-254"></a><span class="w"> </span><span class="cm">/* rb-&gt;eof = FALSE; */</span>
+<a id="line-255" name="line-255"></a><span class="w"> </span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">length</span><span class="p">;</span>
+<a id="line-256" name="line-256"></a><span class="w"> </span><span class="cm">/* rb-&gt;pos = 0; */</span>
+<a id="line-257" name="line-257"></a>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">rb</span><span class="p">;</span>
+<a id="line-259" name="line-259"></a><span class="p">}</span>
+<a id="line-260" name="line-260"></a>
+<a id="line-261" name="line-261"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-262" name="line-262"></a><span class="nf">readbuf_rewind</span><span class="w"> </span><span class="p">(</span><span class="n">ReadBuf</span><span class="w"> </span><span class="o">*</span><span class="n">rb</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-263" name="line-263"></a><span class="p">{</span>
+<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">local_error</span><span class="p">;</span>
+<a id="line-265" name="line-265"></a>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">eof</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-267" name="line-267"></a><span class="w"> </span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">pos</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-268" name="line-268"></a>
+<a id="line-269" name="line-269"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">past_first_read</span><span class="p">)</span>
+<a id="line-270" name="line-270"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-271" name="line-271"></a>
+<a id="line-272" name="line-272"></a><span class="w"> </span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-273" name="line-273"></a>
+<a id="line-274" name="line-274"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_seekable_seek</span><span class="w"> </span><span class="p">(</span><span class="n">G_SEEKABLE</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">stream</span><span class="p">),</span>
+<a id="line-275" name="line-275"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">G_SEEK_SET</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span>
+<a id="line-276" name="line-276"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-277" name="line-277"></a>
+<a id="line-278" name="line-278"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">stream</span><span class="p">);</span>
+<a id="line-279" name="line-279"></a><span class="w"> </span><span class="n">local_error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-280" name="line-280"></a><span class="w"> </span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">stream</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_read</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">local_error</span><span class="p">);</span>
+<a id="line-281" name="line-281"></a>
+<a id="line-282" name="line-282"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">stream</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ERROR</span><span class="p">,</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ERROR_CANNOT_OPEN</span><span class="p">,</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Error rewinding file &#39;%s&#39;: %s&quot;</span><span class="p">),</span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">local_error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">local_error</span><span class="p">);</span>
+<a id="line-289" name="line-289"></a>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-292" name="line-292"></a>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-294" name="line-294"></a><span class="p">}</span>
+<a id="line-295" name="line-295"></a>
+<a id="line-296" name="line-296"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-297" name="line-297"></a><span class="nf">readbuf_close</span><span class="w"> </span><span class="p">(</span><span class="n">ReadBuf</span><span class="w"> </span><span class="o">*</span><span class="n">rb</span><span class="p">)</span>
+<a id="line-298" name="line-298"></a><span class="p">{</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">stream</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">stream</span><span class="p">);</span>
+<a id="line-301" name="line-301"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">file</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-302" name="line-302"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">file</span><span class="p">);</span>
+<a id="line-303" name="line-303"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">uri</span><span class="p">);</span>
+<a id="line-304" name="line-304"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">buf_needs_free</span><span class="p">)</span>
+<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">buf</span><span class="p">);</span>
+<a id="line-306" name="line-306"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="p">);</span>
+<a id="line-307" name="line-307"></a><span class="p">}</span>
+<a id="line-308" name="line-308"></a>
+<a id="line-309" name="line-309"></a><span class="k">static</span><span class="w"> </span><span class="n">MateDesktopItemType</span>
+<a id="line-310" name="line-310"></a><span class="nf">type_from_string</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">type</span><span class="p">)</span>
+<a id="line-311" name="line-311"></a><span class="p">{</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">type</span><span class="p">)</span>
+<a id="line-313" name="line-313"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE_NULL</span><span class="p">;</span>
+<a id="line-314" name="line-314"></a>
+<a id="line-315" name="line-315"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="p">[</span><span class="mi">0</span><span class="p">])</span><span class="w"> </span><span class="p">{</span>
+<a id="line-316" name="line-316"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;A&#39;</span><span class="p">:</span>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Application&quot;</span><span class="p">))</span>
+<a id="line-318" name="line-318"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE_APPLICATION</span><span class="p">;</span>
+<a id="line-319" name="line-319"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;L&#39;</span><span class="p">:</span>
+<a id="line-321" name="line-321"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Link&quot;</span><span class="p">))</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE_LINK</span><span class="p">;</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;F&#39;</span><span class="p">:</span>
+<a id="line-325" name="line-325"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;FSDevice&quot;</span><span class="p">))</span>
+<a id="line-326" name="line-326"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE_FSDEVICE</span><span class="p">;</span>
+<a id="line-327" name="line-327"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-328" name="line-328"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;M&#39;</span><span class="p">:</span>
+<a id="line-329" name="line-329"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;MimeType&quot;</span><span class="p">))</span>
+<a id="line-330" name="line-330"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE_MIME_TYPE</span><span class="p">;</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-332" name="line-332"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;D&#39;</span><span class="p">:</span>
+<a id="line-333" name="line-333"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Directory&quot;</span><span class="p">))</span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE_DIRECTORY</span><span class="p">;</span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-336" name="line-336"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;S&#39;</span><span class="p">:</span>
+<a id="line-337" name="line-337"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Service&quot;</span><span class="p">))</span>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE_SERVICE</span><span class="p">;</span>
+<a id="line-339" name="line-339"></a>
+<a id="line-340" name="line-340"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ServiceType&quot;</span><span class="p">))</span>
+<a id="line-341" name="line-341"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE_SERVICE_TYPE</span><span class="p">;</span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-346" name="line-346"></a>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE_OTHER</span><span class="p">;</span>
+<a id="line-348" name="line-348"></a><span class="p">}</span>
+<a id="line-349" name="line-349"></a>
+<a id="line-350" name="line-350"></a><span class="cm">/**</span>
+<a id="line-351" name="line-351"></a><span class="cm"> * mate_desktop_item_new:</span>
+<a id="line-352" name="line-352"></a><span class="cm"> *</span>
+<a id="line-353" name="line-353"></a><span class="cm"> * Creates a MateDesktopItem object. The reference count on the returned value is set to &#39;1&#39;.</span>
+<a id="line-354" name="line-354"></a><span class="cm"> *</span>
+<a id="line-355" name="line-355"></a><span class="cm"> * Returns: The new MateDesktopItem</span>
+<a id="line-356" name="line-356"></a><span class="cm"> */</span>
+<a id="line-357" name="line-357"></a><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span>
+<a id="line-358" name="line-358"></a><span class="nf">mate_desktop_item_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-359" name="line-359"></a><span class="p">{</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">retval</span><span class="p">;</span>
+<a id="line-361" name="line-361"></a>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="n">_mate_desktop_init_i18n</span><span class="w"> </span><span class="p">();</span>
+<a id="line-363" name="line-363"></a>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new0</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-365" name="line-365"></a>
+<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">retval</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="o">++</span><span class="p">;</span>
+<a id="line-367" name="line-367"></a>
+<a id="line-368" name="line-368"></a><span class="w"> </span><span class="n">retval</span><span class="o">-&gt;</span><span class="n">main_hash</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_new_full</span><span class="w"> </span><span class="p">(</span><span class="n">g_str_hash</span><span class="p">,</span><span class="w"> </span><span class="n">g_str_equal</span><span class="p">,</span>
+<a id="line-369" name="line-369"></a><span class="w"> </span><span class="p">(</span><span class="n">GDestroyNotify</span><span class="p">)</span><span class="w"> </span><span class="n">g_free</span><span class="p">,</span>
+<a id="line-370" name="line-370"></a><span class="w"> </span><span class="p">(</span><span class="n">GDestroyNotify</span><span class="p">)</span><span class="w"> </span><span class="n">g_free</span><span class="p">);</span>
+<a id="line-371" name="line-371"></a>
+<a id="line-372" name="line-372"></a><span class="w"> </span><span class="cm">/* These are guaranteed to be set */</span>
+<a id="line-373" name="line-373"></a><span class="w"> </span><span class="n">mate_desktop_item_set_string</span><span class="w"> </span><span class="p">(</span><span class="n">retval</span><span class="p">,</span>
+<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_NAME</span><span class="p">,</span>
+<a id="line-375" name="line-375"></a><span class="w"> </span><span class="cm">/* Translators: the &quot;name&quot; mentioned</span>
+<a id="line-376" name="line-376"></a><span class="cm"> * here is the name of an application or</span>
+<a id="line-377" name="line-377"></a><span class="cm"> * a document */</span>
+<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;No name&quot;</span><span class="p">));</span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="n">mate_desktop_item_set_string</span><span class="w"> </span><span class="p">(</span><span class="n">retval</span><span class="p">,</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ENCODING</span><span class="p">,</span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">);</span>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">mate_desktop_item_set_string</span><span class="w"> </span><span class="p">(</span><span class="n">retval</span><span class="p">,</span>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_VERSION</span><span class="p">,</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="s">&quot;1.0&quot;</span><span class="p">);</span>
+<a id="line-385" name="line-385"></a>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">retval</span><span class="o">-&gt;</span><span class="n">launch_time</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-387" name="line-387"></a>
+<a id="line-388" name="line-388"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span>
+<a id="line-389" name="line-389"></a><span class="p">}</span>
+<a id="line-390" name="line-390"></a>
+<a id="line-391" name="line-391"></a><span class="k">static</span><span class="w"> </span><span class="n">Section</span><span class="w"> </span><span class="o">*</span>
+<a id="line-392" name="line-392"></a><span class="nf">dup_section</span><span class="w"> </span><span class="p">(</span><span class="n">Section</span><span class="w"> </span><span class="o">*</span><span class="n">sec</span><span class="p">)</span>
+<a id="line-393" name="line-393"></a><span class="p">{</span>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">li</span><span class="p">;</span>
+<a id="line-395" name="line-395"></a><span class="w"> </span><span class="n">Section</span><span class="w"> </span><span class="o">*</span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new0</span><span class="w"> </span><span class="p">(</span><span class="n">Section</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-396" name="line-396"></a>
+<a id="line-397" name="line-397"></a><span class="w"> </span><span class="n">retval</span><span class="o">-&gt;</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">sec</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">);</span>
+<a id="line-398" name="line-398"></a>
+<a id="line-399" name="line-399"></a><span class="w"> </span><span class="n">retval</span><span class="o">-&gt;</span><span class="n">keys</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_copy</span><span class="w"> </span><span class="p">(</span><span class="n">sec</span><span class="o">-&gt;</span><span class="n">keys</span><span class="p">);</span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">retval</span><span class="o">-&gt;</span><span class="n">keys</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">li</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">);</span>
+<a id="line-402" name="line-402"></a>
+<a id="line-403" name="line-403"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span>
+<a id="line-404" name="line-404"></a><span class="p">}</span>
+<a id="line-405" name="line-405"></a>
+<a id="line-406" name="line-406"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-407" name="line-407"></a><span class="nf">copy_string_hash</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span>
+<a id="line-408" name="line-408"></a><span class="p">{</span>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">GHashTable</span><span class="w"> </span><span class="o">*</span><span class="n">copy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">user_data</span><span class="p">;</span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">g_hash_table_replace</span><span class="w"> </span><span class="p">(</span><span class="n">copy</span><span class="p">,</span>
+<a id="line-411" name="line-411"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">key</span><span class="p">),</span>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span>
+<a id="line-413" name="line-413"></a><span class="p">}</span>
+<a id="line-414" name="line-414"></a>
+<a id="line-415" name="line-415"></a><span class="cm">/**</span>
+<a id="line-416" name="line-416"></a><span class="cm"> * mate_desktop_item_copy:</span>
+<a id="line-417" name="line-417"></a><span class="cm"> * @item: The item to be copied</span>
+<a id="line-418" name="line-418"></a><span class="cm"> *</span>
+<a id="line-419" name="line-419"></a><span class="cm"> * Creates a copy of a MateDesktopItem. The new copy has a refcount of 1.</span>
+<a id="line-420" name="line-420"></a><span class="cm"> * Note: Section stack is NOT copied.</span>
+<a id="line-421" name="line-421"></a><span class="cm"> *</span>
+<a id="line-422" name="line-422"></a><span class="cm"> * Returns: The new copy</span>
+<a id="line-423" name="line-423"></a><span class="cm"> */</span>
+<a id="line-424" name="line-424"></a><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span>
+<a id="line-425" name="line-425"></a><span class="nf">mate_desktop_item_copy</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">)</span>
+<a id="line-426" name="line-426"></a><span class="p">{</span>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">li</span><span class="p">;</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">retval</span><span class="p">;</span>
+<a id="line-429" name="line-429"></a>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-431" name="line-431"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-432" name="line-432"></a>
+<a id="line-433" name="line-433"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-434" name="line-434"></a>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">retval</span><span class="o">-&gt;</span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">type</span><span class="p">;</span>
+<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">retval</span><span class="o">-&gt;</span><span class="n">modified</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">modified</span><span class="p">;</span>
+<a id="line-437" name="line-437"></a><span class="w"> </span><span class="n">retval</span><span class="o">-&gt;</span><span class="n">location</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">location</span><span class="p">);</span>
+<a id="line-438" name="line-438"></a><span class="w"> </span><span class="n">retval</span><span class="o">-&gt;</span><span class="n">mtime</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">mtime</span><span class="p">;</span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">retval</span><span class="o">-&gt;</span><span class="n">launch_time</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">launch_time</span><span class="p">;</span>
+<a id="line-440" name="line-440"></a>
+<a id="line-441" name="line-441"></a><span class="w"> </span><span class="cm">/* Languages */</span>
+<a id="line-442" name="line-442"></a><span class="w"> </span><span class="n">retval</span><span class="o">-&gt;</span><span class="n">languages</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_copy</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">languages</span><span class="p">);</span>
+<a id="line-443" name="line-443"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">retval</span><span class="o">-&gt;</span><span class="n">languages</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span>
+<a id="line-444" name="line-444"></a><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">li</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">);</span>
+<a id="line-445" name="line-445"></a>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="cm">/* Keys */</span>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">retval</span><span class="o">-&gt;</span><span class="n">keys</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_copy</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">keys</span><span class="p">);</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">retval</span><span class="o">-&gt;</span><span class="n">keys</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span>
+<a id="line-449" name="line-449"></a><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">li</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">);</span>
+<a id="line-450" name="line-450"></a>
+<a id="line-451" name="line-451"></a><span class="w"> </span><span class="cm">/* Sections */</span>
+<a id="line-452" name="line-452"></a><span class="w"> </span><span class="n">retval</span><span class="o">-&gt;</span><span class="n">sections</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_copy</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">sections</span><span class="p">);</span>
+<a id="line-453" name="line-453"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">retval</span><span class="o">-&gt;</span><span class="n">sections</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span>
+<a id="line-454" name="line-454"></a><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dup_section</span><span class="w"> </span><span class="p">(</span><span class="n">li</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">);</span>
+<a id="line-455" name="line-455"></a>
+<a id="line-456" name="line-456"></a><span class="w"> </span><span class="n">retval</span><span class="o">-&gt;</span><span class="n">main_hash</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_new_full</span><span class="w"> </span><span class="p">(</span><span class="n">g_str_hash</span><span class="p">,</span><span class="w"> </span><span class="n">g_str_equal</span><span class="p">,</span>
+<a id="line-457" name="line-457"></a><span class="w"> </span><span class="p">(</span><span class="n">GDestroyNotify</span><span class="p">)</span><span class="w"> </span><span class="n">g_free</span><span class="p">,</span>
+<a id="line-458" name="line-458"></a><span class="w"> </span><span class="p">(</span><span class="n">GDestroyNotify</span><span class="p">)</span><span class="w"> </span><span class="n">g_free</span><span class="p">);</span>
+<a id="line-459" name="line-459"></a>
+<a id="line-460" name="line-460"></a><span class="w"> </span><span class="n">g_hash_table_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">main_hash</span><span class="p">,</span>
+<a id="line-461" name="line-461"></a><span class="w"> </span><span class="n">copy_string_hash</span><span class="p">,</span>
+<a id="line-462" name="line-462"></a><span class="w"> </span><span class="n">retval</span><span class="o">-&gt;</span><span class="n">main_hash</span><span class="p">);</span>
+<a id="line-463" name="line-463"></a>
+<a id="line-464" name="line-464"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span>
+<a id="line-465" name="line-465"></a><span class="p">}</span>
+<a id="line-466" name="line-466"></a>
+<a id="line-467" name="line-467"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-468" name="line-468"></a><span class="nf">read_sort_order</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">dir</span><span class="p">)</span>
+<a id="line-469" name="line-469"></a><span class="p">{</span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">child</span><span class="p">;</span>
+<a id="line-471" name="line-471"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">buf</span><span class="p">[</span><span class="n">BUFSIZ</span><span class="p">];</span>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">;</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">ReadBuf</span><span class="w"> </span><span class="o">*</span><span class="n">rb</span><span class="p">;</span>
+<a id="line-474" name="line-474"></a>
+<a id="line-475" name="line-475"></a><span class="w"> </span><span class="n">child</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_child</span><span class="w"> </span><span class="p">(</span><span class="n">dir</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;.order&quot;</span><span class="p">);</span>
+<a id="line-476" name="line-476"></a>
+<a id="line-477" name="line-477"></a><span class="w"> </span><span class="n">rb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">readbuf_open</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-478" name="line-478"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="p">);</span>
+<a id="line-479" name="line-479"></a>
+<a id="line-480" name="line-480"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-481" name="line-481"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-482" name="line-482"></a>
+<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-484" name="line-484"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">readbuf_gets</span><span class="w"> </span><span class="p">(</span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="k">sizeof</span><span class="w"> </span><span class="p">(</span><span class="n">buf</span><span class="p">),</span><span class="w"> </span><span class="n">rb</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-485" name="line-485"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-486" name="line-486"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_new</span><span class="w"> </span><span class="p">(</span><span class="n">buf</span><span class="p">);</span>
+<a id="line-487" name="line-487"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-488" name="line-488"></a><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">buf</span><span class="p">);</span>
+<a id="line-489" name="line-489"></a><span class="w"> </span><span class="n">g_string_append_c</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="sc">&#39;;&#39;</span><span class="p">);</span>
+<a id="line-490" name="line-490"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-491" name="line-491"></a><span class="w"> </span><span class="n">readbuf_close</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="p">);</span>
+<a id="line-492" name="line-492"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-493" name="line-493"></a><span class="w"> </span><span class="n">mate_desktop_item_set_string</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_SORT_ORDER</span><span class="p">,</span>
+<a id="line-494" name="line-494"></a><span class="w"> </span><span class="n">str</span><span class="o">-&gt;</span><span class="n">str</span><span class="p">);</span>
+<a id="line-495" name="line-495"></a><span class="w"> </span><span class="n">g_string_free</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-496" name="line-496"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-497" name="line-497"></a><span class="p">}</span>
+<a id="line-498" name="line-498"></a>
+<a id="line-499" name="line-499"></a><span class="k">static</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span>
+<a id="line-500" name="line-500"></a><span class="nf">make_fake_directory</span><span class="w"> </span><span class="p">(</span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">dir</span><span class="p">)</span>
+<a id="line-501" name="line-501"></a><span class="p">{</span>
+<a id="line-502" name="line-502"></a><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">;</span>
+<a id="line-503" name="line-503"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">child</span><span class="p">;</span>
+<a id="line-504" name="line-504"></a>
+<a id="line-505" name="line-505"></a><span class="w"> </span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-506" name="line-506"></a><span class="w"> </span><span class="n">mate_desktop_item_set_entry_type</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span>
+<a id="line-507" name="line-507"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE_DIRECTORY</span><span class="p">);</span>
+<a id="line-508" name="line-508"></a>
+<a id="line-509" name="line-509"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">mtime</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">DONT_UPDATE_MTIME</span><span class="p">;</span><span class="w"> </span><span class="cm">/* it doesn&#39;t exist, we know that */</span>
+<a id="line-510" name="line-510"></a><span class="w"> </span><span class="n">child</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_child</span><span class="w"> </span><span class="p">(</span><span class="n">dir</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;.directory&quot;</span><span class="p">);</span>
+<a id="line-511" name="line-511"></a><span class="w"> </span><span class="n">mate_desktop_item_set_location_gfile</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">child</span><span class="p">);</span>
+<a id="line-512" name="line-512"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">mtime</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-513" name="line-513"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="p">);</span>
+<a id="line-514" name="line-514"></a>
+<a id="line-515" name="line-515"></a><span class="w"> </span><span class="n">read_sort_order</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">dir</span><span class="p">);</span>
+<a id="line-516" name="line-516"></a>
+<a id="line-517" name="line-517"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">item</span><span class="p">;</span>
+<a id="line-518" name="line-518"></a><span class="p">}</span>
+<a id="line-519" name="line-519"></a>
+<a id="line-520" name="line-520"></a><span class="cm">/**</span>
+<a id="line-521" name="line-521"></a><span class="cm"> * mate_desktop_item_new_from_file:</span>
+<a id="line-522" name="line-522"></a><span class="cm"> * @file: The filename or directory path to load the MateDesktopItem from</span>
+<a id="line-523" name="line-523"></a><span class="cm"> * @flags: Flags to influence the loading process</span>
+<a id="line-524" name="line-524"></a><span class="cm"> *</span>
+<a id="line-525" name="line-525"></a><span class="cm"> * This function loads &#39;file&#39; and turns it into a MateDesktopItem.</span>
+<a id="line-526" name="line-526"></a><span class="cm"> *</span>
+<a id="line-527" name="line-527"></a><span class="cm"> * Returns: The newly loaded item.</span>
+<a id="line-528" name="line-528"></a><span class="cm"> */</span>
+<a id="line-529" name="line-529"></a><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span>
+<a id="line-530" name="line-530"></a><span class="nf">mate_desktop_item_new_from_file</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">,</span>
+<a id="line-531" name="line-531"></a><span class="w"> </span><span class="n">MateDesktopItemLoadFlags</span><span class="w"> </span><span class="n">flags</span><span class="p">,</span>
+<a id="line-532" name="line-532"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-533" name="line-533"></a><span class="p">{</span>
+<a id="line-534" name="line-534"></a><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">retval</span><span class="p">;</span>
+<a id="line-535" name="line-535"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">gfile</span><span class="p">;</span>
+<a id="line-536" name="line-536"></a>
+<a id="line-537" name="line-537"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-538" name="line-538"></a>
+<a id="line-539" name="line-539"></a><span class="w"> </span><span class="n">gfile</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_new_for_path</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-540" name="line-540"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_new_from_gfile</span><span class="w"> </span><span class="p">(</span><span class="n">gfile</span><span class="p">,</span><span class="w"> </span><span class="n">flags</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-541" name="line-541"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">gfile</span><span class="p">);</span>
+<a id="line-542" name="line-542"></a>
+<a id="line-543" name="line-543"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span>
+<a id="line-544" name="line-544"></a><span class="p">}</span>
+<a id="line-545" name="line-545"></a>
+<a id="line-546" name="line-546"></a><span class="cm">/**</span>
+<a id="line-547" name="line-547"></a><span class="cm"> * mate_desktop_item_new_from_uri:</span>
+<a id="line-548" name="line-548"></a><span class="cm"> * @uri: URI to load the MateDesktopItem from</span>
+<a id="line-549" name="line-549"></a><span class="cm"> * @flags: Flags to influence the loading process</span>
+<a id="line-550" name="line-550"></a><span class="cm"> *</span>
+<a id="line-551" name="line-551"></a><span class="cm"> * This function loads &#39;uri&#39; and turns it into a MateDesktopItem.</span>
+<a id="line-552" name="line-552"></a><span class="cm"> *</span>
+<a id="line-553" name="line-553"></a><span class="cm"> * Returns: The newly loaded item.</span>
+<a id="line-554" name="line-554"></a><span class="cm"> */</span>
+<a id="line-555" name="line-555"></a><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span>
+<a id="line-556" name="line-556"></a><span class="nf">mate_desktop_item_new_from_uri</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span>
+<a id="line-557" name="line-557"></a><span class="w"> </span><span class="n">MateDesktopItemLoadFlags</span><span class="w"> </span><span class="n">flags</span><span class="p">,</span>
+<a id="line-558" name="line-558"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-559" name="line-559"></a><span class="p">{</span>
+<a id="line-560" name="line-560"></a><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">retval</span><span class="p">;</span>
+<a id="line-561" name="line-561"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span>
+<a id="line-562" name="line-562"></a>
+<a id="line-563" name="line-563"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-564" name="line-564"></a>
+<a id="line-565" name="line-565"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_new_for_uri</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">);</span>
+<a id="line-566" name="line-566"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_new_from_gfile</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="n">flags</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-567" name="line-567"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-568" name="line-568"></a>
+<a id="line-569" name="line-569"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span>
+<a id="line-570" name="line-570"></a><span class="p">}</span>
+<a id="line-571" name="line-571"></a>
+<a id="line-572" name="line-572"></a><span class="k">static</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span>
+<a id="line-573" name="line-573"></a><span class="nf">mate_desktop_item_new_from_gfile</span><span class="w"> </span><span class="p">(</span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">,</span>
+<a id="line-574" name="line-574"></a><span class="w"> </span><span class="n">MateDesktopItemLoadFlags</span><span class="w"> </span><span class="n">flags</span><span class="p">,</span>
+<a id="line-575" name="line-575"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-576" name="line-576"></a><span class="p">{</span>
+<a id="line-577" name="line-577"></a><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">retval</span><span class="p">;</span>
+<a id="line-578" name="line-578"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">subfn</span><span class="p">;</span>
+<a id="line-579" name="line-579"></a><span class="w"> </span><span class="n">GFileInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">;</span>
+<a id="line-580" name="line-580"></a><span class="w"> </span><span class="n">GFileType</span><span class="w"> </span><span class="n">type</span><span class="p">;</span>
+<a id="line-581" name="line-581"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">parent</span><span class="p">;</span>
+<a id="line-582" name="line-582"></a><span class="w"> </span><span class="n">gint64</span><span class="w"> </span><span class="n">mtime</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-583" name="line-583"></a><span class="w"> </span><span class="n">ReadBuf</span><span class="w"> </span><span class="o">*</span><span class="n">rb</span><span class="p">;</span>
+<a id="line-584" name="line-584"></a>
+<a id="line-585" name="line-585"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-586" name="line-586"></a>
+<a id="line-587" name="line-587"></a><span class="w"> </span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_query_info</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span>
+<a id="line-588" name="line-588"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_STANDARD_TYPE</span><span class="s">&quot;,&quot;</span><span class="n">G_FILE_ATTRIBUTE_TIME_MODIFIED</span><span class="p">,</span>
+<a id="line-589" name="line-589"></a><span class="w"> </span><span class="n">G_FILE_QUERY_INFO_NONE</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-590" name="line-590"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-591" name="line-591"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-592" name="line-592"></a>
+<a id="line-593" name="line-593"></a><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_file_type</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">);</span>
+<a id="line-594" name="line-594"></a>
+<a id="line-595" name="line-595"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">G_FILE_TYPE_REGULAR</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">G_FILE_TYPE_DIRECTORY</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-596" name="line-596"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">;</span>
+<a id="line-597" name="line-597"></a>
+<a id="line-598" name="line-598"></a><span class="w"> </span><span class="n">uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_uri</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-599" name="line-599"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span>
+<a id="line-600" name="line-600"></a><span class="w"> </span><span class="cm">/* FIXME: better errors */</span>
+<a id="line-601" name="line-601"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ERROR</span><span class="p">,</span>
+<a id="line-602" name="line-602"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ERROR_INVALID_TYPE</span><span class="p">,</span>
+<a id="line-603" name="line-603"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;File &#39;%s&#39; is not a regular file or directory.&quot;</span><span class="p">),</span>
+<a id="line-604" name="line-604"></a><span class="w"> </span><span class="n">uri</span><span class="p">);</span>
+<a id="line-605" name="line-605"></a>
+<a id="line-606" name="line-606"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">);</span>
+<a id="line-607" name="line-607"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">);</span>
+<a id="line-608" name="line-608"></a>
+<a id="line-609" name="line-609"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-610" name="line-610"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-611" name="line-611"></a>
+<a id="line-612" name="line-612"></a><span class="w"> </span><span class="n">mtime</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_attribute_uint64</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">,</span>
+<a id="line-613" name="line-613"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_TIME_MODIFIED</span><span class="p">);</span>
+<a id="line-614" name="line-614"></a>
+<a id="line-615" name="line-615"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">);</span>
+<a id="line-616" name="line-616"></a>
+<a id="line-617" name="line-617"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">G_FILE_TYPE_DIRECTORY</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-618" name="line-618"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">child</span><span class="p">;</span>
+<a id="line-619" name="line-619"></a><span class="w"> </span><span class="n">GFileInfo</span><span class="w"> </span><span class="o">*</span><span class="n">child_info</span><span class="p">;</span>
+<a id="line-620" name="line-620"></a>
+<a id="line-621" name="line-621"></a><span class="w"> </span><span class="n">child</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_child</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;.directory&quot;</span><span class="p">);</span>
+<a id="line-622" name="line-622"></a><span class="w"> </span><span class="n">child_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_query_info</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="p">,</span>
+<a id="line-623" name="line-623"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_TIME_MODIFIED</span><span class="p">,</span>
+<a id="line-624" name="line-624"></a><span class="w"> </span><span class="n">G_FILE_QUERY_INFO_NONE</span><span class="p">,</span>
+<a id="line-625" name="line-625"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-626" name="line-626"></a>
+<a id="line-627" name="line-627"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">child_info</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-628" name="line-628"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="p">);</span>
+<a id="line-629" name="line-629"></a>
+<a id="line-630" name="line-630"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">flags</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_LOAD_ONLY_IF_EXISTS</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-631" name="line-631"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-632" name="line-632"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-633" name="line-633"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">make_fake_directory</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-634" name="line-634"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-635" name="line-635"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-636" name="line-636"></a>
+<a id="line-637" name="line-637"></a><span class="w"> </span><span class="n">mtime</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_attribute_uint64</span><span class="w"> </span><span class="p">(</span><span class="n">child_info</span><span class="p">,</span>
+<a id="line-638" name="line-638"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_TIME_MODIFIED</span><span class="p">);</span>
+<a id="line-639" name="line-639"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">child_info</span><span class="p">);</span>
+<a id="line-640" name="line-640"></a>
+<a id="line-641" name="line-641"></a><span class="w"> </span><span class="n">subfn</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">child</span><span class="p">;</span>
+<a id="line-642" name="line-642"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-643" name="line-643"></a><span class="w"> </span><span class="n">subfn</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_dup</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-644" name="line-644"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-645" name="line-645"></a>
+<a id="line-646" name="line-646"></a><span class="w"> </span><span class="n">rb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">readbuf_open</span><span class="w"> </span><span class="p">(</span><span class="n">subfn</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-647" name="line-647"></a>
+<a id="line-648" name="line-648"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-649" name="line-649"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">subfn</span><span class="p">);</span>
+<a id="line-650" name="line-650"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-651" name="line-651"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-652" name="line-652"></a>
+<a id="line-653" name="line-653"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ditem_load</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="p">,</span>
+<a id="line-654" name="line-654"></a><span class="w"> </span><span class="p">(</span><span class="n">flags</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_LOAD_NO_TRANSLATIONS</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
+<a id="line-655" name="line-655"></a><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-656" name="line-656"></a>
+<a id="line-657" name="line-657"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">retval</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-658" name="line-658"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">subfn</span><span class="p">);</span>
+<a id="line-659" name="line-659"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-660" name="line-660"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-661" name="line-661"></a>
+<a id="line-662" name="line-662"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">flags</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_LOAD_ONLY_IF_EXISTS</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-663" name="line-663"></a><span class="w"> </span><span class="o">!</span><span class="w"> </span><span class="n">mate_desktop_item_exists</span><span class="w"> </span><span class="p">(</span><span class="n">retval</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-664" name="line-664"></a><span class="w"> </span><span class="n">mate_desktop_item_unref</span><span class="w"> </span><span class="p">(</span><span class="n">retval</span><span class="p">);</span>
+<a id="line-665" name="line-665"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">subfn</span><span class="p">);</span>
+<a id="line-666" name="line-666"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-667" name="line-667"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-668" name="line-668"></a>
+<a id="line-669" name="line-669"></a><span class="w"> </span><span class="n">retval</span><span class="o">-&gt;</span><span class="n">mtime</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">DONT_UPDATE_MTIME</span><span class="p">;</span>
+<a id="line-670" name="line-670"></a><span class="w"> </span><span class="n">mate_desktop_item_set_location_gfile</span><span class="w"> </span><span class="p">(</span><span class="n">retval</span><span class="p">,</span><span class="w"> </span><span class="n">subfn</span><span class="p">);</span>
+<a id="line-671" name="line-671"></a><span class="w"> </span><span class="n">retval</span><span class="o">-&gt;</span><span class="n">mtime</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mtime</span><span class="p">;</span>
+<a id="line-672" name="line-672"></a>
+<a id="line-673" name="line-673"></a><span class="w"> </span><span class="n">parent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_parent</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-674" name="line-674"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">parent</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-675" name="line-675"></a><span class="w"> </span><span class="n">read_sort_order</span><span class="w"> </span><span class="p">(</span><span class="n">retval</span><span class="p">,</span><span class="w"> </span><span class="n">parent</span><span class="p">);</span>
+<a id="line-676" name="line-676"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">parent</span><span class="p">);</span>
+<a id="line-677" name="line-677"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-678" name="line-678"></a>
+<a id="line-679" name="line-679"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">subfn</span><span class="p">);</span>
+<a id="line-680" name="line-680"></a>
+<a id="line-681" name="line-681"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span>
+<a id="line-682" name="line-682"></a><span class="p">}</span>
+<a id="line-683" name="line-683"></a>
+<a id="line-684" name="line-684"></a><span class="cm">/**</span>
+<a id="line-685" name="line-685"></a><span class="cm"> * mate_desktop_item_new_from_string:</span>
+<a id="line-686" name="line-686"></a><span class="cm"> * @string: string to load the MateDesktopItem from</span>
+<a id="line-687" name="line-687"></a><span class="cm"> * @length: length of string, or -1 to use strlen</span>
+<a id="line-688" name="line-688"></a><span class="cm"> * @flags: Flags to influence the loading process</span>
+<a id="line-689" name="line-689"></a><span class="cm"> * @error: place to put errors</span>
+<a id="line-690" name="line-690"></a><span class="cm"> *</span>
+<a id="line-691" name="line-691"></a><span class="cm"> * This function turns the contents of the string into a MateDesktopItem.</span>
+<a id="line-692" name="line-692"></a><span class="cm"> *</span>
+<a id="line-693" name="line-693"></a><span class="cm"> * Returns: The newly loaded item.</span>
+<a id="line-694" name="line-694"></a><span class="cm"> */</span>
+<a id="line-695" name="line-695"></a><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span>
+<a id="line-696" name="line-696"></a><span class="nf">mate_desktop_item_new_from_string</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span>
+<a id="line-697" name="line-697"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">string</span><span class="p">,</span>
+<a id="line-698" name="line-698"></a><span class="w"> </span><span class="n">gssize</span><span class="w"> </span><span class="n">length</span><span class="p">,</span>
+<a id="line-699" name="line-699"></a><span class="w"> </span><span class="n">MateDesktopItemLoadFlags</span><span class="w"> </span><span class="n">flags</span><span class="p">,</span>
+<a id="line-700" name="line-700"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-701" name="line-701"></a><span class="p">{</span>
+<a id="line-702" name="line-702"></a><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">retval</span><span class="p">;</span>
+<a id="line-703" name="line-703"></a><span class="w"> </span><span class="n">ReadBuf</span><span class="w"> </span><span class="o">*</span><span class="n">rb</span><span class="p">;</span>
+<a id="line-704" name="line-704"></a>
+<a id="line-705" name="line-705"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-706" name="line-706"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">length</span><span class="w"> </span><span class="o">&gt;=</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-707" name="line-707"></a>
+<a id="line-708" name="line-708"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">length</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">-1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-709" name="line-709"></a><span class="w"> </span><span class="n">length</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">);</span>
+<a id="line-710" name="line-710"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-711" name="line-711"></a>
+<a id="line-712" name="line-712"></a><span class="w"> </span><span class="n">rb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">readbuf_new_from_string</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">length</span><span class="p">);</span>
+<a id="line-713" name="line-713"></a>
+<a id="line-714" name="line-714"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ditem_load</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="p">,</span>
+<a id="line-715" name="line-715"></a><span class="w"> </span><span class="p">(</span><span class="n">flags</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_LOAD_NO_TRANSLATIONS</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
+<a id="line-716" name="line-716"></a><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-717" name="line-717"></a>
+<a id="line-718" name="line-718"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">retval</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-719" name="line-719"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-720" name="line-720"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-721" name="line-721"></a>
+<a id="line-722" name="line-722"></a><span class="w"> </span><span class="cm">/* FIXME: Sort order? */</span>
+<a id="line-723" name="line-723"></a>
+<a id="line-724" name="line-724"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span>
+<a id="line-725" name="line-725"></a><span class="p">}</span>
+<a id="line-726" name="line-726"></a>
+<a id="line-727" name="line-727"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-728" name="line-728"></a><span class="nf">lookup_desktop_file_in_data_dir</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">desktop_file</span><span class="p">,</span>
+<a id="line-729" name="line-729"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">data_dir</span><span class="p">)</span>
+<a id="line-730" name="line-730"></a><span class="p">{</span>
+<a id="line-731" name="line-731"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span>
+<a id="line-732" name="line-732"></a>
+<a id="line-733" name="line-733"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_build_filename</span><span class="w"> </span><span class="p">(</span><span class="n">data_dir</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;applications&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">desktop_file</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-734" name="line-734"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_file_test</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="n">G_FILE_TEST_EXISTS</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-735" name="line-735"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span>
+<a id="line-736" name="line-736"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-737" name="line-737"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-738" name="line-738"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">path</span><span class="p">;</span>
+<a id="line-739" name="line-739"></a><span class="p">}</span>
+<a id="line-740" name="line-740"></a>
+<a id="line-741" name="line-741"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-742" name="line-742"></a><span class="nf">file_from_basename</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">basename</span><span class="p">)</span>
+<a id="line-743" name="line-743"></a><span class="p">{</span>
+<a id="line-744" name="line-744"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="o">*</span><span class="n">system_data_dirs</span><span class="p">;</span>
+<a id="line-745" name="line-745"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">user_data_dir</span><span class="p">;</span>
+<a id="line-746" name="line-746"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">retval</span><span class="p">;</span>
+<a id="line-747" name="line-747"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-748" name="line-748"></a>
+<a id="line-749" name="line-749"></a><span class="w"> </span><span class="n">user_data_dir</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_get_user_data_dir</span><span class="w"> </span><span class="p">();</span>
+<a id="line-750" name="line-750"></a><span class="w"> </span><span class="n">system_data_dirs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_get_system_data_dirs</span><span class="w"> </span><span class="p">();</span>
+<a id="line-751" name="line-751"></a>
+<a id="line-752" name="line-752"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">lookup_desktop_file_in_data_dir</span><span class="w"> </span><span class="p">(</span><span class="n">basename</span><span class="p">,</span><span class="w"> </span><span class="n">user_data_dir</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-753" name="line-753"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span>
+<a id="line-754" name="line-754"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-755" name="line-755"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">system_data_dirs</span><span class="p">[</span><span class="n">i</span><span class="p">];</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-756" name="line-756"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">lookup_desktop_file_in_data_dir</span><span class="w"> </span><span class="p">(</span><span class="n">basename</span><span class="p">,</span><span class="w"> </span><span class="n">system_data_dirs</span><span class="p">[</span><span class="n">i</span><span class="p">])))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-757" name="line-757"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span>
+<a id="line-758" name="line-758"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-759" name="line-759"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-760" name="line-760"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-761" name="line-761"></a><span class="p">}</span>
+<a id="line-762" name="line-762"></a>
+<a id="line-763" name="line-763"></a><span class="cm">/**</span>
+<a id="line-764" name="line-764"></a><span class="cm"> * mate_desktop_item_new_from_basename:</span>
+<a id="line-765" name="line-765"></a><span class="cm"> * @basename: The basename of the MateDesktopItem to load.</span>
+<a id="line-766" name="line-766"></a><span class="cm"> * @flags: Flags to influence the loading process</span>
+<a id="line-767" name="line-767"></a><span class="cm"> *</span>
+<a id="line-768" name="line-768"></a><span class="cm"> * This function loads &#39;basename&#39; from a system data directory and</span>
+<a id="line-769" name="line-769"></a><span class="cm"> * returns its MateDesktopItem.</span>
+<a id="line-770" name="line-770"></a><span class="cm"> *</span>
+<a id="line-771" name="line-771"></a><span class="cm"> * Returns: The newly loaded item.</span>
+<a id="line-772" name="line-772"></a><span class="cm"> */</span>
+<a id="line-773" name="line-773"></a><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span>
+<a id="line-774" name="line-774"></a><span class="nf">mate_desktop_item_new_from_basename</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">basename</span><span class="p">,</span>
+<a id="line-775" name="line-775"></a><span class="w"> </span><span class="n">MateDesktopItemLoadFlags</span><span class="w"> </span><span class="n">flags</span><span class="p">,</span>
+<a id="line-776" name="line-776"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-777" name="line-777"></a><span class="p">{</span>
+<a id="line-778" name="line-778"></a><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">retval</span><span class="p">;</span>
+<a id="line-779" name="line-779"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span>
+<a id="line-780" name="line-780"></a>
+<a id="line-781" name="line-781"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">basename</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-782" name="line-782"></a>
+<a id="line-783" name="line-783"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">file_from_basename</span><span class="w"> </span><span class="p">(</span><span class="n">basename</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-784" name="line-784"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span>
+<a id="line-785" name="line-785"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ERROR</span><span class="p">,</span>
+<a id="line-786" name="line-786"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ERROR_CANNOT_OPEN</span><span class="p">,</span>
+<a id="line-787" name="line-787"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Cannot find file &#39;%s&#39;&quot;</span><span class="p">),</span>
+<a id="line-788" name="line-788"></a><span class="w"> </span><span class="n">basename</span><span class="p">);</span>
+<a id="line-789" name="line-789"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-790" name="line-790"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-791" name="line-791"></a>
+<a id="line-792" name="line-792"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_new_from_file</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="n">flags</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-793" name="line-793"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-794" name="line-794"></a>
+<a id="line-795" name="line-795"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span>
+<a id="line-796" name="line-796"></a><span class="p">}</span>
+<a id="line-797" name="line-797"></a>
+<a id="line-798" name="line-798"></a><span class="cm">/**</span>
+<a id="line-799" name="line-799"></a><span class="cm"> * mate_desktop_item_save:</span>
+<a id="line-800" name="line-800"></a><span class="cm"> * @item: A desktop item</span>
+<a id="line-801" name="line-801"></a><span class="cm"> * @under: A new uri (location) for this #MateDesktopItem</span>
+<a id="line-802" name="line-802"></a><span class="cm"> * @force: Save even if it wasn&#39;t modified</span>
+<a id="line-803" name="line-803"></a><span class="cm"> * @error: #GError return</span>
+<a id="line-804" name="line-804"></a><span class="cm"> *</span>
+<a id="line-805" name="line-805"></a><span class="cm"> * Writes the specified item to disk. If the &#39;under&#39; is NULL, the original</span>
+<a id="line-806" name="line-806"></a><span class="cm"> * location is used. It sets the location of this entry to point to the</span>
+<a id="line-807" name="line-807"></a><span class="cm"> * new location.</span>
+<a id="line-808" name="line-808"></a><span class="cm"> *</span>
+<a id="line-809" name="line-809"></a><span class="cm"> * Returns: boolean. %TRUE if the file was saved, %FALSE otherwise</span>
+<a id="line-810" name="line-810"></a><span class="cm"> */</span>
+<a id="line-811" name="line-811"></a><span class="n">gboolean</span>
+<a id="line-812" name="line-812"></a><span class="nf">mate_desktop_item_save</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-813" name="line-813"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">under</span><span class="p">,</span>
+<a id="line-814" name="line-814"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">force</span><span class="p">,</span>
+<a id="line-815" name="line-815"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-816" name="line-816"></a><span class="p">{</span>
+<a id="line-817" name="line-817"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">;</span>
+<a id="line-818" name="line-818"></a>
+<a id="line-819" name="line-819"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">under</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-820" name="line-820"></a><span class="w"> </span><span class="o">!</span><span class="w"> </span><span class="n">force</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-821" name="line-821"></a><span class="w"> </span><span class="o">!</span><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">modified</span><span class="p">)</span>
+<a id="line-822" name="line-822"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-823" name="line-823"></a>
+<a id="line-824" name="line-824"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">under</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-825" name="line-825"></a><span class="w"> </span><span class="n">uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">location</span><span class="p">;</span>
+<a id="line-826" name="line-826"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-827" name="line-827"></a><span class="w"> </span><span class="n">uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">under</span><span class="p">;</span>
+<a id="line-828" name="line-828"></a>
+<a id="line-829" name="line-829"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-830" name="line-830"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span>
+<a id="line-831" name="line-831"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ERROR</span><span class="p">,</span>
+<a id="line-832" name="line-832"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ERROR_NO_FILENAME</span><span class="p">,</span>
+<a id="line-833" name="line-833"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;No filename to save to&quot;</span><span class="p">));</span>
+<a id="line-834" name="line-834"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-835" name="line-835"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-836" name="line-836"></a>
+<a id="line-837" name="line-837"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="o">!</span><span class="w"> </span><span class="n">ditem_save</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">))</span>
+<a id="line-838" name="line-838"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-839" name="line-839"></a>
+<a id="line-840" name="line-840"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">modified</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-841" name="line-841"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">mtime</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_get_real_time</span><span class="w"> </span><span class="p">()</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">G_USEC_PER_SEC</span><span class="p">;</span>
+<a id="line-842" name="line-842"></a>
+<a id="line-843" name="line-843"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-844" name="line-844"></a><span class="p">}</span>
+<a id="line-845" name="line-845"></a>
+<a id="line-846" name="line-846"></a><span class="cm">/**</span>
+<a id="line-847" name="line-847"></a><span class="cm"> * mate_desktop_item_ref:</span>
+<a id="line-848" name="line-848"></a><span class="cm"> * @item: A desktop item</span>
+<a id="line-849" name="line-849"></a><span class="cm"> *</span>
+<a id="line-850" name="line-850"></a><span class="cm"> * Description: Increases the reference count of the specified item.</span>
+<a id="line-851" name="line-851"></a><span class="cm"> *</span>
+<a id="line-852" name="line-852"></a><span class="cm"> * Returns: the newly referenced @item</span>
+<a id="line-853" name="line-853"></a><span class="cm"> */</span>
+<a id="line-854" name="line-854"></a><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span>
+<a id="line-855" name="line-855"></a><span class="nf">mate_desktop_item_ref</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">)</span>
+<a id="line-856" name="line-856"></a><span class="p">{</span>
+<a id="line-857" name="line-857"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-858" name="line-858"></a>
+<a id="line-859" name="line-859"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="o">++</span><span class="p">;</span>
+<a id="line-860" name="line-860"></a>
+<a id="line-861" name="line-861"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">item</span><span class="p">;</span>
+<a id="line-862" name="line-862"></a><span class="p">}</span>
+<a id="line-863" name="line-863"></a>
+<a id="line-864" name="line-864"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-865" name="line-865"></a><span class="nf">free_section</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-866" name="line-866"></a><span class="p">{</span>
+<a id="line-867" name="line-867"></a><span class="w"> </span><span class="n">Section</span><span class="w"> </span><span class="o">*</span><span class="n">section</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">data</span><span class="p">;</span>
+<a id="line-868" name="line-868"></a>
+<a id="line-869" name="line-869"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">section</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">);</span>
+<a id="line-870" name="line-870"></a><span class="w"> </span><span class="n">section</span><span class="o">-&gt;</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-871" name="line-871"></a>
+<a id="line-872" name="line-872"></a><span class="w"> </span><span class="n">g_list_free_full</span><span class="w"> </span><span class="p">(</span><span class="n">section</span><span class="o">-&gt;</span><span class="n">keys</span><span class="p">,</span><span class="w"> </span><span class="n">g_free</span><span class="p">);</span>
+<a id="line-873" name="line-873"></a><span class="w"> </span><span class="n">section</span><span class="o">-&gt;</span><span class="n">keys</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-874" name="line-874"></a>
+<a id="line-875" name="line-875"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">section</span><span class="p">);</span>
+<a id="line-876" name="line-876"></a><span class="p">}</span>
+<a id="line-877" name="line-877"></a>
+<a id="line-878" name="line-878"></a><span class="cm">/**</span>
+<a id="line-879" name="line-879"></a><span class="cm"> * mate_desktop_item_unref:</span>
+<a id="line-880" name="line-880"></a><span class="cm"> * @item: A desktop item</span>
+<a id="line-881" name="line-881"></a><span class="cm"> *</span>
+<a id="line-882" name="line-882"></a><span class="cm"> * Decreases the reference count of the specified item, and destroys the item if there are no more references left.</span>
+<a id="line-883" name="line-883"></a><span class="cm"> */</span>
+<a id="line-884" name="line-884"></a><span class="kt">void</span>
+<a id="line-885" name="line-885"></a><span class="nf">mate_desktop_item_unref</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">)</span>
+<a id="line-886" name="line-886"></a><span class="p">{</span>
+<a id="line-887" name="line-887"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-888" name="line-888"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-889" name="line-889"></a>
+<a id="line-890" name="line-890"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="o">--</span><span class="p">;</span>
+<a id="line-891" name="line-891"></a>
+<a id="line-892" name="line-892"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-893" name="line-893"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-894" name="line-894"></a>
+<a id="line-895" name="line-895"></a><span class="w"> </span><span class="n">g_list_free_full</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">languages</span><span class="p">,</span><span class="w"> </span><span class="n">g_free</span><span class="p">);</span>
+<a id="line-896" name="line-896"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">languages</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-897" name="line-897"></a>
+<a id="line-898" name="line-898"></a><span class="w"> </span><span class="n">g_list_free_full</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">keys</span><span class="p">,</span><span class="w"> </span><span class="n">g_free</span><span class="p">);</span>
+<a id="line-899" name="line-899"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">keys</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-900" name="line-900"></a>
+<a id="line-901" name="line-901"></a><span class="w"> </span><span class="n">g_list_free_full</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">sections</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">GDestroyNotify</span><span class="p">)</span><span class="w"> </span><span class="n">free_section</span><span class="p">);</span>
+<a id="line-902" name="line-902"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">sections</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-903" name="line-903"></a>
+<a id="line-904" name="line-904"></a><span class="w"> </span><span class="n">g_hash_table_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">main_hash</span><span class="p">);</span>
+<a id="line-905" name="line-905"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">main_hash</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-906" name="line-906"></a>
+<a id="line-907" name="line-907"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">location</span><span class="p">);</span>
+<a id="line-908" name="line-908"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">location</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-909" name="line-909"></a>
+<a id="line-910" name="line-910"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">);</span>
+<a id="line-911" name="line-911"></a><span class="p">}</span>
+<a id="line-912" name="line-912"></a>
+<a id="line-913" name="line-913"></a><span class="k">static</span><span class="w"> </span><span class="n">Section</span><span class="w"> </span><span class="o">*</span>
+<a id="line-914" name="line-914"></a><span class="nf">find_section</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">section</span><span class="p">)</span>
+<a id="line-915" name="line-915"></a><span class="p">{</span>
+<a id="line-916" name="line-916"></a><span class="hll"><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">li</span><span class="p">;</span><span class="error2">&lt;--- Variable 'li' can be declared as pointer to const</span>
+</span><a id="line-917" name="line-917"></a><span class="w"> </span><span class="n">Section</span><span class="w"> </span><span class="o">*</span><span class="n">sec</span><span class="p">;</span>
+<a id="line-918" name="line-918"></a>
+<a id="line-919" name="line-919"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">section</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-920" name="line-920"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-921" name="line-921"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">section</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Desktop Entry&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-922" name="line-922"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-923" name="line-923"></a>
+<a id="line-924" name="line-924"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">sections</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-925" name="line-925"></a><span class="w"> </span><span class="n">sec</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-926" name="line-926"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">sec</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">section</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-927" name="line-927"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">sec</span><span class="p">;</span>
+<a id="line-928" name="line-928"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-929" name="line-929"></a>
+<a id="line-930" name="line-930"></a><span class="w"> </span><span class="n">sec</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new0</span><span class="w"> </span><span class="p">(</span><span class="n">Section</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-931" name="line-931"></a><span class="w"> </span><span class="n">sec</span><span class="o">-&gt;</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">section</span><span class="p">);</span>
+<a id="line-932" name="line-932"></a><span class="w"> </span><span class="n">sec</span><span class="o">-&gt;</span><span class="n">keys</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-933" name="line-933"></a>
+<a id="line-934" name="line-934"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">sections</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">sections</span><span class="p">,</span><span class="w"> </span><span class="n">sec</span><span class="p">);</span>
+<a id="line-935" name="line-935"></a>
+<a id="line-936" name="line-936"></a><span class="w"> </span><span class="cm">/* Don&#39;t mark the item modified, this is just an empty section,</span>
+<a id="line-937" name="line-937"></a><span class="cm"> * it won&#39;t be saved even */</span>
+<a id="line-938" name="line-938"></a>
+<a id="line-939" name="line-939"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">sec</span><span class="p">;</span>
+<a id="line-940" name="line-940"></a><span class="p">}</span>
+<a id="line-941" name="line-941"></a>
+<a id="line-942" name="line-942"></a><span class="k">static</span><span class="w"> </span><span class="n">Section</span><span class="w"> </span><span class="o">*</span>
+<a id="line-943" name="line-943"></a><span class="nf">section_from_key</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="p">)</span>
+<a id="line-944" name="line-944"></a><span class="p">{</span>
+<a id="line-945" name="line-945"></a><span class="hll"><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">;</span><span class="error2">&lt;--- Variable 'p' can be declared as pointer to const</span>
+</span><a id="line-946" name="line-946"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span>
+<a id="line-947" name="line-947"></a><span class="w"> </span><span class="n">Section</span><span class="w"> </span><span class="o">*</span><span class="n">sec</span><span class="p">;</span>
+<a id="line-948" name="line-948"></a>
+<a id="line-949" name="line-949"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">key</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-950" name="line-950"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-951" name="line-951"></a>
+<a id="line-952" name="line-952"></a><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strchr</span><span class="w"> </span><span class="p">(</span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="sc">&#39;/&#39;</span><span class="p">);</span>
+<a id="line-953" name="line-953"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">p</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-954" name="line-954"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-955" name="line-955"></a>
+<a id="line-956" name="line-956"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strndup</span><span class="w"> </span><span class="p">(</span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">key</span><span class="p">);</span>
+<a id="line-957" name="line-957"></a>
+<a id="line-958" name="line-958"></a><span class="w"> </span><span class="n">sec</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">find_section</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span>
+<a id="line-959" name="line-959"></a>
+<a id="line-960" name="line-960"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">);</span>
+<a id="line-961" name="line-961"></a>
+<a id="line-962" name="line-962"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">sec</span><span class="p">;</span>
+<a id="line-963" name="line-963"></a><span class="p">}</span>
+<a id="line-964" name="line-964"></a>
+<a id="line-965" name="line-965"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-966" name="line-966"></a><span class="nf">key_basename</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="p">)</span>
+<a id="line-967" name="line-967"></a><span class="p">{</span>
+<a id="line-968" name="line-968"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strrchr</span><span class="w"> </span><span class="p">(</span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="sc">&#39;/&#39;</span><span class="p">);</span>
+<a id="line-969" name="line-969"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">p</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-970" name="line-970"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">p</span><span class="o">+</span><span class="mi">1</span><span class="p">;</span>
+<a id="line-971" name="line-971"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-972" name="line-972"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">key</span><span class="p">;</span>
+<a id="line-973" name="line-973"></a><span class="p">}</span>
+<a id="line-974" name="line-974"></a>
+<a id="line-975" name="line-975"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-976" name="line-976"></a><span class="nf">lookup</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="p">)</span>
+<a id="line-977" name="line-977"></a><span class="p">{</span>
+<a id="line-978" name="line-978"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">main_hash</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">);</span>
+<a id="line-979" name="line-979"></a><span class="p">}</span>
+<a id="line-980" name="line-980"></a>
+<a id="line-981" name="line-981"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-982" name="line-982"></a><span class="nf">lookup_locale</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">locale</span><span class="p">)</span>
+<a id="line-983" name="line-983"></a><span class="p">{</span>
+<a id="line-984" name="line-984"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span>
+<a id="line-985" name="line-985"></a><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;C&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-986" name="line-986"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">lookup</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">);</span>
+<a id="line-987" name="line-987"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-988" name="line-988"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">ret</span><span class="p">;</span>
+<a id="line-989" name="line-989"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">full</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;%s[%s]&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="p">);</span>
+<a id="line-990" name="line-990"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">lookup</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">full</span><span class="p">);</span>
+<a id="line-991" name="line-991"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">full</span><span class="p">);</span>
+<a id="line-992" name="line-992"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-993" name="line-993"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-994" name="line-994"></a><span class="p">}</span>
+<a id="line-995" name="line-995"></a>
+<a id="line-996" name="line-996"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-997" name="line-997"></a><span class="nf">lookup_best_locale</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="p">)</span>
+<a id="line-998" name="line-998"></a><span class="p">{</span>
+<a id="line-999" name="line-999"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="o">*</span><span class="n">langs_pointer</span><span class="p">;</span>
+<a id="line-1000" name="line-1000"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-1001" name="line-1001"></a>
+<a id="line-1002" name="line-1002"></a><span class="w"> </span><span class="n">langs_pointer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_get_language_names</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1003" name="line-1003"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">langs_pointer</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1004" name="line-1004"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1005" name="line-1005"></a>
+<a id="line-1006" name="line-1006"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">lookup_locale</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="n">langs_pointer</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span>
+<a id="line-1007" name="line-1007"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">ret</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1008" name="line-1008"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-1009" name="line-1009"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1010" name="line-1010"></a>
+<a id="line-1011" name="line-1011"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1012" name="line-1012"></a><span class="p">}</span>
+<a id="line-1013" name="line-1013"></a>
+<a id="line-1014" name="line-1014"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1015" name="line-1015"></a><span class="nf">set</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">)</span>
+<a id="line-1016" name="line-1016"></a><span class="p">{</span>
+<a id="line-1017" name="line-1017"></a><span class="w"> </span><span class="n">Section</span><span class="w"> </span><span class="o">*</span><span class="n">sec</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">section_from_key</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">);</span>
+<a id="line-1018" name="line-1018"></a>
+<a id="line-1019" name="line-1019"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">sec</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1020" name="line-1020"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1021" name="line-1021"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">main_hash</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1022" name="line-1022"></a><span class="w"> </span><span class="n">sec</span><span class="o">-&gt;</span><span class="n">keys</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span>
+<a id="line-1023" name="line-1023"></a><span class="w"> </span><span class="p">(</span><span class="n">sec</span><span class="o">-&gt;</span><span class="n">keys</span><span class="p">,</span>
+<a id="line-1024" name="line-1024"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">key_basename</span><span class="w"> </span><span class="p">(</span><span class="n">key</span><span class="p">)));</span>
+<a id="line-1025" name="line-1025"></a>
+<a id="line-1026" name="line-1026"></a><span class="w"> </span><span class="n">g_hash_table_replace</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">main_hash</span><span class="p">,</span>
+<a id="line-1027" name="line-1027"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">key</span><span class="p">),</span>
+<a id="line-1028" name="line-1028"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span>
+<a id="line-1029" name="line-1029"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1030" name="line-1030"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_find_custom</span>
+<a id="line-1031" name="line-1031"></a><span class="w"> </span><span class="p">(</span><span class="n">sec</span><span class="o">-&gt;</span><span class="n">keys</span><span class="p">,</span><span class="w"> </span><span class="n">key_basename</span><span class="w"> </span><span class="p">(</span><span class="n">key</span><span class="p">),</span>
+<a id="line-1032" name="line-1032"></a><span class="w"> </span><span class="p">(</span><span class="n">GCompareFunc</span><span class="p">)</span><span class="n">strcmp</span><span class="p">);</span>
+<a id="line-1033" name="line-1033"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1034" name="line-1034"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">);</span>
+<a id="line-1035" name="line-1035"></a><span class="w"> </span><span class="n">sec</span><span class="o">-&gt;</span><span class="n">keys</span><span class="w"> </span><span class="o">=</span>
+<a id="line-1036" name="line-1036"></a><span class="w"> </span><span class="n">g_list_delete_link</span><span class="w"> </span><span class="p">(</span><span class="n">sec</span><span class="o">-&gt;</span><span class="n">keys</span><span class="p">,</span><span class="w"> </span><span class="n">list</span><span class="p">);</span>
+<a id="line-1037" name="line-1037"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1038" name="line-1038"></a><span class="w"> </span><span class="n">g_hash_table_remove</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">main_hash</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">);</span>
+<a id="line-1039" name="line-1039"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1040" name="line-1040"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1041" name="line-1041"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1042" name="line-1042"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">main_hash</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1043" name="line-1043"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">keys</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">keys</span><span class="p">,</span>
+<a id="line-1044" name="line-1044"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">key</span><span class="p">));</span>
+<a id="line-1045" name="line-1045"></a>
+<a id="line-1046" name="line-1046"></a><span class="w"> </span><span class="n">g_hash_table_replace</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">main_hash</span><span class="p">,</span>
+<a id="line-1047" name="line-1047"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">key</span><span class="p">),</span>
+<a id="line-1048" name="line-1048"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span>
+<a id="line-1049" name="line-1049"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1050" name="line-1050"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_find_custom</span>
+<a id="line-1051" name="line-1051"></a><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">keys</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">GCompareFunc</span><span class="p">)</span><span class="n">strcmp</span><span class="p">);</span>
+<a id="line-1052" name="line-1052"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1053" name="line-1053"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">);</span>
+<a id="line-1054" name="line-1054"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">keys</span><span class="w"> </span><span class="o">=</span>
+<a id="line-1055" name="line-1055"></a><span class="w"> </span><span class="n">g_list_delete_link</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">keys</span><span class="p">,</span><span class="w"> </span><span class="n">list</span><span class="p">);</span>
+<a id="line-1056" name="line-1056"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1057" name="line-1057"></a><span class="w"> </span><span class="n">g_hash_table_remove</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">main_hash</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">);</span>
+<a id="line-1058" name="line-1058"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1059" name="line-1059"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1060" name="line-1060"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">modified</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1061" name="line-1061"></a><span class="p">}</span>
+<a id="line-1062" name="line-1062"></a>
+<a id="line-1063" name="line-1063"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1064" name="line-1064"></a><span class="nf">set_locale</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="p">,</span>
+<a id="line-1065" name="line-1065"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">locale</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">)</span>
+<a id="line-1066" name="line-1066"></a><span class="p">{</span>
+<a id="line-1067" name="line-1067"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span>
+<a id="line-1068" name="line-1068"></a><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;C&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1069" name="line-1069"></a><span class="w"> </span><span class="n">set</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">);</span>
+<a id="line-1070" name="line-1070"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1071" name="line-1071"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">full</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;%s[%s]&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="p">);</span>
+<a id="line-1072" name="line-1072"></a><span class="w"> </span><span class="n">set</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">full</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">);</span>
+<a id="line-1073" name="line-1073"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">full</span><span class="p">);</span>
+<a id="line-1074" name="line-1074"></a>
+<a id="line-1075" name="line-1075"></a><span class="w"> </span><span class="cm">/* add the locale to the list of languages if it wasn&#39;t there</span>
+<a id="line-1076" name="line-1076"></a><span class="cm"> * before */</span>
+<a id="line-1077" name="line-1077"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_list_find_custom</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">languages</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="p">,</span>
+<a id="line-1078" name="line-1078"></a><span class="w"> </span><span class="p">(</span><span class="n">GCompareFunc</span><span class="p">)</span><span class="n">strcmp</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1079" name="line-1079"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">languages</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">languages</span><span class="p">,</span>
+<a id="line-1080" name="line-1080"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="p">));</span>
+<a id="line-1081" name="line-1081"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1082" name="line-1082"></a><span class="p">}</span>
+<a id="line-1083" name="line-1083"></a>
+<a id="line-1084" name="line-1084"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span>
+<a id="line-1085" name="line-1085"></a><span class="nf">list_to_vector</span><span class="w"> </span><span class="p">(</span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="p">)</span>
+<a id="line-1086" name="line-1086"></a><span class="p">{</span>
+<a id="line-1087" name="line-1087"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slist_length</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">);</span>
+<a id="line-1088" name="line-1088"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">;</span>
+<a id="line-1089" name="line-1089"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-1090" name="line-1090"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">li</span><span class="p">;</span>
+<a id="line-1091" name="line-1091"></a>
+<a id="line-1092" name="line-1092"></a><span class="w"> </span><span class="n">argv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new0</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">,</span><span class="w"> </span><span class="n">len</span><span class="o">+</span><span class="mi">1</span><span class="p">);</span>
+<a id="line-1093" name="line-1093"></a>
+<a id="line-1094" name="line-1094"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">list</span><span class="p">;</span>
+<a id="line-1095" name="line-1095"></a><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1096" name="line-1096"></a><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1097" name="line-1097"></a><span class="w"> </span><span class="n">argv</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">li</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">);</span>
+<a id="line-1098" name="line-1098"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1099" name="line-1099"></a><span class="w"> </span><span class="n">argv</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1100" name="line-1100"></a>
+<a id="line-1101" name="line-1101"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">argv</span><span class="p">;</span>
+<a id="line-1102" name="line-1102"></a><span class="p">}</span>
+<a id="line-1103" name="line-1103"></a>
+<a id="line-1104" name="line-1104"></a><span class="k">static</span><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1105" name="line-1105"></a><span class="nf">make_args</span><span class="w"> </span><span class="p">(</span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">files</span><span class="p">)</span>
+<a id="line-1106" name="line-1106"></a><span class="p">{</span>
+<a id="line-1107" name="line-1107"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1108" name="line-1108"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">li</span><span class="p">;</span>
+<a id="line-1109" name="line-1109"></a>
+<a id="line-1110" name="line-1110"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">files</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1111" name="line-1111"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">gfile</span><span class="p">;</span>
+<a id="line-1112" name="line-1112"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-1113" name="line-1113"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1114" name="line-1114"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span>
+<a id="line-1115" name="line-1115"></a><span class="w"> </span><span class="n">gfile</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_new_for_uri</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-1116" name="line-1116"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slist_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="n">gfile</span><span class="p">);</span>
+<a id="line-1117" name="line-1117"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1118" name="line-1118"></a>
+<a id="line-1119" name="line-1119"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_slist_reverse</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">);</span>
+<a id="line-1120" name="line-1120"></a><span class="p">}</span>
+<a id="line-1121" name="line-1121"></a>
+<a id="line-1122" name="line-1122"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1123" name="line-1123"></a><span class="nf">free_args</span><span class="w"> </span><span class="p">(</span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="p">)</span>
+<a id="line-1124" name="line-1124"></a><span class="p">{</span>
+<a id="line-1125" name="line-1125"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">li</span><span class="p">;</span>
+<a id="line-1126" name="line-1126"></a>
+<a id="line-1127" name="line-1127"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">list</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1128" name="line-1128"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">G_FILE</span><span class="w"> </span><span class="p">(</span><span class="n">li</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">));</span>
+<a id="line-1129" name="line-1129"></a><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1130" name="line-1130"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1131" name="line-1131"></a><span class="w"> </span><span class="n">g_slist_free</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">);</span>
+<a id="line-1132" name="line-1132"></a><span class="p">}</span>
+<a id="line-1133" name="line-1133"></a>
+<a id="line-1134" name="line-1134"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1135" name="line-1135"></a><span class="nf">escape_single_quotes</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">,</span>
+<a id="line-1136" name="line-1136"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">in_single_quotes</span><span class="p">,</span>
+<a id="line-1137" name="line-1137"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">in_double_quotes</span><span class="p">)</span>
+<a id="line-1138" name="line-1138"></a><span class="p">{</span>
+<a id="line-1139" name="line-1139"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">;</span>
+<a id="line-1140" name="line-1140"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">gs</span><span class="p">;</span>
+<a id="line-1141" name="line-1141"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">pre</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">;</span>
+<a id="line-1142" name="line-1142"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">post</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">;</span>
+<a id="line-1143" name="line-1143"></a>
+<a id="line-1144" name="line-1144"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="o">!</span><span class="w"> </span><span class="n">in_single_quotes</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">!</span><span class="w"> </span><span class="n">in_double_quotes</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1145" name="line-1145"></a><span class="w"> </span><span class="n">pre</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;&#39;&quot;</span><span class="p">;</span>
+<a id="line-1146" name="line-1146"></a><span class="w"> </span><span class="n">post</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;&#39;&quot;</span><span class="p">;</span>
+<a id="line-1147" name="line-1147"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="o">!</span><span class="w"> </span><span class="n">in_single_quotes</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">in_double_quotes</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1148" name="line-1148"></a><span class="w"> </span><span class="n">pre</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;</span><span class="se">\&quot;</span><span class="s">&#39;&quot;</span><span class="p">;</span>
+<a id="line-1149" name="line-1149"></a><span class="w"> </span><span class="n">post</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;&#39;</span><span class="se">\&quot;</span><span class="s">&quot;</span><span class="p">;</span>
+<a id="line-1150" name="line-1150"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1151" name="line-1151"></a>
+<a id="line-1152" name="line-1152"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strchr</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="sc">&#39;\&#39;&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1153" name="line-1153"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="n">pre</span><span class="p">,</span><span class="w"> </span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="n">post</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1154" name="line-1154"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1155" name="line-1155"></a>
+<a id="line-1156" name="line-1156"></a><span class="w"> </span><span class="n">gs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_new</span><span class="w"> </span><span class="p">(</span><span class="n">pre</span><span class="p">);</span>
+<a id="line-1157" name="line-1157"></a>
+<a id="line-1158" name="line-1158"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">s</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">;</span><span class="w"> </span><span class="n">p</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1159" name="line-1159"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">p</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;\&#39;&#39;</span><span class="p">)</span>
+<a id="line-1160" name="line-1160"></a><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">gs</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&#39;</span><span class="se">\\</span><span class="s">&#39;&#39;&quot;</span><span class="p">);</span>
+<a id="line-1161" name="line-1161"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1162" name="line-1162"></a><span class="w"> </span><span class="n">g_string_append_c</span><span class="w"> </span><span class="p">(</span><span class="n">gs</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">);</span>
+<a id="line-1163" name="line-1163"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1164" name="line-1164"></a>
+<a id="line-1165" name="line-1165"></a><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">gs</span><span class="p">,</span><span class="w"> </span><span class="n">post</span><span class="p">);</span>
+<a id="line-1166" name="line-1166"></a>
+<a id="line-1167" name="line-1167"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_string_free</span><span class="w"> </span><span class="p">(</span><span class="n">gs</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1168" name="line-1168"></a><span class="p">}</span>
+<a id="line-1169" name="line-1169"></a>
+<a id="line-1170" name="line-1170"></a><span class="k">typedef</span><span class="w"> </span><span class="k">enum</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1171" name="line-1171"></a><span class="w"> </span><span class="n">URI_TO_STRING</span><span class="p">,</span>
+<a id="line-1172" name="line-1172"></a><span class="w"> </span><span class="n">URI_TO_LOCAL_PATH</span><span class="p">,</span>
+<a id="line-1173" name="line-1173"></a><span class="w"> </span><span class="n">URI_TO_LOCAL_DIRNAME</span><span class="p">,</span>
+<a id="line-1174" name="line-1174"></a><span class="w"> </span><span class="n">URI_TO_LOCAL_BASENAME</span>
+<a id="line-1175" name="line-1175"></a><span class="p">}</span><span class="w"> </span><span class="n">ConversionType</span><span class="p">;</span>
+<a id="line-1176" name="line-1176"></a>
+<a id="line-1177" name="line-1177"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1178" name="line-1178"></a><span class="nf">convert_uri</span><span class="w"> </span><span class="p">(</span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">,</span>
+<a id="line-1179" name="line-1179"></a><span class="w"> </span><span class="n">ConversionType</span><span class="w"> </span><span class="n">conversion</span><span class="p">)</span>
+<a id="line-1180" name="line-1180"></a><span class="p">{</span>
+<a id="line-1181" name="line-1181"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1182" name="line-1182"></a>
+<a id="line-1183" name="line-1183"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">conversion</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1184" name="line-1184"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">URI_TO_STRING</span><span class="p">:</span>
+<a id="line-1185" name="line-1185"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_uri</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-1186" name="line-1186"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1187" name="line-1187"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">URI_TO_LOCAL_PATH</span><span class="p">:</span>
+<a id="line-1188" name="line-1188"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_path</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-1189" name="line-1189"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1190" name="line-1190"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">URI_TO_LOCAL_DIRNAME</span><span class="p">:</span>
+<a id="line-1191" name="line-1191"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1192" name="line-1192"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">local_path</span><span class="p">;</span>
+<a id="line-1193" name="line-1193"></a>
+<a id="line-1194" name="line-1194"></a><span class="w"> </span><span class="n">local_path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_path</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-1195" name="line-1195"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_path_get_dirname</span><span class="w"> </span><span class="p">(</span><span class="n">local_path</span><span class="p">);</span>
+<a id="line-1196" name="line-1196"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">local_path</span><span class="p">);</span>
+<a id="line-1197" name="line-1197"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1198" name="line-1198"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1199" name="line-1199"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">URI_TO_LOCAL_BASENAME</span><span class="p">:</span>
+<a id="line-1200" name="line-1200"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_basename</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-1201" name="line-1201"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1202" name="line-1202"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-1203" name="line-1203"></a><span class="w"> </span><span class="n">g_assert_not_reached</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1204" name="line-1204"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1205" name="line-1205"></a>
+<a id="line-1206" name="line-1206"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span>
+<a id="line-1207" name="line-1207"></a><span class="p">}</span>
+<a id="line-1208" name="line-1208"></a>
+<a id="line-1209" name="line-1209"></a><span class="k">typedef</span><span class="w"> </span><span class="k">enum</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1210" name="line-1210"></a><span class="w"> </span><span class="n">ADDED_NONE</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
+<a id="line-1211" name="line-1211"></a><span class="w"> </span><span class="n">ADDED_SINGLE</span><span class="p">,</span>
+<a id="line-1212" name="line-1212"></a><span class="w"> </span><span class="n">ADDED_ALL</span>
+<a id="line-1213" name="line-1213"></a><span class="p">}</span><span class="w"> </span><span class="n">AddedStatus</span><span class="p">;</span>
+<a id="line-1214" name="line-1214"></a>
+<a id="line-1215" name="line-1215"></a><span class="k">static</span><span class="w"> </span><span class="n">AddedStatus</span>
+<a id="line-1216" name="line-1216"></a><span class="nf">append_all_converted</span><span class="w"> </span><span class="p">(</span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">,</span>
+<a id="line-1217" name="line-1217"></a><span class="w"> </span><span class="n">ConversionType</span><span class="w"> </span><span class="n">conversion</span><span class="p">,</span>
+<a id="line-1218" name="line-1218"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">args</span><span class="p">,</span>
+<a id="line-1219" name="line-1219"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">in_single_quotes</span><span class="p">,</span>
+<a id="line-1220" name="line-1220"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">in_double_quotes</span><span class="p">,</span>
+<a id="line-1221" name="line-1221"></a><span class="w"> </span><span class="n">AddedStatus</span><span class="w"> </span><span class="n">added_status</span><span class="p">)</span>
+<a id="line-1222" name="line-1222"></a><span class="p">{</span>
+<a id="line-1223" name="line-1223"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">l</span><span class="p">;</span>
+<a id="line-1224" name="line-1224"></a>
+<a id="line-1225" name="line-1225"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">args</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1226" name="line-1226"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">converted</span><span class="p">;</span>
+<a id="line-1227" name="line-1227"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">escaped</span><span class="p">;</span>
+<a id="line-1228" name="line-1228"></a>
+<a id="line-1229" name="line-1229"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="n">converted</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">convert_uri</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">conversion</span><span class="p">)))</span>
+<a id="line-1230" name="line-1230"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span>
+<a id="line-1231" name="line-1231"></a>
+<a id="line-1232" name="line-1232"></a><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">&quot; &quot;</span><span class="p">);</span>
+<a id="line-1233" name="line-1233"></a>
+<a id="line-1234" name="line-1234"></a><span class="w"> </span><span class="n">escaped</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">escape_single_quotes</span><span class="w"> </span><span class="p">(</span><span class="n">converted</span><span class="p">,</span>
+<a id="line-1235" name="line-1235"></a><span class="w"> </span><span class="n">in_single_quotes</span><span class="p">,</span>
+<a id="line-1236" name="line-1236"></a><span class="w"> </span><span class="n">in_double_quotes</span><span class="p">);</span>
+<a id="line-1237" name="line-1237"></a><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">escaped</span><span class="p">);</span>
+<a id="line-1238" name="line-1238"></a>
+<a id="line-1239" name="line-1239"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">escaped</span><span class="p">);</span>
+<a id="line-1240" name="line-1240"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">converted</span><span class="p">);</span>
+<a id="line-1241" name="line-1241"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1242" name="line-1242"></a>
+<a id="line-1243" name="line-1243"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ADDED_ALL</span><span class="p">;</span>
+<a id="line-1244" name="line-1244"></a><span class="p">}</span>
+<a id="line-1245" name="line-1245"></a>
+<a id="line-1246" name="line-1246"></a><span class="k">static</span><span class="w"> </span><span class="n">AddedStatus</span>
+<a id="line-1247" name="line-1247"></a><span class="nf">append_first_converted</span><span class="w"> </span><span class="p">(</span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">,</span>
+<a id="line-1248" name="line-1248"></a><span class="w"> </span><span class="n">ConversionType</span><span class="w"> </span><span class="n">conversion</span><span class="p">,</span>
+<a id="line-1249" name="line-1249"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">**</span><span class="n">arg_ptr</span><span class="p">,</span>
+<a id="line-1250" name="line-1250"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">in_single_quotes</span><span class="p">,</span>
+<a id="line-1251" name="line-1251"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">in_double_quotes</span><span class="p">,</span>
+<a id="line-1252" name="line-1252"></a><span class="w"> </span><span class="n">AddedStatus</span><span class="w"> </span><span class="n">added_status</span><span class="p">)</span>
+<a id="line-1253" name="line-1253"></a><span class="p">{</span>
+<a id="line-1254" name="line-1254"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">l</span><span class="p">;</span>
+<a id="line-1255" name="line-1255"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">converted</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1256" name="line-1256"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">escaped</span><span class="p">;</span>
+<a id="line-1257" name="line-1257"></a>
+<a id="line-1258" name="line-1258"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">arg_ptr</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1259" name="line-1259"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">converted</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">convert_uri</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">conversion</span><span class="p">)))</span>
+<a id="line-1260" name="line-1260"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1261" name="line-1261"></a>
+<a id="line-1262" name="line-1262"></a><span class="w"> </span><span class="o">*</span><span class="n">arg_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">;</span>
+<a id="line-1263" name="line-1263"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1264" name="line-1264"></a>
+<a id="line-1265" name="line-1265"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">converted</span><span class="p">)</span>
+<a id="line-1266" name="line-1266"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">added_status</span><span class="p">;</span>
+<a id="line-1267" name="line-1267"></a>
+<a id="line-1268" name="line-1268"></a><span class="w"> </span><span class="n">escaped</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">escape_single_quotes</span><span class="w"> </span><span class="p">(</span><span class="n">converted</span><span class="p">,</span><span class="w"> </span><span class="n">in_single_quotes</span><span class="p">,</span><span class="w"> </span><span class="n">in_double_quotes</span><span class="p">);</span>
+<a id="line-1269" name="line-1269"></a><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">escaped</span><span class="p">);</span>
+<a id="line-1270" name="line-1270"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">escaped</span><span class="p">);</span>
+<a id="line-1271" name="line-1271"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">converted</span><span class="p">);</span>
+<a id="line-1272" name="line-1272"></a>
+<a id="line-1273" name="line-1273"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">added_status</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">ADDED_ALL</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">ADDED_SINGLE</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="n">added_status</span><span class="p">;</span>
+<a id="line-1274" name="line-1274"></a><span class="p">}</span>
+<a id="line-1275" name="line-1275"></a>
+<a id="line-1276" name="line-1276"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-1277" name="line-1277"></a><span class="nf">do_percent_subst</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-1278" name="line-1278"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">arg</span><span class="p">,</span>
+<a id="line-1279" name="line-1279"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">,</span>
+<a id="line-1280" name="line-1280"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">in_single_quotes</span><span class="p">,</span>
+<a id="line-1281" name="line-1281"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">in_double_quotes</span><span class="p">,</span>
+<a id="line-1282" name="line-1282"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">args</span><span class="p">,</span>
+<a id="line-1283" name="line-1283"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">**</span><span class="n">arg_ptr</span><span class="p">,</span>
+<a id="line-1284" name="line-1284"></a><span class="w"> </span><span class="n">AddedStatus</span><span class="w"> </span><span class="o">*</span><span class="n">added_status</span><span class="p">)</span>
+<a id="line-1285" name="line-1285"></a><span class="p">{</span>
+<a id="line-1286" name="line-1286"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">esc</span><span class="p">;</span>
+<a id="line-1287" name="line-1287"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">cs</span><span class="p">;</span>
+<a id="line-1288" name="line-1288"></a>
+<a id="line-1289" name="line-1289"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">arg</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">&#39;%&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">arg</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1290" name="line-1290"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1291" name="line-1291"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1292" name="line-1292"></a>
+<a id="line-1293" name="line-1293"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">arg</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1294" name="line-1294"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;%&#39;</span><span class="p">:</span>
+<a id="line-1295" name="line-1295"></a><span class="w"> </span><span class="n">g_string_append_c</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="sc">&#39;%&#39;</span><span class="p">);</span>
+<a id="line-1296" name="line-1296"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1297" name="line-1297"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;U&#39;</span><span class="p">:</span>
+<a id="line-1298" name="line-1298"></a><span class="w"> </span><span class="o">*</span><span class="n">added_status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">append_all_converted</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span>
+<a id="line-1299" name="line-1299"></a><span class="w"> </span><span class="n">URI_TO_STRING</span><span class="p">,</span>
+<a id="line-1300" name="line-1300"></a><span class="w"> </span><span class="n">args</span><span class="p">,</span>
+<a id="line-1301" name="line-1301"></a><span class="w"> </span><span class="n">in_single_quotes</span><span class="p">,</span>
+<a id="line-1302" name="line-1302"></a><span class="w"> </span><span class="n">in_double_quotes</span><span class="p">,</span>
+<a id="line-1303" name="line-1303"></a><span class="w"> </span><span class="o">*</span><span class="n">added_status</span><span class="p">);</span>
+<a id="line-1304" name="line-1304"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1305" name="line-1305"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;F&#39;</span><span class="p">:</span>
+<a id="line-1306" name="line-1306"></a><span class="w"> </span><span class="o">*</span><span class="n">added_status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">append_all_converted</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span>
+<a id="line-1307" name="line-1307"></a><span class="w"> </span><span class="n">URI_TO_LOCAL_PATH</span><span class="p">,</span>
+<a id="line-1308" name="line-1308"></a><span class="w"> </span><span class="n">args</span><span class="p">,</span>
+<a id="line-1309" name="line-1309"></a><span class="w"> </span><span class="n">in_single_quotes</span><span class="p">,</span>
+<a id="line-1310" name="line-1310"></a><span class="w"> </span><span class="n">in_double_quotes</span><span class="p">,</span>
+<a id="line-1311" name="line-1311"></a><span class="w"> </span><span class="o">*</span><span class="n">added_status</span><span class="p">);</span>
+<a id="line-1312" name="line-1312"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1313" name="line-1313"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;N&#39;</span><span class="p">:</span>
+<a id="line-1314" name="line-1314"></a><span class="w"> </span><span class="o">*</span><span class="n">added_status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">append_all_converted</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span>
+<a id="line-1315" name="line-1315"></a><span class="w"> </span><span class="n">URI_TO_LOCAL_BASENAME</span><span class="p">,</span>
+<a id="line-1316" name="line-1316"></a><span class="w"> </span><span class="n">args</span><span class="p">,</span>
+<a id="line-1317" name="line-1317"></a><span class="w"> </span><span class="n">in_single_quotes</span><span class="p">,</span>
+<a id="line-1318" name="line-1318"></a><span class="w"> </span><span class="n">in_double_quotes</span><span class="p">,</span>
+<a id="line-1319" name="line-1319"></a><span class="w"> </span><span class="o">*</span><span class="n">added_status</span><span class="p">);</span>
+<a id="line-1320" name="line-1320"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1321" name="line-1321"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;D&#39;</span><span class="p">:</span>
+<a id="line-1322" name="line-1322"></a><span class="w"> </span><span class="o">*</span><span class="n">added_status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">append_all_converted</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span>
+<a id="line-1323" name="line-1323"></a><span class="w"> </span><span class="n">URI_TO_LOCAL_DIRNAME</span><span class="p">,</span>
+<a id="line-1324" name="line-1324"></a><span class="w"> </span><span class="n">args</span><span class="p">,</span>
+<a id="line-1325" name="line-1325"></a><span class="w"> </span><span class="n">in_single_quotes</span><span class="p">,</span>
+<a id="line-1326" name="line-1326"></a><span class="w"> </span><span class="n">in_double_quotes</span><span class="p">,</span>
+<a id="line-1327" name="line-1327"></a><span class="w"> </span><span class="o">*</span><span class="n">added_status</span><span class="p">);</span>
+<a id="line-1328" name="line-1328"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1329" name="line-1329"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;f&#39;</span><span class="p">:</span>
+<a id="line-1330" name="line-1330"></a><span class="w"> </span><span class="o">*</span><span class="n">added_status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">append_first_converted</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span>
+<a id="line-1331" name="line-1331"></a><span class="w"> </span><span class="n">URI_TO_LOCAL_PATH</span><span class="p">,</span>
+<a id="line-1332" name="line-1332"></a><span class="w"> </span><span class="n">arg_ptr</span><span class="p">,</span>
+<a id="line-1333" name="line-1333"></a><span class="w"> </span><span class="n">in_single_quotes</span><span class="p">,</span>
+<a id="line-1334" name="line-1334"></a><span class="w"> </span><span class="n">in_double_quotes</span><span class="p">,</span>
+<a id="line-1335" name="line-1335"></a><span class="w"> </span><span class="o">*</span><span class="n">added_status</span><span class="p">);</span>
+<a id="line-1336" name="line-1336"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1337" name="line-1337"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;u&#39;</span><span class="p">:</span>
+<a id="line-1338" name="line-1338"></a><span class="w"> </span><span class="o">*</span><span class="n">added_status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">append_first_converted</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span>
+<a id="line-1339" name="line-1339"></a><span class="w"> </span><span class="n">URI_TO_STRING</span><span class="p">,</span>
+<a id="line-1340" name="line-1340"></a><span class="w"> </span><span class="n">arg_ptr</span><span class="p">,</span>
+<a id="line-1341" name="line-1341"></a><span class="w"> </span><span class="n">in_single_quotes</span><span class="p">,</span>
+<a id="line-1342" name="line-1342"></a><span class="w"> </span><span class="n">in_double_quotes</span><span class="p">,</span>
+<a id="line-1343" name="line-1343"></a><span class="w"> </span><span class="o">*</span><span class="n">added_status</span><span class="p">);</span>
+<a id="line-1344" name="line-1344"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1345" name="line-1345"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;d&#39;</span><span class="p">:</span>
+<a id="line-1346" name="line-1346"></a><span class="w"> </span><span class="o">*</span><span class="n">added_status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">append_first_converted</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span>
+<a id="line-1347" name="line-1347"></a><span class="w"> </span><span class="n">URI_TO_LOCAL_DIRNAME</span><span class="p">,</span>
+<a id="line-1348" name="line-1348"></a><span class="w"> </span><span class="n">arg_ptr</span><span class="p">,</span>
+<a id="line-1349" name="line-1349"></a><span class="w"> </span><span class="n">in_single_quotes</span><span class="p">,</span>
+<a id="line-1350" name="line-1350"></a><span class="w"> </span><span class="n">in_double_quotes</span><span class="p">,</span>
+<a id="line-1351" name="line-1351"></a><span class="w"> </span><span class="o">*</span><span class="n">added_status</span><span class="p">);</span>
+<a id="line-1352" name="line-1352"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1353" name="line-1353"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;n&#39;</span><span class="p">:</span>
+<a id="line-1354" name="line-1354"></a><span class="w"> </span><span class="o">*</span><span class="n">added_status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">append_first_converted</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span>
+<a id="line-1355" name="line-1355"></a><span class="w"> </span><span class="n">URI_TO_LOCAL_BASENAME</span><span class="p">,</span>
+<a id="line-1356" name="line-1356"></a><span class="w"> </span><span class="n">arg_ptr</span><span class="p">,</span>
+<a id="line-1357" name="line-1357"></a><span class="w"> </span><span class="n">in_single_quotes</span><span class="p">,</span>
+<a id="line-1358" name="line-1358"></a><span class="w"> </span><span class="n">in_double_quotes</span><span class="p">,</span>
+<a id="line-1359" name="line-1359"></a><span class="w"> </span><span class="o">*</span><span class="n">added_status</span><span class="p">);</span>
+<a id="line-1360" name="line-1360"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1361" name="line-1361"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;m&#39;</span><span class="p">:</span>
+<a id="line-1362" name="line-1362"></a><span class="w"> </span><span class="cm">/* Note: v0.9.4 of the spec says this is deprecated</span>
+<a id="line-1363" name="line-1363"></a><span class="cm"> * and replace with --miniicon iconname */</span>
+<a id="line-1364" name="line-1364"></a><span class="w"> </span><span class="n">cs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_MINI_ICON</span><span class="p">);</span>
+<a id="line-1365" name="line-1365"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">cs</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1366" name="line-1366"></a><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;--miniicon=&quot;</span><span class="p">);</span>
+<a id="line-1367" name="line-1367"></a><span class="w"> </span><span class="n">esc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">escape_single_quotes</span><span class="w"> </span><span class="p">(</span><span class="n">cs</span><span class="p">,</span><span class="w"> </span><span class="n">in_single_quotes</span><span class="p">,</span><span class="w"> </span><span class="n">in_double_quotes</span><span class="p">);</span>
+<a id="line-1368" name="line-1368"></a><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">esc</span><span class="p">);</span>
+<a id="line-1369" name="line-1369"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1370" name="line-1370"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1371" name="line-1371"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;i&#39;</span><span class="p">:</span>
+<a id="line-1372" name="line-1372"></a><span class="w"> </span><span class="cm">/* Note: v0.9.4 of the spec says replace with --icon iconname */</span>
+<a id="line-1373" name="line-1373"></a><span class="w"> </span><span class="n">cs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ICON</span><span class="p">);</span>
+<a id="line-1374" name="line-1374"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">cs</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1375" name="line-1375"></a><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;--icon=&quot;</span><span class="p">);</span>
+<a id="line-1376" name="line-1376"></a><span class="w"> </span><span class="n">esc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">escape_single_quotes</span><span class="w"> </span><span class="p">(</span><span class="n">cs</span><span class="p">,</span><span class="w"> </span><span class="n">in_single_quotes</span><span class="p">,</span><span class="w"> </span><span class="n">in_double_quotes</span><span class="p">);</span>
+<a id="line-1377" name="line-1377"></a><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">esc</span><span class="p">);</span>
+<a id="line-1378" name="line-1378"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1379" name="line-1379"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1380" name="line-1380"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;c&#39;</span><span class="p">:</span>
+<a id="line-1381" name="line-1381"></a><span class="w"> </span><span class="n">cs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_get_localestring</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_NAME</span><span class="p">);</span>
+<a id="line-1382" name="line-1382"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">cs</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1383" name="line-1383"></a><span class="w"> </span><span class="n">esc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">escape_single_quotes</span><span class="w"> </span><span class="p">(</span><span class="n">cs</span><span class="p">,</span><span class="w"> </span><span class="n">in_single_quotes</span><span class="p">,</span><span class="w"> </span><span class="n">in_double_quotes</span><span class="p">);</span>
+<a id="line-1384" name="line-1384"></a><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">esc</span><span class="p">);</span>
+<a id="line-1385" name="line-1385"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">esc</span><span class="p">);</span>
+<a id="line-1386" name="line-1386"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1387" name="line-1387"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1388" name="line-1388"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;k&#39;</span><span class="p">:</span>
+<a id="line-1389" name="line-1389"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">location</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1390" name="line-1390"></a><span class="w"> </span><span class="n">esc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">escape_single_quotes</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">location</span><span class="p">,</span><span class="w"> </span><span class="n">in_single_quotes</span><span class="p">,</span><span class="w"> </span><span class="n">in_double_quotes</span><span class="p">);</span>
+<a id="line-1391" name="line-1391"></a><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">esc</span><span class="p">);</span>
+<a id="line-1392" name="line-1392"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">esc</span><span class="p">);</span>
+<a id="line-1393" name="line-1393"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1394" name="line-1394"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1395" name="line-1395"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;v&#39;</span><span class="p">:</span>
+<a id="line-1396" name="line-1396"></a><span class="w"> </span><span class="n">cs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_get_localestring</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_DEV</span><span class="p">);</span>
+<a id="line-1397" name="line-1397"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">cs</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1398" name="line-1398"></a><span class="w"> </span><span class="n">esc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">escape_single_quotes</span><span class="w"> </span><span class="p">(</span><span class="n">cs</span><span class="p">,</span><span class="w"> </span><span class="n">in_single_quotes</span><span class="p">,</span><span class="w"> </span><span class="n">in_double_quotes</span><span class="p">);</span>
+<a id="line-1399" name="line-1399"></a><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">esc</span><span class="p">);</span>
+<a id="line-1400" name="line-1400"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">esc</span><span class="p">);</span>
+<a id="line-1401" name="line-1401"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1402" name="line-1402"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1403" name="line-1403"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-1404" name="line-1404"></a><span class="w"> </span><span class="cm">/* Maintain special characters - e.g. &quot;%20&quot; */</span>
+<a id="line-1405" name="line-1405"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_ascii_isdigit</span><span class="w"> </span><span class="p">(</span><span class="n">arg</span><span class="w"> </span><span class="p">[</span><span class="mi">1</span><span class="p">]))</span>
+<a id="line-1406" name="line-1406"></a><span class="w"> </span><span class="n">g_string_append_c</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="sc">&#39;%&#39;</span><span class="p">);</span>
+<a id="line-1407" name="line-1407"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1408" name="line-1408"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1409" name="line-1409"></a>
+<a id="line-1410" name="line-1410"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1411" name="line-1411"></a><span class="p">}</span>
+<a id="line-1412" name="line-1412"></a>
+<a id="line-1413" name="line-1413"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1414" name="line-1414"></a><span class="nf">expand_string</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-1415" name="line-1415"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">,</span>
+<a id="line-1416" name="line-1416"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">args</span><span class="p">,</span>
+<a id="line-1417" name="line-1417"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">**</span><span class="n">arg_ptr</span><span class="p">,</span>
+<a id="line-1418" name="line-1418"></a><span class="w"> </span><span class="n">AddedStatus</span><span class="w"> </span><span class="o">*</span><span class="n">added_status</span><span class="p">)</span>
+<a id="line-1419" name="line-1419"></a><span class="p">{</span>
+<a id="line-1420" name="line-1420"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">;</span>
+<a id="line-1421" name="line-1421"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">escape</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1422" name="line-1422"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">single_quot</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1423" name="line-1423"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">double_quot</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1424" name="line-1424"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">gs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_new</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1425" name="line-1425"></a>
+<a id="line-1426" name="line-1426"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">s</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">;</span><span class="w"> </span><span class="n">p</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1427" name="line-1427"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">escape</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1428" name="line-1428"></a><span class="w"> </span><span class="n">escape</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1429" name="line-1429"></a><span class="w"> </span><span class="n">g_string_append_c</span><span class="w"> </span><span class="p">(</span><span class="n">gs</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">);</span>
+<a id="line-1430" name="line-1430"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">p</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;\\&#39;</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1431" name="line-1431"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="o">!</span><span class="w"> </span><span class="n">single_quot</span><span class="p">)</span>
+<a id="line-1432" name="line-1432"></a><span class="w"> </span><span class="n">escape</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1433" name="line-1433"></a><span class="w"> </span><span class="n">g_string_append_c</span><span class="w"> </span><span class="p">(</span><span class="n">gs</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">);</span>
+<a id="line-1434" name="line-1434"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">p</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;\&#39;&#39;</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1435" name="line-1435"></a><span class="w"> </span><span class="n">g_string_append_c</span><span class="w"> </span><span class="p">(</span><span class="n">gs</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">);</span>
+<a id="line-1436" name="line-1436"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="o">!</span><span class="w"> </span><span class="n">single_quot</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">!</span><span class="w"> </span><span class="n">double_quot</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1437" name="line-1437"></a><span class="w"> </span><span class="n">single_quot</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1438" name="line-1438"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">single_quot</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1439" name="line-1439"></a><span class="w"> </span><span class="n">single_quot</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1440" name="line-1440"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1441" name="line-1441"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">p</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;&quot;&#39;</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1442" name="line-1442"></a><span class="w"> </span><span class="n">g_string_append_c</span><span class="w"> </span><span class="p">(</span><span class="n">gs</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">);</span>
+<a id="line-1443" name="line-1443"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="o">!</span><span class="w"> </span><span class="n">single_quot</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">!</span><span class="w"> </span><span class="n">double_quot</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1444" name="line-1444"></a><span class="w"> </span><span class="n">double_quot</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1445" name="line-1445"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">double_quot</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1446" name="line-1446"></a><span class="w"> </span><span class="n">double_quot</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1447" name="line-1447"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1448" name="line-1448"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">p</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;%&#39;</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1449" name="line-1449"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">do_percent_subst</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">p</span><span class="p">,</span><span class="w"> </span><span class="n">gs</span><span class="p">,</span>
+<a id="line-1450" name="line-1450"></a><span class="w"> </span><span class="n">single_quot</span><span class="p">,</span><span class="w"> </span><span class="n">double_quot</span><span class="p">,</span>
+<a id="line-1451" name="line-1451"></a><span class="w"> </span><span class="n">args</span><span class="p">,</span><span class="w"> </span><span class="n">arg_ptr</span><span class="p">,</span>
+<a id="line-1452" name="line-1452"></a><span class="w"> </span><span class="n">added_status</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1453" name="line-1453"></a><span class="w"> </span><span class="n">p</span><span class="o">++</span><span class="p">;</span>
+<a id="line-1454" name="line-1454"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1455" name="line-1455"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1456" name="line-1456"></a><span class="w"> </span><span class="n">g_string_append_c</span><span class="w"> </span><span class="p">(</span><span class="n">gs</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">);</span>
+<a id="line-1457" name="line-1457"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1458" name="line-1458"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1459" name="line-1459"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_string_free</span><span class="w"> </span><span class="p">(</span><span class="n">gs</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1460" name="line-1460"></a><span class="p">}</span>
+<a id="line-1461" name="line-1461"></a>
+<a id="line-1462" name="line-1462"></a><span class="cm">/*Functions in this code block should only ever be reached in x11*/</span>
+<a id="line-1463" name="line-1463"></a><span class="cp">#ifdef HAVE_STARTUP_NOTIFICATION</span>
+<a id="line-1464" name="line-1464"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1465" name="line-1465"></a><span class="nf">sn_error_trap_push</span><span class="w"> </span><span class="p">(</span><span class="n">SnDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">,</span>
+<a id="line-1466" name="line-1466"></a><span class="w"> </span><span class="n">Display</span><span class="w"> </span><span class="o">*</span><span class="n">xdisplay</span><span class="p">)</span>
+<a id="line-1467" name="line-1467"></a><span class="p">{</span>
+<a id="line-1468" name="line-1468"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">gdkdisplay</span><span class="p">;</span>
+<a id="line-1469" name="line-1469"></a>
+<a id="line-1470" name="line-1470"></a><span class="w"> </span><span class="n">gdkdisplay</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_display_get_default</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1471" name="line-1471"></a><span class="w"> </span><span class="n">gdk_x11_display_error_trap_push</span><span class="w"> </span><span class="p">(</span><span class="n">gdkdisplay</span><span class="p">);</span>
+<a id="line-1472" name="line-1472"></a><span class="p">}</span>
+<a id="line-1473" name="line-1473"></a>
+<a id="line-1474" name="line-1474"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1475" name="line-1475"></a><span class="nf">sn_error_trap_pop</span><span class="w"> </span><span class="p">(</span><span class="n">SnDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">,</span>
+<a id="line-1476" name="line-1476"></a><span class="w"> </span><span class="n">Display</span><span class="w"> </span><span class="o">*</span><span class="n">xdisplay</span><span class="p">)</span>
+<a id="line-1477" name="line-1477"></a><span class="p">{</span>
+<a id="line-1478" name="line-1478"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">gdkdisplay</span><span class="p">;</span>
+<a id="line-1479" name="line-1479"></a>
+<a id="line-1480" name="line-1480"></a><span class="w"> </span><span class="n">gdkdisplay</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_display_get_default</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1481" name="line-1481"></a><span class="w"> </span><span class="n">gdk_x11_display_error_trap_pop_ignored</span><span class="w"> </span><span class="p">(</span><span class="n">gdkdisplay</span><span class="p">);</span>
+<a id="line-1482" name="line-1482"></a><span class="p">}</span>
+<a id="line-1483" name="line-1483"></a>
+<a id="line-1484" name="line-1484"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span>
+<a id="line-1485" name="line-1485"></a><span class="nf">make_spawn_environment_for_sn_context</span><span class="w"> </span><span class="p">(</span><span class="n">SnLauncherContext</span><span class="w"> </span><span class="o">*</span><span class="n">sn_context</span><span class="p">,</span>
+<a id="line-1486" name="line-1486"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">envp</span><span class="p">)</span>
+<a id="line-1487" name="line-1487"></a><span class="p">{</span>
+<a id="line-1488" name="line-1488"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">retval</span><span class="p">;</span>
+<a id="line-1489" name="line-1489"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">freeme</span><span class="p">;</span>
+<a id="line-1490" name="line-1490"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">j</span><span class="p">;</span>
+<a id="line-1491" name="line-1491"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">desktop_startup_id_len</span><span class="p">;</span>
+<a id="line-1492" name="line-1492"></a>
+<a id="line-1493" name="line-1493"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">freeme</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1494" name="line-1494"></a>
+<a id="line-1495" name="line-1495"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">envp</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1496" name="line-1496"></a><span class="w"> </span><span class="n">envp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">freeme</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_listenv</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1497" name="line-1497"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">envp</span><span class="p">[</span><span class="n">i</span><span class="p">];</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1498" name="line-1498"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">envp</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-1499" name="line-1499"></a>
+<a id="line-1500" name="line-1500"></a><span class="w"> </span><span class="n">envp</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strjoin</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;=&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">g_getenv</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1501" name="line-1501"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">);</span>
+<a id="line-1502" name="line-1502"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1503" name="line-1503"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1504" name="line-1504"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">envp</span><span class="p">[</span><span class="n">i</span><span class="p">];</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span>
+<a id="line-1505" name="line-1505"></a><span class="w"> </span><span class="p">;</span>
+<a id="line-1506" name="line-1506"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1507" name="line-1507"></a>
+<a id="line-1508" name="line-1508"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">2</span><span class="p">);</span>
+<a id="line-1509" name="line-1509"></a>
+<a id="line-1510" name="line-1510"></a><span class="w"> </span><span class="n">desktop_startup_id_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;DESKTOP_STARTUP_ID&quot;</span><span class="p">);</span>
+<a id="line-1511" name="line-1511"></a>
+<a id="line-1512" name="line-1512"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">envp</span><span class="p">[</span><span class="n">i</span><span class="p">];</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1513" name="line-1513"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strncmp</span><span class="w"> </span><span class="p">(</span><span class="n">envp</span><span class="p">[</span><span class="n">i</span><span class="p">],</span><span class="w"> </span><span class="s">&quot;DESKTOP_STARTUP_ID&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">desktop_startup_id_len</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1514" name="line-1514"></a><span class="w"> </span><span class="n">retval</span><span class="p">[</span><span class="n">j</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">envp</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span>
+<a id="line-1515" name="line-1515"></a><span class="w"> </span><span class="o">++</span><span class="n">j</span><span class="p">;</span>
+<a id="line-1516" name="line-1516"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1517" name="line-1517"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1518" name="line-1518"></a>
+<a id="line-1519" name="line-1519"></a><span class="w"> </span><span class="n">retval</span><span class="p">[</span><span class="n">j</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;DESKTOP_STARTUP_ID=%s&quot;</span><span class="p">,</span>
+<a id="line-1520" name="line-1520"></a><span class="w"> </span><span class="n">sn_launcher_context_get_startup_id</span><span class="w"> </span><span class="p">(</span><span class="n">sn_context</span><span class="p">));</span>
+<a id="line-1521" name="line-1521"></a><span class="w"> </span><span class="o">++</span><span class="n">j</span><span class="p">;</span>
+<a id="line-1522" name="line-1522"></a><span class="w"> </span><span class="n">retval</span><span class="p">[</span><span class="n">j</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1523" name="line-1523"></a>
+<a id="line-1524" name="line-1524"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">freeme</span><span class="p">);</span>
+<a id="line-1525" name="line-1525"></a>
+<a id="line-1526" name="line-1526"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span>
+<a id="line-1527" name="line-1527"></a><span class="p">}</span>
+<a id="line-1528" name="line-1528"></a>
+<a id="line-1529" name="line-1529"></a><span class="cm">/* This should be fairly long, as it&#39;s confusing to users if a startup</span>
+<a id="line-1530" name="line-1530"></a><span class="cm"> * ends when it shouldn&#39;t (it appears that the startup failed, and</span>
+<a id="line-1531" name="line-1531"></a><span class="cm"> * they have to relaunch the app). Also the timeout only matters when</span>
+<a id="line-1532" name="line-1532"></a><span class="cm"> * there are bugs and apps don&#39;t end their own startup sequence.</span>
+<a id="line-1533" name="line-1533"></a><span class="cm"> *</span>
+<a id="line-1534" name="line-1534"></a><span class="cm"> * This timeout is a &quot;last resort&quot; timeout that ignores whether the</span>
+<a id="line-1535" name="line-1535"></a><span class="cm"> * startup sequence has shown activity or not. Marco and the</span>
+<a id="line-1536" name="line-1536"></a><span class="cm"> * tasklist have smarter, and correspondingly able-to-be-shorter</span>
+<a id="line-1537" name="line-1537"></a><span class="cm"> * timeouts. The reason our timeout is dumb is that we don&#39;t monitor</span>
+<a id="line-1538" name="line-1538"></a><span class="cm"> * the sequence (don&#39;t use an SnMonitorContext)</span>
+<a id="line-1539" name="line-1539"></a><span class="cm"> */</span>
+<a id="line-1540" name="line-1540"></a><span class="cp">#define STARTUP_TIMEOUT_LENGTH_SEC 30 </span><span class="cm">/* seconds */</span>
+<a id="line-1541" name="line-1541"></a><span class="cp">#define STARTUP_TIMEOUT_LENGTH (STARTUP_TIMEOUT_LENGTH_SEC * 1000)</span>
+<a id="line-1542" name="line-1542"></a>
+<a id="line-1543" name="line-1543"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span>
+<a id="line-1544" name="line-1544"></a><span class="p">{</span>
+<a id="line-1545" name="line-1545"></a><span class="w"> </span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">;</span>
+<a id="line-1546" name="line-1546"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">contexts</span><span class="p">;</span>
+<a id="line-1547" name="line-1547"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">timeout_id</span><span class="p">;</span>
+<a id="line-1548" name="line-1548"></a><span class="p">}</span><span class="w"> </span><span class="n">StartupTimeoutData</span><span class="p">;</span>
+<a id="line-1549" name="line-1549"></a>
+<a id="line-1550" name="line-1550"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1551" name="line-1551"></a><span class="nf">free_startup_timeout</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">)</span>
+<a id="line-1552" name="line-1552"></a><span class="p">{</span>
+<a id="line-1553" name="line-1553"></a><span class="w"> </span><span class="n">StartupTimeoutData</span><span class="w"> </span><span class="o">*</span><span class="n">std</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">data</span><span class="p">;</span>
+<a id="line-1554" name="line-1554"></a>
+<a id="line-1555" name="line-1555"></a><span class="w"> </span><span class="n">g_slist_free_full</span><span class="w"> </span><span class="p">(</span><span class="n">std</span><span class="o">-&gt;</span><span class="n">contexts</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">GDestroyNotify</span><span class="p">)</span><span class="w"> </span><span class="n">sn_launcher_context_unref</span><span class="p">);</span>
+<a id="line-1556" name="line-1556"></a>
+<a id="line-1557" name="line-1557"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">std</span><span class="o">-&gt;</span><span class="n">timeout_id</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1558" name="line-1558"></a><span class="w"> </span><span class="n">g_source_remove</span><span class="w"> </span><span class="p">(</span><span class="n">std</span><span class="o">-&gt;</span><span class="n">timeout_id</span><span class="p">);</span>
+<a id="line-1559" name="line-1559"></a><span class="w"> </span><span class="n">std</span><span class="o">-&gt;</span><span class="n">timeout_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-1560" name="line-1560"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1561" name="line-1561"></a>
+<a id="line-1562" name="line-1562"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">std</span><span class="p">);</span>
+<a id="line-1563" name="line-1563"></a><span class="p">}</span>
+<a id="line-1564" name="line-1564"></a>
+<a id="line-1565" name="line-1565"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-1566" name="line-1566"></a><span class="nf">startup_timeout</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">)</span>
+<a id="line-1567" name="line-1567"></a><span class="p">{</span>
+<a id="line-1568" name="line-1568"></a><span class="w"> </span><span class="n">StartupTimeoutData</span><span class="w"> </span><span class="o">*</span><span class="n">std</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">data</span><span class="p">;</span>
+<a id="line-1569" name="line-1569"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">tmp</span><span class="p">;</span>
+<a id="line-1570" name="line-1570"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">min_timeout</span><span class="p">;</span>
+<a id="line-1571" name="line-1571"></a>
+<a id="line-1572" name="line-1572"></a><span class="w"> </span><span class="n">min_timeout</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">STARTUP_TIMEOUT_LENGTH</span><span class="p">;</span>
+<a id="line-1573" name="line-1573"></a>
+<a id="line-1574" name="line-1574"></a><span class="cp">#if GLIB_CHECK_VERSION(2,61,2)</span>
+<a id="line-1575" name="line-1575"></a><span class="w"> </span><span class="n">gint64</span><span class="w"> </span><span class="n">now</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_get_real_time</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1576" name="line-1576"></a><span class="cp">#else</span>
+<a id="line-1577" name="line-1577"></a><span class="w"> </span><span class="n">GTimeVal</span><span class="w"> </span><span class="n">now</span><span class="p">;</span>
+<a id="line-1578" name="line-1578"></a><span class="w"> </span><span class="n">g_get_current_time</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">now</span><span class="p">);</span>
+<a id="line-1579" name="line-1579"></a><span class="cp">#endif</span>
+<a id="line-1580" name="line-1580"></a>
+<a id="line-1581" name="line-1581"></a><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">std</span><span class="o">-&gt;</span><span class="n">contexts</span><span class="p">;</span>
+<a id="line-1582" name="line-1582"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">tmp</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1583" name="line-1583"></a><span class="w"> </span><span class="n">SnLauncherContext</span><span class="w"> </span><span class="o">*</span><span class="n">sn_context</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tmp</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-1584" name="line-1584"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">next</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tmp</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">;</span>
+<a id="line-1585" name="line-1585"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">elapsed</span><span class="p">;</span>
+<a id="line-1586" name="line-1586"></a>
+<a id="line-1587" name="line-1587"></a><span class="cp">#if GLIB_CHECK_VERSION(2,61,2)</span>
+<a id="line-1588" name="line-1588"></a><span class="w"> </span><span class="kt">time_t</span><span class="w"> </span><span class="n">tv_sec</span><span class="p">;</span>
+<a id="line-1589" name="line-1589"></a><span class="w"> </span><span class="n">suseconds_t</span><span class="w"> </span><span class="n">tv_usec</span><span class="p">;</span>
+<a id="line-1590" name="line-1590"></a><span class="w"> </span><span class="n">gint64</span><span class="w"> </span><span class="n">tv</span><span class="p">;</span>
+<a id="line-1591" name="line-1591"></a>
+<a id="line-1592" name="line-1592"></a><span class="w"> </span><span class="n">sn_launcher_context_get_last_active_time</span><span class="w"> </span><span class="p">(</span><span class="n">sn_context</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">tv_sec</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">tv_usec</span><span class="p">);</span>
+<a id="line-1593" name="line-1593"></a><span class="w"> </span><span class="n">tv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">tv_sec</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">G_USEC_PER_SEC</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">tv_usec</span><span class="p">;</span>
+<a id="line-1594" name="line-1594"></a><span class="w"> </span><span class="n">elapsed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">now</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">tv</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">1000.0</span><span class="p">;</span>
+<a id="line-1595" name="line-1595"></a><span class="cp">#else</span>
+<a id="line-1596" name="line-1596"></a><span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="n">tv_sec</span><span class="p">,</span><span class="w"> </span><span class="n">tv_usec</span><span class="p">;</span>
+<a id="line-1597" name="line-1597"></a>
+<a id="line-1598" name="line-1598"></a><span class="w"> </span><span class="n">sn_launcher_context_get_last_active_time</span><span class="w"> </span><span class="p">(</span><span class="n">sn_context</span><span class="p">,</span>
+<a id="line-1599" name="line-1599"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">tv_sec</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">tv_usec</span><span class="p">);</span>
+<a id="line-1600" name="line-1600"></a>
+<a id="line-1601" name="line-1601"></a><span class="w"> </span><span class="n">elapsed</span><span class="w"> </span><span class="o">=</span>
+<a id="line-1602" name="line-1602"></a><span class="w"> </span><span class="p">((((</span><span class="kt">double</span><span class="p">)</span><span class="n">now</span><span class="p">.</span><span class="n">tv_sec</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">tv_sec</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">G_USEC_PER_SEC</span><span class="w"> </span><span class="o">+</span>
+<a id="line-1603" name="line-1603"></a><span class="w"> </span><span class="p">(</span><span class="n">now</span><span class="p">.</span><span class="n">tv_usec</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">tv_usec</span><span class="p">)))</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">1000.0</span><span class="p">;</span>
+<a id="line-1604" name="line-1604"></a><span class="cp">#endif</span>
+<a id="line-1605" name="line-1605"></a>
+<a id="line-1606" name="line-1606"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">elapsed</span><span class="w"> </span><span class="o">&gt;=</span><span class="w"> </span><span class="n">STARTUP_TIMEOUT_LENGTH</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1607" name="line-1607"></a><span class="w"> </span><span class="n">std</span><span class="o">-&gt;</span><span class="n">contexts</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slist_remove</span><span class="w"> </span><span class="p">(</span><span class="n">std</span><span class="o">-&gt;</span><span class="n">contexts</span><span class="p">,</span>
+<a id="line-1608" name="line-1608"></a><span class="w"> </span><span class="n">sn_context</span><span class="p">);</span>
+<a id="line-1609" name="line-1609"></a><span class="w"> </span><span class="n">sn_launcher_context_complete</span><span class="w"> </span><span class="p">(</span><span class="n">sn_context</span><span class="p">);</span>
+<a id="line-1610" name="line-1610"></a><span class="w"> </span><span class="n">sn_launcher_context_unref</span><span class="w"> </span><span class="p">(</span><span class="n">sn_context</span><span class="p">);</span>
+<a id="line-1611" name="line-1611"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1612" name="line-1612"></a><span class="w"> </span><span class="n">min_timeout</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MIN</span><span class="w"> </span><span class="p">(</span><span class="n">min_timeout</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">STARTUP_TIMEOUT_LENGTH</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">elapsed</span><span class="p">));</span>
+<a id="line-1613" name="line-1613"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1614" name="line-1614"></a>
+<a id="line-1615" name="line-1615"></a><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">next</span><span class="p">;</span>
+<a id="line-1616" name="line-1616"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1617" name="line-1617"></a>
+<a id="line-1618" name="line-1618"></a><span class="w"> </span><span class="cm">/* we&#39;ll use seconds for the timeout */</span>
+<a id="line-1619" name="line-1619"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">min_timeout</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">1000</span><span class="p">)</span>
+<a id="line-1620" name="line-1620"></a><span class="w"> </span><span class="n">min_timeout</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1000</span><span class="p">;</span>
+<a id="line-1621" name="line-1621"></a>
+<a id="line-1622" name="line-1622"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">std</span><span class="o">-&gt;</span><span class="n">contexts</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1623" name="line-1623"></a><span class="w"> </span><span class="n">std</span><span class="o">-&gt;</span><span class="n">timeout_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-1624" name="line-1624"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1625" name="line-1625"></a><span class="w"> </span><span class="n">std</span><span class="o">-&gt;</span><span class="n">timeout_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_timeout_add_seconds</span><span class="w"> </span><span class="p">(</span><span class="n">min_timeout</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">1000</span><span class="p">,</span>
+<a id="line-1626" name="line-1626"></a><span class="w"> </span><span class="n">startup_timeout</span><span class="p">,</span>
+<a id="line-1627" name="line-1627"></a><span class="w"> </span><span class="n">std</span><span class="p">);</span>
+<a id="line-1628" name="line-1628"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1629" name="line-1629"></a>
+<a id="line-1630" name="line-1630"></a><span class="w"> </span><span class="cm">/* always remove this one, but we may have reinstalled another one. */</span>
+<a id="line-1631" name="line-1631"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1632" name="line-1632"></a><span class="p">}</span>
+<a id="line-1633" name="line-1633"></a>
+<a id="line-1634" name="line-1634"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1635" name="line-1635"></a><span class="nf">add_startup_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-1636" name="line-1636"></a><span class="w"> </span><span class="n">SnLauncherContext</span><span class="w"> </span><span class="o">*</span><span class="n">sn_context</span><span class="p">)</span>
+<a id="line-1637" name="line-1637"></a><span class="p">{</span>
+<a id="line-1638" name="line-1638"></a><span class="w"> </span><span class="n">StartupTimeoutData</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">;</span>
+<a id="line-1639" name="line-1639"></a>
+<a id="line-1640" name="line-1640"></a><span class="w"> </span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_get_data</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;mate-startup-data&quot;</span><span class="p">);</span>
+<a id="line-1641" name="line-1641"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1642" name="line-1642"></a><span class="w"> </span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new</span><span class="w"> </span><span class="p">(</span><span class="n">StartupTimeoutData</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-1643" name="line-1643"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">screen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">screen</span><span class="p">;</span>
+<a id="line-1644" name="line-1644"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">contexts</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1645" name="line-1645"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">timeout_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-1646" name="line-1646"></a>
+<a id="line-1647" name="line-1647"></a><span class="w"> </span><span class="n">g_object_set_data_full</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;mate-startup-data&quot;</span><span class="p">,</span>
+<a id="line-1648" name="line-1648"></a><span class="w"> </span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">free_startup_timeout</span><span class="p">);</span>
+<a id="line-1649" name="line-1649"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1650" name="line-1650"></a>
+<a id="line-1651" name="line-1651"></a><span class="w"> </span><span class="n">sn_launcher_context_ref</span><span class="w"> </span><span class="p">(</span><span class="n">sn_context</span><span class="p">);</span>
+<a id="line-1652" name="line-1652"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">contexts</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slist_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">contexts</span><span class="p">,</span><span class="w"> </span><span class="n">sn_context</span><span class="p">);</span>
+<a id="line-1653" name="line-1653"></a>
+<a id="line-1654" name="line-1654"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="o">-&gt;</span><span class="n">timeout_id</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1655" name="line-1655"></a><span class="w"> </span><span class="n">data</span><span class="o">-&gt;</span><span class="n">timeout_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_timeout_add_seconds</span><span class="w"> </span><span class="p">(</span>
+<a id="line-1656" name="line-1656"></a><span class="w"> </span><span class="n">STARTUP_TIMEOUT_LENGTH_SEC</span><span class="p">,</span>
+<a id="line-1657" name="line-1657"></a><span class="w"> </span><span class="n">startup_timeout</span><span class="p">,</span>
+<a id="line-1658" name="line-1658"></a><span class="w"> </span><span class="n">data</span><span class="p">);</span>
+<a id="line-1659" name="line-1659"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1660" name="line-1660"></a><span class="p">}</span>
+<a id="line-1661" name="line-1661"></a><span class="cp">#endif </span><span class="cm">/* HAVE_STARTUP_NOTIFICATION - functions should only be reached in x11*/</span>
+<a id="line-1662" name="line-1662"></a>
+<a id="line-1663" name="line-1663"></a><span class="k">static</span><span class="w"> </span><span class="kr">inline</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1664" name="line-1664"></a><span class="nf">stringify_uris</span><span class="w"> </span><span class="p">(</span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">args</span><span class="p">)</span>
+<a id="line-1665" name="line-1665"></a><span class="p">{</span>
+<a id="line-1666" name="line-1666"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">;</span>
+<a id="line-1667" name="line-1667"></a>
+<a id="line-1668" name="line-1668"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_new</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1669" name="line-1669"></a>
+<a id="line-1670" name="line-1670"></a><span class="w"> </span><span class="n">append_all_converted</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">URI_TO_STRING</span><span class="p">,</span><span class="w"> </span><span class="n">args</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">ADDED_NONE</span><span class="p">);</span>
+<a id="line-1671" name="line-1671"></a>
+<a id="line-1672" name="line-1672"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_string_free</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1673" name="line-1673"></a><span class="p">}</span>
+<a id="line-1674" name="line-1674"></a>
+<a id="line-1675" name="line-1675"></a><span class="k">static</span><span class="w"> </span><span class="kr">inline</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1676" name="line-1676"></a><span class="nf">stringify_files</span><span class="w"> </span><span class="p">(</span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">args</span><span class="p">)</span>
+<a id="line-1677" name="line-1677"></a><span class="p">{</span>
+<a id="line-1678" name="line-1678"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">;</span>
+<a id="line-1679" name="line-1679"></a>
+<a id="line-1680" name="line-1680"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_new</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1681" name="line-1681"></a>
+<a id="line-1682" name="line-1682"></a><span class="w"> </span><span class="n">append_all_converted</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">URI_TO_LOCAL_PATH</span><span class="p">,</span><span class="w"> </span><span class="n">args</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">ADDED_NONE</span><span class="p">);</span>
+<a id="line-1683" name="line-1683"></a>
+<a id="line-1684" name="line-1684"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_string_free</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1685" name="line-1685"></a><span class="p">}</span>
+<a id="line-1686" name="line-1686"></a>
+<a id="line-1687" name="line-1687"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span>
+<a id="line-1688" name="line-1688"></a><span class="nf">make_environment_for_screen</span><span class="w"> </span><span class="p">(</span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-1689" name="line-1689"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">envp</span><span class="p">)</span>
+<a id="line-1690" name="line-1690"></a><span class="p">{</span>
+<a id="line-1691" name="line-1691"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">;</span>
+<a id="line-1692" name="line-1692"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">retval</span><span class="p">;</span>
+<a id="line-1693" name="line-1693"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">freeme</span><span class="p">;</span>
+<a id="line-1694" name="line-1694"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">display_name</span><span class="p">;</span>
+<a id="line-1695" name="line-1695"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">display_index</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-1696" name="line-1696"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">env_len</span><span class="p">;</span>
+<a id="line-1697" name="line-1697"></a>
+<a id="line-1698" name="line-1698"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_IS_SCREEN</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1699" name="line-1699"></a>
+<a id="line-1700" name="line-1700"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">freeme</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1701" name="line-1701"></a>
+<a id="line-1702" name="line-1702"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">envp</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1703" name="line-1703"></a><span class="w"> </span><span class="n">envp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">freeme</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_listenv</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1704" name="line-1704"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">envp</span><span class="w"> </span><span class="p">[</span><span class="n">i</span><span class="p">];</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1705" name="line-1705"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">envp</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-1706" name="line-1706"></a>
+<a id="line-1707" name="line-1707"></a><span class="w"> </span><span class="n">envp</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strjoin</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;=&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">g_getenv</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1708" name="line-1708"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">);</span>
+<a id="line-1709" name="line-1709"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1710" name="line-1710"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1711" name="line-1711"></a>
+<a id="line-1712" name="line-1712"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">env_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">envp</span><span class="w"> </span><span class="p">[</span><span class="n">env_len</span><span class="p">];</span><span class="w"> </span><span class="n">env_len</span><span class="o">++</span><span class="p">)</span>
+<a id="line-1713" name="line-1713"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strncmp</span><span class="w"> </span><span class="p">(</span><span class="n">envp</span><span class="w"> </span><span class="p">[</span><span class="n">env_len</span><span class="p">],</span><span class="w"> </span><span class="s">&quot;DISPLAY&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;DISPLAY&quot;</span><span class="p">))</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-1714" name="line-1714"></a><span class="w"> </span><span class="n">display_index</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">env_len</span><span class="p">;</span>
+<a id="line-1715" name="line-1715"></a>
+<a id="line-1716" name="line-1716"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">,</span><span class="w"> </span><span class="n">env_len</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-1717" name="line-1717"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="p">[</span><span class="n">env_len</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1718" name="line-1718"></a>
+<a id="line-1719" name="line-1719"></a><span class="w"> </span><span class="n">display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_screen_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">);</span>
+<a id="line-1720" name="line-1720"></a><span class="w"> </span><span class="n">display_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_display_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">));</span>
+<a id="line-1721" name="line-1721"></a>
+<a id="line-1722" name="line-1722"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">env_len</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span>
+<a id="line-1723" name="line-1723"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">display_index</span><span class="p">)</span>
+<a id="line-1724" name="line-1724"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;DISPLAY=&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">display_name</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1725" name="line-1725"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1726" name="line-1726"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">envp</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span>
+<a id="line-1727" name="line-1727"></a>
+<a id="line-1728" name="line-1728"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">env_len</span><span class="p">);</span>
+<a id="line-1729" name="line-1729"></a>
+<a id="line-1730" name="line-1730"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">display_name</span><span class="p">);</span>
+<a id="line-1731" name="line-1731"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">freeme</span><span class="p">);</span>
+<a id="line-1732" name="line-1732"></a>
+<a id="line-1733" name="line-1733"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span>
+<a id="line-1734" name="line-1734"></a><span class="p">}</span>
+<a id="line-1735" name="line-1735"></a>
+<a id="line-1736" name="line-1736"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1737" name="line-1737"></a><span class="nf">dummy_child_watch</span><span class="w"> </span><span class="p">(</span><span class="n">GPid</span><span class="w"> </span><span class="n">pid</span><span class="p">,</span>
+<a id="line-1738" name="line-1738"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">status</span><span class="p">,</span>
+<a id="line-1739" name="line-1739"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span>
+<a id="line-1740" name="line-1740"></a><span class="p">{</span>
+<a id="line-1741" name="line-1741"></a><span class="w"> </span><span class="cm">/* Nothing, this is just to ensure we don&#39;t double fork</span>
+<a id="line-1742" name="line-1742"></a><span class="cm"> * and break pkexec:</span>
+<a id="line-1743" name="line-1743"></a><span class="cm"> * https://bugzilla.gnome.org/show_bug.cgi?id=675789</span>
+<a id="line-1744" name="line-1744"></a><span class="cm"> */</span>
+<a id="line-1745" name="line-1745"></a><span class="p">}</span>
+<a id="line-1746" name="line-1746"></a>
+<a id="line-1747" name="line-1747"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span>
+<a id="line-1748" name="line-1748"></a><span class="nf">ditem_execute</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-1749" name="line-1749"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">exec</span><span class="p">,</span>
+<a id="line-1750" name="line-1750"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">file_list</span><span class="p">,</span>
+<a id="line-1751" name="line-1751"></a><span class="w"> </span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-1752" name="line-1752"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">workspace</span><span class="p">,</span>
+<a id="line-1753" name="line-1753"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">envp</span><span class="p">,</span>
+<a id="line-1754" name="line-1754"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">launch_only_one</span><span class="p">,</span>
+<a id="line-1755" name="line-1755"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">use_current_dir</span><span class="p">,</span>
+<a id="line-1756" name="line-1756"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">append_uris</span><span class="p">,</span>
+<a id="line-1757" name="line-1757"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">append_paths</span><span class="p">,</span>
+<a id="line-1758" name="line-1758"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">do_not_reap_child</span><span class="p">,</span>
+<a id="line-1759" name="line-1759"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-1760" name="line-1760"></a><span class="p">{</span>
+<a id="line-1761" name="line-1761"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">free_me</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1762" name="line-1762"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">real_argv</span><span class="p">;</span>
+<a id="line-1763" name="line-1763"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-1764" name="line-1764"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">term_argv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1765" name="line-1765"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">term_argc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-1766" name="line-1766"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">vector_list</span><span class="p">;</span>
+<a id="line-1767" name="line-1767"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">args</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">arg_ptr</span><span class="p">;</span>
+<a id="line-1768" name="line-1768"></a><span class="w"> </span><span class="n">AddedStatus</span><span class="w"> </span><span class="n">added_status</span><span class="p">;</span>
+<a id="line-1769" name="line-1769"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">working_dir</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1770" name="line-1770"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">temp_argv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1771" name="line-1771"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">temp_argc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-1772" name="line-1772"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">new_exec</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">uris</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">temp</span><span class="p">;</span>
+<a id="line-1773" name="line-1773"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">exec_locale</span><span class="p">;</span>
+<a id="line-1774" name="line-1774"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">launched</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-1775" name="line-1775"></a><span class="w"> </span><span class="n">GPid</span><span class="w"> </span><span class="n">pid</span><span class="p">;</span>
+<a id="line-1776" name="line-1776"></a><span class="cp">#ifdef HAVE_STARTUP_NOTIFICATION</span>
+<a id="line-1777" name="line-1777"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">gdkdisplay</span><span class="p">;</span>
+<a id="line-1778" name="line-1778"></a><span class="w"> </span><span class="n">SnLauncherContext</span><span class="w"> </span><span class="o">*</span><span class="n">sn_context</span><span class="p">;</span>
+<a id="line-1779" name="line-1779"></a><span class="w"> </span><span class="n">SnDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">sn_display</span><span class="p">;</span>
+<a id="line-1780" name="line-1780"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">startup_class</span><span class="p">;</span>
+<a id="line-1781" name="line-1781"></a><span class="cp">#endif</span>
+<a id="line-1782" name="line-1782"></a>
+<a id="line-1783" name="line-1783"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span>
+<a id="line-1784" name="line-1784"></a>
+<a id="line-1785" name="line-1785"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE_APPLICATION</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1786" name="line-1786"></a><span class="w"> </span><span class="n">working_dir</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_PATH</span><span class="p">);</span>
+<a id="line-1787" name="line-1787"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">working_dir</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-1788" name="line-1788"></a><span class="w"> </span><span class="o">!</span><span class="n">g_file_test</span><span class="w"> </span><span class="p">(</span><span class="n">working_dir</span><span class="p">,</span><span class="w"> </span><span class="n">G_FILE_TEST_IS_DIR</span><span class="p">))</span>
+<a id="line-1789" name="line-1789"></a><span class="w"> </span><span class="n">working_dir</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1790" name="line-1790"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1791" name="line-1791"></a>
+<a id="line-1792" name="line-1792"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">working_dir</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">!</span><span class="n">use_current_dir</span><span class="p">)</span>
+<a id="line-1793" name="line-1793"></a><span class="w"> </span><span class="n">working_dir</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_get_home_dir</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1794" name="line-1794"></a>
+<a id="line-1795" name="line-1795"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mate_desktop_item_get_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TERMINAL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1796" name="line-1796"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">options</span><span class="w"> </span><span class="o">=</span>
+<a id="line-1797" name="line-1797"></a><span class="w"> </span><span class="n">mate_desktop_item_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TERMINAL_OPTIONS</span><span class="p">);</span>
+<a id="line-1798" name="line-1798"></a>
+<a id="line-1799" name="line-1799"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">options</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1800" name="line-1800"></a><span class="w"> </span><span class="n">g_shell_parse_argv</span><span class="w"> </span><span class="p">(</span><span class="n">options</span><span class="p">,</span>
+<a id="line-1801" name="line-1801"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">term_argc</span><span class="p">,</span>
+<a id="line-1802" name="line-1802"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">term_argv</span><span class="p">,</span>
+<a id="line-1803" name="line-1803"></a><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="cm">/* error */</span><span class="p">);</span>
+<a id="line-1804" name="line-1804"></a><span class="w"> </span><span class="cm">/* ignore errors */</span>
+<a id="line-1805" name="line-1805"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1806" name="line-1806"></a>
+<a id="line-1807" name="line-1807"></a><span class="w"> </span><span class="n">mate_desktop_prepend_terminal_to_vector</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">term_argc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">term_argv</span><span class="p">);</span>
+<a id="line-1808" name="line-1808"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1809" name="line-1809"></a>
+<a id="line-1810" name="line-1810"></a><span class="w"> </span><span class="n">args</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">make_args</span><span class="w"> </span><span class="p">(</span><span class="n">file_list</span><span class="p">);</span>
+<a id="line-1811" name="line-1811"></a><span class="w"> </span><span class="n">arg_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">make_args</span><span class="w"> </span><span class="p">(</span><span class="n">file_list</span><span class="p">);</span>
+<a id="line-1812" name="line-1812"></a>
+<a id="line-1813" name="line-1813"></a><span class="cp">#ifdef HAVE_STARTUP_NOTIFICATION</span>
+<a id="line-1814" name="line-1814"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_screen_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_screen_get_default</span><span class="p">());</span>
+<a id="line-1815" name="line-1815"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_IS_X11_DISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">))</span>
+<a id="line-1816" name="line-1816"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1817" name="line-1817"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">)</span>
+<a id="line-1818" name="line-1818"></a><span class="w"> </span><span class="n">gdkdisplay</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_screen_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">);</span>
+<a id="line-1819" name="line-1819"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1820" name="line-1820"></a><span class="w"> </span><span class="n">gdkdisplay</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_display_get_default</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1821" name="line-1821"></a>
+<a id="line-1822" name="line-1822"></a><span class="w"> </span><span class="n">sn_display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">sn_display_new</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_DISPLAY_XDISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">gdkdisplay</span><span class="p">),</span>
+<a id="line-1823" name="line-1823"></a><span class="w"> </span><span class="n">sn_error_trap_push</span><span class="p">,</span>
+<a id="line-1824" name="line-1824"></a><span class="w"> </span><span class="n">sn_error_trap_pop</span><span class="p">);</span>
+<a id="line-1825" name="line-1825"></a>
+<a id="line-1826" name="line-1826"></a><span class="w"> </span><span class="cm">/* Only initiate notification if desktop file supports it.</span>
+<a id="line-1827" name="line-1827"></a><span class="cm"> * (we could avoid setting up the SnLauncherContext if we aren&#39;t going</span>
+<a id="line-1828" name="line-1828"></a><span class="cm"> * to initiate, but why bother)</span>
+<a id="line-1829" name="line-1829"></a><span class="cm"> */</span>
+<a id="line-1830" name="line-1830"></a>
+<a id="line-1831" name="line-1831"></a><span class="w"> </span><span class="n">startup_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span>
+<a id="line-1832" name="line-1832"></a><span class="w"> </span><span class="s">&quot;StartupWMClass&quot;</span><span class="p">);</span>
+<a id="line-1833" name="line-1833"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">startup_class</span><span class="w"> </span><span class="o">||</span>
+<a id="line-1834" name="line-1834"></a><span class="w"> </span><span class="n">mate_desktop_item_get_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;StartupNotify&quot;</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1835" name="line-1835"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span>
+<a id="line-1836" name="line-1836"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">icon</span><span class="p">;</span>
+<a id="line-1837" name="line-1837"></a>
+<a id="line-1838" name="line-1838"></a><span class="w"> </span><span class="n">sn_context</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">sn_launcher_context_new</span><span class="w"> </span><span class="p">(</span><span class="n">sn_display</span><span class="p">,</span>
+<a id="line-1839" name="line-1839"></a><span class="w"> </span><span class="n">screen</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">gdk_x11_screen_get_screen_number</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">)</span><span class="w"> </span><span class="o">:</span>
+<a id="line-1840" name="line-1840"></a><span class="w"> </span><span class="n">DefaultScreen</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_DISPLAY_XDISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">gdkdisplay</span><span class="p">)));</span>
+<a id="line-1841" name="line-1841"></a>
+<a id="line-1842" name="line-1842"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_get_localestring</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span>
+<a id="line-1843" name="line-1843"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_NAME</span><span class="p">);</span>
+<a id="line-1844" name="line-1844"></a>
+<a id="line-1845" name="line-1845"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1846" name="line-1846"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_get_localestring</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span>
+<a id="line-1847" name="line-1847"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_GENERIC_NAME</span><span class="p">);</span>
+<a id="line-1848" name="line-1848"></a>
+<a id="line-1849" name="line-1849"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1850" name="line-1850"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">description</span><span class="p">;</span>
+<a id="line-1851" name="line-1851"></a>
+<a id="line-1852" name="line-1852"></a><span class="w"> </span><span class="n">sn_launcher_context_set_name</span><span class="w"> </span><span class="p">(</span><span class="n">sn_context</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span>
+<a id="line-1853" name="line-1853"></a>
+<a id="line-1854" name="line-1854"></a><span class="w"> </span><span class="n">description</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Starting %s&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">name</span><span class="p">);</span>
+<a id="line-1855" name="line-1855"></a>
+<a id="line-1856" name="line-1856"></a><span class="w"> </span><span class="n">sn_launcher_context_set_description</span><span class="w"> </span><span class="p">(</span><span class="n">sn_context</span><span class="p">,</span><span class="w"> </span><span class="n">description</span><span class="p">);</span>
+<a id="line-1857" name="line-1857"></a>
+<a id="line-1858" name="line-1858"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">description</span><span class="p">);</span>
+<a id="line-1859" name="line-1859"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1860" name="line-1860"></a>
+<a id="line-1861" name="line-1861"></a><span class="w"> </span><span class="n">icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span>
+<a id="line-1862" name="line-1862"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ICON</span><span class="p">);</span>
+<a id="line-1863" name="line-1863"></a>
+<a id="line-1864" name="line-1864"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">icon</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1865" name="line-1865"></a><span class="w"> </span><span class="n">sn_launcher_context_set_icon_name</span><span class="w"> </span><span class="p">(</span><span class="n">sn_context</span><span class="p">,</span><span class="w"> </span><span class="n">icon</span><span class="p">);</span>
+<a id="line-1866" name="line-1866"></a>
+<a id="line-1867" name="line-1867"></a><span class="w"> </span><span class="n">sn_launcher_context_set_workspace</span><span class="w"> </span><span class="p">(</span><span class="n">sn_context</span><span class="p">,</span><span class="w"> </span><span class="n">workspace</span><span class="p">);</span>
+<a id="line-1868" name="line-1868"></a>
+<a id="line-1869" name="line-1869"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">startup_class</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1870" name="line-1870"></a><span class="w"> </span><span class="n">sn_launcher_context_set_wmclass</span><span class="w"> </span><span class="p">(</span><span class="n">sn_context</span><span class="p">,</span>
+<a id="line-1871" name="line-1871"></a><span class="w"> </span><span class="n">startup_class</span><span class="p">);</span>
+<a id="line-1872" name="line-1872"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1873" name="line-1873"></a><span class="w"> </span><span class="n">sn_context</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1874" name="line-1874"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1875" name="line-1875"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1876" name="line-1876"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1877" name="line-1877"></a><span class="w"> </span><span class="n">sn_context</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1878" name="line-1878"></a><span class="w"> </span><span class="n">sn_display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1879" name="line-1879"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1880" name="line-1880"></a><span class="cp">#endif</span>
+<a id="line-1881" name="line-1881"></a>
+<a id="line-1882" name="line-1882"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1883" name="line-1883"></a><span class="w"> </span><span class="n">envp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">make_environment_for_screen</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">envp</span><span class="p">);</span>
+<a id="line-1884" name="line-1884"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">free_me</span><span class="p">)</span>
+<a id="line-1885" name="line-1885"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">free_me</span><span class="p">);</span>
+<a id="line-1886" name="line-1886"></a><span class="w"> </span><span class="n">free_me</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">envp</span><span class="p">;</span>
+<a id="line-1887" name="line-1887"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1888" name="line-1888"></a>
+<a id="line-1889" name="line-1889"></a><span class="w"> </span><span class="n">exec_locale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_filename_from_utf8</span><span class="w"> </span><span class="p">(</span><span class="n">exec</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1890" name="line-1890"></a>
+<a id="line-1891" name="line-1891"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">exec_locale</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1892" name="line-1892"></a><span class="w"> </span><span class="n">exec_locale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&quot;</span><span class="p">);</span>
+<a id="line-1893" name="line-1893"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1894" name="line-1894"></a>
+<a id="line-1895" name="line-1895"></a><span class="w"> </span><span class="k">do</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1896" name="line-1896"></a><span class="w"> </span><span class="n">added_status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ADDED_NONE</span><span class="p">;</span>
+<a id="line-1897" name="line-1897"></a><span class="w"> </span><span class="n">new_exec</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">expand_string</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span>
+<a id="line-1898" name="line-1898"></a><span class="w"> </span><span class="n">exec_locale</span><span class="p">,</span>
+<a id="line-1899" name="line-1899"></a><span class="w"> </span><span class="n">args</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">arg_ptr</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">added_status</span><span class="p">);</span>
+<a id="line-1900" name="line-1900"></a>
+<a id="line-1901" name="line-1901"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">launched</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">added_status</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">ADDED_NONE</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">append_uris</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1902" name="line-1902"></a><span class="w"> </span><span class="n">uris</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">stringify_uris</span><span class="w"> </span><span class="p">(</span><span class="n">args</span><span class="p">);</span>
+<a id="line-1903" name="line-1903"></a><span class="w"> </span><span class="n">temp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="n">new_exec</span><span class="p">,</span><span class="w"> </span><span class="s">&quot; &quot;</span><span class="p">,</span><span class="w"> </span><span class="n">uris</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1904" name="line-1904"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">uris</span><span class="p">);</span>
+<a id="line-1905" name="line-1905"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">new_exec</span><span class="p">);</span>
+<a id="line-1906" name="line-1906"></a><span class="w"> </span><span class="n">new_exec</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">temp</span><span class="p">;</span>
+<a id="line-1907" name="line-1907"></a><span class="w"> </span><span class="n">added_status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ADDED_ALL</span><span class="p">;</span>
+<a id="line-1908" name="line-1908"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1909" name="line-1909"></a>
+<a id="line-1910" name="line-1910"></a><span class="w"> </span><span class="cm">/* append_uris and append_paths are mutually exlusive */</span>
+<a id="line-1911" name="line-1911"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">launched</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">added_status</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">ADDED_NONE</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">append_paths</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1912" name="line-1912"></a><span class="w"> </span><span class="n">uris</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">stringify_files</span><span class="w"> </span><span class="p">(</span><span class="n">args</span><span class="p">);</span>
+<a id="line-1913" name="line-1913"></a><span class="w"> </span><span class="n">temp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="n">new_exec</span><span class="p">,</span><span class="w"> </span><span class="s">&quot; &quot;</span><span class="p">,</span><span class="w"> </span><span class="n">uris</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1914" name="line-1914"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">uris</span><span class="p">);</span>
+<a id="line-1915" name="line-1915"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">new_exec</span><span class="p">);</span>
+<a id="line-1916" name="line-1916"></a><span class="w"> </span><span class="n">new_exec</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">temp</span><span class="p">;</span>
+<a id="line-1917" name="line-1917"></a><span class="w"> </span><span class="n">added_status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ADDED_ALL</span><span class="p">;</span>
+<a id="line-1918" name="line-1918"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1919" name="line-1919"></a>
+<a id="line-1920" name="line-1920"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">launched</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">added_status</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">ADDED_NONE</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1921" name="line-1921"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">new_exec</span><span class="p">);</span>
+<a id="line-1922" name="line-1922"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1923" name="line-1923"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1924" name="line-1924"></a>
+<a id="line-1925" name="line-1925"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="o">!</span><span class="w"> </span><span class="n">g_shell_parse_argv</span><span class="w"> </span><span class="p">(</span><span class="n">new_exec</span><span class="p">,</span>
+<a id="line-1926" name="line-1926"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">temp_argc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">temp_argv</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1927" name="line-1927"></a><span class="w"> </span><span class="cm">/* The error now comes from g_shell_parse_argv */</span>
+<a id="line-1928" name="line-1928"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">new_exec</span><span class="p">);</span>
+<a id="line-1929" name="line-1929"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-1930" name="line-1930"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1931" name="line-1931"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1932" name="line-1932"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">new_exec</span><span class="p">);</span>
+<a id="line-1933" name="line-1933"></a>
+<a id="line-1934" name="line-1934"></a><span class="w"> </span><span class="n">vector_list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1935" name="line-1935"></a><span class="w"> </span><span class="k">for</span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">term_argc</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span>
+<a id="line-1936" name="line-1936"></a><span class="w"> </span><span class="n">vector_list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slist_append</span><span class="w"> </span><span class="p">(</span><span class="n">vector_list</span><span class="p">,</span>
+<a id="line-1937" name="line-1937"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">term_argv</span><span class="p">[</span><span class="n">i</span><span class="p">]));</span>
+<a id="line-1938" name="line-1938"></a>
+<a id="line-1939" name="line-1939"></a><span class="w"> </span><span class="k">for</span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">temp_argc</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span>
+<a id="line-1940" name="line-1940"></a><span class="w"> </span><span class="n">vector_list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slist_append</span><span class="w"> </span><span class="p">(</span><span class="n">vector_list</span><span class="p">,</span>
+<a id="line-1941" name="line-1941"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">temp_argv</span><span class="p">[</span><span class="n">i</span><span class="p">]));</span>
+<a id="line-1942" name="line-1942"></a>
+<a id="line-1943" name="line-1943"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">temp_argv</span><span class="p">);</span>
+<a id="line-1944" name="line-1944"></a>
+<a id="line-1945" name="line-1945"></a><span class="w"> </span><span class="n">real_argv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">list_to_vector</span><span class="w"> </span><span class="p">(</span><span class="n">vector_list</span><span class="p">);</span>
+<a id="line-1946" name="line-1946"></a><span class="w"> </span><span class="n">g_slist_free_full</span><span class="w"> </span><span class="p">(</span><span class="n">vector_list</span><span class="p">,</span><span class="w"> </span><span class="n">g_free</span><span class="p">);</span>
+<a id="line-1947" name="line-1947"></a>
+<a id="line-1948" name="line-1948"></a><span class="cp">#ifdef HAVE_STARTUP_NOTIFICATION</span>
+<a id="line-1949" name="line-1949"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">sn_context</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_IS_X11_DISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">))</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-1950" name="line-1950"></a><span class="w"> </span><span class="o">!</span><span class="n">sn_launcher_context_get_initiated</span><span class="w"> </span><span class="p">(</span><span class="n">sn_context</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1951" name="line-1951"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">launch_time</span><span class="p">;</span>
+<a id="line-1952" name="line-1952"></a>
+<a id="line-1953" name="line-1953"></a><span class="w"> </span><span class="cm">/* This means that we always use the first real_argv[0]</span>
+<a id="line-1954" name="line-1954"></a><span class="cm"> * we select for the &quot;binary name&quot;, but it&#39;s probably</span>
+<a id="line-1955" name="line-1955"></a><span class="cm"> * OK to do that. Binary name isn&#39;t super-important</span>
+<a id="line-1956" name="line-1956"></a><span class="cm"> * anyway, and we can&#39;t initiate twice, and we</span>
+<a id="line-1957" name="line-1957"></a><span class="cm"> * must initiate prior to fork/exec.</span>
+<a id="line-1958" name="line-1958"></a><span class="cm"> */</span>
+<a id="line-1959" name="line-1959"></a>
+<a id="line-1960" name="line-1960"></a><span class="w"> </span><span class="n">sn_launcher_context_set_binary_name</span><span class="w"> </span><span class="p">(</span><span class="n">sn_context</span><span class="p">,</span>
+<a id="line-1961" name="line-1961"></a><span class="w"> </span><span class="n">real_argv</span><span class="p">[</span><span class="mi">0</span><span class="p">]);</span>
+<a id="line-1962" name="line-1962"></a>
+<a id="line-1963" name="line-1963"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">launch_time</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-1964" name="line-1964"></a><span class="w"> </span><span class="n">launch_time</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">launch_time</span><span class="p">;</span>
+<a id="line-1965" name="line-1965"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1966" name="line-1966"></a><span class="w"> </span><span class="n">launch_time</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_x11_display_get_user_time</span><span class="w"> </span><span class="p">(</span><span class="n">gdkdisplay</span><span class="p">);</span>
+<a id="line-1967" name="line-1967"></a>
+<a id="line-1968" name="line-1968"></a><span class="w"> </span><span class="n">sn_launcher_context_initiate</span><span class="w"> </span><span class="p">(</span><span class="n">sn_context</span><span class="p">,</span>
+<a id="line-1969" name="line-1969"></a><span class="w"> </span><span class="n">g_get_prgname</span><span class="w"> </span><span class="p">()</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">g_get_prgname</span><span class="w"> </span><span class="p">()</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="s">&quot;unknown&quot;</span><span class="p">,</span>
+<a id="line-1970" name="line-1970"></a><span class="w"> </span><span class="n">real_argv</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span>
+<a id="line-1971" name="line-1971"></a><span class="w"> </span><span class="n">launch_time</span><span class="p">);</span>
+<a id="line-1972" name="line-1972"></a>
+<a id="line-1973" name="line-1973"></a><span class="w"> </span><span class="cm">/* Don&#39;t allow accidental reuse of same timestamp */</span>
+<a id="line-1974" name="line-1974"></a><span class="w"> </span><span class="p">((</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">item</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">launch_time</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-1975" name="line-1975"></a>
+<a id="line-1976" name="line-1976"></a><span class="w"> </span><span class="n">envp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">make_spawn_environment_for_sn_context</span><span class="w"> </span><span class="p">(</span><span class="n">sn_context</span><span class="p">,</span><span class="w"> </span><span class="n">envp</span><span class="p">);</span>
+<a id="line-1977" name="line-1977"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">free_me</span><span class="p">)</span>
+<a id="line-1978" name="line-1978"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">free_me</span><span class="p">);</span>
+<a id="line-1979" name="line-1979"></a><span class="w"> </span><span class="n">free_me</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">envp</span><span class="p">;</span>
+<a id="line-1980" name="line-1980"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1981" name="line-1981"></a><span class="cp">#endif</span>
+<a id="line-1982" name="line-1982"></a>
+<a id="line-1983" name="line-1983"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="o">!</span><span class="w"> </span><span class="n">g_spawn_async</span><span class="w"> </span><span class="p">(</span><span class="n">working_dir</span><span class="p">,</span>
+<a id="line-1984" name="line-1984"></a><span class="w"> </span><span class="n">real_argv</span><span class="p">,</span>
+<a id="line-1985" name="line-1985"></a><span class="w"> </span><span class="n">envp</span><span class="p">,</span>
+<a id="line-1986" name="line-1986"></a><span class="w"> </span><span class="p">(</span><span class="n">do_not_reap_child</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">G_SPAWN_DO_NOT_REAP_CHILD</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_SPAWN_SEARCH_PATH</span><span class="w"> </span><span class="cm">/* flags */</span><span class="p">,</span>
+<a id="line-1987" name="line-1987"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* child_setup_func */</span>
+<a id="line-1988" name="line-1988"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* child_setup_func_data */</span>
+<a id="line-1989" name="line-1989"></a><span class="w"> </span><span class="p">(</span><span class="n">do_not_reap_child</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="o">&amp;</span><span class="n">pid</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="cm">/* child_pid */</span><span class="p">,</span>
+<a id="line-1990" name="line-1990"></a><span class="w"> </span><span class="n">error</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1991" name="line-1991"></a><span class="w"> </span><span class="cm">/* The error was set for us,</span>
+<a id="line-1992" name="line-1992"></a><span class="cm"> * we just can&#39;t launch this thingie */</span>
+<a id="line-1993" name="line-1993"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-1994" name="line-1994"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">real_argv</span><span class="p">);</span>
+<a id="line-1995" name="line-1995"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1996" name="line-1996"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">do_not_reap_child</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1997" name="line-1997"></a><span class="w"> </span><span class="n">g_child_watch_add</span><span class="w"> </span><span class="p">(</span><span class="n">pid</span><span class="p">,</span><span class="w"> </span><span class="n">dummy_child_watch</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1998" name="line-1998"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1999" name="line-1999"></a>
+<a id="line-2000" name="line-2000"></a><span class="w"> </span><span class="n">launched</span><span class="w"> </span><span class="o">++</span><span class="p">;</span>
+<a id="line-2001" name="line-2001"></a>
+<a id="line-2002" name="line-2002"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">real_argv</span><span class="p">);</span>
+<a id="line-2003" name="line-2003"></a>
+<a id="line-2004" name="line-2004"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">arg_ptr</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-2005" name="line-2005"></a><span class="w"> </span><span class="n">arg_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">arg_ptr</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">;</span>
+<a id="line-2006" name="line-2006"></a>
+<a id="line-2007" name="line-2007"></a><span class="w"> </span><span class="cm">/* rinse, repeat until we run out of arguments (That</span>
+<a id="line-2008" name="line-2008"></a><span class="cm"> * is if we were adding singles anyway) */</span>
+<a id="line-2009" name="line-2009"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">added_status</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">ADDED_SINGLE</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-2010" name="line-2010"></a><span class="w"> </span><span class="n">arg_ptr</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-2011" name="line-2011"></a><span class="w"> </span><span class="o">!</span><span class="w"> </span><span class="n">launch_only_one</span><span class="p">);</span>
+<a id="line-2012" name="line-2012"></a>
+<a id="line-2013" name="line-2013"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">exec_locale</span><span class="p">);</span>
+<a id="line-2014" name="line-2014"></a><span class="cp">#ifdef HAVE_STARTUP_NOTIFICATION</span>
+<a id="line-2015" name="line-2015"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">sn_context</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_IS_X11_DISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">))){</span>
+<a id="line-2016" name="line-2016"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">ret</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-2017" name="line-2017"></a><span class="w"> </span><span class="n">sn_launcher_context_complete</span><span class="w"> </span><span class="p">(</span><span class="n">sn_context</span><span class="p">);</span><span class="w"> </span><span class="cm">/* end sequence */</span>
+<a id="line-2018" name="line-2018"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-2019" name="line-2019"></a><span class="w"> </span><span class="n">add_startup_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">screen</span><span class="w"> </span><span class="o">:</span>
+<a id="line-2020" name="line-2020"></a><span class="w"> </span><span class="n">gdk_display_get_default_screen</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_display_get_default</span><span class="w"> </span><span class="p">()),</span>
+<a id="line-2021" name="line-2021"></a><span class="w"> </span><span class="n">sn_context</span><span class="p">);</span>
+<a id="line-2022" name="line-2022"></a><span class="w"> </span><span class="n">sn_launcher_context_unref</span><span class="w"> </span><span class="p">(</span><span class="n">sn_context</span><span class="p">);</span>
+<a id="line-2023" name="line-2023"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2024" name="line-2024"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_IS_X11_DISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">))</span>
+<a id="line-2025" name="line-2025"></a><span class="w"> </span><span class="n">sn_display_unref</span><span class="w"> </span><span class="p">(</span><span class="n">sn_display</span><span class="p">);</span>
+<a id="line-2026" name="line-2026"></a>
+<a id="line-2027" name="line-2027"></a><span class="cp">#endif </span><span class="cm">/* HAVE_STARTUP_NOTIFICATION */</span>
+<a id="line-2028" name="line-2028"></a>
+<a id="line-2029" name="line-2029"></a><span class="w"> </span><span class="n">free_args</span><span class="w"> </span><span class="p">(</span><span class="n">args</span><span class="p">);</span>
+<a id="line-2030" name="line-2030"></a>
+<a id="line-2031" name="line-2031"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">term_argv</span><span class="p">)</span>
+<a id="line-2032" name="line-2032"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">term_argv</span><span class="p">);</span>
+<a id="line-2033" name="line-2033"></a>
+<a id="line-2034" name="line-2034"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">free_me</span><span class="p">)</span>
+<a id="line-2035" name="line-2035"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">free_me</span><span class="p">);</span>
+<a id="line-2036" name="line-2036"></a>
+<a id="line-2037" name="line-2037"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-2038" name="line-2038"></a><span class="p">}</span>
+<a id="line-2039" name="line-2039"></a>
+<a id="line-2040" name="line-2040"></a><span class="cm">/* strip any trailing &amp;, return FALSE if bad things happen and</span>
+<a id="line-2041" name="line-2041"></a><span class="cm"> we end up with an empty string */</span>
+<a id="line-2042" name="line-2042"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-2043" name="line-2043"></a><span class="nf">strip_the_amp</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">exec</span><span class="p">)</span>
+<a id="line-2044" name="line-2044"></a><span class="p">{</span>
+<a id="line-2045" name="line-2045"></a><span class="w"> </span><span class="kt">size_t</span><span class="w"> </span><span class="n">exec_len</span><span class="p">;</span>
+<a id="line-2046" name="line-2046"></a>
+<a id="line-2047" name="line-2047"></a><span class="w"> </span><span class="n">g_strstrip</span><span class="w"> </span><span class="p">(</span><span class="n">exec</span><span class="p">);</span>
+<a id="line-2048" name="line-2048"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">exec</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">)</span>
+<a id="line-2049" name="line-2049"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-2050" name="line-2050"></a>
+<a id="line-2051" name="line-2051"></a><span class="w"> </span><span class="n">exec_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">exec</span><span class="p">);</span>
+<a id="line-2052" name="line-2052"></a><span class="w"> </span><span class="cm">/* kill any trailing &#39;&amp;&#39; */</span>
+<a id="line-2053" name="line-2053"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">exec</span><span class="p">[</span><span class="n">exec_len</span><span class="mi">-1</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;&amp;&#39;</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2054" name="line-2054"></a><span class="w"> </span><span class="n">exec</span><span class="p">[</span><span class="n">exec_len</span><span class="mi">-1</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">;</span>
+<a id="line-2055" name="line-2055"></a><span class="w"> </span><span class="n">g_strchomp</span><span class="w"> </span><span class="p">(</span><span class="n">exec</span><span class="p">);</span>
+<a id="line-2056" name="line-2056"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2057" name="line-2057"></a>
+<a id="line-2058" name="line-2058"></a><span class="w"> </span><span class="cm">/* can&#39;t exactly launch an empty thing */</span>
+<a id="line-2059" name="line-2059"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">exec</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">)</span>
+<a id="line-2060" name="line-2060"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-2061" name="line-2061"></a>
+<a id="line-2062" name="line-2062"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-2063" name="line-2063"></a><span class="p">}</span>
+<a id="line-2064" name="line-2064"></a>
+<a id="line-2065" name="line-2065"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span>
+<a id="line-2066" name="line-2066"></a><span class="nf">mate_desktop_item_launch_on_screen_with_env</span><span class="w"> </span><span class="p">(</span>
+<a id="line-2067" name="line-2067"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-2068" name="line-2068"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">file_list</span><span class="p">,</span>
+<a id="line-2069" name="line-2069"></a><span class="w"> </span><span class="n">MateDesktopItemLaunchFlags</span><span class="w"> </span><span class="n">flags</span><span class="p">,</span>
+<a id="line-2070" name="line-2070"></a><span class="w"> </span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-2071" name="line-2071"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">workspace</span><span class="p">,</span>
+<a id="line-2072" name="line-2072"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">envp</span><span class="p">,</span>
+<a id="line-2073" name="line-2073"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-2074" name="line-2074"></a><span class="p">{</span>
+<a id="line-2075" name="line-2075"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">exec</span><span class="p">;</span>
+<a id="line-2076" name="line-2076"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">the_exec</span><span class="p">;</span>
+<a id="line-2077" name="line-2077"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-2078" name="line-2078"></a>
+<a id="line-2079" name="line-2079"></a><span class="w"> </span><span class="n">exec</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_EXEC</span><span class="p">);</span>
+<a id="line-2080" name="line-2080"></a><span class="w"> </span><span class="cm">/* This is a URL, so launch it as a url */</span>
+<a id="line-2081" name="line-2081"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE_LINK</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2082" name="line-2082"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">url</span><span class="p">;</span>
+<a id="line-2083" name="line-2083"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span>
+<a id="line-2084" name="line-2084"></a>
+<a id="line-2085" name="line-2085"></a><span class="w"> </span><span class="n">url</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_URL</span><span class="p">);</span>
+<a id="line-2086" name="line-2086"></a><span class="w"> </span><span class="cm">/* Mate panel used to put this in Exec */</span>
+<a id="line-2087" name="line-2087"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="n">url</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">url</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">))</span>
+<a id="line-2088" name="line-2088"></a><span class="w"> </span><span class="n">url</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">exec</span><span class="p">;</span>
+<a id="line-2089" name="line-2089"></a>
+<a id="line-2090" name="line-2090"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="n">url</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">url</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2091" name="line-2091"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span>
+<a id="line-2092" name="line-2092"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ERROR</span><span class="p">,</span>
+<a id="line-2093" name="line-2093"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ERROR_NO_URL</span><span class="p">,</span>
+<a id="line-2094" name="line-2094"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;No URL to launch&quot;</span><span class="p">));</span>
+<a id="line-2095" name="line-2095"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-2096" name="line-2096"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2097" name="line-2097"></a>
+<a id="line-2098" name="line-2098"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_show_uri_on_window</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-2099" name="line-2099"></a><span class="w"> </span><span class="n">url</span><span class="p">,</span>
+<a id="line-2100" name="line-2100"></a><span class="w"> </span><span class="n">GDK_CURRENT_TIME</span><span class="p">,</span>
+<a id="line-2101" name="line-2101"></a><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-2102" name="line-2102"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-2103" name="line-2103"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2104" name="line-2104"></a>
+<a id="line-2105" name="line-2105"></a><span class="w"> </span><span class="cm">/* check the type, if there is one set */</span>
+<a id="line-2106" name="line-2106"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">type</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE_APPLICATION</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2107" name="line-2107"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span>
+<a id="line-2108" name="line-2108"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ERROR</span><span class="p">,</span>
+<a id="line-2109" name="line-2109"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ERROR_NOT_LAUNCHABLE</span><span class="p">,</span>
+<a id="line-2110" name="line-2110"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Not a launchable item&quot;</span><span class="p">));</span>
+<a id="line-2111" name="line-2111"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-2112" name="line-2112"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2113" name="line-2113"></a>
+<a id="line-2114" name="line-2114"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">exec</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span>
+<a id="line-2115" name="line-2115"></a><span class="w"> </span><span class="n">exec</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2116" name="line-2116"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span>
+<a id="line-2117" name="line-2117"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ERROR</span><span class="p">,</span>
+<a id="line-2118" name="line-2118"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ERROR_NO_EXEC_STRING</span><span class="p">,</span>
+<a id="line-2119" name="line-2119"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;No command (Exec) to launch&quot;</span><span class="p">));</span>
+<a id="line-2120" name="line-2120"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-2121" name="line-2121"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2122" name="line-2122"></a>
+<a id="line-2123" name="line-2123"></a><span class="w"> </span><span class="cm">/* make a new copy and get rid of spaces */</span>
+<a id="line-2124" name="line-2124"></a><span class="w"> </span><span class="n">the_exec</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_alloca</span><span class="w"> </span><span class="p">(</span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">exec</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-2125" name="line-2125"></a><span class="w"> </span><span class="n">g_strlcpy</span><span class="w"> </span><span class="p">(</span><span class="n">the_exec</span><span class="p">,</span><span class="w"> </span><span class="n">exec</span><span class="p">,</span><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">exec</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-2126" name="line-2126"></a>
+<a id="line-2127" name="line-2127"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="o">!</span><span class="w"> </span><span class="n">strip_the_amp</span><span class="w"> </span><span class="p">(</span><span class="n">the_exec</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2128" name="line-2128"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span>
+<a id="line-2129" name="line-2129"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ERROR</span><span class="p">,</span>
+<a id="line-2130" name="line-2130"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ERROR_BAD_EXEC_STRING</span><span class="p">,</span>
+<a id="line-2131" name="line-2131"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Bad command (Exec) to launch&quot;</span><span class="p">));</span>
+<a id="line-2132" name="line-2132"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-2133" name="line-2133"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2134" name="line-2134"></a>
+<a id="line-2135" name="line-2135"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ditem_execute</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">the_exec</span><span class="p">,</span><span class="w"> </span><span class="n">file_list</span><span class="p">,</span><span class="w"> </span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">workspace</span><span class="p">,</span><span class="w"> </span><span class="n">envp</span><span class="p">,</span>
+<a id="line-2136" name="line-2136"></a><span class="w"> </span><span class="p">(</span><span class="n">flags</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_LAUNCH_ONLY_ONE</span><span class="p">),</span>
+<a id="line-2137" name="line-2137"></a><span class="w"> </span><span class="p">(</span><span class="n">flags</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_LAUNCH_USE_CURRENT_DIR</span><span class="p">),</span>
+<a id="line-2138" name="line-2138"></a><span class="w"> </span><span class="p">(</span><span class="n">flags</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_LAUNCH_APPEND_URIS</span><span class="p">),</span>
+<a id="line-2139" name="line-2139"></a><span class="w"> </span><span class="p">(</span><span class="n">flags</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_LAUNCH_APPEND_PATHS</span><span class="p">),</span>
+<a id="line-2140" name="line-2140"></a><span class="w"> </span><span class="p">(</span><span class="n">flags</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_LAUNCH_DO_NOT_REAP_CHILD</span><span class="p">),</span>
+<a id="line-2141" name="line-2141"></a><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-2142" name="line-2142"></a>
+<a id="line-2143" name="line-2143"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-2144" name="line-2144"></a><span class="p">}</span>
+<a id="line-2145" name="line-2145"></a>
+<a id="line-2146" name="line-2146"></a><span class="cm">/**</span>
+<a id="line-2147" name="line-2147"></a><span class="cm"> * mate_desktop_item_launch:</span>
+<a id="line-2148" name="line-2148"></a><span class="cm"> * @item: A desktop item</span>
+<a id="line-2149" name="line-2149"></a><span class="cm"> * @file_list: Files/URIs to launch this item with, can be %NULL</span>
+<a id="line-2150" name="line-2150"></a><span class="cm"> * @flags: FIXME</span>
+<a id="line-2151" name="line-2151"></a><span class="cm"> * @error: FIXME</span>
+<a id="line-2152" name="line-2152"></a><span class="cm"> *</span>
+<a id="line-2153" name="line-2153"></a><span class="cm"> * This function runs the program listed in the specified &#39;item&#39;,</span>
+<a id="line-2154" name="line-2154"></a><span class="cm"> * optionally appending additional arguments to its command line. It uses</span>
+<a id="line-2155" name="line-2155"></a><span class="cm"> * #g_shell_parse_argv to parse the the exec string into a vector which is</span>
+<a id="line-2156" name="line-2156"></a><span class="cm"> * then passed to #g_spawn_async for execution. This can return all</span>
+<a id="line-2157" name="line-2157"></a><span class="cm"> * the errors from MateURL, #g_shell_parse_argv and #g_spawn_async,</span>
+<a id="line-2158" name="line-2158"></a><span class="cm"> * in addition to it&#39;s own. The files are</span>
+<a id="line-2159" name="line-2159"></a><span class="cm"> * only added if the entry defines one of the standard % strings in it&#39;s</span>
+<a id="line-2160" name="line-2160"></a><span class="cm"> * Exec field.</span>
+<a id="line-2161" name="line-2161"></a><span class="cm"> *</span>
+<a id="line-2162" name="line-2162"></a><span class="cm"> * Returns: The the pid of the process spawned. If more then one</span>
+<a id="line-2163" name="line-2163"></a><span class="cm"> * process was spawned the last pid is returned. On error -1</span>
+<a id="line-2164" name="line-2164"></a><span class="cm"> * is returned and @error is set.</span>
+<a id="line-2165" name="line-2165"></a><span class="cm"> */</span>
+<a id="line-2166" name="line-2166"></a><span class="kt">int</span>
+<a id="line-2167" name="line-2167"></a><span class="nf">mate_desktop_item_launch</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-2168" name="line-2168"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">file_list</span><span class="p">,</span>
+<a id="line-2169" name="line-2169"></a><span class="w"> </span><span class="n">MateDesktopItemLaunchFlags</span><span class="w"> </span><span class="n">flags</span><span class="p">,</span>
+<a id="line-2170" name="line-2170"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-2171" name="line-2171"></a><span class="p">{</span>
+<a id="line-2172" name="line-2172"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mate_desktop_item_launch_on_screen_with_env</span><span class="w"> </span><span class="p">(</span>
+<a id="line-2173" name="line-2173"></a><span class="w"> </span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">file_list</span><span class="p">,</span><span class="w"> </span><span class="n">flags</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-2174" name="line-2174"></a><span class="p">}</span>
+<a id="line-2175" name="line-2175"></a>
+<a id="line-2176" name="line-2176"></a><span class="cm">/**</span>
+<a id="line-2177" name="line-2177"></a><span class="cm"> * mate_desktop_item_launch_with_env:</span>
+<a id="line-2178" name="line-2178"></a><span class="cm"> * @item: A desktop item</span>
+<a id="line-2179" name="line-2179"></a><span class="cm"> * @file_list: Files/URIs to launch this item with, can be %NULL</span>
+<a id="line-2180" name="line-2180"></a><span class="cm"> * @flags: FIXME</span>
+<a id="line-2181" name="line-2181"></a><span class="cm"> * @envp: child&#39;s environment, or %NULL to inherit parent&#39;s</span>
+<a id="line-2182" name="line-2182"></a><span class="cm"> * @error: FIXME</span>
+<a id="line-2183" name="line-2183"></a><span class="cm"> *</span>
+<a id="line-2184" name="line-2184"></a><span class="cm"> * See mate_desktop_item_launch for a full description. This function</span>
+<a id="line-2185" name="line-2185"></a><span class="cm"> * additionally passes an environment vector for the child process</span>
+<a id="line-2186" name="line-2186"></a><span class="cm"> * which is to be launched.</span>
+<a id="line-2187" name="line-2187"></a><span class="cm"> *</span>
+<a id="line-2188" name="line-2188"></a><span class="cm"> * Returns: The the pid of the process spawned. If more then one</span>
+<a id="line-2189" name="line-2189"></a><span class="cm"> * process was spawned the last pid is returned. On error -1</span>
+<a id="line-2190" name="line-2190"></a><span class="cm"> * is returned and @error is set.</span>
+<a id="line-2191" name="line-2191"></a><span class="cm"> */</span>
+<a id="line-2192" name="line-2192"></a><span class="kt">int</span>
+<a id="line-2193" name="line-2193"></a><span class="nf">mate_desktop_item_launch_with_env</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-2194" name="line-2194"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">file_list</span><span class="p">,</span>
+<a id="line-2195" name="line-2195"></a><span class="w"> </span><span class="n">MateDesktopItemLaunchFlags</span><span class="w"> </span><span class="n">flags</span><span class="p">,</span>
+<a id="line-2196" name="line-2196"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">envp</span><span class="p">,</span>
+<a id="line-2197" name="line-2197"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-2198" name="line-2198"></a><span class="p">{</span>
+<a id="line-2199" name="line-2199"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mate_desktop_item_launch_on_screen_with_env</span><span class="w"> </span><span class="p">(</span>
+<a id="line-2200" name="line-2200"></a><span class="w"> </span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">file_list</span><span class="p">,</span><span class="w"> </span><span class="n">flags</span><span class="p">,</span>
+<a id="line-2201" name="line-2201"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="n">envp</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-2202" name="line-2202"></a><span class="p">}</span>
+<a id="line-2203" name="line-2203"></a>
+<a id="line-2204" name="line-2204"></a><span class="cm">/**</span>
+<a id="line-2205" name="line-2205"></a><span class="cm"> * mate_desktop_item_launch_on_screen:</span>
+<a id="line-2206" name="line-2206"></a><span class="cm"> * @item: A desktop item</span>
+<a id="line-2207" name="line-2207"></a><span class="cm"> * @file_list: Files/URIs to launch this item with, can be %NULL</span>
+<a id="line-2208" name="line-2208"></a><span class="cm"> * @flags: FIXME</span>
+<a id="line-2209" name="line-2209"></a><span class="cm"> * @screen: the %GdkScreen on which the application should be launched</span>
+<a id="line-2210" name="line-2210"></a><span class="cm"> * @workspace: the workspace on which the app should be launched (-1 for current)</span>
+<a id="line-2211" name="line-2211"></a><span class="cm"> * @error: FIXME</span>
+<a id="line-2212" name="line-2212"></a><span class="cm"> *</span>
+<a id="line-2213" name="line-2213"></a><span class="cm"> * See mate_desktop_item_launch for a full description. This function</span>
+<a id="line-2214" name="line-2214"></a><span class="cm"> * additionally attempts to launch the application on a given screen</span>
+<a id="line-2215" name="line-2215"></a><span class="cm"> * and workspace.</span>
+<a id="line-2216" name="line-2216"></a><span class="cm"> *</span>
+<a id="line-2217" name="line-2217"></a><span class="cm"> * Returns: The the pid of the process spawned. If more then one</span>
+<a id="line-2218" name="line-2218"></a><span class="cm"> * process was spawned the last pid is returned. On error -1</span>
+<a id="line-2219" name="line-2219"></a><span class="cm"> * is returned and @error is set.</span>
+<a id="line-2220" name="line-2220"></a><span class="cm"> */</span>
+<a id="line-2221" name="line-2221"></a><span class="kt">int</span>
+<a id="line-2222" name="line-2222"></a><span class="nf">mate_desktop_item_launch_on_screen</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-2223" name="line-2223"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">file_list</span><span class="p">,</span>
+<a id="line-2224" name="line-2224"></a><span class="w"> </span><span class="n">MateDesktopItemLaunchFlags</span><span class="w"> </span><span class="n">flags</span><span class="p">,</span>
+<a id="line-2225" name="line-2225"></a><span class="w"> </span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-2226" name="line-2226"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">workspace</span><span class="p">,</span>
+<a id="line-2227" name="line-2227"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-2228" name="line-2228"></a><span class="p">{</span>
+<a id="line-2229" name="line-2229"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mate_desktop_item_launch_on_screen_with_env</span><span class="w"> </span><span class="p">(</span>
+<a id="line-2230" name="line-2230"></a><span class="w"> </span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">file_list</span><span class="p">,</span><span class="w"> </span><span class="n">flags</span><span class="p">,</span>
+<a id="line-2231" name="line-2231"></a><span class="w"> </span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">workspace</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-2232" name="line-2232"></a><span class="p">}</span>
+<a id="line-2233" name="line-2233"></a>
+<a id="line-2234" name="line-2234"></a><span class="cm">/**</span>
+<a id="line-2235" name="line-2235"></a><span class="cm"> * mate_desktop_item_drop_uri_list:</span>
+<a id="line-2236" name="line-2236"></a><span class="cm"> * @item: A desktop item</span>
+<a id="line-2237" name="line-2237"></a><span class="cm"> * @uri_list: text as gotten from a text/uri-list</span>
+<a id="line-2238" name="line-2238"></a><span class="cm"> * @flags: FIXME</span>
+<a id="line-2239" name="line-2239"></a><span class="cm"> * @error: FIXME</span>
+<a id="line-2240" name="line-2240"></a><span class="cm"> *</span>
+<a id="line-2241" name="line-2241"></a><span class="cm"> * A list of files or urls dropped onto an icon, the proper (Url or File)</span>
+<a id="line-2242" name="line-2242"></a><span class="cm"> * exec is run you can pass directly string that you got as the</span>
+<a id="line-2243" name="line-2243"></a><span class="cm"> * text/uri-list. This just parses the list and calls</span>
+<a id="line-2244" name="line-2244"></a><span class="cm"> *</span>
+<a id="line-2245" name="line-2245"></a><span class="cm"> * Returns: The value returned by #mate_execute_async() upon execution of</span>
+<a id="line-2246" name="line-2246"></a><span class="cm"> * the specified item or -1 on error. If multiple instances are run, the</span>
+<a id="line-2247" name="line-2247"></a><span class="cm"> * return of the last one is returned.</span>
+<a id="line-2248" name="line-2248"></a><span class="cm"> */</span>
+<a id="line-2249" name="line-2249"></a><span class="kt">int</span>
+<a id="line-2250" name="line-2250"></a><span class="nf">mate_desktop_item_drop_uri_list</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-2251" name="line-2251"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri_list</span><span class="p">,</span>
+<a id="line-2252" name="line-2252"></a><span class="w"> </span><span class="n">MateDesktopItemLaunchFlags</span><span class="w"> </span><span class="n">flags</span><span class="p">,</span>
+<a id="line-2253" name="line-2253"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-2254" name="line-2254"></a><span class="p">{</span>
+<a id="line-2255" name="line-2255"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mate_desktop_item_drop_uri_list_with_env</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">uri_list</span><span class="p">,</span>
+<a id="line-2256" name="line-2256"></a><span class="w"> </span><span class="n">flags</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-2257" name="line-2257"></a><span class="p">}</span>
+<a id="line-2258" name="line-2258"></a>
+<a id="line-2259" name="line-2259"></a><span class="cm">/**</span>
+<a id="line-2260" name="line-2260"></a><span class="cm">* mate_desktop_item_drop_uri_list_with_env:</span>
+<a id="line-2261" name="line-2261"></a><span class="cm">* @item: A desktop item</span>
+<a id="line-2262" name="line-2262"></a><span class="cm">* @uri_list: text as gotten from a text/uri-list</span>
+<a id="line-2263" name="line-2263"></a><span class="cm">* @flags: FIXME</span>
+<a id="line-2264" name="line-2264"></a><span class="cm">* @envp: child&#39;s environment</span>
+<a id="line-2265" name="line-2265"></a><span class="cm">* @error: FIXME</span>
+<a id="line-2266" name="line-2266"></a><span class="cm">*</span>
+<a id="line-2267" name="line-2267"></a><span class="cm">* See mate_desktop_item_drop_uri_list for a full description. This function</span>
+<a id="line-2268" name="line-2268"></a><span class="cm">* additionally passes an environment vector for the child process</span>
+<a id="line-2269" name="line-2269"></a><span class="cm">* which is to be launched.</span>
+<a id="line-2270" name="line-2270"></a><span class="cm">*</span>
+<a id="line-2271" name="line-2271"></a><span class="cm">* Returns: The value returned by #mate_execute_async() upon execution of</span>
+<a id="line-2272" name="line-2272"></a><span class="cm">* the specified item or -1 on error. If multiple instances are run, the</span>
+<a id="line-2273" name="line-2273"></a><span class="cm">* return of the last one is returned.</span>
+<a id="line-2274" name="line-2274"></a><span class="cm">*/</span>
+<a id="line-2275" name="line-2275"></a><span class="kt">int</span>
+<a id="line-2276" name="line-2276"></a><span class="nf">mate_desktop_item_drop_uri_list_with_env</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-2277" name="line-2277"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri_list</span><span class="p">,</span>
+<a id="line-2278" name="line-2278"></a><span class="w"> </span><span class="n">MateDesktopItemLaunchFlags</span><span class="w"> </span><span class="n">flags</span><span class="p">,</span>
+<a id="line-2279" name="line-2279"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">envp</span><span class="p">,</span>
+<a id="line-2280" name="line-2280"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-2281" name="line-2281"></a><span class="p">{</span>
+<a id="line-2282" name="line-2282"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-2283" name="line-2283"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">;</span>
+<a id="line-2284" name="line-2284"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">uris</span><span class="p">;</span>
+<a id="line-2285" name="line-2285"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2286" name="line-2286"></a>
+<a id="line-2287" name="line-2287"></a><span class="w"> </span><span class="n">uris</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_uri_list_extract_uris</span><span class="w"> </span><span class="p">(</span><span class="n">uri_list</span><span class="p">);</span>
+<a id="line-2288" name="line-2288"></a>
+<a id="line-2289" name="line-2289"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">uris</span><span class="p">[</span><span class="mi">0</span><span class="p">];</span><span class="w"> </span><span class="n">uri</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">uri</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2290" name="line-2290"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="n">uri</span><span class="p">);</span>
+<a id="line-2291" name="line-2291"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2292" name="line-2292"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_reverse</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">);</span>
+<a id="line-2293" name="line-2293"></a>
+<a id="line-2294" name="line-2294"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_launch_with_env</span><span class="w"> </span><span class="p">(</span>
+<a id="line-2295" name="line-2295"></a><span class="w"> </span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="n">flags</span><span class="p">,</span><span class="w"> </span><span class="n">envp</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-2296" name="line-2296"></a>
+<a id="line-2297" name="line-2297"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">uris</span><span class="p">);</span>
+<a id="line-2298" name="line-2298"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">);</span>
+<a id="line-2299" name="line-2299"></a>
+<a id="line-2300" name="line-2300"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-2301" name="line-2301"></a><span class="p">}</span>
+<a id="line-2302" name="line-2302"></a>
+<a id="line-2303" name="line-2303"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-2304" name="line-2304"></a><span class="nf">exec_exists</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">exec</span><span class="p">)</span>
+<a id="line-2305" name="line-2305"></a><span class="p">{</span>
+<a id="line-2306" name="line-2306"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_path_is_absolute</span><span class="w"> </span><span class="p">(</span><span class="n">exec</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2307" name="line-2307"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">access</span><span class="w"> </span><span class="p">(</span><span class="n">exec</span><span class="p">,</span><span class="w"> </span><span class="n">X_OK</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-2308" name="line-2308"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-2309" name="line-2309"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-2310" name="line-2310"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-2311" name="line-2311"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2312" name="line-2312"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">tryme</span><span class="p">;</span>
+<a id="line-2313" name="line-2313"></a>
+<a id="line-2314" name="line-2314"></a><span class="w"> </span><span class="n">tryme</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_find_program_in_path</span><span class="w"> </span><span class="p">(</span><span class="n">exec</span><span class="p">);</span>
+<a id="line-2315" name="line-2315"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">tryme</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2316" name="line-2316"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">tryme</span><span class="p">);</span>
+<a id="line-2317" name="line-2317"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-2318" name="line-2318"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2319" name="line-2319"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-2320" name="line-2320"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2321" name="line-2321"></a><span class="p">}</span>
+<a id="line-2322" name="line-2322"></a>
+<a id="line-2323" name="line-2323"></a><span class="cm">/**</span>
+<a id="line-2324" name="line-2324"></a><span class="cm"> * mate_desktop_item_exists:</span>
+<a id="line-2325" name="line-2325"></a><span class="cm"> * @item: A desktop item</span>
+<a id="line-2326" name="line-2326"></a><span class="cm"> *</span>
+<a id="line-2327" name="line-2327"></a><span class="cm"> * Attempt to figure out if the program that can be executed by this item</span>
+<a id="line-2328" name="line-2328"></a><span class="cm"> * actually exists. First it tries the TryExec attribute to see if that</span>
+<a id="line-2329" name="line-2329"></a><span class="cm"> * contains a program that is in the path. Then if there is no such</span>
+<a id="line-2330" name="line-2330"></a><span class="cm"> * attribute, it tries the first word of the Exec attribute.</span>
+<a id="line-2331" name="line-2331"></a><span class="cm"> *</span>
+<a id="line-2332" name="line-2332"></a><span class="cm"> * Returns: A boolean, %TRUE if it exists, %FALSE otherwise.</span>
+<a id="line-2333" name="line-2333"></a><span class="cm"> */</span>
+<a id="line-2334" name="line-2334"></a><span class="n">gboolean</span>
+<a id="line-2335" name="line-2335"></a><span class="nf">mate_desktop_item_exists</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">)</span>
+<a id="line-2336" name="line-2336"></a><span class="p">{</span>
+<a id="line-2337" name="line-2337"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">try_exec</span><span class="p">;</span>
+<a id="line-2338" name="line-2338"></a><span class="hll"><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">exec</span><span class="p">;</span><div class="verbose expandable"><span class="error2">&lt;--- The scope of the variable 'exec' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable &apos;exec&apos; can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for &apos;i&apos; can be reduced:
+void f(int x)
+{
+ int i = 0;
+ if (x) {
+ // it&apos;s safe to move &apos;int i = 0;&apos; here
+ for (int n = 0; n &lt; 10; ++n) {
+ // it is possible but not safe to move &apos;int i = 0;&apos; here
+ do_something(&amp;i);
+ }
+ }
+}
+When you see this message it is always safe to reduce the variable scope 1 level.</div></div>
+</span><a id="line-2339" name="line-2339"></a>
+<a id="line-2340" name="line-2340"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-2341" name="line-2341"></a>
+<a id="line-2342" name="line-2342"></a><span class="w"> </span><span class="n">try_exec</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">lookup</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TRY_EXEC</span><span class="p">);</span>
+<a id="line-2343" name="line-2343"></a>
+<a id="line-2344" name="line-2344"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">try_exec</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-2345" name="line-2345"></a><span class="w"> </span><span class="o">!</span><span class="w"> </span><span class="n">exec_exists</span><span class="w"> </span><span class="p">(</span><span class="n">try_exec</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2346" name="line-2346"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-2347" name="line-2347"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2348" name="line-2348"></a>
+<a id="line-2349" name="line-2349"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE_APPLICATION</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2350" name="line-2350"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">;</span>
+<a id="line-2351" name="line-2351"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">;</span>
+<a id="line-2352" name="line-2352"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">exe</span><span class="p">;</span>
+<a id="line-2353" name="line-2353"></a>
+<a id="line-2354" name="line-2354"></a><span class="w"> </span><span class="n">exec</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">lookup</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_EXEC</span><span class="p">);</span>
+<a id="line-2355" name="line-2355"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">exec</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-2356" name="line-2356"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-2357" name="line-2357"></a>
+<a id="line-2358" name="line-2358"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="o">!</span><span class="w"> </span><span class="n">g_shell_parse_argv</span><span class="w"> </span><span class="p">(</span><span class="n">exec</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">argv</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span>
+<a id="line-2359" name="line-2359"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-2360" name="line-2360"></a>
+<a id="line-2361" name="line-2361"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">argc</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2362" name="line-2362"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">argv</span><span class="p">);</span>
+<a id="line-2363" name="line-2363"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-2364" name="line-2364"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2365" name="line-2365"></a>
+<a id="line-2366" name="line-2366"></a><span class="w"> </span><span class="n">exe</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">argv</span><span class="p">[</span><span class="mi">0</span><span class="p">];</span>
+<a id="line-2367" name="line-2367"></a>
+<a id="line-2368" name="line-2368"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="o">!</span><span class="w"> </span><span class="n">exec_exists</span><span class="w"> </span><span class="p">(</span><span class="n">exe</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2369" name="line-2369"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">argv</span><span class="p">);</span>
+<a id="line-2370" name="line-2370"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-2371" name="line-2371"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2372" name="line-2372"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">argv</span><span class="p">);</span>
+<a id="line-2373" name="line-2373"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2374" name="line-2374"></a>
+<a id="line-2375" name="line-2375"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-2376" name="line-2376"></a><span class="p">}</span>
+<a id="line-2377" name="line-2377"></a>
+<a id="line-2378" name="line-2378"></a><span class="cm">/**</span>
+<a id="line-2379" name="line-2379"></a><span class="cm"> * mate_desktop_item_get_entry_type:</span>
+<a id="line-2380" name="line-2380"></a><span class="cm"> * @item: A desktop item</span>
+<a id="line-2381" name="line-2381"></a><span class="cm"> *</span>
+<a id="line-2382" name="line-2382"></a><span class="cm"> * Gets the type attribute (the &#39;Type&#39; field) of the item. This should</span>
+<a id="line-2383" name="line-2383"></a><span class="cm"> * usually be &#39;Application&#39; for an application, but it can be &#39;Directory&#39;</span>
+<a id="line-2384" name="line-2384"></a><span class="cm"> * for a directory description. There are other types available as well.</span>
+<a id="line-2385" name="line-2385"></a><span class="cm"> * The type usually indicates how the desktop item should be handeled and</span>
+<a id="line-2386" name="line-2386"></a><span class="cm"> * how the &#39;Exec&#39; field should be handeled.</span>
+<a id="line-2387" name="line-2387"></a><span class="cm"> *</span>
+<a id="line-2388" name="line-2388"></a><span class="cm"> * Returns: The type of the specified &#39;item&#39;. The returned</span>
+<a id="line-2389" name="line-2389"></a><span class="cm"> * memory remains owned by the MateDesktopItem and should not be freed.</span>
+<a id="line-2390" name="line-2390"></a><span class="cm"> */</span>
+<a id="line-2391" name="line-2391"></a><span class="n">MateDesktopItemType</span>
+<a id="line-2392" name="line-2392"></a><span class="nf">mate_desktop_item_get_entry_type</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">)</span>
+<a id="line-2393" name="line-2393"></a><span class="p">{</span>
+<a id="line-2394" name="line-2394"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-2395" name="line-2395"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-2396" name="line-2396"></a>
+<a id="line-2397" name="line-2397"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">type</span><span class="p">;</span>
+<a id="line-2398" name="line-2398"></a><span class="p">}</span>
+<a id="line-2399" name="line-2399"></a>
+<a id="line-2400" name="line-2400"></a><span class="kt">void</span>
+<a id="line-2401" name="line-2401"></a><span class="nf">mate_desktop_item_set_entry_type</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-2402" name="line-2402"></a><span class="w"> </span><span class="n">MateDesktopItemType</span><span class="w"> </span><span class="n">type</span><span class="p">)</span>
+<a id="line-2403" name="line-2403"></a><span class="p">{</span>
+<a id="line-2404" name="line-2404"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2405" name="line-2405"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-2406" name="line-2406"></a>
+<a id="line-2407" name="line-2407"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">type</span><span class="p">;</span>
+<a id="line-2408" name="line-2408"></a>
+<a id="line-2409" name="line-2409"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2410" name="line-2410"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MATE_DESKTOP_ITEM_TYPE_NULL</span><span class="p">:</span>
+<a id="line-2411" name="line-2411"></a><span class="w"> </span><span class="n">set</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2412" name="line-2412"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-2413" name="line-2413"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MATE_DESKTOP_ITEM_TYPE_APPLICATION</span><span class="p">:</span>
+<a id="line-2414" name="line-2414"></a><span class="w"> </span><span class="n">set</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Application&quot;</span><span class="p">);</span>
+<a id="line-2415" name="line-2415"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-2416" name="line-2416"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MATE_DESKTOP_ITEM_TYPE_LINK</span><span class="p">:</span>
+<a id="line-2417" name="line-2417"></a><span class="w"> </span><span class="n">set</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Link&quot;</span><span class="p">);</span>
+<a id="line-2418" name="line-2418"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-2419" name="line-2419"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MATE_DESKTOP_ITEM_TYPE_FSDEVICE</span><span class="p">:</span>
+<a id="line-2420" name="line-2420"></a><span class="w"> </span><span class="n">set</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;FSDevice&quot;</span><span class="p">);</span>
+<a id="line-2421" name="line-2421"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-2422" name="line-2422"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MATE_DESKTOP_ITEM_TYPE_MIME_TYPE</span><span class="p">:</span>
+<a id="line-2423" name="line-2423"></a><span class="w"> </span><span class="n">set</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;MimeType&quot;</span><span class="p">);</span>
+<a id="line-2424" name="line-2424"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-2425" name="line-2425"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MATE_DESKTOP_ITEM_TYPE_DIRECTORY</span><span class="p">:</span>
+<a id="line-2426" name="line-2426"></a><span class="w"> </span><span class="n">set</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Directory&quot;</span><span class="p">);</span>
+<a id="line-2427" name="line-2427"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-2428" name="line-2428"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MATE_DESKTOP_ITEM_TYPE_SERVICE</span><span class="p">:</span>
+<a id="line-2429" name="line-2429"></a><span class="w"> </span><span class="n">set</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Service&quot;</span><span class="p">);</span>
+<a id="line-2430" name="line-2430"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-2431" name="line-2431"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MATE_DESKTOP_ITEM_TYPE_SERVICE_TYPE</span><span class="p">:</span>
+<a id="line-2432" name="line-2432"></a><span class="w"> </span><span class="n">set</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ServiceType&quot;</span><span class="p">);</span>
+<a id="line-2433" name="line-2433"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-2434" name="line-2434"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-2435" name="line-2435"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-2436" name="line-2436"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2437" name="line-2437"></a><span class="p">}</span>
+<a id="line-2438" name="line-2438"></a>
+<a id="line-2439" name="line-2439"></a><span class="cm">/**</span>
+<a id="line-2440" name="line-2440"></a><span class="cm"> * mate_desktop_item_get_file_status:</span>
+<a id="line-2441" name="line-2441"></a><span class="cm"> * @item: A desktop item</span>
+<a id="line-2442" name="line-2442"></a><span class="cm"> *</span>
+<a id="line-2443" name="line-2443"></a><span class="cm"> * This function checks the modification time of the on-disk file to</span>
+<a id="line-2444" name="line-2444"></a><span class="cm"> * see if it is more recent than the in-memory data.</span>
+<a id="line-2445" name="line-2445"></a><span class="cm"> *</span>
+<a id="line-2446" name="line-2446"></a><span class="cm"> * Returns: An enum value that specifies whether the item has changed since being loaded.</span>
+<a id="line-2447" name="line-2447"></a><span class="cm"> */</span>
+<a id="line-2448" name="line-2448"></a><span class="n">MateDesktopItemStatus</span>
+<a id="line-2449" name="line-2449"></a><span class="nf">mate_desktop_item_get_file_status</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">)</span>
+<a id="line-2450" name="line-2450"></a><span class="p">{</span>
+<a id="line-2451" name="line-2451"></a><span class="w"> </span><span class="n">MateDesktopItemStatus</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span>
+<a id="line-2452" name="line-2452"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span>
+<a id="line-2453" name="line-2453"></a><span class="w"> </span><span class="n">GFileInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">;</span>
+<a id="line-2454" name="line-2454"></a>
+<a id="line-2455" name="line-2455"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_DISAPPEARED</span><span class="p">);</span>
+<a id="line-2456" name="line-2456"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_DISAPPEARED</span><span class="p">);</span>
+<a id="line-2457" name="line-2457"></a>
+<a id="line-2458" name="line-2458"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">location</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-2459" name="line-2459"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_DISAPPEARED</span><span class="p">;</span>
+<a id="line-2460" name="line-2460"></a>
+<a id="line-2461" name="line-2461"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_new_for_uri</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">location</span><span class="p">);</span>
+<a id="line-2462" name="line-2462"></a><span class="w"> </span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_query_info</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_TIME_MODIFIED</span><span class="p">,</span>
+<a id="line-2463" name="line-2463"></a><span class="w"> </span><span class="n">G_FILE_QUERY_INFO_NONE</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2464" name="line-2464"></a>
+<a id="line-2465" name="line-2465"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_UNCHANGED</span><span class="p">;</span>
+<a id="line-2466" name="line-2466"></a>
+<a id="line-2467" name="line-2467"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_file_info_has_attribute</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_TIME_MODIFIED</span><span class="p">))</span>
+<a id="line-2468" name="line-2468"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_DISAPPEARED</span><span class="p">;</span>
+<a id="line-2469" name="line-2469"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(((</span><span class="n">guint64</span><span class="p">)</span><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">mtime</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">g_file_info_get_attribute_uint64</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_TIME_MODIFIED</span><span class="p">))</span>
+<a id="line-2470" name="line-2470"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_CHANGED</span><span class="p">;</span>
+<a id="line-2471" name="line-2471"></a>
+<a id="line-2472" name="line-2472"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">);</span>
+<a id="line-2473" name="line-2473"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-2474" name="line-2474"></a>
+<a id="line-2475" name="line-2475"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span>
+<a id="line-2476" name="line-2476"></a><span class="p">}</span>
+<a id="line-2477" name="line-2477"></a>
+<a id="line-2478" name="line-2478"></a><span class="cm">/**</span>
+<a id="line-2479" name="line-2479"></a><span class="cm"> * mate_desktop_item_find_icon:</span>
+<a id="line-2480" name="line-2480"></a><span class="cm"> * @icon_theme: a #GtkIconTheme</span>
+<a id="line-2481" name="line-2481"></a><span class="cm"> * @icon: icon name, something you&#39;d get out of the Icon key</span>
+<a id="line-2482" name="line-2482"></a><span class="cm"> * @desired_size: FIXME</span>
+<a id="line-2483" name="line-2483"></a><span class="cm"> * @flags: FIXME</span>
+<a id="line-2484" name="line-2484"></a><span class="cm"> *</span>
+<a id="line-2485" name="line-2485"></a><span class="cm"> * Description: This function goes and looks for the icon file. If the icon</span>
+<a id="line-2486" name="line-2486"></a><span class="cm"> * is not an absolute filename, this will look for it in the standard places.</span>
+<a id="line-2487" name="line-2487"></a><span class="cm"> * If it can&#39;t find the icon, it will return %NULL</span>
+<a id="line-2488" name="line-2488"></a><span class="cm"> *</span>
+<a id="line-2489" name="line-2489"></a><span class="cm"> * Returns: A newly allocated string</span>
+<a id="line-2490" name="line-2490"></a><span class="cm"> */</span>
+<a id="line-2491" name="line-2491"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-2492" name="line-2492"></a><span class="nf">mate_desktop_item_find_icon</span><span class="w"> </span><span class="p">(</span><span class="n">GtkIconTheme</span><span class="w"> </span><span class="o">*</span><span class="n">icon_theme</span><span class="p">,</span>
+<a id="line-2493" name="line-2493"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">icon</span><span class="p">,</span>
+<a id="line-2494" name="line-2494"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">desired_size</span><span class="p">,</span>
+<a id="line-2495" name="line-2495"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">flags</span><span class="p">)</span>
+<a id="line-2496" name="line-2496"></a><span class="p">{</span>
+<a id="line-2497" name="line-2497"></a><span class="w"> </span><span class="n">GtkIconInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">;</span>
+<a id="line-2498" name="line-2498"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">full</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2499" name="line-2499"></a>
+<a id="line-2500" name="line-2500"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">icon_theme</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span>
+<a id="line-2501" name="line-2501"></a><span class="w"> </span><span class="n">GTK_IS_ICON_THEME</span><span class="w"> </span><span class="p">(</span><span class="n">icon_theme</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2502" name="line-2502"></a>
+<a id="line-2503" name="line-2503"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">icon</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">icon</span><span class="p">,</span><span class="s">&quot;&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2504" name="line-2504"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2505" name="line-2505"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_path_is_absolute</span><span class="w"> </span><span class="p">(</span><span class="n">icon</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2506" name="line-2506"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_file_test</span><span class="w"> </span><span class="p">(</span><span class="n">icon</span><span class="p">,</span><span class="w"> </span><span class="n">G_FILE_TEST_EXISTS</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2507" name="line-2507"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">icon</span><span class="p">);</span>
+<a id="line-2508" name="line-2508"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2509" name="line-2509"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2510" name="line-2510"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2511" name="line-2511"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2512" name="line-2512"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">icon_no_extension</span><span class="p">;</span>
+<a id="line-2513" name="line-2513"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">;</span>
+<a id="line-2514" name="line-2514"></a>
+<a id="line-2515" name="line-2515"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">icon_theme</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-2516" name="line-2516"></a><span class="w"> </span><span class="n">icon_theme</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_icon_theme_get_default</span><span class="w"> </span><span class="p">();</span>
+<a id="line-2517" name="line-2517"></a>
+<a id="line-2518" name="line-2518"></a><span class="w"> </span><span class="n">icon_no_extension</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">icon</span><span class="p">);</span>
+<a id="line-2519" name="line-2519"></a><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strrchr</span><span class="w"> </span><span class="p">(</span><span class="n">icon_no_extension</span><span class="p">,</span><span class="w"> </span><span class="sc">&#39;.&#39;</span><span class="p">);</span>
+<a id="line-2520" name="line-2520"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">p</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-2521" name="line-2521"></a><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">p</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;.png&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span>
+<a id="line-2522" name="line-2522"></a><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">p</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;.xpm&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span>
+<a id="line-2523" name="line-2523"></a><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">p</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;.svg&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2524" name="line-2524"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-2525" name="line-2525"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2526" name="line-2526"></a>
+<a id="line-2527" name="line-2527"></a><span class="w"> </span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_icon_theme_lookup_icon</span><span class="w"> </span><span class="p">(</span><span class="n">icon_theme</span><span class="p">,</span>
+<a id="line-2528" name="line-2528"></a><span class="w"> </span><span class="n">icon_no_extension</span><span class="p">,</span>
+<a id="line-2529" name="line-2529"></a><span class="w"> </span><span class="n">desired_size</span><span class="p">,</span>
+<a id="line-2530" name="line-2530"></a><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-2531" name="line-2531"></a>
+<a id="line-2532" name="line-2532"></a><span class="w"> </span><span class="n">full</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2533" name="line-2533"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2534" name="line-2534"></a><span class="w"> </span><span class="n">full</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_icon_info_get_filename</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">));</span>
+<a id="line-2535" name="line-2535"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">);</span>
+<a id="line-2536" name="line-2536"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2537" name="line-2537"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">icon_no_extension</span><span class="p">);</span>
+<a id="line-2538" name="line-2538"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2539" name="line-2539"></a>
+<a id="line-2540" name="line-2540"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">full</span><span class="p">;</span>
+<a id="line-2541" name="line-2541"></a>
+<a id="line-2542" name="line-2542"></a><span class="p">}</span>
+<a id="line-2543" name="line-2543"></a>
+<a id="line-2544" name="line-2544"></a><span class="cm">/**</span>
+<a id="line-2545" name="line-2545"></a><span class="cm"> * mate_desktop_item_get_icon:</span>
+<a id="line-2546" name="line-2546"></a><span class="cm"> * @icon_theme: a #GtkIconTheme</span>
+<a id="line-2547" name="line-2547"></a><span class="cm"> * @item: A desktop item</span>
+<a id="line-2548" name="line-2548"></a><span class="cm"> *</span>
+<a id="line-2549" name="line-2549"></a><span class="cm"> * Description: This function goes and looks for the icon file. If the icon</span>
+<a id="line-2550" name="line-2550"></a><span class="cm"> * is not set as an absolute filename, this will look for it in the standard places.</span>
+<a id="line-2551" name="line-2551"></a><span class="cm"> * If it can&#39;t find the icon, it will return %NULL</span>
+<a id="line-2552" name="line-2552"></a><span class="cm"> *</span>
+<a id="line-2553" name="line-2553"></a><span class="cm"> * Returns: A newly allocated string</span>
+<a id="line-2554" name="line-2554"></a><span class="cm"> */</span>
+<a id="line-2555" name="line-2555"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-2556" name="line-2556"></a><span class="nf">mate_desktop_item_get_icon</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-2557" name="line-2557"></a><span class="w"> </span><span class="n">GtkIconTheme</span><span class="w"> </span><span class="o">*</span><span class="n">icon_theme</span><span class="p">)</span>
+<a id="line-2558" name="line-2558"></a><span class="p">{</span>
+<a id="line-2559" name="line-2559"></a><span class="w"> </span><span class="cm">/* maybe this function should be deprecated in favour of find icon</span>
+<a id="line-2560" name="line-2560"></a><span class="cm"> * -George */</span>
+<a id="line-2561" name="line-2561"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">icon</span><span class="p">;</span>
+<a id="line-2562" name="line-2562"></a>
+<a id="line-2563" name="line-2563"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2564" name="line-2564"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2565" name="line-2565"></a>
+<a id="line-2566" name="line-2566"></a><span class="w"> </span><span class="n">icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ICON</span><span class="p">);</span>
+<a id="line-2567" name="line-2567"></a>
+<a id="line-2568" name="line-2568"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mate_desktop_item_find_icon</span><span class="w"> </span><span class="p">(</span><span class="n">icon_theme</span><span class="p">,</span><span class="w"> </span><span class="n">icon</span><span class="p">,</span>
+<a id="line-2569" name="line-2569"></a><span class="w"> </span><span class="mi">48</span><span class="w"> </span><span class="cm">/* desired_size */</span><span class="p">,</span>
+<a id="line-2570" name="line-2570"></a><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="cm">/* flags */</span><span class="p">);</span>
+<a id="line-2571" name="line-2571"></a><span class="p">}</span>
+<a id="line-2572" name="line-2572"></a>
+<a id="line-2573" name="line-2573"></a><span class="cm">/**</span>
+<a id="line-2574" name="line-2574"></a><span class="cm"> * mate_desktop_item_get_location:</span>
+<a id="line-2575" name="line-2575"></a><span class="cm"> * @item: A desktop item</span>
+<a id="line-2576" name="line-2576"></a><span class="cm"> *</span>
+<a id="line-2577" name="line-2577"></a><span class="cm"> * Returns: The file location associated with &#39;item&#39;.</span>
+<a id="line-2578" name="line-2578"></a><span class="cm"> *</span>
+<a id="line-2579" name="line-2579"></a><span class="cm"> */</span>
+<a id="line-2580" name="line-2580"></a><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-2581" name="line-2581"></a><span class="nf">mate_desktop_item_get_location</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">)</span>
+<a id="line-2582" name="line-2582"></a><span class="p">{</span>
+<a id="line-2583" name="line-2583"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2584" name="line-2584"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2585" name="line-2585"></a>
+<a id="line-2586" name="line-2586"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">location</span><span class="p">;</span>
+<a id="line-2587" name="line-2587"></a><span class="p">}</span>
+<a id="line-2588" name="line-2588"></a>
+<a id="line-2589" name="line-2589"></a><span class="cm">/**</span>
+<a id="line-2590" name="line-2590"></a><span class="cm"> * mate_desktop_item_set_location:</span>
+<a id="line-2591" name="line-2591"></a><span class="cm"> * @item: A desktop item</span>
+<a id="line-2592" name="line-2592"></a><span class="cm"> * @location: A uri string specifying the file location of this particular item.</span>
+<a id="line-2593" name="line-2593"></a><span class="cm"> *</span>
+<a id="line-2594" name="line-2594"></a><span class="cm"> * Set&#39;s the &#39;location&#39; uri of this item.</span>
+<a id="line-2595" name="line-2595"></a><span class="cm"> */</span>
+<a id="line-2596" name="line-2596"></a><span class="kt">void</span>
+<a id="line-2597" name="line-2597"></a><span class="nf">mate_desktop_item_set_location</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">location</span><span class="p">)</span>
+<a id="line-2598" name="line-2598"></a><span class="p">{</span>
+<a id="line-2599" name="line-2599"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2600" name="line-2600"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-2601" name="line-2601"></a>
+<a id="line-2602" name="line-2602"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">location</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-2603" name="line-2603"></a><span class="w"> </span><span class="n">location</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-2604" name="line-2604"></a><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">location</span><span class="p">,</span><span class="w"> </span><span class="n">location</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-2605" name="line-2605"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-2606" name="line-2606"></a>
+<a id="line-2607" name="line-2607"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">location</span><span class="p">);</span>
+<a id="line-2608" name="line-2608"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">location</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">location</span><span class="p">);</span>
+<a id="line-2609" name="line-2609"></a>
+<a id="line-2610" name="line-2610"></a><span class="w"> </span><span class="cm">/* This is ugly, but useful internally */</span>
+<a id="line-2611" name="line-2611"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">mtime</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">DONT_UPDATE_MTIME</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2612" name="line-2612"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">mtime</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-2613" name="line-2613"></a>
+<a id="line-2614" name="line-2614"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">location</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2615" name="line-2615"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span>
+<a id="line-2616" name="line-2616"></a><span class="w"> </span><span class="n">GFileInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">;</span>
+<a id="line-2617" name="line-2617"></a>
+<a id="line-2618" name="line-2618"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_new_for_uri</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">location</span><span class="p">);</span>
+<a id="line-2619" name="line-2619"></a>
+<a id="line-2620" name="line-2620"></a><span class="w"> </span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_query_info</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span>
+<a id="line-2621" name="line-2621"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_TIME_MODIFIED</span><span class="p">,</span>
+<a id="line-2622" name="line-2622"></a><span class="w"> </span><span class="n">G_FILE_QUERY_INFO_NONE</span><span class="p">,</span>
+<a id="line-2623" name="line-2623"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2624" name="line-2624"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2625" name="line-2625"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_file_info_has_attribute</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">,</span>
+<a id="line-2626" name="line-2626"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_TIME_MODIFIED</span><span class="p">))</span>
+<a id="line-2627" name="line-2627"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">mtime</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_attribute_uint64</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_TIME_MODIFIED</span><span class="p">);</span>
+<a id="line-2628" name="line-2628"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">);</span>
+<a id="line-2629" name="line-2629"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2630" name="line-2630"></a>
+<a id="line-2631" name="line-2631"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-2632" name="line-2632"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2633" name="line-2633"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2634" name="line-2634"></a>
+<a id="line-2635" name="line-2635"></a><span class="w"> </span><span class="cm">/* Make sure that save actually saves */</span>
+<a id="line-2636" name="line-2636"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">modified</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-2637" name="line-2637"></a><span class="p">}</span>
+<a id="line-2638" name="line-2638"></a>
+<a id="line-2639" name="line-2639"></a><span class="cm">/**</span>
+<a id="line-2640" name="line-2640"></a><span class="cm"> * mate_desktop_item_set_location_file:</span>
+<a id="line-2641" name="line-2641"></a><span class="cm"> * @item: A desktop item</span>
+<a id="line-2642" name="line-2642"></a><span class="cm"> * @file: A local filename specifying the file location of this particular item.</span>
+<a id="line-2643" name="line-2643"></a><span class="cm"> *</span>
+<a id="line-2644" name="line-2644"></a><span class="cm"> * Set&#39;s the &#39;location&#39; uri of this item to the given @file.</span>
+<a id="line-2645" name="line-2645"></a><span class="cm"> */</span>
+<a id="line-2646" name="line-2646"></a><span class="kt">void</span>
+<a id="line-2647" name="line-2647"></a><span class="nf">mate_desktop_item_set_location_file</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">)</span>
+<a id="line-2648" name="line-2648"></a><span class="p">{</span>
+<a id="line-2649" name="line-2649"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2650" name="line-2650"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-2651" name="line-2651"></a>
+<a id="line-2652" name="line-2652"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2653" name="line-2653"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">gfile</span><span class="p">;</span>
+<a id="line-2654" name="line-2654"></a>
+<a id="line-2655" name="line-2655"></a><span class="w"> </span><span class="n">gfile</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_new_for_path</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-2656" name="line-2656"></a><span class="w"> </span><span class="n">mate_desktop_item_set_location_gfile</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">gfile</span><span class="p">);</span>
+<a id="line-2657" name="line-2657"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">gfile</span><span class="p">);</span>
+<a id="line-2658" name="line-2658"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2659" name="line-2659"></a><span class="w"> </span><span class="n">mate_desktop_item_set_location</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2660" name="line-2660"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2661" name="line-2661"></a><span class="p">}</span>
+<a id="line-2662" name="line-2662"></a>
+<a id="line-2663" name="line-2663"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-2664" name="line-2664"></a><span class="nf">mate_desktop_item_set_location_gfile</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">)</span>
+<a id="line-2665" name="line-2665"></a><span class="p">{</span>
+<a id="line-2666" name="line-2666"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2667" name="line-2667"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-2668" name="line-2668"></a>
+<a id="line-2669" name="line-2669"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2670" name="line-2670"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">;</span>
+<a id="line-2671" name="line-2671"></a>
+<a id="line-2672" name="line-2672"></a><span class="w"> </span><span class="n">uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_uri</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-2673" name="line-2673"></a><span class="w"> </span><span class="n">mate_desktop_item_set_location</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">uri</span><span class="p">);</span>
+<a id="line-2674" name="line-2674"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">);</span>
+<a id="line-2675" name="line-2675"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2676" name="line-2676"></a><span class="w"> </span><span class="n">mate_desktop_item_set_location</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2677" name="line-2677"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2678" name="line-2678"></a><span class="p">}</span>
+<a id="line-2679" name="line-2679"></a>
+<a id="line-2680" name="line-2680"></a><span class="cm">/*</span>
+<a id="line-2681" name="line-2681"></a><span class="cm"> * Reading/Writing different sections, NULL is the standard section</span>
+<a id="line-2682" name="line-2682"></a><span class="cm"> */</span>
+<a id="line-2683" name="line-2683"></a>
+<a id="line-2684" name="line-2684"></a><span class="n">gboolean</span>
+<a id="line-2685" name="line-2685"></a><span class="nf">mate_desktop_item_attr_exists</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-2686" name="line-2686"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">attr</span><span class="p">)</span>
+<a id="line-2687" name="line-2687"></a><span class="p">{</span>
+<a id="line-2688" name="line-2688"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-2689" name="line-2689"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-2690" name="line-2690"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">attr</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-2691" name="line-2691"></a>
+<a id="line-2692" name="line-2692"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">lookup</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">attr</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2693" name="line-2693"></a><span class="p">}</span>
+<a id="line-2694" name="line-2694"></a>
+<a id="line-2695" name="line-2695"></a><span class="cm">/*</span>
+<a id="line-2696" name="line-2696"></a><span class="cm"> * String type</span>
+<a id="line-2697" name="line-2697"></a><span class="cm"> */</span>
+<a id="line-2698" name="line-2698"></a><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-2699" name="line-2699"></a><span class="nf">mate_desktop_item_get_string</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-2700" name="line-2700"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">attr</span><span class="p">)</span>
+<a id="line-2701" name="line-2701"></a><span class="p">{</span>
+<a id="line-2702" name="line-2702"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2703" name="line-2703"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2704" name="line-2704"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">attr</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2705" name="line-2705"></a>
+<a id="line-2706" name="line-2706"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">lookup</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">attr</span><span class="p">);</span>
+<a id="line-2707" name="line-2707"></a><span class="p">}</span>
+<a id="line-2708" name="line-2708"></a>
+<a id="line-2709" name="line-2709"></a><span class="kt">void</span>
+<a id="line-2710" name="line-2710"></a><span class="nf">mate_desktop_item_set_string</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-2711" name="line-2711"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">attr</span><span class="p">,</span>
+<a id="line-2712" name="line-2712"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">)</span>
+<a id="line-2713" name="line-2713"></a><span class="p">{</span>
+<a id="line-2714" name="line-2714"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2715" name="line-2715"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-2716" name="line-2716"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">attr</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2717" name="line-2717"></a>
+<a id="line-2718" name="line-2718"></a><span class="w"> </span><span class="n">set</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">attr</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">);</span>
+<a id="line-2719" name="line-2719"></a>
+<a id="line-2720" name="line-2720"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">attr</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-2721" name="line-2721"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">type_from_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-2722" name="line-2722"></a><span class="p">}</span>
+<a id="line-2723" name="line-2723"></a>
+<a id="line-2724" name="line-2724"></a><span class="cm">/*</span>
+<a id="line-2725" name="line-2725"></a><span class="cm"> * LocaleString type</span>
+<a id="line-2726" name="line-2726"></a><span class="cm"> */</span>
+<a id="line-2727" name="line-2727"></a><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="nf">mate_desktop_item_get_localestring</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="o">*</span><span class="w"> </span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="n">attr</span><span class="p">)</span>
+<a id="line-2728" name="line-2728"></a><span class="p">{</span>
+<a id="line-2729" name="line-2729"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2730" name="line-2730"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2731" name="line-2731"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">attr</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2732" name="line-2732"></a>
+<a id="line-2733" name="line-2733"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">lookup_best_locale</span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">attr</span><span class="p">);</span>
+<a id="line-2734" name="line-2734"></a><span class="p">}</span>
+<a id="line-2735" name="line-2735"></a>
+<a id="line-2736" name="line-2736"></a><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="nf">mate_desktop_item_get_localestring_lang</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="o">*</span><span class="w"> </span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="n">attr</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="n">language</span><span class="p">)</span>
+<a id="line-2737" name="line-2737"></a><span class="p">{</span>
+<a id="line-2738" name="line-2738"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2739" name="line-2739"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2740" name="line-2740"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">attr</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2741" name="line-2741"></a>
+<a id="line-2742" name="line-2742"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">lookup_locale</span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">attr</span><span class="p">,</span><span class="w"> </span><span class="n">language</span><span class="p">);</span>
+<a id="line-2743" name="line-2743"></a><span class="p">}</span>
+<a id="line-2744" name="line-2744"></a>
+<a id="line-2745" name="line-2745"></a><span class="cm">/**</span>
+<a id="line-2746" name="line-2746"></a><span class="cm"> * mate_desktop_item_get_string_locale:</span>
+<a id="line-2747" name="line-2747"></a><span class="cm"> * @item: A desktop item</span>
+<a id="line-2748" name="line-2748"></a><span class="cm"> * @attr: An attribute name</span>
+<a id="line-2749" name="line-2749"></a><span class="cm"> *</span>
+<a id="line-2750" name="line-2750"></a><span class="cm"> * Returns the current locale that is used for the given attribute.</span>
+<a id="line-2751" name="line-2751"></a><span class="cm"> * This might not be the same for all attributes. For example, if your</span>
+<a id="line-2752" name="line-2752"></a><span class="cm"> * locale is &quot;en_US.ISO8859-1&quot; but attribute FOO only has &quot;en_US&quot; then</span>
+<a id="line-2753" name="line-2753"></a><span class="cm"> * that would be returned for attr = &quot;FOO&quot;. If attribute BAR has</span>
+<a id="line-2754" name="line-2754"></a><span class="cm"> * &quot;en_US.ISO8859-1&quot; then that would be returned for &quot;BAR&quot;.</span>
+<a id="line-2755" name="line-2755"></a><span class="cm"> *</span>
+<a id="line-2756" name="line-2756"></a><span class="cm"> * Returns: a string equal to the current locale or NULL</span>
+<a id="line-2757" name="line-2757"></a><span class="cm"> * if the attribute is invalid or there is no matching locale.</span>
+<a id="line-2758" name="line-2758"></a><span class="cm"> */</span>
+<a id="line-2759" name="line-2759"></a><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-2760" name="line-2760"></a><span class="nf">mate_desktop_item_get_attr_locale</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-2761" name="line-2761"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">attr</span><span class="p">)</span>
+<a id="line-2762" name="line-2762"></a><span class="p">{</span>
+<a id="line-2763" name="line-2763"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="o">*</span><span class="n">langs_pointer</span><span class="p">;</span>
+<a id="line-2764" name="line-2764"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-2765" name="line-2765"></a>
+<a id="line-2766" name="line-2766"></a><span class="w"> </span><span class="n">langs_pointer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_get_language_names</span><span class="w"> </span><span class="p">();</span>
+<a id="line-2767" name="line-2767"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">langs_pointer</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2768" name="line-2768"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2769" name="line-2769"></a>
+<a id="line-2770" name="line-2770"></a><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">lookup_locale</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">attr</span><span class="p">,</span><span class="w"> </span><span class="n">langs_pointer</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span>
+<a id="line-2771" name="line-2771"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">)</span>
+<a id="line-2772" name="line-2772"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">langs_pointer</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-2773" name="line-2773"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2774" name="line-2774"></a>
+<a id="line-2775" name="line-2775"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2776" name="line-2776"></a><span class="p">}</span>
+<a id="line-2777" name="line-2777"></a>
+<a id="line-2778" name="line-2778"></a><span class="n">GList</span><span class="w"> </span><span class="o">*</span>
+<a id="line-2779" name="line-2779"></a><span class="nf">mate_desktop_item_get_languages</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-2780" name="line-2780"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">attr</span><span class="p">)</span>
+<a id="line-2781" name="line-2781"></a><span class="p">{</span>
+<a id="line-2782" name="line-2782"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">li</span><span class="p">;</span>
+<a id="line-2783" name="line-2783"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2784" name="line-2784"></a>
+<a id="line-2785" name="line-2785"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2786" name="line-2786"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2787" name="line-2787"></a>
+<a id="line-2788" name="line-2788"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">languages</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2789" name="line-2789"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">language</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-2790" name="line-2790"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">attr</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span>
+<a id="line-2791" name="line-2791"></a><span class="w"> </span><span class="n">lookup_locale</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">attr</span><span class="p">,</span><span class="w"> </span><span class="n">language</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2792" name="line-2792"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="n">language</span><span class="p">);</span>
+<a id="line-2793" name="line-2793"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2794" name="line-2794"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2795" name="line-2795"></a>
+<a id="line-2796" name="line-2796"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_list_reverse</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">);</span>
+<a id="line-2797" name="line-2797"></a><span class="p">}</span>
+<a id="line-2798" name="line-2798"></a>
+<a id="line-2799" name="line-2799"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-2800" name="line-2800"></a><span class="nf">get_language</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-2801" name="line-2801"></a><span class="p">{</span>
+<a id="line-2802" name="line-2802"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="o">*</span><span class="n">langs_pointer</span><span class="p">;</span>
+<a id="line-2803" name="line-2803"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-2804" name="line-2804"></a>
+<a id="line-2805" name="line-2805"></a><span class="w"> </span><span class="n">langs_pointer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_get_language_names</span><span class="w"> </span><span class="p">();</span>
+<a id="line-2806" name="line-2806"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">langs_pointer</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2807" name="line-2807"></a><span class="w"> </span><span class="cm">/* find first without encoding */</span>
+<a id="line-2808" name="line-2808"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strchr</span><span class="w"> </span><span class="p">(</span><span class="n">langs_pointer</span><span class="p">[</span><span class="n">i</span><span class="p">],</span><span class="w"> </span><span class="sc">&#39;.&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2809" name="line-2809"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">langs_pointer</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-2810" name="line-2810"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2811" name="line-2811"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2812" name="line-2812"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2813" name="line-2813"></a><span class="p">}</span>
+<a id="line-2814" name="line-2814"></a>
+<a id="line-2815" name="line-2815"></a><span class="kt">void</span>
+<a id="line-2816" name="line-2816"></a><span class="nf">mate_desktop_item_set_localestring</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-2817" name="line-2817"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">attr</span><span class="p">,</span>
+<a id="line-2818" name="line-2818"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">)</span>
+<a id="line-2819" name="line-2819"></a><span class="p">{</span>
+<a id="line-2820" name="line-2820"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2821" name="line-2821"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-2822" name="line-2822"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">attr</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2823" name="line-2823"></a>
+<a id="line-2824" name="line-2824"></a><span class="w"> </span><span class="n">set_locale</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">attr</span><span class="p">,</span><span class="w"> </span><span class="n">get_language</span><span class="w"> </span><span class="p">(),</span><span class="w"> </span><span class="n">value</span><span class="p">);</span>
+<a id="line-2825" name="line-2825"></a><span class="p">}</span>
+<a id="line-2826" name="line-2826"></a>
+<a id="line-2827" name="line-2827"></a><span class="kt">void</span>
+<a id="line-2828" name="line-2828"></a><span class="nf">mate_desktop_item_set_localestring_lang</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-2829" name="line-2829"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">attr</span><span class="p">,</span>
+<a id="line-2830" name="line-2830"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">language</span><span class="p">,</span>
+<a id="line-2831" name="line-2831"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">)</span>
+<a id="line-2832" name="line-2832"></a><span class="p">{</span>
+<a id="line-2833" name="line-2833"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2834" name="line-2834"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-2835" name="line-2835"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">attr</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2836" name="line-2836"></a>
+<a id="line-2837" name="line-2837"></a><span class="w"> </span><span class="n">set_locale</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">attr</span><span class="p">,</span><span class="w"> </span><span class="n">language</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">);</span>
+<a id="line-2838" name="line-2838"></a><span class="p">}</span>
+<a id="line-2839" name="line-2839"></a>
+<a id="line-2840" name="line-2840"></a><span class="kt">void</span>
+<a id="line-2841" name="line-2841"></a><span class="nf">mate_desktop_item_clear_localestring</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-2842" name="line-2842"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">attr</span><span class="p">)</span>
+<a id="line-2843" name="line-2843"></a><span class="p">{</span>
+<a id="line-2844" name="line-2844"></a><span class="hll"><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">l</span><span class="p">;</span><span class="error2">&lt;--- Variable 'l' can be declared as pointer to const</span>
+</span><a id="line-2845" name="line-2845"></a>
+<a id="line-2846" name="line-2846"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2847" name="line-2847"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-2848" name="line-2848"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">attr</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2849" name="line-2849"></a>
+<a id="line-2850" name="line-2850"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">languages</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span>
+<a id="line-2851" name="line-2851"></a><span class="w"> </span><span class="n">set_locale</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">attr</span><span class="p">,</span><span class="w"> </span><span class="n">l</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2852" name="line-2852"></a>
+<a id="line-2853" name="line-2853"></a><span class="w"> </span><span class="n">set</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">attr</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2854" name="line-2854"></a><span class="p">}</span>
+<a id="line-2855" name="line-2855"></a>
+<a id="line-2856" name="line-2856"></a><span class="cm">/*</span>
+<a id="line-2857" name="line-2857"></a><span class="cm"> * Strings, Regexps types</span>
+<a id="line-2858" name="line-2858"></a><span class="cm"> */</span>
+<a id="line-2859" name="line-2859"></a>
+<a id="line-2860" name="line-2860"></a><span class="kt">char</span><span class="w"> </span><span class="o">**</span>
+<a id="line-2861" name="line-2861"></a><span class="nf">mate_desktop_item_get_strings</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-2862" name="line-2862"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">attr</span><span class="p">)</span>
+<a id="line-2863" name="line-2863"></a><span class="p">{</span>
+<a id="line-2864" name="line-2864"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">;</span>
+<a id="line-2865" name="line-2865"></a>
+<a id="line-2866" name="line-2866"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2867" name="line-2867"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2868" name="line-2868"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">attr</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2869" name="line-2869"></a>
+<a id="line-2870" name="line-2870"></a><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">lookup</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">attr</span><span class="p">);</span>
+<a id="line-2871" name="line-2871"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-2872" name="line-2872"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2873" name="line-2873"></a>
+<a id="line-2874" name="line-2874"></a><span class="w"> </span><span class="cm">/* FIXME: there&#39;s no way to escape semicolons apparently */</span>
+<a id="line-2875" name="line-2875"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_strsplit</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;;&quot;</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span>
+<a id="line-2876" name="line-2876"></a><span class="p">}</span>
+<a id="line-2877" name="line-2877"></a>
+<a id="line-2878" name="line-2878"></a><span class="kt">void</span>
+<a id="line-2879" name="line-2879"></a><span class="nf">mate_desktop_item_set_strings</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-2880" name="line-2880"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">attr</span><span class="p">,</span>
+<a id="line-2881" name="line-2881"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">strings</span><span class="p">)</span>
+<a id="line-2882" name="line-2882"></a><span class="p">{</span>
+<a id="line-2883" name="line-2883"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">str2</span><span class="p">;</span>
+<a id="line-2884" name="line-2884"></a>
+<a id="line-2885" name="line-2885"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2886" name="line-2886"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-2887" name="line-2887"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">attr</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2888" name="line-2888"></a>
+<a id="line-2889" name="line-2889"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strjoinv</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">strings</span><span class="p">);</span>
+<a id="line-2890" name="line-2890"></a><span class="w"> </span><span class="n">str2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;;&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2891" name="line-2891"></a><span class="w"> </span><span class="cm">/* FIXME: there&#39;s no way to escape semicolons apparently */</span>
+<a id="line-2892" name="line-2892"></a><span class="w"> </span><span class="n">set</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">attr</span><span class="p">,</span><span class="w"> </span><span class="n">str2</span><span class="p">);</span>
+<a id="line-2893" name="line-2893"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">);</span>
+<a id="line-2894" name="line-2894"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">str2</span><span class="p">);</span>
+<a id="line-2895" name="line-2895"></a><span class="p">}</span>
+<a id="line-2896" name="line-2896"></a>
+<a id="line-2897" name="line-2897"></a><span class="cm">/*</span>
+<a id="line-2898" name="line-2898"></a><span class="cm"> * Boolean type</span>
+<a id="line-2899" name="line-2899"></a><span class="cm"> */</span>
+<a id="line-2900" name="line-2900"></a><span class="n">gboolean</span>
+<a id="line-2901" name="line-2901"></a><span class="nf">mate_desktop_item_get_boolean</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-2902" name="line-2902"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">attr</span><span class="p">)</span>
+<a id="line-2903" name="line-2903"></a><span class="p">{</span>
+<a id="line-2904" name="line-2904"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">;</span>
+<a id="line-2905" name="line-2905"></a>
+<a id="line-2906" name="line-2906"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-2907" name="line-2907"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-2908" name="line-2908"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">attr</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-2909" name="line-2909"></a>
+<a id="line-2910" name="line-2910"></a><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">lookup</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">attr</span><span class="p">);</span>
+<a id="line-2911" name="line-2911"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-2912" name="line-2912"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-2913" name="line-2913"></a>
+<a id="line-2914" name="line-2914"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;T&#39;</span><span class="w"> </span><span class="o">||</span>
+<a id="line-2915" name="line-2915"></a><span class="w"> </span><span class="n">value</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;t&#39;</span><span class="w"> </span><span class="o">||</span>
+<a id="line-2916" name="line-2916"></a><span class="w"> </span><span class="n">value</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;Y&#39;</span><span class="w"> </span><span class="o">||</span>
+<a id="line-2917" name="line-2917"></a><span class="w"> </span><span class="n">value</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;y&#39;</span><span class="w"> </span><span class="o">||</span>
+<a id="line-2918" name="line-2918"></a><span class="w"> </span><span class="n">atoi</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-2919" name="line-2919"></a><span class="p">}</span>
+<a id="line-2920" name="line-2920"></a>
+<a id="line-2921" name="line-2921"></a><span class="kt">void</span>
+<a id="line-2922" name="line-2922"></a><span class="nf">mate_desktop_item_set_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-2923" name="line-2923"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">attr</span><span class="p">,</span>
+<a id="line-2924" name="line-2924"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">value</span><span class="p">)</span>
+<a id="line-2925" name="line-2925"></a><span class="p">{</span>
+<a id="line-2926" name="line-2926"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2927" name="line-2927"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-2928" name="line-2928"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">attr</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2929" name="line-2929"></a>
+<a id="line-2930" name="line-2930"></a><span class="w"> </span><span class="n">set</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">attr</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="s">&quot;true&quot;</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="s">&quot;false&quot;</span><span class="p">);</span>
+<a id="line-2931" name="line-2931"></a><span class="p">}</span>
+<a id="line-2932" name="line-2932"></a>
+<a id="line-2933" name="line-2933"></a><span class="kt">void</span>
+<a id="line-2934" name="line-2934"></a><span class="nf">mate_desktop_item_set_launch_time</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-2935" name="line-2935"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">timestamp</span><span class="p">)</span>
+<a id="line-2936" name="line-2936"></a><span class="p">{</span>
+<a id="line-2937" name="line-2937"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2938" name="line-2938"></a>
+<a id="line-2939" name="line-2939"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">launch_time</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">timestamp</span><span class="p">;</span>
+<a id="line-2940" name="line-2940"></a><span class="p">}</span>
+<a id="line-2941" name="line-2941"></a>
+<a id="line-2942" name="line-2942"></a><span class="cm">/*</span>
+<a id="line-2943" name="line-2943"></a><span class="cm"> * Clearing attributes</span>
+<a id="line-2944" name="line-2944"></a><span class="cm"> */</span>
+<a id="line-2945" name="line-2945"></a><span class="kt">void</span>
+<a id="line-2946" name="line-2946"></a><span class="nf">mate_desktop_item_clear_section</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-2947" name="line-2947"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">section</span><span class="p">)</span>
+<a id="line-2948" name="line-2948"></a><span class="p">{</span>
+<a id="line-2949" name="line-2949"></a><span class="w"> </span><span class="n">Section</span><span class="w"> </span><span class="o">*</span><span class="n">sec</span><span class="p">;</span>
+<a id="line-2950" name="line-2950"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">li</span><span class="p">;</span>
+<a id="line-2951" name="line-2951"></a>
+<a id="line-2952" name="line-2952"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2953" name="line-2953"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">refcount</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-2954" name="line-2954"></a>
+<a id="line-2955" name="line-2955"></a><span class="w"> </span><span class="n">sec</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">find_section</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">section</span><span class="p">);</span>
+<a id="line-2956" name="line-2956"></a>
+<a id="line-2957" name="line-2957"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">sec</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2958" name="line-2958"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">keys</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2959" name="line-2959"></a><span class="w"> </span><span class="n">g_hash_table_remove</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">main_hash</span><span class="p">,</span><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">);</span>
+<a id="line-2960" name="line-2960"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">li</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">);</span>
+<a id="line-2961" name="line-2961"></a><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2962" name="line-2962"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2963" name="line-2963"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">keys</span><span class="p">);</span>
+<a id="line-2964" name="line-2964"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">keys</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2965" name="line-2965"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2966" name="line-2966"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">sec</span><span class="o">-&gt;</span><span class="n">keys</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2967" name="line-2967"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-2968" name="line-2968"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">full</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;%s/%s&quot;</span><span class="p">,</span>
+<a id="line-2969" name="line-2969"></a><span class="w"> </span><span class="n">sec</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">);</span>
+<a id="line-2970" name="line-2970"></a><span class="w"> </span><span class="n">g_hash_table_remove</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">main_hash</span><span class="p">,</span><span class="w"> </span><span class="n">full</span><span class="p">);</span>
+<a id="line-2971" name="line-2971"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">full</span><span class="p">);</span>
+<a id="line-2972" name="line-2972"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">key</span><span class="p">);</span>
+<a id="line-2973" name="line-2973"></a><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2974" name="line-2974"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2975" name="line-2975"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">sec</span><span class="o">-&gt;</span><span class="n">keys</span><span class="p">);</span>
+<a id="line-2976" name="line-2976"></a><span class="w"> </span><span class="n">sec</span><span class="o">-&gt;</span><span class="n">keys</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2977" name="line-2977"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2978" name="line-2978"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">modified</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-2979" name="line-2979"></a><span class="p">}</span>
+<a id="line-2980" name="line-2980"></a>
+<a id="line-2981" name="line-2981"></a><span class="cm">/************************************************************</span>
+<a id="line-2982" name="line-2982"></a><span class="cm"> * Parser: *</span>
+<a id="line-2983" name="line-2983"></a><span class="cm"> ************************************************************/</span>
+<a id="line-2984" name="line-2984"></a>
+<a id="line-2985" name="line-2985"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">G_GNUC_CONST</span>
+<a id="line-2986" name="line-2986"></a><span class="n">standard_is_boolean</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">key</span><span class="p">)</span>
+<a id="line-2987" name="line-2987"></a><span class="p">{</span>
+<a id="line-2988" name="line-2988"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">GHashTable</span><span class="w"> </span><span class="o">*</span><span class="n">bools</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2989" name="line-2989"></a>
+<a id="line-2990" name="line-2990"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bools</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2991" name="line-2991"></a><span class="w"> </span><span class="n">bools</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_new</span><span class="w"> </span><span class="p">(</span><span class="n">g_str_hash</span><span class="p">,</span><span class="w"> </span><span class="n">g_str_equal</span><span class="p">);</span>
+<a id="line-2992" name="line-2992"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="w"> </span><span class="p">(</span><span class="n">bools</span><span class="p">,</span>
+<a id="line-2993" name="line-2993"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_NO_DISPLAY</span><span class="p">,</span>
+<a id="line-2994" name="line-2994"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_NO_DISPLAY</span><span class="p">);</span>
+<a id="line-2995" name="line-2995"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="w"> </span><span class="p">(</span><span class="n">bools</span><span class="p">,</span>
+<a id="line-2996" name="line-2996"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_HIDDEN</span><span class="p">,</span>
+<a id="line-2997" name="line-2997"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_HIDDEN</span><span class="p">);</span>
+<a id="line-2998" name="line-2998"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="w"> </span><span class="p">(</span><span class="n">bools</span><span class="p">,</span>
+<a id="line-2999" name="line-2999"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TERMINAL</span><span class="p">,</span>
+<a id="line-3000" name="line-3000"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TERMINAL</span><span class="p">);</span>
+<a id="line-3001" name="line-3001"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="w"> </span><span class="p">(</span><span class="n">bools</span><span class="p">,</span>
+<a id="line-3002" name="line-3002"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_READ_ONLY</span><span class="p">,</span>
+<a id="line-3003" name="line-3003"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_READ_ONLY</span><span class="p">);</span>
+<a id="line-3004" name="line-3004"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3005" name="line-3005"></a>
+<a id="line-3006" name="line-3006"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">bools</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3007" name="line-3007"></a><span class="p">}</span>
+<a id="line-3008" name="line-3008"></a>
+<a id="line-3009" name="line-3009"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">G_GNUC_CONST</span>
+<a id="line-3010" name="line-3010"></a><span class="n">standard_is_strings</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="p">)</span>
+<a id="line-3011" name="line-3011"></a><span class="p">{</span>
+<a id="line-3012" name="line-3012"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">GHashTable</span><span class="w"> </span><span class="o">*</span><span class="n">strings</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3013" name="line-3013"></a>
+<a id="line-3014" name="line-3014"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strings</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3015" name="line-3015"></a><span class="w"> </span><span class="n">strings</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_new</span><span class="w"> </span><span class="p">(</span><span class="n">g_str_hash</span><span class="p">,</span><span class="w"> </span><span class="n">g_str_equal</span><span class="p">);</span>
+<a id="line-3016" name="line-3016"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="w"> </span><span class="p">(</span><span class="n">strings</span><span class="p">,</span>
+<a id="line-3017" name="line-3017"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_FILE_PATTERN</span><span class="p">,</span>
+<a id="line-3018" name="line-3018"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_FILE_PATTERN</span><span class="p">);</span>
+<a id="line-3019" name="line-3019"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="w"> </span><span class="p">(</span><span class="n">strings</span><span class="p">,</span>
+<a id="line-3020" name="line-3020"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ACTIONS</span><span class="p">,</span>
+<a id="line-3021" name="line-3021"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ACTIONS</span><span class="p">);</span>
+<a id="line-3022" name="line-3022"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="w"> </span><span class="p">(</span><span class="n">strings</span><span class="p">,</span>
+<a id="line-3023" name="line-3023"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_MIME_TYPE</span><span class="p">,</span>
+<a id="line-3024" name="line-3024"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_MIME_TYPE</span><span class="p">);</span>
+<a id="line-3025" name="line-3025"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="w"> </span><span class="p">(</span><span class="n">strings</span><span class="p">,</span>
+<a id="line-3026" name="line-3026"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_PATTERNS</span><span class="p">,</span>
+<a id="line-3027" name="line-3027"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_PATTERNS</span><span class="p">);</span>
+<a id="line-3028" name="line-3028"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="w"> </span><span class="p">(</span><span class="n">strings</span><span class="p">,</span>
+<a id="line-3029" name="line-3029"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_SORT_ORDER</span><span class="p">,</span>
+<a id="line-3030" name="line-3030"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_SORT_ORDER</span><span class="p">);</span>
+<a id="line-3031" name="line-3031"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3032" name="line-3032"></a>
+<a id="line-3033" name="line-3033"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">strings</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3034" name="line-3034"></a><span class="p">}</span>
+<a id="line-3035" name="line-3035"></a>
+<a id="line-3036" name="line-3036"></a><span class="cm">/* If no need to cannonize, returns NULL */</span>
+<a id="line-3037" name="line-3037"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-3038" name="line-3038"></a><span class="n">cannonize</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">)</span>
+<a id="line-3039" name="line-3039"></a><span class="p">{</span>
+<a id="line-3040" name="line-3040"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">standard_is_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">key</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3041" name="line-3041"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;T&#39;</span><span class="w"> </span><span class="o">||</span>
+<a id="line-3042" name="line-3042"></a><span class="w"> </span><span class="n">value</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;t&#39;</span><span class="w"> </span><span class="o">||</span>
+<a id="line-3043" name="line-3043"></a><span class="w"> </span><span class="n">value</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;Y&#39;</span><span class="w"> </span><span class="o">||</span>
+<a id="line-3044" name="line-3044"></a><span class="w"> </span><span class="n">value</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;y&#39;</span><span class="w"> </span><span class="o">||</span>
+<a id="line-3045" name="line-3045"></a><span class="w"> </span><span class="n">atoi</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3046" name="line-3046"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;true&quot;</span><span class="p">);</span>
+<a id="line-3047" name="line-3047"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3048" name="line-3048"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;false&quot;</span><span class="p">);</span>
+<a id="line-3049" name="line-3049"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3050" name="line-3050"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">standard_is_strings</span><span class="w"> </span><span class="p">(</span><span class="n">key</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3051" name="line-3051"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-3052" name="line-3052"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">len</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">value</span><span class="p">[</span><span class="n">len</span><span class="mi">-1</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">&#39;;&#39;</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3053" name="line-3053"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;;&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-3054" name="line-3054"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3055" name="line-3055"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3056" name="line-3056"></a><span class="w"> </span><span class="cm">/* XXX: Perhaps we should canonize numeric values as well, but this</span>
+<a id="line-3057" name="line-3057"></a><span class="cm"> * has caused some subtle problems before so it needs to be done</span>
+<a id="line-3058" name="line-3058"></a><span class="cm"> * carefully if at all */</span>
+<a id="line-3059" name="line-3059"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3060" name="line-3060"></a><span class="p">}</span>
+<a id="line-3061" name="line-3061"></a>
+<a id="line-3062" name="line-3062"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-3063" name="line-3063"></a><span class="n">decode_string_and_dup</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">)</span>
+<a id="line-3064" name="line-3064"></a><span class="p">{</span>
+<a id="line-3065" name="line-3065"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_malloc</span><span class="w"> </span><span class="p">(</span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-3066" name="line-3066"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">q</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p</span><span class="p">;</span>
+<a id="line-3067" name="line-3067"></a>
+<a id="line-3068" name="line-3068"></a><span class="w"> </span><span class="k">do</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3069" name="line-3069"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;\\&#39;</span><span class="p">){</span>
+<a id="line-3070" name="line-3070"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="o">++</span><span class="n">s</span><span class="p">)){</span>
+<a id="line-3071" name="line-3071"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;s&#39;</span><span class="p">:</span>
+<a id="line-3072" name="line-3072"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39; &#39;</span><span class="p">;</span>
+<a id="line-3073" name="line-3073"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-3074" name="line-3074"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;t&#39;</span><span class="p">:</span>
+<a id="line-3075" name="line-3075"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\t&#39;</span><span class="p">;</span>
+<a id="line-3076" name="line-3076"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-3077" name="line-3077"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;n&#39;</span><span class="p">:</span>
+<a id="line-3078" name="line-3078"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\n&#39;</span><span class="p">;</span>
+<a id="line-3079" name="line-3079"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-3080" name="line-3080"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;\\&#39;</span><span class="p">:</span>
+<a id="line-3081" name="line-3081"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\\&#39;</span><span class="p">;</span>
+<a id="line-3082" name="line-3082"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-3083" name="line-3083"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;r&#39;</span><span class="p">:</span>
+<a id="line-3084" name="line-3084"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\r&#39;</span><span class="p">;</span>
+<a id="line-3085" name="line-3085"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-3086" name="line-3086"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-3087" name="line-3087"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\\&#39;</span><span class="p">;</span>
+<a id="line-3088" name="line-3088"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span>
+<a id="line-3089" name="line-3089"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-3090" name="line-3090"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3091" name="line-3091"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3092" name="line-3092"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span>
+<a id="line-3093" name="line-3093"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3094" name="line-3094"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">s</span><span class="o">++</span><span class="p">);</span>
+<a id="line-3095" name="line-3095"></a>
+<a id="line-3096" name="line-3096"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">q</span><span class="p">;</span>
+<a id="line-3097" name="line-3097"></a><span class="p">}</span>
+<a id="line-3098" name="line-3098"></a>
+<a id="line-3099" name="line-3099"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-3100" name="line-3100"></a><span class="n">escape_string_and_dup</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">)</span>
+<a id="line-3101" name="line-3101"></a><span class="p">{</span>
+<a id="line-3102" name="line-3102"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">return_value</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">;</span>
+<a id="line-3103" name="line-3103"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">q</span><span class="p">;</span>
+<a id="line-3104" name="line-3104"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-3105" name="line-3105"></a>
+<a id="line-3106" name="line-3106"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-3107" name="line-3107"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="s">&quot;&quot;</span><span class="p">);</span>
+<a id="line-3108" name="line-3108"></a>
+<a id="line-3109" name="line-3109"></a><span class="w"> </span><span class="n">q</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">s</span><span class="p">;</span>
+<a id="line-3110" name="line-3110"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">q</span><span class="p">){</span>
+<a id="line-3111" name="line-3111"></a><span class="w"> </span><span class="n">len</span><span class="o">++</span><span class="p">;</span>
+<a id="line-3112" name="line-3112"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strchr</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;</span><span class="se">\n\r\t\\</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">q</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-3113" name="line-3113"></a><span class="w"> </span><span class="n">len</span><span class="o">++</span><span class="p">;</span>
+<a id="line-3114" name="line-3114"></a><span class="w"> </span><span class="n">q</span><span class="o">++</span><span class="p">;</span>
+<a id="line-3115" name="line-3115"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3116" name="line-3116"></a><span class="w"> </span><span class="n">return_value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">g_malloc</span><span class="w"> </span><span class="p">(</span><span class="n">len</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-3117" name="line-3117"></a><span class="w"> </span><span class="k">do</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3118" name="line-3118"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">s</span><span class="p">){</span>
+<a id="line-3119" name="line-3119"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;\t&#39;</span><span class="p">:</span>
+<a id="line-3120" name="line-3120"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\\&#39;</span><span class="p">;</span>
+<a id="line-3121" name="line-3121"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;t&#39;</span><span class="p">;</span>
+<a id="line-3122" name="line-3122"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-3123" name="line-3123"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;\n&#39;</span><span class="p">:</span>
+<a id="line-3124" name="line-3124"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\\&#39;</span><span class="p">;</span>
+<a id="line-3125" name="line-3125"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;n&#39;</span><span class="p">;</span>
+<a id="line-3126" name="line-3126"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-3127" name="line-3127"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;\r&#39;</span><span class="p">:</span>
+<a id="line-3128" name="line-3128"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\\&#39;</span><span class="p">;</span>
+<a id="line-3129" name="line-3129"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;r&#39;</span><span class="p">;</span>
+<a id="line-3130" name="line-3130"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-3131" name="line-3131"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;\\&#39;</span><span class="p">:</span>
+<a id="line-3132" name="line-3132"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\\&#39;</span><span class="p">;</span>
+<a id="line-3133" name="line-3133"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\\&#39;</span><span class="p">;</span>
+<a id="line-3134" name="line-3134"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-3135" name="line-3135"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-3136" name="line-3136"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span>
+<a id="line-3137" name="line-3137"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3138" name="line-3138"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">s</span><span class="o">++</span><span class="p">);</span>
+<a id="line-3139" name="line-3139"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">return_value</span><span class="p">;</span>
+<a id="line-3140" name="line-3140"></a><span class="p">}</span>
+<a id="line-3141" name="line-3141"></a>
+<a id="line-3142" name="line-3142"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-3143" name="line-3143"></a><span class="n">check_locale</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">locale</span><span class="p">)</span>
+<a id="line-3144" name="line-3144"></a><span class="p">{</span>
+<a id="line-3145" name="line-3145"></a><span class="w"> </span><span class="n">GIConv</span><span class="w"> </span><span class="n">cd</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_iconv_open</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;UTF-8&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="p">);</span>
+<a id="line-3146" name="line-3146"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">GIConv</span><span class="p">)</span><span class="mi">-1</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">cd</span><span class="p">)</span>
+<a id="line-3147" name="line-3147"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-3148" name="line-3148"></a><span class="w"> </span><span class="n">g_iconv_close</span><span class="w"> </span><span class="p">(</span><span class="n">cd</span><span class="p">);</span>
+<a id="line-3149" name="line-3149"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-3150" name="line-3150"></a><span class="p">}</span>
+<a id="line-3151" name="line-3151"></a>
+<a id="line-3152" name="line-3152"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-3153" name="line-3153"></a><span class="n">insert_locales</span><span class="w"> </span><span class="p">(</span><span class="n">GHashTable</span><span class="w"> </span><span class="o">*</span><span class="n">encodings</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">enc</span><span class="p">,</span><span class="w"> </span><span class="p">...)</span>
+<a id="line-3154" name="line-3154"></a><span class="p">{</span>
+<a id="line-3155" name="line-3155"></a><span class="w"> </span><span class="kt">va_list</span><span class="w"> </span><span class="n">args</span><span class="p">;</span>
+<a id="line-3156" name="line-3156"></a><span class="hll"><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span><div class="verbose expandable"><span class="error2">&lt;--- The scope of the variable 's' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable &apos;s&apos; can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for &apos;i&apos; can be reduced:
+void f(int x)
+{
+ int i = 0;
+ if (x) {
+ // it&apos;s safe to move &apos;int i = 0;&apos; here
+ for (int n = 0; n &lt; 10; ++n) {
+ // it is possible but not safe to move &apos;int i = 0;&apos; here
+ do_something(&amp;i);
+ }
+ }
+}
+When you see this message it is always safe to reduce the variable scope 1 level.</div></div>
+</span><a id="line-3157" name="line-3157"></a>
+<a id="line-3158" name="line-3158"></a><span class="w"> </span><span class="n">va_start</span><span class="w"> </span><span class="p">(</span><span class="n">args</span><span class="p">,</span><span class="w"> </span><span class="n">enc</span><span class="p">);</span>
+<a id="line-3159" name="line-3159"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(;;)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3160" name="line-3160"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">va_arg</span><span class="w"> </span><span class="p">(</span><span class="n">args</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">);</span>
+<a id="line-3161" name="line-3161"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-3162" name="line-3162"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-3163" name="line-3163"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="w"> </span><span class="p">(</span><span class="n">encodings</span><span class="p">,</span><span class="w"> </span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="n">enc</span><span class="p">);</span>
+<a id="line-3164" name="line-3164"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3165" name="line-3165"></a><span class="w"> </span><span class="n">va_end</span><span class="w"> </span><span class="p">(</span><span class="n">args</span><span class="p">);</span>
+<a id="line-3166" name="line-3166"></a><span class="p">}</span>
+<a id="line-3167" name="line-3167"></a>
+<a id="line-3168" name="line-3168"></a><span class="cm">/* make a standard conversion table from the desktop standard spec */</span>
+<a id="line-3169" name="line-3169"></a><span class="k">static</span><span class="w"> </span><span class="n">GHashTable</span><span class="w"> </span><span class="o">*</span>
+<a id="line-3170" name="line-3170"></a><span class="n">init_encodings</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-3171" name="line-3171"></a><span class="p">{</span>
+<a id="line-3172" name="line-3172"></a><span class="w"> </span><span class="n">GHashTable</span><span class="w"> </span><span class="o">*</span><span class="n">encodings</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_new</span><span class="w"> </span><span class="p">(</span><span class="n">g_str_hash</span><span class="p">,</span><span class="w"> </span><span class="n">g_str_equal</span><span class="p">);</span>
+<a id="line-3173" name="line-3173"></a>
+<a id="line-3174" name="line-3174"></a><span class="w"> </span><span class="cm">/* &quot;C&quot; is plain ascii */</span>
+<a id="line-3175" name="line-3175"></a><span class="hll"><span class="w"> </span><span class="n">insert_locales</span><span class="w"> </span><span class="p">(</span><span class="n">encodings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ASCII&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;C&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><div class="verbose expandable"><span class="error2">&lt;--- Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. <span class="marker">[+]</span></span><div class="content">Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
+The C99 standard, in section 7.15.1.1, states that if the type used by va_arg() is not compatible with the type of the actual next argument (as promoted according to the default argument promotions), the behavior is undefined.
+The value of the NULL macro is an implementation-defined null pointer constant (7.17), which can be any integer constant expression with the value 0, or such an expression casted to (void*) (6.3.2.3). This includes values like 0, 0L, or even 0LL.
+In practice on common architectures, this will cause real crashes if sizeof(int) != sizeof(void*), and NULL is defined to 0 or any other null pointer constant that promotes to int.
+To reproduce you might be able to use this little code example on 64bit platforms. If the output includes &quot;ERROR&quot;, the sentinel had only 4 out of 8 bytes initialized to zero and was not detected as the final argument to stop argument processing via va_arg(). Changing the 0 to (void*)0 or 0L will make the &quot;ERROR&quot; output go away.
+#include &lt;stdarg.h&gt;
+#include &lt;stdio.h&gt;
+
+void f(char *s, ...) {
+ va_list ap;
+ va_start(ap,s);
+ for (;;) {
+ char *p = va_arg(ap,char*);
+ printf(&quot;%018p, %s\n&quot;, p, (long)p &amp; 255 ? p : &quot;&quot;);
+ if(!p) break;
+ }
+ va_end(ap);
+}
+
+void g() {
+ char *s2 = &quot;x&quot;;
+ char *s3 = &quot;ERROR&quot;;
+
+ // changing 0 to 0L for the 7th argument (which is intended to act as sentinel) makes the error go away on x86_64
+ f(&quot;first&quot;, s2, s2, s2, s2, s2, 0, s3, (char*)0);
+}
+
+void h() {
+ int i;
+ volatile unsigned char a[1000];
+ for (i = 0; i&lt;sizeof(a); i++)
+ a[i] = -1;
+}
+
+int main() {
+ h();
+ g();
+ return 0;
+}</div></div>
+</span><a id="line-3176" name="line-3176"></a>
+<a id="line-3177" name="line-3177"></a><span class="hll"><span class="w"> </span><span class="n">insert_locales</span><span class="w"> </span><span class="p">(</span><span class="n">encodings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ARMSCII-8&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;by&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><div class="verbose expandable"><span class="error2">&lt;--- Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. <span class="marker">[+]</span></span><div class="content">Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
+The C99 standard, in section 7.15.1.1, states that if the type used by va_arg() is not compatible with the type of the actual next argument (as promoted according to the default argument promotions), the behavior is undefined.
+The value of the NULL macro is an implementation-defined null pointer constant (7.17), which can be any integer constant expression with the value 0, or such an expression casted to (void*) (6.3.2.3). This includes values like 0, 0L, or even 0LL.
+In practice on common architectures, this will cause real crashes if sizeof(int) != sizeof(void*), and NULL is defined to 0 or any other null pointer constant that promotes to int.
+To reproduce you might be able to use this little code example on 64bit platforms. If the output includes &quot;ERROR&quot;, the sentinel had only 4 out of 8 bytes initialized to zero and was not detected as the final argument to stop argument processing via va_arg(). Changing the 0 to (void*)0 or 0L will make the &quot;ERROR&quot; output go away.
+#include &lt;stdarg.h&gt;
+#include &lt;stdio.h&gt;
+
+void f(char *s, ...) {
+ va_list ap;
+ va_start(ap,s);
+ for (;;) {
+ char *p = va_arg(ap,char*);
+ printf(&quot;%018p, %s\n&quot;, p, (long)p &amp; 255 ? p : &quot;&quot;);
+ if(!p) break;
+ }
+ va_end(ap);
+}
+
+void g() {
+ char *s2 = &quot;x&quot;;
+ char *s3 = &quot;ERROR&quot;;
+
+ // changing 0 to 0L for the 7th argument (which is intended to act as sentinel) makes the error go away on x86_64
+ f(&quot;first&quot;, s2, s2, s2, s2, s2, 0, s3, (char*)0);
+}
+
+void h() {
+ int i;
+ volatile unsigned char a[1000];
+ for (i = 0; i&lt;sizeof(a); i++)
+ a[i] = -1;
+}
+
+int main() {
+ h();
+ g();
+ return 0;
+}</div></div>
+</span><a id="line-3178" name="line-3178"></a><span class="hll"><span class="w"> </span><span class="n">insert_locales</span><span class="w"> </span><span class="p">(</span><span class="n">encodings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;BIG5&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;zh_TW&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><div class="verbose expandable"><span class="error2">&lt;--- Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. <span class="marker">[+]</span></span><div class="content">Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
+The C99 standard, in section 7.15.1.1, states that if the type used by va_arg() is not compatible with the type of the actual next argument (as promoted according to the default argument promotions), the behavior is undefined.
+The value of the NULL macro is an implementation-defined null pointer constant (7.17), which can be any integer constant expression with the value 0, or such an expression casted to (void*) (6.3.2.3). This includes values like 0, 0L, or even 0LL.
+In practice on common architectures, this will cause real crashes if sizeof(int) != sizeof(void*), and NULL is defined to 0 or any other null pointer constant that promotes to int.
+To reproduce you might be able to use this little code example on 64bit platforms. If the output includes &quot;ERROR&quot;, the sentinel had only 4 out of 8 bytes initialized to zero and was not detected as the final argument to stop argument processing via va_arg(). Changing the 0 to (void*)0 or 0L will make the &quot;ERROR&quot; output go away.
+#include &lt;stdarg.h&gt;
+#include &lt;stdio.h&gt;
+
+void f(char *s, ...) {
+ va_list ap;
+ va_start(ap,s);
+ for (;;) {
+ char *p = va_arg(ap,char*);
+ printf(&quot;%018p, %s\n&quot;, p, (long)p &amp; 255 ? p : &quot;&quot;);
+ if(!p) break;
+ }
+ va_end(ap);
+}
+
+void g() {
+ char *s2 = &quot;x&quot;;
+ char *s3 = &quot;ERROR&quot;;
+
+ // changing 0 to 0L for the 7th argument (which is intended to act as sentinel) makes the error go away on x86_64
+ f(&quot;first&quot;, s2, s2, s2, s2, s2, 0, s3, (char*)0);
+}
+
+void h() {
+ int i;
+ volatile unsigned char a[1000];
+ for (i = 0; i&lt;sizeof(a); i++)
+ a[i] = -1;
+}
+
+int main() {
+ h();
+ g();
+ return 0;
+}</div></div>
+</span><a id="line-3179" name="line-3179"></a><span class="hll"><span class="w"> </span><span class="n">insert_locales</span><span class="w"> </span><span class="p">(</span><span class="n">encodings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;CP1251&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;be&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;bg&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><div class="verbose expandable"><span class="error2">&lt;--- Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. <span class="marker">[+]</span></span><div class="content">Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
+The C99 standard, in section 7.15.1.1, states that if the type used by va_arg() is not compatible with the type of the actual next argument (as promoted according to the default argument promotions), the behavior is undefined.
+The value of the NULL macro is an implementation-defined null pointer constant (7.17), which can be any integer constant expression with the value 0, or such an expression casted to (void*) (6.3.2.3). This includes values like 0, 0L, or even 0LL.
+In practice on common architectures, this will cause real crashes if sizeof(int) != sizeof(void*), and NULL is defined to 0 or any other null pointer constant that promotes to int.
+To reproduce you might be able to use this little code example on 64bit platforms. If the output includes &quot;ERROR&quot;, the sentinel had only 4 out of 8 bytes initialized to zero and was not detected as the final argument to stop argument processing via va_arg(). Changing the 0 to (void*)0 or 0L will make the &quot;ERROR&quot; output go away.
+#include &lt;stdarg.h&gt;
+#include &lt;stdio.h&gt;
+
+void f(char *s, ...) {
+ va_list ap;
+ va_start(ap,s);
+ for (;;) {
+ char *p = va_arg(ap,char*);
+ printf(&quot;%018p, %s\n&quot;, p, (long)p &amp; 255 ? p : &quot;&quot;);
+ if(!p) break;
+ }
+ va_end(ap);
+}
+
+void g() {
+ char *s2 = &quot;x&quot;;
+ char *s3 = &quot;ERROR&quot;;
+
+ // changing 0 to 0L for the 7th argument (which is intended to act as sentinel) makes the error go away on x86_64
+ f(&quot;first&quot;, s2, s2, s2, s2, s2, 0, s3, (char*)0);
+}
+
+void h() {
+ int i;
+ volatile unsigned char a[1000];
+ for (i = 0; i&lt;sizeof(a); i++)
+ a[i] = -1;
+}
+
+int main() {
+ h();
+ g();
+ return 0;
+}</div></div>
+</span><a id="line-3180" name="line-3180"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">check_locale</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;EUC-CN&quot;</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3181" name="line-3181"></a><span class="hll"><span class="w"> </span><span class="n">insert_locales</span><span class="w"> </span><span class="p">(</span><span class="n">encodings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;EUC-CN&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;zh_CN&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><div class="verbose expandable"><span class="error2">&lt;--- Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. <span class="marker">[+]</span></span><div class="content">Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
+The C99 standard, in section 7.15.1.1, states that if the type used by va_arg() is not compatible with the type of the actual next argument (as promoted according to the default argument promotions), the behavior is undefined.
+The value of the NULL macro is an implementation-defined null pointer constant (7.17), which can be any integer constant expression with the value 0, or such an expression casted to (void*) (6.3.2.3). This includes values like 0, 0L, or even 0LL.
+In practice on common architectures, this will cause real crashes if sizeof(int) != sizeof(void*), and NULL is defined to 0 or any other null pointer constant that promotes to int.
+To reproduce you might be able to use this little code example on 64bit platforms. If the output includes &quot;ERROR&quot;, the sentinel had only 4 out of 8 bytes initialized to zero and was not detected as the final argument to stop argument processing via va_arg(). Changing the 0 to (void*)0 or 0L will make the &quot;ERROR&quot; output go away.
+#include &lt;stdarg.h&gt;
+#include &lt;stdio.h&gt;
+
+void f(char *s, ...) {
+ va_list ap;
+ va_start(ap,s);
+ for (;;) {
+ char *p = va_arg(ap,char*);
+ printf(&quot;%018p, %s\n&quot;, p, (long)p &amp; 255 ? p : &quot;&quot;);
+ if(!p) break;
+ }
+ va_end(ap);
+}
+
+void g() {
+ char *s2 = &quot;x&quot;;
+ char *s3 = &quot;ERROR&quot;;
+
+ // changing 0 to 0L for the 7th argument (which is intended to act as sentinel) makes the error go away on x86_64
+ f(&quot;first&quot;, s2, s2, s2, s2, s2, 0, s3, (char*)0);
+}
+
+void h() {
+ int i;
+ volatile unsigned char a[1000];
+ for (i = 0; i&lt;sizeof(a); i++)
+ a[i] = -1;
+}
+
+int main() {
+ h();
+ g();
+ return 0;
+}</div></div>
+</span><a id="line-3182" name="line-3182"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3183" name="line-3183"></a><span class="hll"><span class="w"> </span><span class="n">insert_locales</span><span class="w"> </span><span class="p">(</span><span class="n">encodings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;GB2312&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;zh_CN&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><div class="verbose expandable"><span class="error2">&lt;--- Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. <span class="marker">[+]</span></span><div class="content">Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
+The C99 standard, in section 7.15.1.1, states that if the type used by va_arg() is not compatible with the type of the actual next argument (as promoted according to the default argument promotions), the behavior is undefined.
+The value of the NULL macro is an implementation-defined null pointer constant (7.17), which can be any integer constant expression with the value 0, or such an expression casted to (void*) (6.3.2.3). This includes values like 0, 0L, or even 0LL.
+In practice on common architectures, this will cause real crashes if sizeof(int) != sizeof(void*), and NULL is defined to 0 or any other null pointer constant that promotes to int.
+To reproduce you might be able to use this little code example on 64bit platforms. If the output includes &quot;ERROR&quot;, the sentinel had only 4 out of 8 bytes initialized to zero and was not detected as the final argument to stop argument processing via va_arg(). Changing the 0 to (void*)0 or 0L will make the &quot;ERROR&quot; output go away.
+#include &lt;stdarg.h&gt;
+#include &lt;stdio.h&gt;
+
+void f(char *s, ...) {
+ va_list ap;
+ va_start(ap,s);
+ for (;;) {
+ char *p = va_arg(ap,char*);
+ printf(&quot;%018p, %s\n&quot;, p, (long)p &amp; 255 ? p : &quot;&quot;);
+ if(!p) break;
+ }
+ va_end(ap);
+}
+
+void g() {
+ char *s2 = &quot;x&quot;;
+ char *s3 = &quot;ERROR&quot;;
+
+ // changing 0 to 0L for the 7th argument (which is intended to act as sentinel) makes the error go away on x86_64
+ f(&quot;first&quot;, s2, s2, s2, s2, s2, 0, s3, (char*)0);
+}
+
+void h() {
+ int i;
+ volatile unsigned char a[1000];
+ for (i = 0; i&lt;sizeof(a); i++)
+ a[i] = -1;
+}
+
+int main() {
+ h();
+ g();
+ return 0;
+}</div></div>
+</span><a id="line-3184" name="line-3184"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3185" name="line-3185"></a><span class="hll"><span class="w"> </span><span class="n">insert_locales</span><span class="w"> </span><span class="p">(</span><span class="n">encodings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;EUC-JP&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ja&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><div class="verbose expandable"><span class="error2">&lt;--- Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. <span class="marker">[+]</span></span><div class="content">Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
+The C99 standard, in section 7.15.1.1, states that if the type used by va_arg() is not compatible with the type of the actual next argument (as promoted according to the default argument promotions), the behavior is undefined.
+The value of the NULL macro is an implementation-defined null pointer constant (7.17), which can be any integer constant expression with the value 0, or such an expression casted to (void*) (6.3.2.3). This includes values like 0, 0L, or even 0LL.
+In practice on common architectures, this will cause real crashes if sizeof(int) != sizeof(void*), and NULL is defined to 0 or any other null pointer constant that promotes to int.
+To reproduce you might be able to use this little code example on 64bit platforms. If the output includes &quot;ERROR&quot;, the sentinel had only 4 out of 8 bytes initialized to zero and was not detected as the final argument to stop argument processing via va_arg(). Changing the 0 to (void*)0 or 0L will make the &quot;ERROR&quot; output go away.
+#include &lt;stdarg.h&gt;
+#include &lt;stdio.h&gt;
+
+void f(char *s, ...) {
+ va_list ap;
+ va_start(ap,s);
+ for (;;) {
+ char *p = va_arg(ap,char*);
+ printf(&quot;%018p, %s\n&quot;, p, (long)p &amp; 255 ? p : &quot;&quot;);
+ if(!p) break;
+ }
+ va_end(ap);
+}
+
+void g() {
+ char *s2 = &quot;x&quot;;
+ char *s3 = &quot;ERROR&quot;;
+
+ // changing 0 to 0L for the 7th argument (which is intended to act as sentinel) makes the error go away on x86_64
+ f(&quot;first&quot;, s2, s2, s2, s2, s2, 0, s3, (char*)0);
+}
+
+void h() {
+ int i;
+ volatile unsigned char a[1000];
+ for (i = 0; i&lt;sizeof(a); i++)
+ a[i] = -1;
+}
+
+int main() {
+ h();
+ g();
+ return 0;
+}</div></div>
+</span><a id="line-3186" name="line-3186"></a><span class="hll"><span class="w"> </span><span class="n">insert_locales</span><span class="w"> </span><span class="p">(</span><span class="n">encodings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;EUC-KR&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ko&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><div class="verbose expandable"><span class="error2">&lt;--- Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. <span class="marker">[+]</span></span><div class="content">Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
+The C99 standard, in section 7.15.1.1, states that if the type used by va_arg() is not compatible with the type of the actual next argument (as promoted according to the default argument promotions), the behavior is undefined.
+The value of the NULL macro is an implementation-defined null pointer constant (7.17), which can be any integer constant expression with the value 0, or such an expression casted to (void*) (6.3.2.3). This includes values like 0, 0L, or even 0LL.
+In practice on common architectures, this will cause real crashes if sizeof(int) != sizeof(void*), and NULL is defined to 0 or any other null pointer constant that promotes to int.
+To reproduce you might be able to use this little code example on 64bit platforms. If the output includes &quot;ERROR&quot;, the sentinel had only 4 out of 8 bytes initialized to zero and was not detected as the final argument to stop argument processing via va_arg(). Changing the 0 to (void*)0 or 0L will make the &quot;ERROR&quot; output go away.
+#include &lt;stdarg.h&gt;
+#include &lt;stdio.h&gt;
+
+void f(char *s, ...) {
+ va_list ap;
+ va_start(ap,s);
+ for (;;) {
+ char *p = va_arg(ap,char*);
+ printf(&quot;%018p, %s\n&quot;, p, (long)p &amp; 255 ? p : &quot;&quot;);
+ if(!p) break;
+ }
+ va_end(ap);
+}
+
+void g() {
+ char *s2 = &quot;x&quot;;
+ char *s3 = &quot;ERROR&quot;;
+
+ // changing 0 to 0L for the 7th argument (which is intended to act as sentinel) makes the error go away on x86_64
+ f(&quot;first&quot;, s2, s2, s2, s2, s2, 0, s3, (char*)0);
+}
+
+void h() {
+ int i;
+ volatile unsigned char a[1000];
+ for (i = 0; i&lt;sizeof(a); i++)
+ a[i] = -1;
+}
+
+int main() {
+ h();
+ g();
+ return 0;
+}</div></div>
+</span><a id="line-3187" name="line-3187"></a><span class="w"> </span><span class="cm">/*insert_locales (encodings, &quot;GEORGIAN-ACADEMY&quot;, NULL);*/</span>
+<a id="line-3188" name="line-3188"></a><span class="hll"><span class="w"> </span><span class="n">insert_locales</span><span class="w"> </span><span class="p">(</span><span class="n">encodings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;GEORGIAN-PS&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ka&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><div class="verbose expandable"><span class="error2">&lt;--- Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. <span class="marker">[+]</span></span><div class="content">Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
+The C99 standard, in section 7.15.1.1, states that if the type used by va_arg() is not compatible with the type of the actual next argument (as promoted according to the default argument promotions), the behavior is undefined.
+The value of the NULL macro is an implementation-defined null pointer constant (7.17), which can be any integer constant expression with the value 0, or such an expression casted to (void*) (6.3.2.3). This includes values like 0, 0L, or even 0LL.
+In practice on common architectures, this will cause real crashes if sizeof(int) != sizeof(void*), and NULL is defined to 0 or any other null pointer constant that promotes to int.
+To reproduce you might be able to use this little code example on 64bit platforms. If the output includes &quot;ERROR&quot;, the sentinel had only 4 out of 8 bytes initialized to zero and was not detected as the final argument to stop argument processing via va_arg(). Changing the 0 to (void*)0 or 0L will make the &quot;ERROR&quot; output go away.
+#include &lt;stdarg.h&gt;
+#include &lt;stdio.h&gt;
+
+void f(char *s, ...) {
+ va_list ap;
+ va_start(ap,s);
+ for (;;) {
+ char *p = va_arg(ap,char*);
+ printf(&quot;%018p, %s\n&quot;, p, (long)p &amp; 255 ? p : &quot;&quot;);
+ if(!p) break;
+ }
+ va_end(ap);
+}
+
+void g() {
+ char *s2 = &quot;x&quot;;
+ char *s3 = &quot;ERROR&quot;;
+
+ // changing 0 to 0L for the 7th argument (which is intended to act as sentinel) makes the error go away on x86_64
+ f(&quot;first&quot;, s2, s2, s2, s2, s2, 0, s3, (char*)0);
+}
+
+void h() {
+ int i;
+ volatile unsigned char a[1000];
+ for (i = 0; i&lt;sizeof(a); i++)
+ a[i] = -1;
+}
+
+int main() {
+ h();
+ g();
+ return 0;
+}</div></div>
+</span><a id="line-3189" name="line-3189"></a><span class="hll"><span class="w"> </span><span class="n">insert_locales</span><span class="w"> </span><span class="p">(</span><span class="n">encodings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ISO-8859-1&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;br&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ca&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;da&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;de&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;en&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;es&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;eu&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;fi&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;fr&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;gl&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;it&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;nl&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;wa&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;no&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;pt&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;pt&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;sv&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><div class="verbose expandable"><span class="error2">&lt;--- Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. <span class="marker">[+]</span></span><div class="content">Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
+The C99 standard, in section 7.15.1.1, states that if the type used by va_arg() is not compatible with the type of the actual next argument (as promoted according to the default argument promotions), the behavior is undefined.
+The value of the NULL macro is an implementation-defined null pointer constant (7.17), which can be any integer constant expression with the value 0, or such an expression casted to (void*) (6.3.2.3). This includes values like 0, 0L, or even 0LL.
+In practice on common architectures, this will cause real crashes if sizeof(int) != sizeof(void*), and NULL is defined to 0 or any other null pointer constant that promotes to int.
+To reproduce you might be able to use this little code example on 64bit platforms. If the output includes &quot;ERROR&quot;, the sentinel had only 4 out of 8 bytes initialized to zero and was not detected as the final argument to stop argument processing via va_arg(). Changing the 0 to (void*)0 or 0L will make the &quot;ERROR&quot; output go away.
+#include &lt;stdarg.h&gt;
+#include &lt;stdio.h&gt;
+
+void f(char *s, ...) {
+ va_list ap;
+ va_start(ap,s);
+ for (;;) {
+ char *p = va_arg(ap,char*);
+ printf(&quot;%018p, %s\n&quot;, p, (long)p &amp; 255 ? p : &quot;&quot;);
+ if(!p) break;
+ }
+ va_end(ap);
+}
+
+void g() {
+ char *s2 = &quot;x&quot;;
+ char *s3 = &quot;ERROR&quot;;
+
+ // changing 0 to 0L for the 7th argument (which is intended to act as sentinel) makes the error go away on x86_64
+ f(&quot;first&quot;, s2, s2, s2, s2, s2, 0, s3, (char*)0);
+}
+
+void h() {
+ int i;
+ volatile unsigned char a[1000];
+ for (i = 0; i&lt;sizeof(a); i++)
+ a[i] = -1;
+}
+
+int main() {
+ h();
+ g();
+ return 0;
+}</div></div>
+</span><a id="line-3190" name="line-3190"></a><span class="hll"><span class="w"> </span><span class="n">insert_locales</span><span class="w"> </span><span class="p">(</span><span class="n">encodings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ISO-8859-2&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;cs&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;hr&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;hu&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;pl&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ro&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;sk&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;sl&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;sq&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;sr&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><div class="verbose expandable"><span class="error2">&lt;--- Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. <span class="marker">[+]</span></span><div class="content">Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
+The C99 standard, in section 7.15.1.1, states that if the type used by va_arg() is not compatible with the type of the actual next argument (as promoted according to the default argument promotions), the behavior is undefined.
+The value of the NULL macro is an implementation-defined null pointer constant (7.17), which can be any integer constant expression with the value 0, or such an expression casted to (void*) (6.3.2.3). This includes values like 0, 0L, or even 0LL.
+In practice on common architectures, this will cause real crashes if sizeof(int) != sizeof(void*), and NULL is defined to 0 or any other null pointer constant that promotes to int.
+To reproduce you might be able to use this little code example on 64bit platforms. If the output includes &quot;ERROR&quot;, the sentinel had only 4 out of 8 bytes initialized to zero and was not detected as the final argument to stop argument processing via va_arg(). Changing the 0 to (void*)0 or 0L will make the &quot;ERROR&quot; output go away.
+#include &lt;stdarg.h&gt;
+#include &lt;stdio.h&gt;
+
+void f(char *s, ...) {
+ va_list ap;
+ va_start(ap,s);
+ for (;;) {
+ char *p = va_arg(ap,char*);
+ printf(&quot;%018p, %s\n&quot;, p, (long)p &amp; 255 ? p : &quot;&quot;);
+ if(!p) break;
+ }
+ va_end(ap);
+}
+
+void g() {
+ char *s2 = &quot;x&quot;;
+ char *s3 = &quot;ERROR&quot;;
+
+ // changing 0 to 0L for the 7th argument (which is intended to act as sentinel) makes the error go away on x86_64
+ f(&quot;first&quot;, s2, s2, s2, s2, s2, 0, s3, (char*)0);
+}
+
+void h() {
+ int i;
+ volatile unsigned char a[1000];
+ for (i = 0; i&lt;sizeof(a); i++)
+ a[i] = -1;
+}
+
+int main() {
+ h();
+ g();
+ return 0;
+}</div></div>
+</span><a id="line-3191" name="line-3191"></a><span class="hll"><span class="w"> </span><span class="n">insert_locales</span><span class="w"> </span><span class="p">(</span><span class="n">encodings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ISO-8859-3&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;eo&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><div class="verbose expandable"><span class="error2">&lt;--- Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. <span class="marker">[+]</span></span><div class="content">Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
+The C99 standard, in section 7.15.1.1, states that if the type used by va_arg() is not compatible with the type of the actual next argument (as promoted according to the default argument promotions), the behavior is undefined.
+The value of the NULL macro is an implementation-defined null pointer constant (7.17), which can be any integer constant expression with the value 0, or such an expression casted to (void*) (6.3.2.3). This includes values like 0, 0L, or even 0LL.
+In practice on common architectures, this will cause real crashes if sizeof(int) != sizeof(void*), and NULL is defined to 0 or any other null pointer constant that promotes to int.
+To reproduce you might be able to use this little code example on 64bit platforms. If the output includes &quot;ERROR&quot;, the sentinel had only 4 out of 8 bytes initialized to zero and was not detected as the final argument to stop argument processing via va_arg(). Changing the 0 to (void*)0 or 0L will make the &quot;ERROR&quot; output go away.
+#include &lt;stdarg.h&gt;
+#include &lt;stdio.h&gt;
+
+void f(char *s, ...) {
+ va_list ap;
+ va_start(ap,s);
+ for (;;) {
+ char *p = va_arg(ap,char*);
+ printf(&quot;%018p, %s\n&quot;, p, (long)p &amp; 255 ? p : &quot;&quot;);
+ if(!p) break;
+ }
+ va_end(ap);
+}
+
+void g() {
+ char *s2 = &quot;x&quot;;
+ char *s3 = &quot;ERROR&quot;;
+
+ // changing 0 to 0L for the 7th argument (which is intended to act as sentinel) makes the error go away on x86_64
+ f(&quot;first&quot;, s2, s2, s2, s2, s2, 0, s3, (char*)0);
+}
+
+void h() {
+ int i;
+ volatile unsigned char a[1000];
+ for (i = 0; i&lt;sizeof(a); i++)
+ a[i] = -1;
+}
+
+int main() {
+ h();
+ g();
+ return 0;
+}</div></div>
+</span><a id="line-3192" name="line-3192"></a><span class="hll"><span class="w"> </span><span class="n">insert_locales</span><span class="w"> </span><span class="p">(</span><span class="n">encodings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ISO-8859-5&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;mk&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;sp&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><div class="verbose expandable"><span class="error2">&lt;--- Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. <span class="marker">[+]</span></span><div class="content">Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
+The C99 standard, in section 7.15.1.1, states that if the type used by va_arg() is not compatible with the type of the actual next argument (as promoted according to the default argument promotions), the behavior is undefined.
+The value of the NULL macro is an implementation-defined null pointer constant (7.17), which can be any integer constant expression with the value 0, or such an expression casted to (void*) (6.3.2.3). This includes values like 0, 0L, or even 0LL.
+In practice on common architectures, this will cause real crashes if sizeof(int) != sizeof(void*), and NULL is defined to 0 or any other null pointer constant that promotes to int.
+To reproduce you might be able to use this little code example on 64bit platforms. If the output includes &quot;ERROR&quot;, the sentinel had only 4 out of 8 bytes initialized to zero and was not detected as the final argument to stop argument processing via va_arg(). Changing the 0 to (void*)0 or 0L will make the &quot;ERROR&quot; output go away.
+#include &lt;stdarg.h&gt;
+#include &lt;stdio.h&gt;
+
+void f(char *s, ...) {
+ va_list ap;
+ va_start(ap,s);
+ for (;;) {
+ char *p = va_arg(ap,char*);
+ printf(&quot;%018p, %s\n&quot;, p, (long)p &amp; 255 ? p : &quot;&quot;);
+ if(!p) break;
+ }
+ va_end(ap);
+}
+
+void g() {
+ char *s2 = &quot;x&quot;;
+ char *s3 = &quot;ERROR&quot;;
+
+ // changing 0 to 0L for the 7th argument (which is intended to act as sentinel) makes the error go away on x86_64
+ f(&quot;first&quot;, s2, s2, s2, s2, s2, 0, s3, (char*)0);
+}
+
+void h() {
+ int i;
+ volatile unsigned char a[1000];
+ for (i = 0; i&lt;sizeof(a); i++)
+ a[i] = -1;
+}
+
+int main() {
+ h();
+ g();
+ return 0;
+}</div></div>
+</span><a id="line-3193" name="line-3193"></a><span class="hll"><span class="w"> </span><span class="n">insert_locales</span><span class="w"> </span><span class="p">(</span><span class="n">encodings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ISO-8859-7&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;el&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><div class="verbose expandable"><span class="error2">&lt;--- Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. <span class="marker">[+]</span></span><div class="content">Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
+The C99 standard, in section 7.15.1.1, states that if the type used by va_arg() is not compatible with the type of the actual next argument (as promoted according to the default argument promotions), the behavior is undefined.
+The value of the NULL macro is an implementation-defined null pointer constant (7.17), which can be any integer constant expression with the value 0, or such an expression casted to (void*) (6.3.2.3). This includes values like 0, 0L, or even 0LL.
+In practice on common architectures, this will cause real crashes if sizeof(int) != sizeof(void*), and NULL is defined to 0 or any other null pointer constant that promotes to int.
+To reproduce you might be able to use this little code example on 64bit platforms. If the output includes &quot;ERROR&quot;, the sentinel had only 4 out of 8 bytes initialized to zero and was not detected as the final argument to stop argument processing via va_arg(). Changing the 0 to (void*)0 or 0L will make the &quot;ERROR&quot; output go away.
+#include &lt;stdarg.h&gt;
+#include &lt;stdio.h&gt;
+
+void f(char *s, ...) {
+ va_list ap;
+ va_start(ap,s);
+ for (;;) {
+ char *p = va_arg(ap,char*);
+ printf(&quot;%018p, %s\n&quot;, p, (long)p &amp; 255 ? p : &quot;&quot;);
+ if(!p) break;
+ }
+ va_end(ap);
+}
+
+void g() {
+ char *s2 = &quot;x&quot;;
+ char *s3 = &quot;ERROR&quot;;
+
+ // changing 0 to 0L for the 7th argument (which is intended to act as sentinel) makes the error go away on x86_64
+ f(&quot;first&quot;, s2, s2, s2, s2, s2, 0, s3, (char*)0);
+}
+
+void h() {
+ int i;
+ volatile unsigned char a[1000];
+ for (i = 0; i&lt;sizeof(a); i++)
+ a[i] = -1;
+}
+
+int main() {
+ h();
+ g();
+ return 0;
+}</div></div>
+</span><a id="line-3194" name="line-3194"></a><span class="hll"><span class="w"> </span><span class="n">insert_locales</span><span class="w"> </span><span class="p">(</span><span class="n">encodings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ISO-8859-9&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;tr&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><div class="verbose expandable"><span class="error2">&lt;--- Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. <span class="marker">[+]</span></span><div class="content">Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
+The C99 standard, in section 7.15.1.1, states that if the type used by va_arg() is not compatible with the type of the actual next argument (as promoted according to the default argument promotions), the behavior is undefined.
+The value of the NULL macro is an implementation-defined null pointer constant (7.17), which can be any integer constant expression with the value 0, or such an expression casted to (void*) (6.3.2.3). This includes values like 0, 0L, or even 0LL.
+In practice on common architectures, this will cause real crashes if sizeof(int) != sizeof(void*), and NULL is defined to 0 or any other null pointer constant that promotes to int.
+To reproduce you might be able to use this little code example on 64bit platforms. If the output includes &quot;ERROR&quot;, the sentinel had only 4 out of 8 bytes initialized to zero and was not detected as the final argument to stop argument processing via va_arg(). Changing the 0 to (void*)0 or 0L will make the &quot;ERROR&quot; output go away.
+#include &lt;stdarg.h&gt;
+#include &lt;stdio.h&gt;
+
+void f(char *s, ...) {
+ va_list ap;
+ va_start(ap,s);
+ for (;;) {
+ char *p = va_arg(ap,char*);
+ printf(&quot;%018p, %s\n&quot;, p, (long)p &amp; 255 ? p : &quot;&quot;);
+ if(!p) break;
+ }
+ va_end(ap);
+}
+
+void g() {
+ char *s2 = &quot;x&quot;;
+ char *s3 = &quot;ERROR&quot;;
+
+ // changing 0 to 0L for the 7th argument (which is intended to act as sentinel) makes the error go away on x86_64
+ f(&quot;first&quot;, s2, s2, s2, s2, s2, 0, s3, (char*)0);
+}
+
+void h() {
+ int i;
+ volatile unsigned char a[1000];
+ for (i = 0; i&lt;sizeof(a); i++)
+ a[i] = -1;
+}
+
+int main() {
+ h();
+ g();
+ return 0;
+}</div></div>
+</span><a id="line-3195" name="line-3195"></a><span class="hll"><span class="w"> </span><span class="n">insert_locales</span><span class="w"> </span><span class="p">(</span><span class="n">encodings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ISO-8859-13&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;lt&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;lv&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;mi&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><div class="verbose expandable"><span class="error2">&lt;--- Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. <span class="marker">[+]</span></span><div class="content">Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
+The C99 standard, in section 7.15.1.1, states that if the type used by va_arg() is not compatible with the type of the actual next argument (as promoted according to the default argument promotions), the behavior is undefined.
+The value of the NULL macro is an implementation-defined null pointer constant (7.17), which can be any integer constant expression with the value 0, or such an expression casted to (void*) (6.3.2.3). This includes values like 0, 0L, or even 0LL.
+In practice on common architectures, this will cause real crashes if sizeof(int) != sizeof(void*), and NULL is defined to 0 or any other null pointer constant that promotes to int.
+To reproduce you might be able to use this little code example on 64bit platforms. If the output includes &quot;ERROR&quot;, the sentinel had only 4 out of 8 bytes initialized to zero and was not detected as the final argument to stop argument processing via va_arg(). Changing the 0 to (void*)0 or 0L will make the &quot;ERROR&quot; output go away.
+#include &lt;stdarg.h&gt;
+#include &lt;stdio.h&gt;
+
+void f(char *s, ...) {
+ va_list ap;
+ va_start(ap,s);
+ for (;;) {
+ char *p = va_arg(ap,char*);
+ printf(&quot;%018p, %s\n&quot;, p, (long)p &amp; 255 ? p : &quot;&quot;);
+ if(!p) break;
+ }
+ va_end(ap);
+}
+
+void g() {
+ char *s2 = &quot;x&quot;;
+ char *s3 = &quot;ERROR&quot;;
+
+ // changing 0 to 0L for the 7th argument (which is intended to act as sentinel) makes the error go away on x86_64
+ f(&quot;first&quot;, s2, s2, s2, s2, s2, 0, s3, (char*)0);
+}
+
+void h() {
+ int i;
+ volatile unsigned char a[1000];
+ for (i = 0; i&lt;sizeof(a); i++)
+ a[i] = -1;
+}
+
+int main() {
+ h();
+ g();
+ return 0;
+}</div></div>
+</span><a id="line-3196" name="line-3196"></a><span class="hll"><span class="w"> </span><span class="n">insert_locales</span><span class="w"> </span><span class="p">(</span><span class="n">encodings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ISO-8859-14&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ga&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;cy&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><div class="verbose expandable"><span class="error2">&lt;--- Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. <span class="marker">[+]</span></span><div class="content">Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
+The C99 standard, in section 7.15.1.1, states that if the type used by va_arg() is not compatible with the type of the actual next argument (as promoted according to the default argument promotions), the behavior is undefined.
+The value of the NULL macro is an implementation-defined null pointer constant (7.17), which can be any integer constant expression with the value 0, or such an expression casted to (void*) (6.3.2.3). This includes values like 0, 0L, or even 0LL.
+In practice on common architectures, this will cause real crashes if sizeof(int) != sizeof(void*), and NULL is defined to 0 or any other null pointer constant that promotes to int.
+To reproduce you might be able to use this little code example on 64bit platforms. If the output includes &quot;ERROR&quot;, the sentinel had only 4 out of 8 bytes initialized to zero and was not detected as the final argument to stop argument processing via va_arg(). Changing the 0 to (void*)0 or 0L will make the &quot;ERROR&quot; output go away.
+#include &lt;stdarg.h&gt;
+#include &lt;stdio.h&gt;
+
+void f(char *s, ...) {
+ va_list ap;
+ va_start(ap,s);
+ for (;;) {
+ char *p = va_arg(ap,char*);
+ printf(&quot;%018p, %s\n&quot;, p, (long)p &amp; 255 ? p : &quot;&quot;);
+ if(!p) break;
+ }
+ va_end(ap);
+}
+
+void g() {
+ char *s2 = &quot;x&quot;;
+ char *s3 = &quot;ERROR&quot;;
+
+ // changing 0 to 0L for the 7th argument (which is intended to act as sentinel) makes the error go away on x86_64
+ f(&quot;first&quot;, s2, s2, s2, s2, s2, 0, s3, (char*)0);
+}
+
+void h() {
+ int i;
+ volatile unsigned char a[1000];
+ for (i = 0; i&lt;sizeof(a); i++)
+ a[i] = -1;
+}
+
+int main() {
+ h();
+ g();
+ return 0;
+}</div></div>
+</span><a id="line-3197" name="line-3197"></a><span class="hll"><span class="w"> </span><span class="n">insert_locales</span><span class="w"> </span><span class="p">(</span><span class="n">encodings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ISO-8859-15&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;et&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><div class="verbose expandable"><span class="error2">&lt;--- Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. <span class="marker">[+]</span></span><div class="content">Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
+The C99 standard, in section 7.15.1.1, states that if the type used by va_arg() is not compatible with the type of the actual next argument (as promoted according to the default argument promotions), the behavior is undefined.
+The value of the NULL macro is an implementation-defined null pointer constant (7.17), which can be any integer constant expression with the value 0, or such an expression casted to (void*) (6.3.2.3). This includes values like 0, 0L, or even 0LL.
+In practice on common architectures, this will cause real crashes if sizeof(int) != sizeof(void*), and NULL is defined to 0 or any other null pointer constant that promotes to int.
+To reproduce you might be able to use this little code example on 64bit platforms. If the output includes &quot;ERROR&quot;, the sentinel had only 4 out of 8 bytes initialized to zero and was not detected as the final argument to stop argument processing via va_arg(). Changing the 0 to (void*)0 or 0L will make the &quot;ERROR&quot; output go away.
+#include &lt;stdarg.h&gt;
+#include &lt;stdio.h&gt;
+
+void f(char *s, ...) {
+ va_list ap;
+ va_start(ap,s);
+ for (;;) {
+ char *p = va_arg(ap,char*);
+ printf(&quot;%018p, %s\n&quot;, p, (long)p &amp; 255 ? p : &quot;&quot;);
+ if(!p) break;
+ }
+ va_end(ap);
+}
+
+void g() {
+ char *s2 = &quot;x&quot;;
+ char *s3 = &quot;ERROR&quot;;
+
+ // changing 0 to 0L for the 7th argument (which is intended to act as sentinel) makes the error go away on x86_64
+ f(&quot;first&quot;, s2, s2, s2, s2, s2, 0, s3, (char*)0);
+}
+
+void h() {
+ int i;
+ volatile unsigned char a[1000];
+ for (i = 0; i&lt;sizeof(a); i++)
+ a[i] = -1;
+}
+
+int main() {
+ h();
+ g();
+ return 0;
+}</div></div>
+</span><a id="line-3198" name="line-3198"></a><span class="hll"><span class="w"> </span><span class="n">insert_locales</span><span class="w"> </span><span class="p">(</span><span class="n">encodings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;KOI8-R&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ru&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><div class="verbose expandable"><span class="error2">&lt;--- Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. <span class="marker">[+]</span></span><div class="content">Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
+The C99 standard, in section 7.15.1.1, states that if the type used by va_arg() is not compatible with the type of the actual next argument (as promoted according to the default argument promotions), the behavior is undefined.
+The value of the NULL macro is an implementation-defined null pointer constant (7.17), which can be any integer constant expression with the value 0, or such an expression casted to (void*) (6.3.2.3). This includes values like 0, 0L, or even 0LL.
+In practice on common architectures, this will cause real crashes if sizeof(int) != sizeof(void*), and NULL is defined to 0 or any other null pointer constant that promotes to int.
+To reproduce you might be able to use this little code example on 64bit platforms. If the output includes &quot;ERROR&quot;, the sentinel had only 4 out of 8 bytes initialized to zero and was not detected as the final argument to stop argument processing via va_arg(). Changing the 0 to (void*)0 or 0L will make the &quot;ERROR&quot; output go away.
+#include &lt;stdarg.h&gt;
+#include &lt;stdio.h&gt;
+
+void f(char *s, ...) {
+ va_list ap;
+ va_start(ap,s);
+ for (;;) {
+ char *p = va_arg(ap,char*);
+ printf(&quot;%018p, %s\n&quot;, p, (long)p &amp; 255 ? p : &quot;&quot;);
+ if(!p) break;
+ }
+ va_end(ap);
+}
+
+void g() {
+ char *s2 = &quot;x&quot;;
+ char *s3 = &quot;ERROR&quot;;
+
+ // changing 0 to 0L for the 7th argument (which is intended to act as sentinel) makes the error go away on x86_64
+ f(&quot;first&quot;, s2, s2, s2, s2, s2, 0, s3, (char*)0);
+}
+
+void h() {
+ int i;
+ volatile unsigned char a[1000];
+ for (i = 0; i&lt;sizeof(a); i++)
+ a[i] = -1;
+}
+
+int main() {
+ h();
+ g();
+ return 0;
+}</div></div>
+</span><a id="line-3199" name="line-3199"></a><span class="hll"><span class="w"> </span><span class="n">insert_locales</span><span class="w"> </span><span class="p">(</span><span class="n">encodings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;KOI8-U&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;uk&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><div class="verbose expandable"><span class="error2">&lt;--- Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. <span class="marker">[+]</span></span><div class="content">Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
+The C99 standard, in section 7.15.1.1, states that if the type used by va_arg() is not compatible with the type of the actual next argument (as promoted according to the default argument promotions), the behavior is undefined.
+The value of the NULL macro is an implementation-defined null pointer constant (7.17), which can be any integer constant expression with the value 0, or such an expression casted to (void*) (6.3.2.3). This includes values like 0, 0L, or even 0LL.
+In practice on common architectures, this will cause real crashes if sizeof(int) != sizeof(void*), and NULL is defined to 0 or any other null pointer constant that promotes to int.
+To reproduce you might be able to use this little code example on 64bit platforms. If the output includes &quot;ERROR&quot;, the sentinel had only 4 out of 8 bytes initialized to zero and was not detected as the final argument to stop argument processing via va_arg(). Changing the 0 to (void*)0 or 0L will make the &quot;ERROR&quot; output go away.
+#include &lt;stdarg.h&gt;
+#include &lt;stdio.h&gt;
+
+void f(char *s, ...) {
+ va_list ap;
+ va_start(ap,s);
+ for (;;) {
+ char *p = va_arg(ap,char*);
+ printf(&quot;%018p, %s\n&quot;, p, (long)p &amp; 255 ? p : &quot;&quot;);
+ if(!p) break;
+ }
+ va_end(ap);
+}
+
+void g() {
+ char *s2 = &quot;x&quot;;
+ char *s3 = &quot;ERROR&quot;;
+
+ // changing 0 to 0L for the 7th argument (which is intended to act as sentinel) makes the error go away on x86_64
+ f(&quot;first&quot;, s2, s2, s2, s2, s2, 0, s3, (char*)0);
+}
+
+void h() {
+ int i;
+ volatile unsigned char a[1000];
+ for (i = 0; i&lt;sizeof(a); i++)
+ a[i] = -1;
+}
+
+int main() {
+ h();
+ g();
+ return 0;
+}</div></div>
+</span><a id="line-3200" name="line-3200"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">check_locale</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;TCVN-5712&quot;</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3201" name="line-3201"></a><span class="hll"><span class="w"> </span><span class="n">insert_locales</span><span class="w"> </span><span class="p">(</span><span class="n">encodings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;TCVN-5712&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;vi&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><div class="verbose expandable"><span class="error2">&lt;--- Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. <span class="marker">[+]</span></span><div class="content">Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
+The C99 standard, in section 7.15.1.1, states that if the type used by va_arg() is not compatible with the type of the actual next argument (as promoted according to the default argument promotions), the behavior is undefined.
+The value of the NULL macro is an implementation-defined null pointer constant (7.17), which can be any integer constant expression with the value 0, or such an expression casted to (void*) (6.3.2.3). This includes values like 0, 0L, or even 0LL.
+In practice on common architectures, this will cause real crashes if sizeof(int) != sizeof(void*), and NULL is defined to 0 or any other null pointer constant that promotes to int.
+To reproduce you might be able to use this little code example on 64bit platforms. If the output includes &quot;ERROR&quot;, the sentinel had only 4 out of 8 bytes initialized to zero and was not detected as the final argument to stop argument processing via va_arg(). Changing the 0 to (void*)0 or 0L will make the &quot;ERROR&quot; output go away.
+#include &lt;stdarg.h&gt;
+#include &lt;stdio.h&gt;
+
+void f(char *s, ...) {
+ va_list ap;
+ va_start(ap,s);
+ for (;;) {
+ char *p = va_arg(ap,char*);
+ printf(&quot;%018p, %s\n&quot;, p, (long)p &amp; 255 ? p : &quot;&quot;);
+ if(!p) break;
+ }
+ va_end(ap);
+}
+
+void g() {
+ char *s2 = &quot;x&quot;;
+ char *s3 = &quot;ERROR&quot;;
+
+ // changing 0 to 0L for the 7th argument (which is intended to act as sentinel) makes the error go away on x86_64
+ f(&quot;first&quot;, s2, s2, s2, s2, s2, 0, s3, (char*)0);
+}
+
+void h() {
+ int i;
+ volatile unsigned char a[1000];
+ for (i = 0; i&lt;sizeof(a); i++)
+ a[i] = -1;
+}
+
+int main() {
+ h();
+ g();
+ return 0;
+}</div></div>
+</span><a id="line-3202" name="line-3202"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3203" name="line-3203"></a><span class="hll"><span class="w"> </span><span class="n">insert_locales</span><span class="w"> </span><span class="p">(</span><span class="n">encodings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;TCVN&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;vi&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><div class="verbose expandable"><span class="error2">&lt;--- Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. <span class="marker">[+]</span></span><div class="content">Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
+The C99 standard, in section 7.15.1.1, states that if the type used by va_arg() is not compatible with the type of the actual next argument (as promoted according to the default argument promotions), the behavior is undefined.
+The value of the NULL macro is an implementation-defined null pointer constant (7.17), which can be any integer constant expression with the value 0, or such an expression casted to (void*) (6.3.2.3). This includes values like 0, 0L, or even 0LL.
+In practice on common architectures, this will cause real crashes if sizeof(int) != sizeof(void*), and NULL is defined to 0 or any other null pointer constant that promotes to int.
+To reproduce you might be able to use this little code example on 64bit platforms. If the output includes &quot;ERROR&quot;, the sentinel had only 4 out of 8 bytes initialized to zero and was not detected as the final argument to stop argument processing via va_arg(). Changing the 0 to (void*)0 or 0L will make the &quot;ERROR&quot; output go away.
+#include &lt;stdarg.h&gt;
+#include &lt;stdio.h&gt;
+
+void f(char *s, ...) {
+ va_list ap;
+ va_start(ap,s);
+ for (;;) {
+ char *p = va_arg(ap,char*);
+ printf(&quot;%018p, %s\n&quot;, p, (long)p &amp; 255 ? p : &quot;&quot;);
+ if(!p) break;
+ }
+ va_end(ap);
+}
+
+void g() {
+ char *s2 = &quot;x&quot;;
+ char *s3 = &quot;ERROR&quot;;
+
+ // changing 0 to 0L for the 7th argument (which is intended to act as sentinel) makes the error go away on x86_64
+ f(&quot;first&quot;, s2, s2, s2, s2, s2, 0, s3, (char*)0);
+}
+
+void h() {
+ int i;
+ volatile unsigned char a[1000];
+ for (i = 0; i&lt;sizeof(a); i++)
+ a[i] = -1;
+}
+
+int main() {
+ h();
+ g();
+ return 0;
+}</div></div>
+</span><a id="line-3204" name="line-3204"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3205" name="line-3205"></a><span class="hll"><span class="w"> </span><span class="n">insert_locales</span><span class="w"> </span><span class="p">(</span><span class="n">encodings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;TIS-620&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;th&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><div class="verbose expandable"><span class="error2">&lt;--- Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. <span class="marker">[+]</span></span><div class="content">Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
+The C99 standard, in section 7.15.1.1, states that if the type used by va_arg() is not compatible with the type of the actual next argument (as promoted according to the default argument promotions), the behavior is undefined.
+The value of the NULL macro is an implementation-defined null pointer constant (7.17), which can be any integer constant expression with the value 0, or such an expression casted to (void*) (6.3.2.3). This includes values like 0, 0L, or even 0LL.
+In practice on common architectures, this will cause real crashes if sizeof(int) != sizeof(void*), and NULL is defined to 0 or any other null pointer constant that promotes to int.
+To reproduce you might be able to use this little code example on 64bit platforms. If the output includes &quot;ERROR&quot;, the sentinel had only 4 out of 8 bytes initialized to zero and was not detected as the final argument to stop argument processing via va_arg(). Changing the 0 to (void*)0 or 0L will make the &quot;ERROR&quot; output go away.
+#include &lt;stdarg.h&gt;
+#include &lt;stdio.h&gt;
+
+void f(char *s, ...) {
+ va_list ap;
+ va_start(ap,s);
+ for (;;) {
+ char *p = va_arg(ap,char*);
+ printf(&quot;%018p, %s\n&quot;, p, (long)p &amp; 255 ? p : &quot;&quot;);
+ if(!p) break;
+ }
+ va_end(ap);
+}
+
+void g() {
+ char *s2 = &quot;x&quot;;
+ char *s3 = &quot;ERROR&quot;;
+
+ // changing 0 to 0L for the 7th argument (which is intended to act as sentinel) makes the error go away on x86_64
+ f(&quot;first&quot;, s2, s2, s2, s2, s2, 0, s3, (char*)0);
+}
+
+void h() {
+ int i;
+ volatile unsigned char a[1000];
+ for (i = 0; i&lt;sizeof(a); i++)
+ a[i] = -1;
+}
+
+int main() {
+ h();
+ g();
+ return 0;
+}</div></div>
+</span><a id="line-3206" name="line-3206"></a><span class="w"> </span><span class="cm">/*insert_locales (encodings, &quot;VISCII&quot;, NULL);*/</span>
+<a id="line-3207" name="line-3207"></a>
+<a id="line-3208" name="line-3208"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">encodings</span><span class="p">;</span>
+<a id="line-3209" name="line-3209"></a><span class="p">}</span>
+<a id="line-3210" name="line-3210"></a>
+<a id="line-3211" name="line-3211"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-3212" name="line-3212"></a><span class="n">get_encoding_from_locale</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">locale</span><span class="p">)</span>
+<a id="line-3213" name="line-3213"></a><span class="p">{</span>
+<a id="line-3214" name="line-3214"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">lang</span><span class="p">[</span><span class="mi">3</span><span class="p">];</span>
+<a id="line-3215" name="line-3215"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">encoding</span><span class="p">;</span>
+<a id="line-3216" name="line-3216"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">GHashTable</span><span class="w"> </span><span class="o">*</span><span class="n">encodings</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3217" name="line-3217"></a>
+<a id="line-3218" name="line-3218"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-3219" name="line-3219"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3220" name="line-3220"></a>
+<a id="line-3221" name="line-3221"></a><span class="w"> </span><span class="cm">/* if locale includes encoding, use it */</span>
+<a id="line-3222" name="line-3222"></a><span class="w"> </span><span class="n">encoding</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strchr</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="p">,</span><span class="w"> </span><span class="sc">&#39;.&#39;</span><span class="p">);</span>
+<a id="line-3223" name="line-3223"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">encoding</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3224" name="line-3224"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">encoding</span><span class="o">+</span><span class="mi">1</span><span class="p">;</span>
+<a id="line-3225" name="line-3225"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3226" name="line-3226"></a>
+<a id="line-3227" name="line-3227"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">encodings</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-3228" name="line-3228"></a><span class="w"> </span><span class="n">encodings</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">init_encodings</span><span class="w"> </span><span class="p">();</span>
+<a id="line-3229" name="line-3229"></a>
+<a id="line-3230" name="line-3230"></a><span class="w"> </span><span class="cm">/* first try the entire locale (at this point ll_CC) */</span>
+<a id="line-3231" name="line-3231"></a><span class="w"> </span><span class="n">encoding</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">encodings</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="p">);</span>
+<a id="line-3232" name="line-3232"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">encoding</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-3233" name="line-3233"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">encoding</span><span class="p">;</span>
+<a id="line-3234" name="line-3234"></a>
+<a id="line-3235" name="line-3235"></a><span class="w"> </span><span class="cm">/* Try just the language */</span>
+<a id="line-3236" name="line-3236"></a><span class="w"> </span><span class="n">strncpy</span><span class="w"> </span><span class="p">(</span><span class="n">lang</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">);</span>
+<a id="line-3237" name="line-3237"></a><span class="w"> </span><span class="n">lang</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">;</span>
+<a id="line-3238" name="line-3238"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">encodings</span><span class="p">,</span><span class="w"> </span><span class="n">lang</span><span class="p">);</span>
+<a id="line-3239" name="line-3239"></a><span class="p">}</span>
+<a id="line-3240" name="line-3240"></a>
+<a id="line-3241" name="line-3241"></a><span class="k">static</span><span class="w"> </span><span class="n">Encoding</span>
+<a id="line-3242" name="line-3242"></a><span class="n">get_encoding</span><span class="w"> </span><span class="p">(</span><span class="n">ReadBuf</span><span class="w"> </span><span class="o">*</span><span class="n">rb</span><span class="p">)</span>
+<a id="line-3243" name="line-3243"></a><span class="p">{</span>
+<a id="line-3244" name="line-3244"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">old_kde</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-3245" name="line-3245"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">buf</span><span class="w"> </span><span class="p">[</span><span class="n">BUFSIZ</span><span class="p">];</span>
+<a id="line-3246" name="line-3246"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">all_valid_utf8</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-3247" name="line-3247"></a>
+<a id="line-3248" name="line-3248"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">readbuf_gets</span><span class="w"> </span><span class="p">(</span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="k">sizeof</span><span class="w"> </span><span class="p">(</span><span class="n">buf</span><span class="p">),</span><span class="w"> </span><span class="n">rb</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3249" name="line-3249"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strncmp</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_DESKTOP_ITEM_ENCODING</span><span class="p">,</span>
+<a id="line-3250" name="line-3250"></a><span class="w"> </span><span class="n">buf</span><span class="p">,</span>
+<a id="line-3251" name="line-3251"></a><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_DESKTOP_ITEM_ENCODING</span><span class="p">))</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3252" name="line-3252"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&amp;</span><span class="n">buf</span><span class="p">[</span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_DESKTOP_ITEM_ENCODING</span><span class="p">)];</span>
+<a id="line-3253" name="line-3253"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">p</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39; &#39;</span><span class="p">)</span>
+<a id="line-3254" name="line-3254"></a><span class="w"> </span><span class="n">p</span><span class="o">++</span><span class="p">;</span>
+<a id="line-3255" name="line-3255"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">p</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">&#39;=&#39;</span><span class="p">)</span>
+<a id="line-3256" name="line-3256"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span>
+<a id="line-3257" name="line-3257"></a><span class="w"> </span><span class="n">p</span><span class="o">++</span><span class="p">;</span>
+<a id="line-3258" name="line-3258"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">p</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39; &#39;</span><span class="p">)</span>
+<a id="line-3259" name="line-3259"></a><span class="w"> </span><span class="n">p</span><span class="o">++</span><span class="p">;</span>
+<a id="line-3260" name="line-3260"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">p</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3261" name="line-3261"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ENCODING_UTF8</span><span class="p">;</span>
+<a id="line-3262" name="line-3262"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">p</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Legacy-Mixed&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3263" name="line-3263"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ENCODING_LEGACY_MIXED</span><span class="p">;</span>
+<a id="line-3264" name="line-3264"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3265" name="line-3265"></a><span class="w"> </span><span class="cm">/* According to the spec we&#39;re not supposed</span>
+<a id="line-3266" name="line-3266"></a><span class="cm"> * to read a file like this */</span>
+<a id="line-3267" name="line-3267"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ENCODING_UNKNOWN</span><span class="p">;</span>
+<a id="line-3268" name="line-3268"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3269" name="line-3269"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;[KDE Desktop Entry]&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">buf</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3270" name="line-3270"></a><span class="w"> </span><span class="n">old_kde</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-3271" name="line-3271"></a><span class="w"> </span><span class="cm">/* don&#39;t break yet, we still want to support</span>
+<a id="line-3272" name="line-3272"></a><span class="cm"> * Encoding even here */</span>
+<a id="line-3273" name="line-3273"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3274" name="line-3274"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">all_valid_utf8</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">!</span><span class="w"> </span><span class="n">g_utf8_validate</span><span class="w"> </span><span class="p">(</span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span>
+<a id="line-3275" name="line-3275"></a><span class="w"> </span><span class="n">all_valid_utf8</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-3276" name="line-3276"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3277" name="line-3277"></a>
+<a id="line-3278" name="line-3278"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">old_kde</span><span class="p">)</span>
+<a id="line-3279" name="line-3279"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ENCODING_LEGACY_MIXED</span><span class="p">;</span>
+<a id="line-3280" name="line-3280"></a>
+<a id="line-3281" name="line-3281"></a><span class="w"> </span><span class="cm">/* try to guess by location */</span>
+<a id="line-3282" name="line-3282"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">uri</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">strstr</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;mate/apps/&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3283" name="line-3283"></a><span class="w"> </span><span class="cm">/* old mate */</span>
+<a id="line-3284" name="line-3284"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ENCODING_LEGACY_MIXED</span><span class="p">;</span>
+<a id="line-3285" name="line-3285"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3286" name="line-3286"></a>
+<a id="line-3287" name="line-3287"></a><span class="w"> </span><span class="cm">/* A dilemma, new KDE files are in UTF-8 but have no Encoding</span>
+<a id="line-3288" name="line-3288"></a><span class="cm"> * info, at this time we really can&#39;t tell. The best thing to</span>
+<a id="line-3289" name="line-3289"></a><span class="cm"> * do right now is to just assume UTF-8 if the whole file</span>
+<a id="line-3290" name="line-3290"></a><span class="cm"> * validates as utf8 I suppose */</span>
+<a id="line-3291" name="line-3291"></a>
+<a id="line-3292" name="line-3292"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">all_valid_utf8</span><span class="p">)</span>
+<a id="line-3293" name="line-3293"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ENCODING_UTF8</span><span class="p">;</span>
+<a id="line-3294" name="line-3294"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-3295" name="line-3295"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ENCODING_LEGACY_MIXED</span><span class="p">;</span>
+<a id="line-3296" name="line-3296"></a><span class="p">}</span>
+<a id="line-3297" name="line-3297"></a>
+<a id="line-3298" name="line-3298"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-3299" name="line-3299"></a><span class="n">decode_string</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">Encoding</span><span class="w"> </span><span class="n">encoding</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">locale</span><span class="p">)</span>
+<a id="line-3300" name="line-3300"></a><span class="p">{</span>
+<a id="line-3301" name="line-3301"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3302" name="line-3302"></a>
+<a id="line-3303" name="line-3303"></a><span class="w"> </span><span class="cm">/* if legacy mixed, then convert */</span>
+<a id="line-3304" name="line-3304"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">encoding</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">ENCODING_LEGACY_MIXED</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3305" name="line-3305"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">char_encoding</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_encoding_from_locale</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="p">);</span>
+<a id="line-3306" name="line-3306"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">utf8_string</span><span class="p">;</span>
+<a id="line-3307" name="line-3307"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">char_encoding</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-3308" name="line-3308"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3309" name="line-3309"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">char_encoding</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ASCII&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3310" name="line-3310"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">decode_string_and_dup</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-3311" name="line-3311"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3312" name="line-3312"></a><span class="w"> </span><span class="n">utf8_string</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_convert</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">char_encoding</span><span class="p">,</span>
+<a id="line-3313" name="line-3313"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-3314" name="line-3314"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">utf8_string</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-3315" name="line-3315"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3316" name="line-3316"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">decode_string_and_dup</span><span class="w"> </span><span class="p">(</span><span class="n">utf8_string</span><span class="p">);</span>
+<a id="line-3317" name="line-3317"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">utf8_string</span><span class="p">);</span>
+<a id="line-3318" name="line-3318"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span>
+<a id="line-3319" name="line-3319"></a><span class="w"> </span><span class="cm">/* if utf8, then validate */</span>
+<a id="line-3320" name="line-3320"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">encoding</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">ENCODING_UTF8</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3321" name="line-3321"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="o">!</span><span class="w"> </span><span class="n">g_utf8_validate</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span>
+<a id="line-3322" name="line-3322"></a><span class="w"> </span><span class="cm">/* invalid utf8, ignore this key */</span>
+<a id="line-3323" name="line-3323"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3324" name="line-3324"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">decode_string_and_dup</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-3325" name="line-3325"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3326" name="line-3326"></a><span class="w"> </span><span class="cm">/* Meaning this is not a localized string */</span>
+<a id="line-3327" name="line-3327"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">decode_string_and_dup</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-3328" name="line-3328"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3329" name="line-3329"></a><span class="p">}</span>
+<a id="line-3330" name="line-3330"></a>
+<a id="line-3331" name="line-3331"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-3332" name="line-3332"></a><span class="n">snarf_locale_from_key</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="p">)</span>
+<a id="line-3333" name="line-3333"></a><span class="p">{</span>
+<a id="line-3334" name="line-3334"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">brace</span><span class="p">;</span>
+<a id="line-3335" name="line-3335"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">locale</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">;</span>
+<a id="line-3336" name="line-3336"></a>
+<a id="line-3337" name="line-3337"></a><span class="w"> </span><span class="n">brace</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strchr</span><span class="w"> </span><span class="p">(</span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="sc">&#39;[&#39;</span><span class="p">);</span>
+<a id="line-3338" name="line-3338"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">brace</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-3339" name="line-3339"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3340" name="line-3340"></a>
+<a id="line-3341" name="line-3341"></a><span class="w"> </span><span class="n">locale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">brace</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-3342" name="line-3342"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">locale</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3343" name="line-3343"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="p">);</span>
+<a id="line-3344" name="line-3344"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3345" name="line-3345"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3346" name="line-3346"></a><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strchr</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="p">,</span><span class="w"> </span><span class="sc">&#39;]&#39;</span><span class="p">);</span>
+<a id="line-3347" name="line-3347"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">p</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3348" name="line-3348"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="p">);</span>
+<a id="line-3349" name="line-3349"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3350" name="line-3350"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3351" name="line-3351"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">;</span>
+<a id="line-3352" name="line-3352"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">locale</span><span class="p">;</span>
+<a id="line-3353" name="line-3353"></a><span class="p">}</span>
+<a id="line-3354" name="line-3354"></a>
+<a id="line-3355" name="line-3355"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-3356" name="line-3356"></a><span class="n">insert_key</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span>
+<a id="line-3357" name="line-3357"></a><span class="w"> </span><span class="n">Section</span><span class="w"> </span><span class="o">*</span><span class="n">cur_section</span><span class="p">,</span>
+<a id="line-3358" name="line-3358"></a><span class="w"> </span><span class="n">Encoding</span><span class="w"> </span><span class="n">encoding</span><span class="p">,</span>
+<a id="line-3359" name="line-3359"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="p">,</span>
+<a id="line-3360" name="line-3360"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span>
+<a id="line-3361" name="line-3361"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">old_kde</span><span class="p">,</span>
+<a id="line-3362" name="line-3362"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">no_translations</span><span class="p">)</span>
+<a id="line-3363" name="line-3363"></a><span class="p">{</span>
+<a id="line-3364" name="line-3364"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">k</span><span class="p">;</span>
+<a id="line-3365" name="line-3365"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">val</span><span class="p">;</span>
+<a id="line-3366" name="line-3366"></a><span class="w"> </span><span class="cm">/* we always store everything in UTF-8 */</span>
+<a id="line-3367" name="line-3367"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">cur_section</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-3368" name="line-3368"></a><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ENCODING</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3369" name="line-3369"></a><span class="w"> </span><span class="n">k</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">key</span><span class="p">);</span>
+<a id="line-3370" name="line-3370"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;UTF-8&quot;</span><span class="p">);</span>
+<a id="line-3371" name="line-3371"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3372" name="line-3372"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">locale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">snarf_locale_from_key</span><span class="w"> </span><span class="p">(</span><span class="n">key</span><span class="p">);</span>
+<a id="line-3373" name="line-3373"></a><span class="w"> </span><span class="cm">/* If we&#39;re ignoring translations */</span>
+<a id="line-3374" name="line-3374"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">no_translations</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">locale</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3375" name="line-3375"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="p">);</span>
+<a id="line-3376" name="line-3376"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-3377" name="line-3377"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3378" name="line-3378"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">decode_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">encoding</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="p">);</span>
+<a id="line-3379" name="line-3379"></a>
+<a id="line-3380" name="line-3380"></a><span class="w"> </span><span class="cm">/* Ignore this key, it&#39;s whacked */</span>
+<a id="line-3381" name="line-3381"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">val</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3382" name="line-3382"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="p">);</span>
+<a id="line-3383" name="line-3383"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-3384" name="line-3384"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3385" name="line-3385"></a>
+<a id="line-3386" name="line-3386"></a><span class="w"> </span><span class="n">g_strchomp</span><span class="w"> </span><span class="p">(</span><span class="n">val</span><span class="p">);</span>
+<a id="line-3387" name="line-3387"></a>
+<a id="line-3388" name="line-3388"></a><span class="w"> </span><span class="cm">/* For old KDE entries, we can also split by a comma</span>
+<a id="line-3389" name="line-3389"></a><span class="cm"> * on sort order, so convert to semicolons */</span>
+<a id="line-3390" name="line-3390"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">old_kde</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-3391" name="line-3391"></a><span class="w"> </span><span class="n">cur_section</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-3392" name="line-3392"></a><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_SORT_ORDER</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-3393" name="line-3393"></a><span class="w"> </span><span class="n">strchr</span><span class="w"> </span><span class="p">(</span><span class="n">val</span><span class="p">,</span><span class="w"> </span><span class="sc">&#39;;&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3394" name="line-3394"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-3395" name="line-3395"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">val</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3396" name="line-3396"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">val</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;,&#39;</span><span class="p">)</span>
+<a id="line-3397" name="line-3397"></a><span class="w"> </span><span class="n">val</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;;&#39;</span><span class="p">;</span>
+<a id="line-3398" name="line-3398"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3399" name="line-3399"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3400" name="line-3400"></a>
+<a id="line-3401" name="line-3401"></a><span class="w"> </span><span class="cm">/* Check some types, not perfect, but catches a lot</span>
+<a id="line-3402" name="line-3402"></a><span class="cm"> * of things */</span>
+<a id="line-3403" name="line-3403"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">cur_section</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3404" name="line-3404"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">cannon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cannonize</span><span class="w"> </span><span class="p">(</span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="n">val</span><span class="p">);</span>
+<a id="line-3405" name="line-3405"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">cannon</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3406" name="line-3406"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">val</span><span class="p">);</span>
+<a id="line-3407" name="line-3407"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cannon</span><span class="p">;</span>
+<a id="line-3408" name="line-3408"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3409" name="line-3409"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3410" name="line-3410"></a>
+<a id="line-3411" name="line-3411"></a><span class="w"> </span><span class="n">k</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">key</span><span class="p">);</span>
+<a id="line-3412" name="line-3412"></a>
+<a id="line-3413" name="line-3413"></a><span class="w"> </span><span class="cm">/* Take care of the language part */</span>
+<a id="line-3414" name="line-3414"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-3415" name="line-3415"></a><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;C&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3416" name="line-3416"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">;</span>
+<a id="line-3417" name="line-3417"></a><span class="w"> </span><span class="cm">/* Whack C locale */</span>
+<a id="line-3418" name="line-3418"></a><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strchr</span><span class="w"> </span><span class="p">(</span><span class="n">k</span><span class="p">,</span><span class="w"> </span><span class="sc">&#39;[&#39;</span><span class="p">);</span>
+<a id="line-3419" name="line-3419"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">;</span>
+<a id="line-3420" name="line-3420"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="p">);</span>
+<a id="line-3421" name="line-3421"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3422" name="line-3422"></a><span class="hll"><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">brace</span><span class="p">;</span><span class="error2">&lt;--- Variable 'brace' can be declared as pointer to const</span>
+</span><a id="line-3423" name="line-3423"></a>
+<a id="line-3424" name="line-3424"></a><span class="w"> </span><span class="cm">/* Whack the encoding part */</span>
+<a id="line-3425" name="line-3425"></a><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strchr</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="p">,</span><span class="w"> </span><span class="sc">&#39;.&#39;</span><span class="p">);</span>
+<a id="line-3426" name="line-3426"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">p</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-3427" name="line-3427"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">;</span>
+<a id="line-3428" name="line-3428"></a>
+<a id="line-3429" name="line-3429"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_list_find_custom</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">languages</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="p">,</span>
+<a id="line-3430" name="line-3430"></a><span class="w"> </span><span class="p">(</span><span class="n">GCompareFunc</span><span class="p">)</span><span class="n">strcmp</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3431" name="line-3431"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">languages</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span>
+<a id="line-3432" name="line-3432"></a><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">languages</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="p">);</span>
+<a id="line-3433" name="line-3433"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3434" name="line-3434"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="p">);</span>
+<a id="line-3435" name="line-3435"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3436" name="line-3436"></a>
+<a id="line-3437" name="line-3437"></a><span class="w"> </span><span class="cm">/* Whack encoding from encoding in the key */</span>
+<a id="line-3438" name="line-3438"></a><span class="w"> </span><span class="n">brace</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strchr</span><span class="w"> </span><span class="p">(</span><span class="n">k</span><span class="p">,</span><span class="w"> </span><span class="sc">&#39;[&#39;</span><span class="p">);</span>
+<a id="line-3439" name="line-3439"></a><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strchr</span><span class="w"> </span><span class="p">(</span><span class="n">brace</span><span class="p">,</span><span class="w"> </span><span class="sc">&#39;.&#39;</span><span class="p">);</span>
+<a id="line-3440" name="line-3440"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">p</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3441" name="line-3441"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;]&#39;</span><span class="p">;</span>
+<a id="line-3442" name="line-3442"></a><span class="w"> </span><span class="o">*</span><span class="p">(</span><span class="n">p</span><span class="o">+</span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">;</span>
+<a id="line-3443" name="line-3443"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3444" name="line-3444"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3445" name="line-3445"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3446" name="line-3446"></a>
+<a id="line-3447" name="line-3447"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">cur_section</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3448" name="line-3448"></a><span class="w"> </span><span class="cm">/* only add to list if we haven&#39;t seen it before */</span>
+<a id="line-3449" name="line-3449"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">main_hash</span><span class="p">,</span><span class="w"> </span><span class="n">k</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3450" name="line-3450"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">keys</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">keys</span><span class="p">,</span>
+<a id="line-3451" name="line-3451"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">k</span><span class="p">));</span>
+<a id="line-3452" name="line-3452"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3453" name="line-3453"></a><span class="w"> </span><span class="cm">/* later duplicates override earlier ones */</span>
+<a id="line-3454" name="line-3454"></a><span class="w"> </span><span class="n">g_hash_table_replace</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">main_hash</span><span class="p">,</span><span class="w"> </span><span class="n">k</span><span class="p">,</span><span class="w"> </span><span class="n">val</span><span class="p">);</span>
+<a id="line-3455" name="line-3455"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3456" name="line-3456"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">full</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span>
+<a id="line-3457" name="line-3457"></a><span class="w"> </span><span class="p">(</span><span class="s">&quot;%s/%s&quot;</span><span class="p">,</span>
+<a id="line-3458" name="line-3458"></a><span class="w"> </span><span class="n">cur_section</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">k</span><span class="p">);</span>
+<a id="line-3459" name="line-3459"></a><span class="w"> </span><span class="cm">/* only add to list if we haven&#39;t seen it before */</span>
+<a id="line-3460" name="line-3460"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">main_hash</span><span class="p">,</span><span class="w"> </span><span class="n">full</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3461" name="line-3461"></a><span class="w"> </span><span class="n">cur_section</span><span class="o">-&gt;</span><span class="n">keys</span><span class="w"> </span><span class="o">=</span>
+<a id="line-3462" name="line-3462"></a><span class="w"> </span><span class="n">g_list_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">cur_section</span><span class="o">-&gt;</span><span class="n">keys</span><span class="p">,</span><span class="w"> </span><span class="n">k</span><span class="p">);</span>
+<a id="line-3463" name="line-3463"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3464" name="line-3464"></a><span class="w"> </span><span class="cm">/* later duplicates override earlier ones */</span>
+<a id="line-3465" name="line-3465"></a><span class="w"> </span><span class="n">g_hash_table_replace</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">main_hash</span><span class="p">,</span>
+<a id="line-3466" name="line-3466"></a><span class="w"> </span><span class="n">full</span><span class="p">,</span><span class="w"> </span><span class="n">val</span><span class="p">);</span>
+<a id="line-3467" name="line-3467"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3468" name="line-3468"></a><span class="p">}</span>
+<a id="line-3469" name="line-3469"></a>
+<a id="line-3470" name="line-3470"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-3471" name="line-3471"></a><span class="n">setup_type</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">)</span>
+<a id="line-3472" name="line-3472"></a><span class="p">{</span>
+<a id="line-3473" name="line-3473"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">main_hash</span><span class="p">,</span>
+<a id="line-3474" name="line-3474"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE</span><span class="p">);</span>
+<a id="line-3475" name="line-3475"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">uri</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3476" name="line-3476"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">base</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_path_get_basename</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">);</span>
+<a id="line-3477" name="line-3477"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">base</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-3478" name="line-3478"></a><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">base</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;.directory&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3479" name="line-3479"></a><span class="w"> </span><span class="cm">/* This gotta be a directory */</span>
+<a id="line-3480" name="line-3480"></a><span class="w"> </span><span class="n">g_hash_table_replace</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">main_hash</span><span class="p">,</span>
+<a id="line-3481" name="line-3481"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_DESKTOP_ITEM_TYPE</span><span class="p">),</span>
+<a id="line-3482" name="line-3482"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Directory&quot;</span><span class="p">));</span>
+<a id="line-3483" name="line-3483"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">keys</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span>
+<a id="line-3484" name="line-3484"></a><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">keys</span><span class="p">,</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_DESKTOP_ITEM_TYPE</span><span class="p">));</span>
+<a id="line-3485" name="line-3485"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE_DIRECTORY</span><span class="p">;</span>
+<a id="line-3486" name="line-3486"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3487" name="line-3487"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE_NULL</span><span class="p">;</span>
+<a id="line-3488" name="line-3488"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3489" name="line-3489"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">base</span><span class="p">);</span>
+<a id="line-3490" name="line-3490"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3491" name="line-3491"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">type_from_string</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="p">);</span>
+<a id="line-3492" name="line-3492"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3493" name="line-3493"></a><span class="p">}</span>
+<a id="line-3494" name="line-3494"></a>
+<a id="line-3495" name="line-3495"></a><span class="cm">/* fallback to find something suitable for C locale */</span>
+<a id="line-3496" name="line-3496"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-3497" name="line-3497"></a><span class="hll"><span class="n">try_english_key</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="p">)</span><span class="error2">&lt;--- Parameter 'item' can be declared as pointer to const</span>
+</span><a id="line-3498" name="line-3498"></a><span class="p">{</span>
+<a id="line-3499" name="line-3499"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">;</span>
+<a id="line-3500" name="line-3500"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">locales</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">&quot;en_US&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;en_GB&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;en_AU&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;en&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="p">};</span>
+<a id="line-3501" name="line-3501"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-3502" name="line-3502"></a>
+<a id="line-3503" name="line-3503"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3504" name="line-3504"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">locales</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3505" name="line-3505"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">lookup_locale</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="n">locales</span><span class="p">[</span><span class="n">i</span><span class="p">]));</span>
+<a id="line-3506" name="line-3506"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3507" name="line-3507"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3508" name="line-3508"></a><span class="w"> </span><span class="cm">/* We need a 7-bit ascii string, so whack all</span>
+<a id="line-3509" name="line-3509"></a><span class="cm"> * above 127 chars */</span>
+<a id="line-3510" name="line-3510"></a><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">;</span>
+<a id="line-3511" name="line-3511"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">str</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">;</span><span class="w"> </span><span class="n">p</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3512" name="line-3512"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">p</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">127</span><span class="p">)</span>
+<a id="line-3513" name="line-3513"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;?&#39;</span><span class="p">;</span>
+<a id="line-3514" name="line-3514"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3515" name="line-3515"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3516" name="line-3516"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">str</span><span class="p">;</span>
+<a id="line-3517" name="line-3517"></a><span class="p">}</span>
+<a id="line-3518" name="line-3518"></a>
+<a id="line-3519" name="line-3519"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-3520" name="line-3520"></a><span class="n">sanitize</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">)</span>
+<a id="line-3521" name="line-3521"></a><span class="p">{</span>
+<a id="line-3522" name="line-3522"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">type</span><span class="p">;</span>
+<a id="line-3523" name="line-3523"></a>
+<a id="line-3524" name="line-3524"></a><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">lookup</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE</span><span class="p">);</span>
+<a id="line-3525" name="line-3525"></a>
+<a id="line-3526" name="line-3526"></a><span class="w"> </span><span class="cm">/* understand old mate style url exec thingies */</span>
+<a id="line-3527" name="line-3527"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;URL&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3528" name="line-3528"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">exec</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">lookup</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_EXEC</span><span class="p">);</span>
+<a id="line-3529" name="line-3529"></a><span class="w"> </span><span class="n">set</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Link&quot;</span><span class="p">);</span>
+<a id="line-3530" name="line-3530"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">exec</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3531" name="line-3531"></a><span class="w"> </span><span class="cm">/* Note, this must be in this order */</span>
+<a id="line-3532" name="line-3532"></a><span class="w"> </span><span class="n">set</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_URL</span><span class="p">,</span><span class="w"> </span><span class="n">exec</span><span class="p">);</span>
+<a id="line-3533" name="line-3533"></a><span class="w"> </span><span class="n">set</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_EXEC</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-3534" name="line-3534"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3535" name="line-3535"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3536" name="line-3536"></a>
+<a id="line-3537" name="line-3537"></a><span class="w"> </span><span class="cm">/* we make sure we have Name, Encoding and Version */</span>
+<a id="line-3538" name="line-3538"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">lookup</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_NAME</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3539" name="line-3539"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">try_english_key</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_NAME</span><span class="p">);</span>
+<a id="line-3540" name="line-3540"></a><span class="w"> </span><span class="cm">/* If no name, use the basename */</span>
+<a id="line-3541" name="line-3541"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">uri</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-3542" name="line-3542"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_path_get_basename</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">);</span>
+<a id="line-3543" name="line-3543"></a><span class="w"> </span><span class="cm">/* If no uri either, use same default as mate_desktop_item_new */</span>
+<a id="line-3544" name="line-3544"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3545" name="line-3545"></a><span class="w"> </span><span class="cm">/* Translators: the &quot;name&quot; mentioned here is the name of</span>
+<a id="line-3546" name="line-3546"></a><span class="cm"> * an application or a document */</span>
+<a id="line-3547" name="line-3547"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;No name&quot;</span><span class="p">));</span>
+<a id="line-3548" name="line-3548"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3549" name="line-3549"></a><span class="w"> </span><span class="n">g_hash_table_replace</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">main_hash</span><span class="p">,</span>
+<a id="line-3550" name="line-3550"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_DESKTOP_ITEM_NAME</span><span class="p">),</span>
+<a id="line-3551" name="line-3551"></a><span class="w"> </span><span class="n">name</span><span class="p">);</span>
+<a id="line-3552" name="line-3552"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">keys</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span>
+<a id="line-3553" name="line-3553"></a><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">keys</span><span class="p">,</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_DESKTOP_ITEM_NAME</span><span class="p">));</span>
+<a id="line-3554" name="line-3554"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3555" name="line-3555"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">lookup</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ENCODING</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3556" name="line-3556"></a><span class="w"> </span><span class="cm">/* We store everything in UTF-8 so write that down */</span>
+<a id="line-3557" name="line-3557"></a><span class="w"> </span><span class="n">g_hash_table_replace</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">main_hash</span><span class="p">,</span>
+<a id="line-3558" name="line-3558"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_DESKTOP_ITEM_ENCODING</span><span class="p">),</span>
+<a id="line-3559" name="line-3559"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;UTF-8&quot;</span><span class="p">));</span>
+<a id="line-3560" name="line-3560"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">keys</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span>
+<a id="line-3561" name="line-3561"></a><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">keys</span><span class="p">,</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_DESKTOP_ITEM_ENCODING</span><span class="p">));</span>
+<a id="line-3562" name="line-3562"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3563" name="line-3563"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">lookup</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_VERSION</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3564" name="line-3564"></a><span class="w"> </span><span class="cm">/* this is the version that we follow, so write it down */</span>
+<a id="line-3565" name="line-3565"></a><span class="w"> </span><span class="n">g_hash_table_replace</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">main_hash</span><span class="p">,</span>
+<a id="line-3566" name="line-3566"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_DESKTOP_ITEM_VERSION</span><span class="p">),</span>
+<a id="line-3567" name="line-3567"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;1.0&quot;</span><span class="p">));</span>
+<a id="line-3568" name="line-3568"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">keys</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span>
+<a id="line-3569" name="line-3569"></a><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">keys</span><span class="p">,</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_DESKTOP_ITEM_VERSION</span><span class="p">));</span>
+<a id="line-3570" name="line-3570"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3571" name="line-3571"></a><span class="p">}</span>
+<a id="line-3572" name="line-3572"></a>
+<a id="line-3573" name="line-3573"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3574" name="line-3574"></a><span class="w"> </span><span class="n">FirstBrace</span><span class="p">,</span>
+<a id="line-3575" name="line-3575"></a><span class="w"> </span><span class="n">OnSecHeader</span><span class="p">,</span>
+<a id="line-3576" name="line-3576"></a><span class="w"> </span><span class="n">IgnoreToEOL</span><span class="p">,</span>
+<a id="line-3577" name="line-3577"></a><span class="w"> </span><span class="n">IgnoreToEOLFirst</span><span class="p">,</span>
+<a id="line-3578" name="line-3578"></a><span class="w"> </span><span class="n">KeyDef</span><span class="p">,</span>
+<a id="line-3579" name="line-3579"></a><span class="w"> </span><span class="n">KeyDefOnKey</span><span class="p">,</span>
+<a id="line-3580" name="line-3580"></a><span class="w"> </span><span class="n">KeyValue</span>
+<a id="line-3581" name="line-3581"></a><span class="p">};</span>
+<a id="line-3582" name="line-3582"></a>
+<a id="line-3583" name="line-3583"></a><span class="k">static</span><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span>
+<a id="line-3584" name="line-3584"></a><span class="nf">ditem_load</span><span class="w"> </span><span class="p">(</span><span class="n">ReadBuf</span><span class="w"> </span><span class="o">*</span><span class="n">rb</span><span class="p">,</span>
+<a id="line-3585" name="line-3585"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">no_translations</span><span class="p">,</span>
+<a id="line-3586" name="line-3586"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-3587" name="line-3587"></a><span class="p">{</span>
+<a id="line-3588" name="line-3588"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">state</span><span class="p">;</span>
+<a id="line-3589" name="line-3589"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">CharBuffer</span><span class="w"> </span><span class="p">[</span><span class="mi">1024</span><span class="p">];</span>
+<a id="line-3590" name="line-3590"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">next</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CharBuffer</span><span class="p">;</span>
+<a id="line-3591" name="line-3591"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">c</span><span class="p">;</span>
+<a id="line-3592" name="line-3592"></a><span class="w"> </span><span class="n">Encoding</span><span class="w"> </span><span class="n">encoding</span><span class="p">;</span>
+<a id="line-3593" name="line-3593"></a><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">;</span>
+<a id="line-3594" name="line-3594"></a><span class="w"> </span><span class="n">Section</span><span class="w"> </span><span class="o">*</span><span class="n">cur_section</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3595" name="line-3595"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3596" name="line-3596"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">old_kde</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-3597" name="line-3597"></a>
+<a id="line-3598" name="line-3598"></a><span class="w"> </span><span class="n">encoding</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_encoding</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="p">);</span>
+<a id="line-3599" name="line-3599"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">encoding</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">ENCODING_UNKNOWN</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3600" name="line-3600"></a><span class="w"> </span><span class="cm">/* spec says, don&#39;t read this file */</span>
+<a id="line-3601" name="line-3601"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span>
+<a id="line-3602" name="line-3602"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ERROR</span><span class="p">,</span>
+<a id="line-3603" name="line-3603"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ERROR_UNKNOWN_ENCODING</span><span class="p">,</span>
+<a id="line-3604" name="line-3604"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Unknown encoding of: %s&quot;</span><span class="p">),</span>
+<a id="line-3605" name="line-3605"></a><span class="w"> </span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">uri</span><span class="p">);</span>
+<a id="line-3606" name="line-3606"></a><span class="w"> </span><span class="n">readbuf_close</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="p">);</span>
+<a id="line-3607" name="line-3607"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3608" name="line-3608"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3609" name="line-3609"></a>
+<a id="line-3610" name="line-3610"></a><span class="w"> </span><span class="cm">/* Rewind since get_encoding goes through the file */</span>
+<a id="line-3611" name="line-3611"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">readbuf_rewind</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3612" name="line-3612"></a><span class="w"> </span><span class="n">readbuf_close</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="p">);</span>
+<a id="line-3613" name="line-3613"></a><span class="w"> </span><span class="cm">/* spec says, don&#39;t read this file */</span>
+<a id="line-3614" name="line-3614"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3615" name="line-3615"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3616" name="line-3616"></a>
+<a id="line-3617" name="line-3617"></a><span class="w"> </span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-3618" name="line-3618"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">modified</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-3619" name="line-3619"></a>
+<a id="line-3620" name="line-3620"></a><span class="w"> </span><span class="cm">/* Note: location and mtime are filled in by the new_from_file</span>
+<a id="line-3621" name="line-3621"></a><span class="cm"> * function since it has those values */</span>
+<a id="line-3622" name="line-3622"></a>
+<a id="line-3623" name="line-3623"></a><span class="cp">#define OVERFLOW (next == &amp;CharBuffer [sizeof(CharBuffer)-1])</span>
+<a id="line-3624" name="line-3624"></a>
+<a id="line-3625" name="line-3625"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FirstBrace</span><span class="p">;</span>
+<a id="line-3626" name="line-3626"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">((</span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">readbuf_getc</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="p">))</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">EOF</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3627" name="line-3627"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;\r&#39;</span><span class="p">)</span><span class="w"> </span><span class="cm">/* Ignore Carriage Return */</span>
+<a id="line-3628" name="line-3628"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span>
+<a id="line-3629" name="line-3629"></a>
+<a id="line-3630" name="line-3630"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3631" name="line-3631"></a>
+<a id="line-3632" name="line-3632"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">OnSecHeader</span><span class="p">:</span>
+<a id="line-3633" name="line-3633"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;]&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">OVERFLOW</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3634" name="line-3634"></a><span class="w"> </span><span class="o">*</span><span class="n">next</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">;</span>
+<a id="line-3635" name="line-3635"></a><span class="w"> </span><span class="n">next</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CharBuffer</span><span class="p">;</span>
+<a id="line-3636" name="line-3636"></a>
+<a id="line-3637" name="line-3637"></a><span class="w"> </span><span class="cm">/* keys were inserted in reverse */</span>
+<a id="line-3638" name="line-3638"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">cur_section</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-3639" name="line-3639"></a><span class="w"> </span><span class="n">cur_section</span><span class="o">-&gt;</span><span class="n">keys</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3640" name="line-3640"></a><span class="w"> </span><span class="n">cur_section</span><span class="o">-&gt;</span><span class="n">keys</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_reverse</span>
+<a id="line-3641" name="line-3641"></a><span class="w"> </span><span class="p">(</span><span class="n">cur_section</span><span class="o">-&gt;</span><span class="n">keys</span><span class="p">);</span>
+<a id="line-3642" name="line-3642"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3643" name="line-3643"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">CharBuffer</span><span class="p">,</span>
+<a id="line-3644" name="line-3644"></a><span class="w"> </span><span class="s">&quot;KDE Desktop Entry&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3645" name="line-3645"></a><span class="w"> </span><span class="cm">/* Main section */</span>
+<a id="line-3646" name="line-3646"></a><span class="w"> </span><span class="n">cur_section</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3647" name="line-3647"></a><span class="w"> </span><span class="n">old_kde</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-3648" name="line-3648"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">CharBuffer</span><span class="p">,</span>
+<a id="line-3649" name="line-3649"></a><span class="w"> </span><span class="s">&quot;Desktop Entry&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3650" name="line-3650"></a><span class="w"> </span><span class="cm">/* Main section */</span>
+<a id="line-3651" name="line-3651"></a><span class="w"> </span><span class="n">cur_section</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3652" name="line-3652"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3653" name="line-3653"></a><span class="w"> </span><span class="n">cur_section</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new0</span><span class="w"> </span><span class="p">(</span><span class="n">Section</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-3654" name="line-3654"></a><span class="w"> </span><span class="n">cur_section</span><span class="o">-&gt;</span><span class="n">name</span><span class="w"> </span><span class="o">=</span>
+<a id="line-3655" name="line-3655"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">CharBuffer</span><span class="p">);</span>
+<a id="line-3656" name="line-3656"></a><span class="w"> </span><span class="n">cur_section</span><span class="o">-&gt;</span><span class="n">keys</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3657" name="line-3657"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">sections</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span>
+<a id="line-3658" name="line-3658"></a><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">sections</span><span class="p">,</span><span class="w"> </span><span class="n">cur_section</span><span class="p">);</span>
+<a id="line-3659" name="line-3659"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3660" name="line-3660"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">IgnoreToEOL</span><span class="p">;</span>
+<a id="line-3661" name="line-3661"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;[&#39;</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3662" name="line-3662"></a><span class="w"> </span><span class="cm">/* FIXME: probably error out instead of ignoring this */</span>
+<a id="line-3663" name="line-3663"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3664" name="line-3664"></a><span class="w"> </span><span class="o">*</span><span class="n">next</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">c</span><span class="p">;</span>
+<a id="line-3665" name="line-3665"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3666" name="line-3666"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-3667" name="line-3667"></a>
+<a id="line-3668" name="line-3668"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">IgnoreToEOL</span><span class="p">:</span>
+<a id="line-3669" name="line-3669"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">IgnoreToEOLFirst</span><span class="p">:</span>
+<a id="line-3670" name="line-3670"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;\n&#39;</span><span class="p">){</span>
+<a id="line-3671" name="line-3671"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">IgnoreToEOLFirst</span><span class="p">)</span>
+<a id="line-3672" name="line-3672"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FirstBrace</span><span class="p">;</span>
+<a id="line-3673" name="line-3673"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-3674" name="line-3674"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">KeyDef</span><span class="p">;</span>
+<a id="line-3675" name="line-3675"></a><span class="w"> </span><span class="n">next</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CharBuffer</span><span class="p">;</span>
+<a id="line-3676" name="line-3676"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3677" name="line-3677"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-3678" name="line-3678"></a>
+<a id="line-3679" name="line-3679"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">FirstBrace</span><span class="p">:</span>
+<a id="line-3680" name="line-3680"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">KeyDef</span><span class="p">:</span>
+<a id="line-3681" name="line-3681"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">KeyDefOnKey</span><span class="p">:</span>
+<a id="line-3682" name="line-3682"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;#&#39;</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3683" name="line-3683"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">FirstBrace</span><span class="p">)</span>
+<a id="line-3684" name="line-3684"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">IgnoreToEOLFirst</span><span class="p">;</span>
+<a id="line-3685" name="line-3685"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-3686" name="line-3686"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">IgnoreToEOL</span><span class="p">;</span>
+<a id="line-3687" name="line-3687"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-3688" name="line-3688"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3689" name="line-3689"></a>
+<a id="line-3690" name="line-3690"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;[&#39;</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">KeyDefOnKey</span><span class="p">){</span>
+<a id="line-3691" name="line-3691"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">OnSecHeader</span><span class="p">;</span>
+<a id="line-3692" name="line-3692"></a><span class="w"> </span><span class="n">next</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CharBuffer</span><span class="p">;</span>
+<a id="line-3693" name="line-3693"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">key</span><span class="p">);</span>
+<a id="line-3694" name="line-3694"></a><span class="w"> </span><span class="n">key</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3695" name="line-3695"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-3696" name="line-3696"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3697" name="line-3697"></a><span class="w"> </span><span class="cm">/* On first pass, don&#39;t allow dangling keys */</span>
+<a id="line-3698" name="line-3698"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">FirstBrace</span><span class="p">)</span>
+<a id="line-3699" name="line-3699"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-3700" name="line-3700"></a>
+<a id="line-3701" name="line-3701"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39; &#39;</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">KeyDefOnKey</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;\t&#39;</span><span class="p">)</span>
+<a id="line-3702" name="line-3702"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-3703" name="line-3703"></a>
+<a id="line-3704" name="line-3704"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;\n&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">OVERFLOW</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Abort Definition */</span>
+<a id="line-3705" name="line-3705"></a><span class="w"> </span><span class="n">next</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CharBuffer</span><span class="p">;</span>
+<a id="line-3706" name="line-3706"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">KeyDef</span><span class="p">;</span>
+<a id="line-3707" name="line-3707"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-3708" name="line-3708"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3709" name="line-3709"></a>
+<a id="line-3710" name="line-3710"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;=&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">OVERFLOW</span><span class="p">){</span>
+<a id="line-3711" name="line-3711"></a><span class="w"> </span><span class="o">*</span><span class="n">next</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">;</span>
+<a id="line-3712" name="line-3712"></a>
+<a id="line-3713" name="line-3713"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">key</span><span class="p">);</span>
+<a id="line-3714" name="line-3714"></a><span class="w"> </span><span class="n">key</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">CharBuffer</span><span class="p">);</span>
+<a id="line-3715" name="line-3715"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">KeyValue</span><span class="p">;</span>
+<a id="line-3716" name="line-3716"></a><span class="w"> </span><span class="n">next</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CharBuffer</span><span class="p">;</span>
+<a id="line-3717" name="line-3717"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3718" name="line-3718"></a><span class="w"> </span><span class="o">*</span><span class="n">next</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">c</span><span class="p">;</span>
+<a id="line-3719" name="line-3719"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">KeyDefOnKey</span><span class="p">;</span>
+<a id="line-3720" name="line-3720"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3721" name="line-3721"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-3722" name="line-3722"></a>
+<a id="line-3723" name="line-3723"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">KeyValue</span><span class="p">:</span>
+<a id="line-3724" name="line-3724"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">OVERFLOW</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;\n&#39;</span><span class="p">){</span>
+<a id="line-3725" name="line-3725"></a><span class="w"> </span><span class="o">*</span><span class="n">next</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">;</span>
+<a id="line-3726" name="line-3726"></a>
+<a id="line-3727" name="line-3727"></a><span class="w"> </span><span class="n">insert_key</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">cur_section</span><span class="p">,</span><span class="w"> </span><span class="n">encoding</span><span class="p">,</span>
+<a id="line-3728" name="line-3728"></a><span class="w"> </span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="n">CharBuffer</span><span class="p">,</span><span class="w"> </span><span class="n">old_kde</span><span class="p">,</span>
+<a id="line-3729" name="line-3729"></a><span class="w"> </span><span class="n">no_translations</span><span class="p">);</span>
+<a id="line-3730" name="line-3730"></a>
+<a id="line-3731" name="line-3731"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">key</span><span class="p">);</span>
+<a id="line-3732" name="line-3732"></a><span class="w"> </span><span class="n">key</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3733" name="line-3733"></a>
+<a id="line-3734" name="line-3734"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;\n&#39;</span><span class="p">)</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">KeyDef</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="n">IgnoreToEOL</span><span class="p">;</span>
+<a id="line-3735" name="line-3735"></a><span class="w"> </span><span class="n">next</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CharBuffer</span><span class="p">;</span>
+<a id="line-3736" name="line-3736"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3737" name="line-3737"></a><span class="w"> </span><span class="o">*</span><span class="n">next</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">c</span><span class="p">;</span>
+<a id="line-3738" name="line-3738"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3739" name="line-3739"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-3740" name="line-3740"></a>
+<a id="line-3741" name="line-3741"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="cm">/* switch */</span>
+<a id="line-3742" name="line-3742"></a>
+<a id="line-3743" name="line-3743"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="cm">/* while ((c = getc_unlocked (f)) != EOF) */</span>
+<a id="line-3744" name="line-3744"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">EOF</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">KeyValue</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3745" name="line-3745"></a><span class="w"> </span><span class="o">*</span><span class="n">next</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">;</span>
+<a id="line-3746" name="line-3746"></a>
+<a id="line-3747" name="line-3747"></a><span class="w"> </span><span class="n">insert_key</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">cur_section</span><span class="p">,</span><span class="w"> </span><span class="n">encoding</span><span class="p">,</span>
+<a id="line-3748" name="line-3748"></a><span class="w"> </span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="n">CharBuffer</span><span class="p">,</span><span class="w"> </span><span class="n">old_kde</span><span class="p">,</span>
+<a id="line-3749" name="line-3749"></a><span class="w"> </span><span class="n">no_translations</span><span class="p">);</span>
+<a id="line-3750" name="line-3750"></a>
+<a id="line-3751" name="line-3751"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">key</span><span class="p">);</span>
+<a id="line-3752" name="line-3752"></a><span class="w"> </span><span class="n">key</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3753" name="line-3753"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3754" name="line-3754"></a>
+<a id="line-3755" name="line-3755"></a><span class="cp">#undef OVERFLOW</span>
+<a id="line-3756" name="line-3756"></a>
+<a id="line-3757" name="line-3757"></a><span class="w"> </span><span class="cm">/* keys were inserted in reverse */</span>
+<a id="line-3758" name="line-3758"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">cur_section</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-3759" name="line-3759"></a><span class="w"> </span><span class="n">cur_section</span><span class="o">-&gt;</span><span class="n">keys</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3760" name="line-3760"></a><span class="w"> </span><span class="n">cur_section</span><span class="o">-&gt;</span><span class="n">keys</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_reverse</span><span class="w"> </span><span class="p">(</span><span class="n">cur_section</span><span class="o">-&gt;</span><span class="n">keys</span><span class="p">);</span>
+<a id="line-3761" name="line-3761"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3762" name="line-3762"></a><span class="w"> </span><span class="cm">/* keys were inserted in reverse */</span>
+<a id="line-3763" name="line-3763"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">keys</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_reverse</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">keys</span><span class="p">);</span>
+<a id="line-3764" name="line-3764"></a><span class="w"> </span><span class="cm">/* sections were inserted in reverse */</span>
+<a id="line-3765" name="line-3765"></a><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">sections</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_reverse</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">sections</span><span class="p">);</span>
+<a id="line-3766" name="line-3766"></a>
+<a id="line-3767" name="line-3767"></a><span class="w"> </span><span class="cm">/* sanitize some things */</span>
+<a id="line-3768" name="line-3768"></a><span class="w"> </span><span class="n">sanitize</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">uri</span><span class="p">);</span>
+<a id="line-3769" name="line-3769"></a>
+<a id="line-3770" name="line-3770"></a><span class="w"> </span><span class="cm">/* make sure that we set up the type */</span>
+<a id="line-3771" name="line-3771"></a><span class="w"> </span><span class="n">setup_type</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">rb</span><span class="o">-&gt;</span><span class="n">uri</span><span class="p">);</span>
+<a id="line-3772" name="line-3772"></a>
+<a id="line-3773" name="line-3773"></a><span class="w"> </span><span class="n">readbuf_close</span><span class="w"> </span><span class="p">(</span><span class="n">rb</span><span class="p">);</span>
+<a id="line-3774" name="line-3774"></a>
+<a id="line-3775" name="line-3775"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">item</span><span class="p">;</span>
+<a id="line-3776" name="line-3776"></a><span class="p">}</span>
+<a id="line-3777" name="line-3777"></a>
+<a id="line-3778" name="line-3778"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">stream_printf</span><span class="w"> </span><span class="p">(</span><span class="n">GFileOutputStream</span><span class="w"> </span><span class="o">*</span><span class="n">stream</span><span class="p">,</span>
+<a id="line-3779" name="line-3779"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="p">...)</span><span class="w"> </span><span class="n">G_GNUC_PRINTF</span><span class="w"> </span><span class="p">(</span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">);</span>
+<a id="line-3780" name="line-3780"></a>
+<a id="line-3781" name="line-3781"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-3782" name="line-3782"></a><span class="nf">stream_printf</span><span class="w"> </span><span class="p">(</span><span class="n">GFileOutputStream</span><span class="w"> </span><span class="o">*</span><span class="n">stream</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="p">...)</span>
+<a id="line-3783" name="line-3783"></a><span class="p">{</span>
+<a id="line-3784" name="line-3784"></a><span class="w"> </span><span class="kt">va_list</span><span class="w"> </span><span class="n">args</span><span class="p">;</span>
+<a id="line-3785" name="line-3785"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span>
+<a id="line-3786" name="line-3786"></a>
+<a id="line-3787" name="line-3787"></a><span class="w"> </span><span class="n">va_start</span><span class="w"> </span><span class="p">(</span><span class="n">args</span><span class="p">,</span><span class="w"> </span><span class="n">format</span><span class="p">);</span>
+<a id="line-3788" name="line-3788"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_vprintf</span><span class="w"> </span><span class="p">(</span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="n">args</span><span class="p">);</span>
+<a id="line-3789" name="line-3789"></a><span class="w"> </span><span class="n">va_end</span><span class="w"> </span><span class="p">(</span><span class="n">args</span><span class="p">);</span>
+<a id="line-3790" name="line-3790"></a>
+<a id="line-3791" name="line-3791"></a><span class="w"> </span><span class="cm">/* FIXME: what about errors */</span>
+<a id="line-3792" name="line-3792"></a><span class="w"> </span><span class="n">g_output_stream_write</span><span class="w"> </span><span class="p">(</span><span class="n">G_OUTPUT_STREAM</span><span class="w"> </span><span class="p">(</span><span class="n">stream</span><span class="p">),</span><span class="w"> </span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">),</span>
+<a id="line-3793" name="line-3793"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-3794" name="line-3794"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">);</span>
+<a id="line-3795" name="line-3795"></a><span class="p">}</span>
+<a id="line-3796" name="line-3796"></a>
+<a id="line-3797" name="line-3797"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-3798" name="line-3798"></a><span class="nf">dump_section</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">GFileOutputStream</span><span class="w"> </span><span class="o">*</span><span class="n">stream</span><span class="p">,</span><span class="w"> </span><span class="n">Section</span><span class="w"> </span><span class="o">*</span><span class="n">section</span><span class="p">)</span>
+<a id="line-3799" name="line-3799"></a><span class="p">{</span>
+<a id="line-3800" name="line-3800"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">li</span><span class="p">;</span>
+<a id="line-3801" name="line-3801"></a>
+<a id="line-3802" name="line-3802"></a><span class="w"> </span><span class="n">stream_printf</span><span class="w"> </span><span class="p">(</span><span class="n">stream</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;[%s]</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">section</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">);</span>
+<a id="line-3803" name="line-3803"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">section</span><span class="o">-&gt;</span><span class="n">keys</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3804" name="line-3804"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-3805" name="line-3805"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">full</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;%s/%s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">section</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">);</span>
+<a id="line-3806" name="line-3806"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">main_hash</span><span class="p">,</span><span class="w"> </span><span class="n">full</span><span class="p">);</span>
+<a id="line-3807" name="line-3807"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3808" name="line-3808"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">escape_string_and_dup</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-3809" name="line-3809"></a><span class="w"> </span><span class="n">stream_printf</span><span class="w"> </span><span class="p">(</span><span class="n">stream</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;%s=%s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="n">val</span><span class="p">);</span>
+<a id="line-3810" name="line-3810"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">val</span><span class="p">);</span>
+<a id="line-3811" name="line-3811"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3812" name="line-3812"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">full</span><span class="p">);</span>
+<a id="line-3813" name="line-3813"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3814" name="line-3814"></a><span class="p">}</span>
+<a id="line-3815" name="line-3815"></a>
+<a id="line-3816" name="line-3816"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-3817" name="line-3817"></a><span class="nf">ditem_save</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-3818" name="line-3818"></a><span class="p">{</span>
+<a id="line-3819" name="line-3819"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">li</span><span class="p">;</span>
+<a id="line-3820" name="line-3820"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span>
+<a id="line-3821" name="line-3821"></a><span class="w"> </span><span class="n">GFileOutputStream</span><span class="w"> </span><span class="o">*</span><span class="n">stream</span><span class="p">;</span>
+<a id="line-3822" name="line-3822"></a>
+<a id="line-3823" name="line-3823"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_new_for_uri</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">);</span>
+<a id="line-3824" name="line-3824"></a><span class="w"> </span><span class="n">stream</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_replace</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">G_FILE_CREATE_NONE</span><span class="p">,</span>
+<a id="line-3825" name="line-3825"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-3826" name="line-3826"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">stream</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-3827" name="line-3827"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-3828" name="line-3828"></a>
+<a id="line-3829" name="line-3829"></a><span class="w"> </span><span class="n">stream_printf</span><span class="w"> </span><span class="p">(</span><span class="n">stream</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;[Desktop Entry]</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">);</span>
+<a id="line-3830" name="line-3830"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">keys</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3831" name="line-3831"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-3832" name="line-3832"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">main_hash</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">);</span>
+<a id="line-3833" name="line-3833"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3834" name="line-3834"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">escape_string_and_dup</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-3835" name="line-3835"></a><span class="w"> </span><span class="n">stream_printf</span><span class="w"> </span><span class="p">(</span><span class="n">stream</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;%s=%s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="n">val</span><span class="p">);</span>
+<a id="line-3836" name="line-3836"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">val</span><span class="p">);</span>
+<a id="line-3837" name="line-3837"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3838" name="line-3838"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3839" name="line-3839"></a>
+<a id="line-3840" name="line-3840"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="o">-&gt;</span><span class="n">sections</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-3841" name="line-3841"></a><span class="w"> </span><span class="n">stream_printf</span><span class="w"> </span><span class="p">(</span><span class="n">stream</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">);</span>
+<a id="line-3842" name="line-3842"></a>
+<a id="line-3843" name="line-3843"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">item</span><span class="o">-&gt;</span><span class="n">sections</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">li</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3844" name="line-3844"></a><span class="w"> </span><span class="n">Section</span><span class="w"> </span><span class="o">*</span><span class="n">section</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">li</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-3845" name="line-3845"></a>
+<a id="line-3846" name="line-3846"></a><span class="w"> </span><span class="cm">/* Don&#39;t write empty sections */</span>
+<a id="line-3847" name="line-3847"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">section</span><span class="o">-&gt;</span><span class="n">keys</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-3848" name="line-3848"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span>
+<a id="line-3849" name="line-3849"></a>
+<a id="line-3850" name="line-3850"></a><span class="w"> </span><span class="n">dump_section</span><span class="w"> </span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">stream</span><span class="p">,</span><span class="w"> </span><span class="n">section</span><span class="p">);</span>
+<a id="line-3851" name="line-3851"></a>
+<a id="line-3852" name="line-3852"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">li</span><span class="o">-&gt;</span><span class="n">next</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-3853" name="line-3853"></a><span class="w"> </span><span class="n">stream_printf</span><span class="w"> </span><span class="p">(</span><span class="n">stream</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">);</span>
+<a id="line-3854" name="line-3854"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3855" name="line-3855"></a>
+<a id="line-3856" name="line-3856"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">stream</span><span class="p">);</span>
+<a id="line-3857" name="line-3857"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-3858" name="line-3858"></a>
+<a id="line-3859" name="line-3859"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-3860" name="line-3860"></a><span class="p">}</span>
+<a id="line-3861" name="line-3861"></a>
+<a id="line-3862" name="line-3862"></a><span class="k">static</span><span class="w"> </span><span class="n">gpointer</span>
+<a id="line-3863" name="line-3863"></a><span class="nf">_mate_desktop_item_copy</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="n">boxed</span><span class="p">)</span>
+<a id="line-3864" name="line-3864"></a><span class="p">{</span>
+<a id="line-3865" name="line-3865"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mate_desktop_item_copy</span><span class="w"> </span><span class="p">(</span><span class="n">boxed</span><span class="p">);</span>
+<a id="line-3866" name="line-3866"></a><span class="p">}</span>
+<a id="line-3867" name="line-3867"></a>
+<a id="line-3868" name="line-3868"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-3869" name="line-3869"></a><span class="nf">_mate_desktop_item_free</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="n">boxed</span><span class="p">)</span>
+<a id="line-3870" name="line-3870"></a><span class="p">{</span>
+<a id="line-3871" name="line-3871"></a><span class="w"> </span><span class="n">mate_desktop_item_unref</span><span class="w"> </span><span class="p">(</span><span class="n">boxed</span><span class="p">);</span>
+<a id="line-3872" name="line-3872"></a><span class="p">}</span>
+<a id="line-3873" name="line-3873"></a>
+<a id="line-3874" name="line-3874"></a><span class="n">GType</span>
+<a id="line-3875" name="line-3875"></a><span class="nf">mate_desktop_item_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-3876" name="line-3876"></a><span class="p">{</span>
+<a id="line-3877" name="line-3877"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">GType</span><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-3878" name="line-3878"></a>
+<a id="line-3879" name="line-3879"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3880" name="line-3880"></a><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_boxed_type_register_static</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;MateDesktopItem&quot;</span><span class="p">,</span>
+<a id="line-3881" name="line-3881"></a><span class="w"> </span><span class="n">_mate_desktop_item_copy</span><span class="p">,</span>
+<a id="line-3882" name="line-3882"></a><span class="w"> </span><span class="n">_mate_desktop_item_free</span><span class="p">);</span>
+<a id="line-3883" name="line-3883"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3884" name="line-3884"></a>
+<a id="line-3885" name="line-3885"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">type</span><span class="p">;</span>
+<a id="line-3886" name="line-3886"></a><span class="p">}</span>
+<a id="line-3887" name="line-3887"></a>
+<a id="line-3888" name="line-3888"></a><span class="n">GQuark</span>
+<a id="line-3889" name="line-3889"></a><span class="nf">mate_desktop_item_error_quark</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-3890" name="line-3890"></a><span class="p">{</span>
+<a id="line-3891" name="line-3891"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">GQuark</span><span class="w"> </span><span class="n">q</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-3892" name="line-3892"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">q</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-3893" name="line-3893"></a><span class="w"> </span><span class="n">q</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_quark_from_static_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;mate-desktop-item-error-quark&quot;</span><span class="p">);</span>
+<a id="line-3894" name="line-3894"></a>
+<a id="line-3895" name="line-3895"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">q</span><span class="p">;</span>
+<a id="line-3896" name="line-3896"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/14.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/14.html
new file mode 100644
index 0000000..2721e40
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/14.html
@@ -0,0 +1,2941 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/mate-desktop-thumbnail.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-desktop-thumbnail.c</p>
+<a href="14.html#line-27"> missingIncludeSystem 27</a><a href="14.html#line-28"> missingIncludeSystem 28</a><a href="14.html#line-29"> missingIncludeSystem 29</a><a href="14.html#line-31"> missingIncludeSystem 31</a><a href="14.html#line-32"> missingIncludeSystem 32</a><a href="14.html#line-33"> missingIncludeSystem 33</a><a href="14.html#line-62"> unknownMacro 62</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal"> 10</span>
+<span class="normal"> 11</span>
+<span class="normal"> 12</span>
+<span class="normal"> 13</span>
+<span class="normal"> 14</span>
+<span class="normal"> 15</span>
+<span class="normal"> 16</span>
+<span class="normal"> 17</span>
+<span class="normal"> 18</span>
+<span class="normal"> 19</span>
+<span class="normal"> 20</span>
+<span class="normal"> 21</span>
+<span class="normal"> 22</span>
+<span class="normal"> 23</span>
+<span class="normal"> 24</span>
+<span class="normal"> 25</span>
+<span class="normal"> 26</span>
+<span class="normal"> 27</span>
+<span class="normal"> 28</span>
+<span class="normal"> 29</span>
+<span class="normal"> 30</span>
+<span class="normal"> 31</span>
+<span class="normal"> 32</span>
+<span class="normal"> 33</span>
+<span class="normal"> 34</span>
+<span class="normal"> 35</span>
+<span class="normal"> 36</span>
+<span class="normal"> 37</span>
+<span class="normal"> 38</span>
+<span class="normal"> 39</span>
+<span class="normal"> 40</span>
+<span class="normal"> 41</span>
+<span class="normal"> 42</span>
+<span class="normal"> 43</span>
+<span class="normal"> 44</span>
+<span class="normal"> 45</span>
+<span class="normal"> 46</span>
+<span class="normal"> 47</span>
+<span class="normal"> 48</span>
+<span class="normal"> 49</span>
+<span class="normal"> 50</span>
+<span class="normal"> 51</span>
+<span class="normal"> 52</span>
+<span class="normal"> 53</span>
+<span class="normal"> 54</span>
+<span class="normal"> 55</span>
+<span class="normal"> 56</span>
+<span class="normal"> 57</span>
+<span class="normal"> 58</span>
+<span class="normal"> 59</span>
+<span class="normal"> 60</span>
+<span class="normal"> 61</span>
+<span class="normal"> 62</span>
+<span class="normal"> 63</span>
+<span class="normal"> 64</span>
+<span class="normal"> 65</span>
+<span class="normal"> 66</span>
+<span class="normal"> 67</span>
+<span class="normal"> 68</span>
+<span class="normal"> 69</span>
+<span class="normal"> 70</span>
+<span class="normal"> 71</span>
+<span class="normal"> 72</span>
+<span class="normal"> 73</span>
+<span class="normal"> 74</span>
+<span class="normal"> 75</span>
+<span class="normal"> 76</span>
+<span class="normal"> 77</span>
+<span class="normal"> 78</span>
+<span class="normal"> 79</span>
+<span class="normal"> 80</span>
+<span class="normal"> 81</span>
+<span class="normal"> 82</span>
+<span class="normal"> 83</span>
+<span class="normal"> 84</span>
+<span class="normal"> 85</span>
+<span class="normal"> 86</span>
+<span class="normal"> 87</span>
+<span class="normal"> 88</span>
+<span class="normal"> 89</span>
+<span class="normal"> 90</span>
+<span class="normal"> 91</span>
+<span class="normal"> 92</span>
+<span class="normal"> 93</span>
+<span class="normal"> 94</span>
+<span class="normal"> 95</span>
+<span class="normal"> 96</span>
+<span class="normal"> 97</span>
+<span class="normal"> 98</span>
+<span class="normal"> 99</span>
+<span class="normal"> 100</span>
+<span class="normal"> 101</span>
+<span class="normal"> 102</span>
+<span class="normal"> 103</span>
+<span class="normal"> 104</span>
+<span class="normal"> 105</span>
+<span class="normal"> 106</span>
+<span class="normal"> 107</span>
+<span class="normal"> 108</span>
+<span class="normal"> 109</span>
+<span class="normal"> 110</span>
+<span class="normal"> 111</span>
+<span class="normal"> 112</span>
+<span class="normal"> 113</span>
+<span class="normal"> 114</span>
+<span class="normal"> 115</span>
+<span class="normal"> 116</span>
+<span class="normal"> 117</span>
+<span class="normal"> 118</span>
+<span class="normal"> 119</span>
+<span class="normal"> 120</span>
+<span class="normal"> 121</span>
+<span class="normal"> 122</span>
+<span class="normal"> 123</span>
+<span class="normal"> 124</span>
+<span class="normal"> 125</span>
+<span class="normal"> 126</span>
+<span class="normal"> 127</span>
+<span class="normal"> 128</span>
+<span class="normal"> 129</span>
+<span class="normal"> 130</span>
+<span class="normal"> 131</span>
+<span class="normal"> 132</span>
+<span class="normal"> 133</span>
+<span class="normal"> 134</span>
+<span class="normal"> 135</span>
+<span class="normal"> 136</span>
+<span class="normal"> 137</span>
+<span class="normal"> 138</span>
+<span class="normal"> 139</span>
+<span class="normal"> 140</span>
+<span class="normal"> 141</span>
+<span class="normal"> 142</span>
+<span class="normal"> 143</span>
+<span class="normal"> 144</span>
+<span class="normal"> 145</span>
+<span class="normal"> 146</span>
+<span class="normal"> 147</span>
+<span class="normal"> 148</span>
+<span class="normal"> 149</span>
+<span class="normal"> 150</span>
+<span class="normal"> 151</span>
+<span class="normal"> 152</span>
+<span class="normal"> 153</span>
+<span class="normal"> 154</span>
+<span class="normal"> 155</span>
+<span class="normal"> 156</span>
+<span class="normal"> 157</span>
+<span class="normal"> 158</span>
+<span class="normal"> 159</span>
+<span class="normal"> 160</span>
+<span class="normal"> 161</span>
+<span class="normal"> 162</span>
+<span class="normal"> 163</span>
+<span class="normal"> 164</span>
+<span class="normal"> 165</span>
+<span class="normal"> 166</span>
+<span class="normal"> 167</span>
+<span class="normal"> 168</span>
+<span class="normal"> 169</span>
+<span class="normal"> 170</span>
+<span class="normal"> 171</span>
+<span class="normal"> 172</span>
+<span class="normal"> 173</span>
+<span class="normal"> 174</span>
+<span class="normal"> 175</span>
+<span class="normal"> 176</span>
+<span class="normal"> 177</span>
+<span class="normal"> 178</span>
+<span class="normal"> 179</span>
+<span class="normal"> 180</span>
+<span class="normal"> 181</span>
+<span class="normal"> 182</span>
+<span class="normal"> 183</span>
+<span class="normal"> 184</span>
+<span class="normal"> 185</span>
+<span class="normal"> 186</span>
+<span class="normal"> 187</span>
+<span class="normal"> 188</span>
+<span class="normal"> 189</span>
+<span class="normal"> 190</span>
+<span class="normal"> 191</span>
+<span class="normal"> 192</span>
+<span class="normal"> 193</span>
+<span class="normal"> 194</span>
+<span class="normal"> 195</span>
+<span class="normal"> 196</span>
+<span class="normal"> 197</span>
+<span class="normal"> 198</span>
+<span class="normal"> 199</span>
+<span class="normal"> 200</span>
+<span class="normal"> 201</span>
+<span class="normal"> 202</span>
+<span class="normal"> 203</span>
+<span class="normal"> 204</span>
+<span class="normal"> 205</span>
+<span class="normal"> 206</span>
+<span class="normal"> 207</span>
+<span class="normal"> 208</span>
+<span class="normal"> 209</span>
+<span class="normal"> 210</span>
+<span class="normal"> 211</span>
+<span class="normal"> 212</span>
+<span class="normal"> 213</span>
+<span class="normal"> 214</span>
+<span class="normal"> 215</span>
+<span class="normal"> 216</span>
+<span class="normal"> 217</span>
+<span class="normal"> 218</span>
+<span class="normal"> 219</span>
+<span class="normal"> 220</span>
+<span class="normal"> 221</span>
+<span class="normal"> 222</span>
+<span class="normal"> 223</span>
+<span class="normal"> 224</span>
+<span class="normal"> 225</span>
+<span class="normal"> 226</span>
+<span class="normal"> 227</span>
+<span class="normal"> 228</span>
+<span class="normal"> 229</span>
+<span class="normal"> 230</span>
+<span class="normal"> 231</span>
+<span class="normal"> 232</span>
+<span class="normal"> 233</span>
+<span class="normal"> 234</span>
+<span class="normal"> 235</span>
+<span class="normal"> 236</span>
+<span class="normal"> 237</span>
+<span class="normal"> 238</span>
+<span class="normal"> 239</span>
+<span class="normal"> 240</span>
+<span class="normal"> 241</span>
+<span class="normal"> 242</span>
+<span class="normal"> 243</span>
+<span class="normal"> 244</span>
+<span class="normal"> 245</span>
+<span class="normal"> 246</span>
+<span class="normal"> 247</span>
+<span class="normal"> 248</span>
+<span class="normal"> 249</span>
+<span class="normal"> 250</span>
+<span class="normal"> 251</span>
+<span class="normal"> 252</span>
+<span class="normal"> 253</span>
+<span class="normal"> 254</span>
+<span class="normal"> 255</span>
+<span class="normal"> 256</span>
+<span class="normal"> 257</span>
+<span class="normal"> 258</span>
+<span class="normal"> 259</span>
+<span class="normal"> 260</span>
+<span class="normal"> 261</span>
+<span class="normal"> 262</span>
+<span class="normal"> 263</span>
+<span class="normal"> 264</span>
+<span class="normal"> 265</span>
+<span class="normal"> 266</span>
+<span class="normal"> 267</span>
+<span class="normal"> 268</span>
+<span class="normal"> 269</span>
+<span class="normal"> 270</span>
+<span class="normal"> 271</span>
+<span class="normal"> 272</span>
+<span class="normal"> 273</span>
+<span class="normal"> 274</span>
+<span class="normal"> 275</span>
+<span class="normal"> 276</span>
+<span class="normal"> 277</span>
+<span class="normal"> 278</span>
+<span class="normal"> 279</span>
+<span class="normal"> 280</span>
+<span class="normal"> 281</span>
+<span class="normal"> 282</span>
+<span class="normal"> 283</span>
+<span class="normal"> 284</span>
+<span class="normal"> 285</span>
+<span class="normal"> 286</span>
+<span class="normal"> 287</span>
+<span class="normal"> 288</span>
+<span class="normal"> 289</span>
+<span class="normal"> 290</span>
+<span class="normal"> 291</span>
+<span class="normal"> 292</span>
+<span class="normal"> 293</span>
+<span class="normal"> 294</span>
+<span class="normal"> 295</span>
+<span class="normal"> 296</span>
+<span class="normal"> 297</span>
+<span class="normal"> 298</span>
+<span class="normal"> 299</span>
+<span class="normal"> 300</span>
+<span class="normal"> 301</span>
+<span class="normal"> 302</span>
+<span class="normal"> 303</span>
+<span class="normal"> 304</span>
+<span class="normal"> 305</span>
+<span class="normal"> 306</span>
+<span class="normal"> 307</span>
+<span class="normal"> 308</span>
+<span class="normal"> 309</span>
+<span class="normal"> 310</span>
+<span class="normal"> 311</span>
+<span class="normal"> 312</span>
+<span class="normal"> 313</span>
+<span class="normal"> 314</span>
+<span class="normal"> 315</span>
+<span class="normal"> 316</span>
+<span class="normal"> 317</span>
+<span class="normal"> 318</span>
+<span class="normal"> 319</span>
+<span class="normal"> 320</span>
+<span class="normal"> 321</span>
+<span class="normal"> 322</span>
+<span class="normal"> 323</span>
+<span class="normal"> 324</span>
+<span class="normal"> 325</span>
+<span class="normal"> 326</span>
+<span class="normal"> 327</span>
+<span class="normal"> 328</span>
+<span class="normal"> 329</span>
+<span class="normal"> 330</span>
+<span class="normal"> 331</span>
+<span class="normal"> 332</span>
+<span class="normal"> 333</span>
+<span class="normal"> 334</span>
+<span class="normal"> 335</span>
+<span class="normal"> 336</span>
+<span class="normal"> 337</span>
+<span class="normal"> 338</span>
+<span class="normal"> 339</span>
+<span class="normal"> 340</span>
+<span class="normal"> 341</span>
+<span class="normal"> 342</span>
+<span class="normal"> 343</span>
+<span class="normal"> 344</span>
+<span class="normal"> 345</span>
+<span class="normal"> 346</span>
+<span class="normal"> 347</span>
+<span class="normal"> 348</span>
+<span class="normal"> 349</span>
+<span class="normal"> 350</span>
+<span class="normal"> 351</span>
+<span class="normal"> 352</span>
+<span class="normal"> 353</span>
+<span class="normal"> 354</span>
+<span class="normal"> 355</span>
+<span class="normal"> 356</span>
+<span class="normal"> 357</span>
+<span class="normal"> 358</span>
+<span class="normal"> 359</span>
+<span class="normal"> 360</span>
+<span class="normal"> 361</span>
+<span class="normal"> 362</span>
+<span class="normal"> 363</span>
+<span class="normal"> 364</span>
+<span class="normal"> 365</span>
+<span class="normal"> 366</span>
+<span class="normal"> 367</span>
+<span class="normal"> 368</span>
+<span class="normal"> 369</span>
+<span class="normal"> 370</span>
+<span class="normal"> 371</span>
+<span class="normal"> 372</span>
+<span class="normal"> 373</span>
+<span class="normal"> 374</span>
+<span class="normal"> 375</span>
+<span class="normal"> 376</span>
+<span class="normal"> 377</span>
+<span class="normal"> 378</span>
+<span class="normal"> 379</span>
+<span class="normal"> 380</span>
+<span class="normal"> 381</span>
+<span class="normal"> 382</span>
+<span class="normal"> 383</span>
+<span class="normal"> 384</span>
+<span class="normal"> 385</span>
+<span class="normal"> 386</span>
+<span class="normal"> 387</span>
+<span class="normal"> 388</span>
+<span class="normal"> 389</span>
+<span class="normal"> 390</span>
+<span class="normal"> 391</span>
+<span class="normal"> 392</span>
+<span class="normal"> 393</span>
+<span class="normal"> 394</span>
+<span class="normal"> 395</span>
+<span class="normal"> 396</span>
+<span class="normal"> 397</span>
+<span class="normal"> 398</span>
+<span class="normal"> 399</span>
+<span class="normal"> 400</span>
+<span class="normal"> 401</span>
+<span class="normal"> 402</span>
+<span class="normal"> 403</span>
+<span class="normal"> 404</span>
+<span class="normal"> 405</span>
+<span class="normal"> 406</span>
+<span class="normal"> 407</span>
+<span class="normal"> 408</span>
+<span class="normal"> 409</span>
+<span class="normal"> 410</span>
+<span class="normal"> 411</span>
+<span class="normal"> 412</span>
+<span class="normal"> 413</span>
+<span class="normal"> 414</span>
+<span class="normal"> 415</span>
+<span class="normal"> 416</span>
+<span class="normal"> 417</span>
+<span class="normal"> 418</span>
+<span class="normal"> 419</span>
+<span class="normal"> 420</span>
+<span class="normal"> 421</span>
+<span class="normal"> 422</span>
+<span class="normal"> 423</span>
+<span class="normal"> 424</span>
+<span class="normal"> 425</span>
+<span class="normal"> 426</span>
+<span class="normal"> 427</span>
+<span class="normal"> 428</span>
+<span class="normal"> 429</span>
+<span class="normal"> 430</span>
+<span class="normal"> 431</span>
+<span class="normal"> 432</span>
+<span class="normal"> 433</span>
+<span class="normal"> 434</span>
+<span class="normal"> 435</span>
+<span class="normal"> 436</span>
+<span class="normal"> 437</span>
+<span class="normal"> 438</span>
+<span class="normal"> 439</span>
+<span class="normal"> 440</span>
+<span class="normal"> 441</span>
+<span class="normal"> 442</span>
+<span class="normal"> 443</span>
+<span class="normal"> 444</span>
+<span class="normal"> 445</span>
+<span class="normal"> 446</span>
+<span class="normal"> 447</span>
+<span class="normal"> 448</span>
+<span class="normal"> 449</span>
+<span class="normal"> 450</span>
+<span class="normal"> 451</span>
+<span class="normal"> 452</span>
+<span class="normal"> 453</span>
+<span class="normal"> 454</span>
+<span class="normal"> 455</span>
+<span class="normal"> 456</span>
+<span class="normal"> 457</span>
+<span class="normal"> 458</span>
+<span class="normal"> 459</span>
+<span class="normal"> 460</span>
+<span class="normal"> 461</span>
+<span class="normal"> 462</span>
+<span class="normal"> 463</span>
+<span class="normal"> 464</span>
+<span class="normal"> 465</span>
+<span class="normal"> 466</span>
+<span class="normal"> 467</span>
+<span class="normal"> 468</span>
+<span class="normal"> 469</span>
+<span class="normal"> 470</span>
+<span class="normal"> 471</span>
+<span class="normal"> 472</span>
+<span class="normal"> 473</span>
+<span class="normal"> 474</span>
+<span class="normal"> 475</span>
+<span class="normal"> 476</span>
+<span class="normal"> 477</span>
+<span class="normal"> 478</span>
+<span class="normal"> 479</span>
+<span class="normal"> 480</span>
+<span class="normal"> 481</span>
+<span class="normal"> 482</span>
+<span class="normal"> 483</span>
+<span class="normal"> 484</span>
+<span class="normal"> 485</span>
+<span class="normal"> 486</span>
+<span class="normal"> 487</span>
+<span class="normal"> 488</span>
+<span class="normal"> 489</span>
+<span class="normal"> 490</span>
+<span class="normal"> 491</span>
+<span class="normal"> 492</span>
+<span class="normal"> 493</span>
+<span class="normal"> 494</span>
+<span class="normal"> 495</span>
+<span class="normal"> 496</span>
+<span class="normal"> 497</span>
+<span class="normal"> 498</span>
+<span class="normal"> 499</span>
+<span class="normal"> 500</span>
+<span class="normal"> 501</span>
+<span class="normal"> 502</span>
+<span class="normal"> 503</span>
+<span class="normal"> 504</span>
+<span class="normal"> 505</span>
+<span class="normal"> 506</span>
+<span class="normal"> 507</span>
+<span class="normal"> 508</span>
+<span class="normal"> 509</span>
+<span class="normal"> 510</span>
+<span class="normal"> 511</span>
+<span class="normal"> 512</span>
+<span class="normal"> 513</span>
+<span class="normal"> 514</span>
+<span class="normal"> 515</span>
+<span class="normal"> 516</span>
+<span class="normal"> 517</span>
+<span class="normal"> 518</span>
+<span class="normal"> 519</span>
+<span class="normal"> 520</span>
+<span class="normal"> 521</span>
+<span class="normal"> 522</span>
+<span class="normal"> 523</span>
+<span class="normal"> 524</span>
+<span class="normal"> 525</span>
+<span class="normal"> 526</span>
+<span class="normal"> 527</span>
+<span class="normal"> 528</span>
+<span class="normal"> 529</span>
+<span class="normal"> 530</span>
+<span class="normal"> 531</span>
+<span class="normal"> 532</span>
+<span class="normal"> 533</span>
+<span class="normal"> 534</span>
+<span class="normal"> 535</span>
+<span class="normal"> 536</span>
+<span class="normal"> 537</span>
+<span class="normal"> 538</span>
+<span class="normal"> 539</span>
+<span class="normal"> 540</span>
+<span class="normal"> 541</span>
+<span class="normal"> 542</span>
+<span class="normal"> 543</span>
+<span class="normal"> 544</span>
+<span class="normal"> 545</span>
+<span class="normal"> 546</span>
+<span class="normal"> 547</span>
+<span class="normal"> 548</span>
+<span class="normal"> 549</span>
+<span class="normal"> 550</span>
+<span class="normal"> 551</span>
+<span class="normal"> 552</span>
+<span class="normal"> 553</span>
+<span class="normal"> 554</span>
+<span class="normal"> 555</span>
+<span class="normal"> 556</span>
+<span class="normal"> 557</span>
+<span class="normal"> 558</span>
+<span class="normal"> 559</span>
+<span class="normal"> 560</span>
+<span class="normal"> 561</span>
+<span class="normal"> 562</span>
+<span class="normal"> 563</span>
+<span class="normal"> 564</span>
+<span class="normal"> 565</span>
+<span class="normal"> 566</span>
+<span class="normal"> 567</span>
+<span class="normal"> 568</span>
+<span class="normal"> 569</span>
+<span class="normal"> 570</span>
+<span class="normal"> 571</span>
+<span class="normal"> 572</span>
+<span class="normal"> 573</span>
+<span class="normal"> 574</span>
+<span class="normal"> 575</span>
+<span class="normal"> 576</span>
+<span class="normal"> 577</span>
+<span class="normal"> 578</span>
+<span class="normal"> 579</span>
+<span class="normal"> 580</span>
+<span class="normal"> 581</span>
+<span class="normal"> 582</span>
+<span class="normal"> 583</span>
+<span class="normal"> 584</span>
+<span class="normal"> 585</span>
+<span class="normal"> 586</span>
+<span class="normal"> 587</span>
+<span class="normal"> 588</span>
+<span class="normal"> 589</span>
+<span class="normal"> 590</span>
+<span class="normal"> 591</span>
+<span class="normal"> 592</span>
+<span class="normal"> 593</span>
+<span class="normal"> 594</span>
+<span class="normal"> 595</span>
+<span class="normal"> 596</span>
+<span class="normal"> 597</span>
+<span class="normal"> 598</span>
+<span class="normal"> 599</span>
+<span class="normal"> 600</span>
+<span class="normal"> 601</span>
+<span class="normal"> 602</span>
+<span class="normal"> 603</span>
+<span class="normal"> 604</span>
+<span class="normal"> 605</span>
+<span class="normal"> 606</span>
+<span class="normal"> 607</span>
+<span class="normal"> 608</span>
+<span class="normal"> 609</span>
+<span class="normal"> 610</span>
+<span class="normal"> 611</span>
+<span class="normal"> 612</span>
+<span class="normal"> 613</span>
+<span class="normal"> 614</span>
+<span class="normal"> 615</span>
+<span class="normal"> 616</span>
+<span class="normal"> 617</span>
+<span class="normal"> 618</span>
+<span class="normal"> 619</span>
+<span class="normal"> 620</span>
+<span class="normal"> 621</span>
+<span class="normal"> 622</span>
+<span class="normal"> 623</span>
+<span class="normal"> 624</span>
+<span class="normal"> 625</span>
+<span class="normal"> 626</span>
+<span class="normal"> 627</span>
+<span class="normal"> 628</span>
+<span class="normal"> 629</span>
+<span class="normal"> 630</span>
+<span class="normal"> 631</span>
+<span class="normal"> 632</span>
+<span class="normal"> 633</span>
+<span class="normal"> 634</span>
+<span class="normal"> 635</span>
+<span class="normal"> 636</span>
+<span class="normal"> 637</span>
+<span class="normal"> 638</span>
+<span class="normal"> 639</span>
+<span class="normal"> 640</span>
+<span class="normal"> 641</span>
+<span class="normal"> 642</span>
+<span class="normal"> 643</span>
+<span class="normal"> 644</span>
+<span class="normal"> 645</span>
+<span class="normal"> 646</span>
+<span class="normal"> 647</span>
+<span class="normal"> 648</span>
+<span class="normal"> 649</span>
+<span class="normal"> 650</span>
+<span class="normal"> 651</span>
+<span class="normal"> 652</span>
+<span class="normal"> 653</span>
+<span class="normal"> 654</span>
+<span class="normal"> 655</span>
+<span class="normal"> 656</span>
+<span class="normal"> 657</span>
+<span class="normal"> 658</span>
+<span class="normal"> 659</span>
+<span class="normal"> 660</span>
+<span class="normal"> 661</span>
+<span class="normal"> 662</span>
+<span class="normal"> 663</span>
+<span class="normal"> 664</span>
+<span class="normal"> 665</span>
+<span class="normal"> 666</span>
+<span class="normal"> 667</span>
+<span class="normal"> 668</span>
+<span class="normal"> 669</span>
+<span class="normal"> 670</span>
+<span class="normal"> 671</span>
+<span class="normal"> 672</span>
+<span class="normal"> 673</span>
+<span class="normal"> 674</span>
+<span class="normal"> 675</span>
+<span class="normal"> 676</span>
+<span class="normal"> 677</span>
+<span class="normal"> 678</span>
+<span class="normal"> 679</span>
+<span class="normal"> 680</span>
+<span class="normal"> 681</span>
+<span class="normal"> 682</span>
+<span class="normal"> 683</span>
+<span class="normal"> 684</span>
+<span class="normal"> 685</span>
+<span class="normal"> 686</span>
+<span class="normal"> 687</span>
+<span class="normal"> 688</span>
+<span class="normal"> 689</span>
+<span class="normal"> 690</span>
+<span class="normal"> 691</span>
+<span class="normal"> 692</span>
+<span class="normal"> 693</span>
+<span class="normal"> 694</span>
+<span class="normal"> 695</span>
+<span class="normal"> 696</span>
+<span class="normal"> 697</span>
+<span class="normal"> 698</span>
+<span class="normal"> 699</span>
+<span class="normal"> 700</span>
+<span class="normal"> 701</span>
+<span class="normal"> 702</span>
+<span class="normal"> 703</span>
+<span class="normal"> 704</span>
+<span class="normal"> 705</span>
+<span class="normal"> 706</span>
+<span class="normal"> 707</span>
+<span class="normal"> 708</span>
+<span class="normal"> 709</span>
+<span class="normal"> 710</span>
+<span class="normal"> 711</span>
+<span class="normal"> 712</span>
+<span class="normal"> 713</span>
+<span class="normal"> 714</span>
+<span class="normal"> 715</span>
+<span class="normal"> 716</span>
+<span class="normal"> 717</span>
+<span class="normal"> 718</span>
+<span class="normal"> 719</span>
+<span class="normal"> 720</span>
+<span class="normal"> 721</span>
+<span class="normal"> 722</span>
+<span class="normal"> 723</span>
+<span class="normal"> 724</span>
+<span class="normal"> 725</span>
+<span class="normal"> 726</span>
+<span class="normal"> 727</span>
+<span class="normal"> 728</span>
+<span class="normal"> 729</span>
+<span class="normal"> 730</span>
+<span class="normal"> 731</span>
+<span class="normal"> 732</span>
+<span class="normal"> 733</span>
+<span class="normal"> 734</span>
+<span class="normal"> 735</span>
+<span class="normal"> 736</span>
+<span class="normal"> 737</span>
+<span class="normal"> 738</span>
+<span class="normal"> 739</span>
+<span class="normal"> 740</span>
+<span class="normal"> 741</span>
+<span class="normal"> 742</span>
+<span class="normal"> 743</span>
+<span class="normal"> 744</span>
+<span class="normal"> 745</span>
+<span class="normal"> 746</span>
+<span class="normal"> 747</span>
+<span class="normal"> 748</span>
+<span class="normal"> 749</span>
+<span class="normal"> 750</span>
+<span class="normal"> 751</span>
+<span class="normal"> 752</span>
+<span class="normal"> 753</span>
+<span class="normal"> 754</span>
+<span class="normal"> 755</span>
+<span class="normal"> 756</span>
+<span class="normal"> 757</span>
+<span class="normal"> 758</span>
+<span class="normal"> 759</span>
+<span class="normal"> 760</span>
+<span class="normal"> 761</span>
+<span class="normal"> 762</span>
+<span class="normal"> 763</span>
+<span class="normal"> 764</span>
+<span class="normal"> 765</span>
+<span class="normal"> 766</span>
+<span class="normal"> 767</span>
+<span class="normal"> 768</span>
+<span class="normal"> 769</span>
+<span class="normal"> 770</span>
+<span class="normal"> 771</span>
+<span class="normal"> 772</span>
+<span class="normal"> 773</span>
+<span class="normal"> 774</span>
+<span class="normal"> 775</span>
+<span class="normal"> 776</span>
+<span class="normal"> 777</span>
+<span class="normal"> 778</span>
+<span class="normal"> 779</span>
+<span class="normal"> 780</span>
+<span class="normal"> 781</span>
+<span class="normal"> 782</span>
+<span class="normal"> 783</span>
+<span class="normal"> 784</span>
+<span class="normal"> 785</span>
+<span class="normal"> 786</span>
+<span class="normal"> 787</span>
+<span class="normal"> 788</span>
+<span class="normal"> 789</span>
+<span class="normal"> 790</span>
+<span class="normal"> 791</span>
+<span class="normal"> 792</span>
+<span class="normal"> 793</span>
+<span class="normal"> 794</span>
+<span class="normal"> 795</span>
+<span class="normal"> 796</span>
+<span class="normal"> 797</span>
+<span class="normal"> 798</span>
+<span class="normal"> 799</span>
+<span class="normal"> 800</span>
+<span class="normal"> 801</span>
+<span class="normal"> 802</span>
+<span class="normal"> 803</span>
+<span class="normal"> 804</span>
+<span class="normal"> 805</span>
+<span class="normal"> 806</span>
+<span class="normal"> 807</span>
+<span class="normal"> 808</span>
+<span class="normal"> 809</span>
+<span class="normal"> 810</span>
+<span class="normal"> 811</span>
+<span class="normal"> 812</span>
+<span class="normal"> 813</span>
+<span class="normal"> 814</span>
+<span class="normal"> 815</span>
+<span class="normal"> 816</span>
+<span class="normal"> 817</span>
+<span class="normal"> 818</span>
+<span class="normal"> 819</span>
+<span class="normal"> 820</span>
+<span class="normal"> 821</span>
+<span class="normal"> 822</span>
+<span class="normal"> 823</span>
+<span class="normal"> 824</span>
+<span class="normal"> 825</span>
+<span class="normal"> 826</span>
+<span class="normal"> 827</span>
+<span class="normal"> 828</span>
+<span class="normal"> 829</span>
+<span class="normal"> 830</span>
+<span class="normal"> 831</span>
+<span class="normal"> 832</span>
+<span class="normal"> 833</span>
+<span class="normal"> 834</span>
+<span class="normal"> 835</span>
+<span class="normal"> 836</span>
+<span class="normal"> 837</span>
+<span class="normal"> 838</span>
+<span class="normal"> 839</span>
+<span class="normal"> 840</span>
+<span class="normal"> 841</span>
+<span class="normal"> 842</span>
+<span class="normal"> 843</span>
+<span class="normal"> 844</span>
+<span class="normal"> 845</span>
+<span class="normal"> 846</span>
+<span class="normal"> 847</span>
+<span class="normal"> 848</span>
+<span class="normal"> 849</span>
+<span class="normal"> 850</span>
+<span class="normal"> 851</span>
+<span class="normal"> 852</span>
+<span class="normal"> 853</span>
+<span class="normal"> 854</span>
+<span class="normal"> 855</span>
+<span class="normal"> 856</span>
+<span class="normal"> 857</span>
+<span class="normal"> 858</span>
+<span class="normal"> 859</span>
+<span class="normal"> 860</span>
+<span class="normal"> 861</span>
+<span class="normal"> 862</span>
+<span class="normal"> 863</span>
+<span class="normal"> 864</span>
+<span class="normal"> 865</span>
+<span class="normal"> 866</span>
+<span class="normal"> 867</span>
+<span class="normal"> 868</span>
+<span class="normal"> 869</span>
+<span class="normal"> 870</span>
+<span class="normal"> 871</span>
+<span class="normal"> 872</span>
+<span class="normal"> 873</span>
+<span class="normal"> 874</span>
+<span class="normal"> 875</span>
+<span class="normal"> 876</span>
+<span class="normal"> 877</span>
+<span class="normal"> 878</span>
+<span class="normal"> 879</span>
+<span class="normal"> 880</span>
+<span class="normal"> 881</span>
+<span class="normal"> 882</span>
+<span class="normal"> 883</span>
+<span class="normal"> 884</span>
+<span class="normal"> 885</span>
+<span class="normal"> 886</span>
+<span class="normal"> 887</span>
+<span class="normal"> 888</span>
+<span class="normal"> 889</span>
+<span class="normal"> 890</span>
+<span class="normal"> 891</span>
+<span class="normal"> 892</span>
+<span class="normal"> 893</span>
+<span class="normal"> 894</span>
+<span class="normal"> 895</span>
+<span class="normal"> 896</span>
+<span class="normal"> 897</span>
+<span class="normal"> 898</span>
+<span class="normal"> 899</span>
+<span class="normal"> 900</span>
+<span class="normal"> 901</span>
+<span class="normal"> 902</span>
+<span class="normal"> 903</span>
+<span class="normal"> 904</span>
+<span class="normal"> 905</span>
+<span class="normal"> 906</span>
+<span class="normal"> 907</span>
+<span class="normal"> 908</span>
+<span class="normal"> 909</span>
+<span class="normal"> 910</span>
+<span class="normal"> 911</span>
+<span class="normal"> 912</span>
+<span class="normal"> 913</span>
+<span class="normal"> 914</span>
+<span class="normal"> 915</span>
+<span class="normal"> 916</span>
+<span class="normal"> 917</span>
+<span class="normal"> 918</span>
+<span class="normal"> 919</span>
+<span class="normal"> 920</span>
+<span class="normal"> 921</span>
+<span class="normal"> 922</span>
+<span class="normal"> 923</span>
+<span class="normal"> 924</span>
+<span class="normal"> 925</span>
+<span class="normal"> 926</span>
+<span class="normal"> 927</span>
+<span class="normal"> 928</span>
+<span class="normal"> 929</span>
+<span class="normal"> 930</span>
+<span class="normal"> 931</span>
+<span class="normal"> 932</span>
+<span class="normal"> 933</span>
+<span class="normal"> 934</span>
+<span class="normal"> 935</span>
+<span class="normal"> 936</span>
+<span class="normal"> 937</span>
+<span class="normal"> 938</span>
+<span class="normal"> 939</span>
+<span class="normal"> 940</span>
+<span class="normal"> 941</span>
+<span class="normal"> 942</span>
+<span class="normal"> 943</span>
+<span class="normal"> 944</span>
+<span class="normal"> 945</span>
+<span class="normal"> 946</span>
+<span class="normal"> 947</span>
+<span class="normal"> 948</span>
+<span class="normal"> 949</span>
+<span class="normal"> 950</span>
+<span class="normal"> 951</span>
+<span class="normal"> 952</span>
+<span class="normal"> 953</span>
+<span class="normal"> 954</span>
+<span class="normal"> 955</span>
+<span class="normal"> 956</span>
+<span class="normal"> 957</span>
+<span class="normal"> 958</span>
+<span class="normal"> 959</span>
+<span class="normal"> 960</span>
+<span class="normal"> 961</span>
+<span class="normal"> 962</span>
+<span class="normal"> 963</span>
+<span class="normal"> 964</span>
+<span class="normal"> 965</span>
+<span class="normal"> 966</span>
+<span class="normal"> 967</span>
+<span class="normal"> 968</span>
+<span class="normal"> 969</span>
+<span class="normal"> 970</span>
+<span class="normal"> 971</span>
+<span class="normal"> 972</span>
+<span class="normal"> 973</span>
+<span class="normal"> 974</span>
+<span class="normal"> 975</span>
+<span class="normal"> 976</span>
+<span class="normal"> 977</span>
+<span class="normal"> 978</span>
+<span class="normal"> 979</span>
+<span class="normal"> 980</span>
+<span class="normal"> 981</span>
+<span class="normal"> 982</span>
+<span class="normal"> 983</span>
+<span class="normal"> 984</span>
+<span class="normal"> 985</span>
+<span class="normal"> 986</span>
+<span class="normal"> 987</span>
+<span class="normal"> 988</span>
+<span class="normal"> 989</span>
+<span class="normal"> 990</span>
+<span class="normal"> 991</span>
+<span class="normal"> 992</span>
+<span class="normal"> 993</span>
+<span class="normal"> 994</span>
+<span class="normal"> 995</span>
+<span class="normal"> 996</span>
+<span class="normal"> 997</span>
+<span class="normal"> 998</span>
+<span class="normal"> 999</span>
+<span class="normal">1000</span>
+<span class="normal">1001</span>
+<span class="normal">1002</span>
+<span class="normal">1003</span>
+<span class="normal">1004</span>
+<span class="normal">1005</span>
+<span class="normal">1006</span>
+<span class="normal">1007</span>
+<span class="normal">1008</span>
+<span class="normal">1009</span>
+<span class="normal">1010</span>
+<span class="normal">1011</span>
+<span class="normal">1012</span>
+<span class="normal">1013</span>
+<span class="normal">1014</span>
+<span class="normal">1015</span>
+<span class="normal">1016</span>
+<span class="normal">1017</span>
+<span class="normal">1018</span>
+<span class="normal">1019</span>
+<span class="normal">1020</span>
+<span class="normal">1021</span>
+<span class="normal">1022</span>
+<span class="normal">1023</span>
+<span class="normal">1024</span>
+<span class="normal">1025</span>
+<span class="normal">1026</span>
+<span class="normal">1027</span>
+<span class="normal">1028</span>
+<span class="normal">1029</span>
+<span class="normal">1030</span>
+<span class="normal">1031</span>
+<span class="normal">1032</span>
+<span class="normal">1033</span>
+<span class="normal">1034</span>
+<span class="normal">1035</span>
+<span class="normal">1036</span>
+<span class="normal">1037</span>
+<span class="normal">1038</span>
+<span class="normal">1039</span>
+<span class="normal">1040</span>
+<span class="normal">1041</span>
+<span class="normal">1042</span>
+<span class="normal">1043</span>
+<span class="normal">1044</span>
+<span class="normal">1045</span>
+<span class="normal">1046</span>
+<span class="normal">1047</span>
+<span class="normal">1048</span>
+<span class="normal">1049</span>
+<span class="normal">1050</span>
+<span class="normal">1051</span>
+<span class="normal">1052</span>
+<span class="normal">1053</span>
+<span class="normal">1054</span>
+<span class="normal">1055</span>
+<span class="normal">1056</span>
+<span class="normal">1057</span>
+<span class="normal">1058</span>
+<span class="normal">1059</span>
+<span class="normal">1060</span>
+<span class="normal">1061</span>
+<span class="normal">1062</span>
+<span class="normal">1063</span>
+<span class="normal">1064</span>
+<span class="normal">1065</span>
+<span class="normal">1066</span>
+<span class="normal">1067</span>
+<span class="normal">1068</span>
+<span class="normal">1069</span>
+<span class="normal">1070</span>
+<span class="normal">1071</span>
+<span class="normal">1072</span>
+<span class="normal">1073</span>
+<span class="normal">1074</span>
+<span class="normal">1075</span>
+<span class="normal">1076</span>
+<span class="normal">1077</span>
+<span class="normal">1078</span>
+<span class="normal">1079</span>
+<span class="normal">1080</span>
+<span class="normal">1081</span>
+<span class="normal">1082</span>
+<span class="normal">1083</span>
+<span class="normal">1084</span>
+<span class="normal">1085</span>
+<span class="normal">1086</span>
+<span class="normal">1087</span>
+<span class="normal">1088</span>
+<span class="normal">1089</span>
+<span class="normal">1090</span>
+<span class="normal">1091</span>
+<span class="normal">1092</span>
+<span class="normal">1093</span>
+<span class="normal">1094</span>
+<span class="normal">1095</span>
+<span class="normal">1096</span>
+<span class="normal">1097</span>
+<span class="normal">1098</span>
+<span class="normal">1099</span>
+<span class="normal">1100</span>
+<span class="normal">1101</span>
+<span class="normal">1102</span>
+<span class="normal">1103</span>
+<span class="normal">1104</span>
+<span class="normal">1105</span>
+<span class="normal">1106</span>
+<span class="normal">1107</span>
+<span class="normal">1108</span>
+<span class="normal">1109</span>
+<span class="normal">1110</span>
+<span class="normal">1111</span>
+<span class="normal">1112</span>
+<span class="normal">1113</span>
+<span class="normal">1114</span>
+<span class="normal">1115</span>
+<span class="normal">1116</span>
+<span class="normal">1117</span>
+<span class="normal">1118</span>
+<span class="normal">1119</span>
+<span class="normal">1120</span>
+<span class="normal">1121</span>
+<span class="normal">1122</span>
+<span class="normal">1123</span>
+<span class="normal">1124</span>
+<span class="normal">1125</span>
+<span class="normal">1126</span>
+<span class="normal">1127</span>
+<span class="normal">1128</span>
+<span class="normal">1129</span>
+<span class="normal">1130</span>
+<span class="normal">1131</span>
+<span class="normal">1132</span>
+<span class="normal">1133</span>
+<span class="normal">1134</span>
+<span class="normal">1135</span>
+<span class="normal">1136</span>
+<span class="normal">1137</span>
+<span class="normal">1138</span>
+<span class="normal">1139</span>
+<span class="normal">1140</span>
+<span class="normal">1141</span>
+<span class="normal">1142</span>
+<span class="normal">1143</span>
+<span class="normal">1144</span>
+<span class="normal">1145</span>
+<span class="normal">1146</span>
+<span class="normal">1147</span>
+<span class="normal">1148</span>
+<span class="normal">1149</span>
+<span class="normal">1150</span>
+<span class="normal">1151</span>
+<span class="normal">1152</span>
+<span class="normal">1153</span>
+<span class="normal">1154</span>
+<span class="normal">1155</span>
+<span class="normal">1156</span>
+<span class="normal">1157</span>
+<span class="normal">1158</span>
+<span class="normal">1159</span>
+<span class="normal">1160</span>
+<span class="normal">1161</span>
+<span class="normal">1162</span>
+<span class="normal">1163</span>
+<span class="normal">1164</span>
+<span class="normal">1165</span>
+<span class="normal">1166</span>
+<span class="normal">1167</span>
+<span class="normal">1168</span>
+<span class="normal">1169</span>
+<span class="normal">1170</span>
+<span class="normal">1171</span>
+<span class="normal">1172</span>
+<span class="normal">1173</span>
+<span class="normal">1174</span>
+<span class="normal">1175</span>
+<span class="normal">1176</span>
+<span class="normal">1177</span>
+<span class="normal">1178</span>
+<span class="normal">1179</span>
+<span class="normal">1180</span>
+<span class="normal">1181</span>
+<span class="normal">1182</span>
+<span class="normal">1183</span>
+<span class="normal">1184</span>
+<span class="normal">1185</span>
+<span class="normal">1186</span>
+<span class="normal">1187</span>
+<span class="normal">1188</span>
+<span class="normal">1189</span>
+<span class="normal">1190</span>
+<span class="normal">1191</span>
+<span class="normal">1192</span>
+<span class="normal">1193</span>
+<span class="normal">1194</span>
+<span class="normal">1195</span>
+<span class="normal">1196</span>
+<span class="normal">1197</span>
+<span class="normal">1198</span>
+<span class="normal">1199</span>
+<span class="normal">1200</span>
+<span class="normal">1201</span>
+<span class="normal">1202</span>
+<span class="normal">1203</span>
+<span class="normal">1204</span>
+<span class="normal">1205</span>
+<span class="normal">1206</span>
+<span class="normal">1207</span>
+<span class="normal">1208</span>
+<span class="normal">1209</span>
+<span class="normal">1210</span>
+<span class="normal">1211</span>
+<span class="normal">1212</span>
+<span class="normal">1213</span>
+<span class="normal">1214</span>
+<span class="normal">1215</span>
+<span class="normal">1216</span>
+<span class="normal">1217</span>
+<span class="normal">1218</span>
+<span class="normal">1219</span>
+<span class="normal">1220</span>
+<span class="normal">1221</span>
+<span class="normal">1222</span>
+<span class="normal">1223</span>
+<span class="normal">1224</span>
+<span class="normal">1225</span>
+<span class="normal">1226</span>
+<span class="normal">1227</span>
+<span class="normal">1228</span>
+<span class="normal">1229</span>
+<span class="normal">1230</span>
+<span class="normal">1231</span>
+<span class="normal">1232</span>
+<span class="normal">1233</span>
+<span class="normal">1234</span>
+<span class="normal">1235</span>
+<span class="normal">1236</span>
+<span class="normal">1237</span>
+<span class="normal">1238</span>
+<span class="normal">1239</span>
+<span class="normal">1240</span>
+<span class="normal">1241</span>
+<span class="normal">1242</span>
+<span class="normal">1243</span>
+<span class="normal">1244</span>
+<span class="normal">1245</span>
+<span class="normal">1246</span>
+<span class="normal">1247</span>
+<span class="normal">1248</span>
+<span class="normal">1249</span>
+<span class="normal">1250</span>
+<span class="normal">1251</span>
+<span class="normal">1252</span>
+<span class="normal">1253</span>
+<span class="normal">1254</span>
+<span class="normal">1255</span>
+<span class="normal">1256</span>
+<span class="normal">1257</span>
+<span class="normal">1258</span>
+<span class="normal">1259</span>
+<span class="normal">1260</span>
+<span class="normal">1261</span>
+<span class="normal">1262</span>
+<span class="normal">1263</span>
+<span class="normal">1264</span>
+<span class="normal">1265</span>
+<span class="normal">1266</span>
+<span class="normal">1267</span>
+<span class="normal">1268</span>
+<span class="normal">1269</span>
+<span class="normal">1270</span>
+<span class="normal">1271</span>
+<span class="normal">1272</span>
+<span class="normal">1273</span>
+<span class="normal">1274</span>
+<span class="normal">1275</span>
+<span class="normal">1276</span>
+<span class="normal">1277</span>
+<span class="normal">1278</span>
+<span class="normal">1279</span>
+<span class="normal">1280</span>
+<span class="normal">1281</span>
+<span class="normal">1282</span>
+<span class="normal">1283</span>
+<span class="normal">1284</span>
+<span class="normal">1285</span>
+<span class="normal">1286</span>
+<span class="normal">1287</span>
+<span class="normal">1288</span>
+<span class="normal">1289</span>
+<span class="normal">1290</span>
+<span class="normal">1291</span>
+<span class="normal">1292</span>
+<span class="normal">1293</span>
+<span class="normal">1294</span>
+<span class="normal">1295</span>
+<span class="normal">1296</span>
+<span class="normal">1297</span>
+<span class="normal">1298</span>
+<span class="normal">1299</span>
+<span class="normal">1300</span>
+<span class="normal">1301</span>
+<span class="normal">1302</span>
+<span class="normal">1303</span>
+<span class="normal">1304</span>
+<span class="normal">1305</span>
+<span class="normal">1306</span>
+<span class="normal">1307</span>
+<span class="normal">1308</span>
+<span class="normal">1309</span>
+<span class="normal">1310</span>
+<span class="normal">1311</span>
+<span class="normal">1312</span>
+<span class="normal">1313</span>
+<span class="normal">1314</span>
+<span class="normal">1315</span>
+<span class="normal">1316</span>
+<span class="normal">1317</span>
+<span class="normal">1318</span>
+<span class="normal">1319</span>
+<span class="normal">1320</span>
+<span class="normal">1321</span>
+<span class="normal">1322</span>
+<span class="normal">1323</span>
+<span class="normal">1324</span>
+<span class="normal">1325</span>
+<span class="normal">1326</span>
+<span class="normal">1327</span>
+<span class="normal">1328</span>
+<span class="normal">1329</span>
+<span class="normal">1330</span>
+<span class="normal">1331</span>
+<span class="normal">1332</span>
+<span class="normal">1333</span>
+<span class="normal">1334</span>
+<span class="normal">1335</span>
+<span class="normal">1336</span>
+<span class="normal">1337</span>
+<span class="normal">1338</span>
+<span class="normal">1339</span>
+<span class="normal">1340</span>
+<span class="normal">1341</span>
+<span class="normal">1342</span>
+<span class="normal">1343</span>
+<span class="normal">1344</span>
+<span class="normal">1345</span>
+<span class="normal">1346</span>
+<span class="normal">1347</span>
+<span class="normal">1348</span>
+<span class="normal">1349</span>
+<span class="normal">1350</span>
+<span class="normal">1351</span>
+<span class="normal">1352</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span>
+<a id="line-2" name="line-2"></a><span class="cm"> * mate-thumbnail.c: Utilities for handling thumbnails</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * Copyright (C) 2002 Red Hat, Inc.</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * Copyright (C) 2010 Carlos Garcia Campos &lt;[email protected]&gt;</span>
+<a id="line-6" name="line-6"></a><span class="cm"> *</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * This file is part of the Mate Library.</span>
+<a id="line-8" name="line-8"></a><span class="cm"> *</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * The Mate Library is free software; you can redistribute it and/or</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * modify it under the terms of the GNU Library General Public License as</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * published by the Free Software Foundation; either version 2 of the</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * License, or (at your option) any later version.</span>
+<a id="line-13" name="line-13"></a><span class="cm"> *</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * The Mate Library is distributed in the hope that it will be useful,</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Library General Public License for more details.</span>
+<a id="line-18" name="line-18"></a><span class="cm"> *</span>
+<a id="line-19" name="line-19"></a><span class="cm"> * You should have received a copy of the GNU Library General Public</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * License along with the Mate Library; see the file COPYING.LIB. If not,</span>
+<a id="line-21" name="line-21"></a><span class="cm"> * write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-22" name="line-22"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-23" name="line-23"></a><span class="cm"> *</span>
+<a id="line-24" name="line-24"></a><span class="cm"> * Author: Alexander Larsson &lt;[email protected]&gt;</span>
+<a id="line-25" name="line-25"></a><span class="cm"> */</span>
+<a id="line-26" name="line-26"></a>
+<a id="line-27" name="line-27"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;config.h&gt;</span><span class="error2">&lt;--- Include file: <config.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib.h&gt;</span><span class="error2">&lt;--- Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gstdio.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gstdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a>
+<a id="line-31" name="line-31"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk-pixbuf/gdk-pixbuf.h&gt;</span><span class="error2">&lt;--- Include file: <gdk-pixbuf/gdk-pixbuf.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-32" name="line-32"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-33" name="line-33"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdlib.h&gt;</span><span class="error2">&lt;--- Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-34" name="line-34"></a>
+<a id="line-35" name="line-35"></a><span class="cp">#define MATE_DESKTOP_USE_UNSTABLE_API</span>
+<a id="line-36" name="line-36"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;mate-desktop-thumbnail.h&quot;</span>
+<a id="line-37" name="line-37"></a>
+<a id="line-38" name="line-38"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-39" name="line-39"></a><span class="nf">thumbnailers_directory_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GFileMonitor</span><span class="w"> </span><span class="o">*</span><span class="n">monitor</span><span class="p">,</span>
+<a id="line-40" name="line-40"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">,</span>
+<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">other_file</span><span class="p">,</span>
+<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">GFileMonitorEvent</span><span class="w"> </span><span class="n">event_type</span><span class="p">,</span>
+<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">);</span>
+<a id="line-44" name="line-44"></a>
+<a id="line-45" name="line-45"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_MateDesktopThumbnailFactoryPrivate</span><span class="w"> </span><span class="p">{</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">MateDesktopThumbnailSize</span><span class="w"> </span><span class="n">size</span><span class="p">;</span>
+<a id="line-47" name="line-47"></a>
+<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">GMutex</span><span class="w"> </span><span class="n">lock</span><span class="p">;</span>
+<a id="line-49" name="line-49"></a>
+<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">thumbnailers</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">GHashTable</span><span class="w"> </span><span class="o">*</span><span class="n">mime_types_map</span><span class="p">;</span>
+<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">monitors</span><span class="p">;</span>
+<a id="line-53" name="line-53"></a>
+<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">GSettings</span><span class="w"> </span><span class="o">*</span><span class="n">settings</span><span class="p">;</span>
+<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">loaded</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">disabled</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">disabled_types</span><span class="p">;</span>
+<a id="line-58" name="line-58"></a><span class="p">};</span>
+<a id="line-59" name="line-59"></a>
+<a id="line-60" name="line-60"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">appname</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;mate-thumbnail-factory&quot;</span><span class="p">;</span>
+<a id="line-61" name="line-61"></a>
+<a id="line-62" name="line-62"></a><span class="hll"><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopThumbnailFactory</span><span class="p">,</span><span class="error2">&lt;--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</span>
+</span><a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">mate_desktop_thumbnail_factory</span><span class="p">,</span>
+<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">)</span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="cp">#define parent_class mate_desktop_thumbnail_factory_parent_class</span>
+<a id="line-67" name="line-67"></a>
+<a id="line-68" name="line-68"></a><span class="cp">#define THUMBNAILER_ENTRY_GROUP &quot;Thumbnailer Entry&quot;</span>
+<a id="line-69" name="line-69"></a><span class="cp">#define THUMBNAILER_EXTENSION &quot;.thumbnailer&quot;</span>
+<a id="line-70" name="line-70"></a>
+<a id="line-71" name="line-71"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="p">{</span>
+<a id="line-72" name="line-72"></a><span class="w"> </span><span class="k">volatile</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ref_count</span><span class="p">;</span>
+<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">try_exec</span><span class="p">;</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">command</span><span class="p">;</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">mime_types</span><span class="p">;</span>
+<a id="line-77" name="line-77"></a><span class="p">}</span><span class="w"> </span><span class="n">Thumbnailer</span><span class="p">;</span>
+<a id="line-78" name="line-78"></a>
+<a id="line-79" name="line-79"></a><span class="k">static</span><span class="w"> </span><span class="n">Thumbnailer</span><span class="w"> </span><span class="o">*</span>
+<a id="line-80" name="line-80"></a><span class="nf">thumbnailer_ref</span><span class="w"> </span><span class="p">(</span><span class="n">Thumbnailer</span><span class="w"> </span><span class="o">*</span><span class="n">thumb</span><span class="p">)</span>
+<a id="line-81" name="line-81"></a><span class="p">{</span>
+<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">ref_count</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-84" name="line-84"></a>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">g_atomic_int_inc</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">ref_count</span><span class="p">);</span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">thumb</span><span class="p">;</span>
+<a id="line-87" name="line-87"></a><span class="p">}</span>
+<a id="line-88" name="line-88"></a>
+<a id="line-89" name="line-89"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-90" name="line-90"></a><span class="nf">thumbnailer_unref</span><span class="w"> </span><span class="p">(</span><span class="n">Thumbnailer</span><span class="w"> </span><span class="o">*</span><span class="n">thumb</span><span class="p">)</span>
+<a id="line-91" name="line-91"></a><span class="p">{</span>
+<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">ref_count</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-94" name="line-94"></a>
+<a id="line-95" name="line-95"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_atomic_int_dec_and_test</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">ref_count</span><span class="p">))</span>
+<a id="line-96" name="line-96"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">path</span><span class="p">);</span>
+<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">try_exec</span><span class="p">);</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">command</span><span class="p">);</span>
+<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">mime_types</span><span class="p">);</span>
+<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">g_slice_free</span><span class="w"> </span><span class="p">(</span><span class="n">Thumbnailer</span><span class="p">,</span><span class="w"> </span><span class="n">thumb</span><span class="p">);</span>
+<a id="line-102" name="line-102"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-103" name="line-103"></a><span class="p">}</span>
+<a id="line-104" name="line-104"></a>
+<a id="line-105" name="line-105"></a><span class="k">static</span><span class="w"> </span><span class="n">Thumbnailer</span><span class="w"> </span><span class="o">*</span>
+<a id="line-106" name="line-106"></a><span class="nf">thumbnailer_load</span><span class="w"> </span><span class="p">(</span><span class="n">Thumbnailer</span><span class="w"> </span><span class="o">*</span><span class="n">thumb</span><span class="p">)</span>
+<a id="line-107" name="line-107"></a><span class="p">{</span>
+<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">GKeyFile</span><span class="w"> </span><span class="o">*</span><span class="n">key_file</span><span class="p">;</span>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-110" name="line-110"></a>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">key_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_key_file_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_key_file_load_from_file</span><span class="w"> </span><span class="p">(</span><span class="n">key_file</span><span class="p">,</span><span class="w"> </span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">))</span>
+<a id="line-113" name="line-113"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to load thumbnailer from </span><span class="se">\&quot;</span><span class="s">%s</span><span class="se">\&quot;</span><span class="s">: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span>
+<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">thumbnailer_unref</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">);</span>
+<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">g_key_file_free</span><span class="w"> </span><span class="p">(</span><span class="n">key_file</span><span class="p">);</span>
+<a id="line-118" name="line-118"></a>
+<a id="line-119" name="line-119"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-120" name="line-120"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-121" name="line-121"></a>
+<a id="line-122" name="line-122"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_key_file_has_group</span><span class="w"> </span><span class="p">(</span><span class="n">key_file</span><span class="p">,</span><span class="w"> </span><span class="n">THUMBNAILER_ENTRY_GROUP</span><span class="p">))</span>
+<a id="line-123" name="line-123"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Invalid thumbnailer: missing group </span><span class="se">\&quot;</span><span class="s">%s</span><span class="se">\&quot;\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">THUMBNAILER_ENTRY_GROUP</span><span class="p">);</span>
+<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">thumbnailer_unref</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">);</span>
+<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">g_key_file_free</span><span class="w"> </span><span class="p">(</span><span class="n">key_file</span><span class="p">);</span>
+<a id="line-127" name="line-127"></a>
+<a id="line-128" name="line-128"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-129" name="line-129"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-130" name="line-130"></a>
+<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">command</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_key_file_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">key_file</span><span class="p">,</span><span class="w"> </span><span class="n">THUMBNAILER_ENTRY_GROUP</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Exec&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-132" name="line-132"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">command</span><span class="p">)</span>
+<a id="line-133" name="line-133"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Invalid thumbnailer: missing Exec key</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">);</span>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">thumbnailer_unref</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">);</span>
+<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">g_key_file_free</span><span class="w"> </span><span class="p">(</span><span class="n">key_file</span><span class="p">);</span>
+<a id="line-137" name="line-137"></a>
+<a id="line-138" name="line-138"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-140" name="line-140"></a>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">mime_types</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_key_file_get_string_list</span><span class="w"> </span><span class="p">(</span><span class="n">key_file</span><span class="p">,</span><span class="w"> </span><span class="n">THUMBNAILER_ENTRY_GROUP</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;MimeType&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-142" name="line-142"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">mime_types</span><span class="p">)</span>
+<a id="line-143" name="line-143"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Invalid thumbnailer: missing MimeType key</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">);</span>
+<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">thumbnailer_unref</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">);</span>
+<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">g_key_file_free</span><span class="w"> </span><span class="p">(</span><span class="n">key_file</span><span class="p">);</span>
+<a id="line-147" name="line-147"></a>
+<a id="line-148" name="line-148"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-149" name="line-149"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-150" name="line-150"></a>
+<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">try_exec</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_key_file_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">key_file</span><span class="p">,</span><span class="w"> </span><span class="n">THUMBNAILER_ENTRY_GROUP</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;TryExec&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-152" name="line-152"></a>
+<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">g_key_file_free</span><span class="w"> </span><span class="p">(</span><span class="n">key_file</span><span class="p">);</span>
+<a id="line-154" name="line-154"></a>
+<a id="line-155" name="line-155"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">thumb</span><span class="p">;</span>
+<a id="line-156" name="line-156"></a><span class="p">}</span>
+<a id="line-157" name="line-157"></a>
+<a id="line-158" name="line-158"></a><span class="k">static</span><span class="w"> </span><span class="n">Thumbnailer</span><span class="w"> </span><span class="o">*</span>
+<a id="line-159" name="line-159"></a><span class="nf">thumbnailer_reload</span><span class="w"> </span><span class="p">(</span><span class="n">Thumbnailer</span><span class="w"> </span><span class="o">*</span><span class="n">thumb</span><span class="p">)</span>
+<a id="line-160" name="line-160"></a><span class="p">{</span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-162" name="line-162"></a>
+<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">command</span><span class="p">);</span>
+<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">command</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">mime_types</span><span class="p">);</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">mime_types</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">try_exec</span><span class="p">);</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">try_exec</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-169" name="line-169"></a>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">thumbnailer_load</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">);</span>
+<a id="line-171" name="line-171"></a><span class="p">}</span>
+<a id="line-172" name="line-172"></a>
+<a id="line-173" name="line-173"></a><span class="k">static</span><span class="w"> </span><span class="n">Thumbnailer</span><span class="w"> </span><span class="o">*</span>
+<a id="line-174" name="line-174"></a><span class="nf">thumbnailer_new</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">)</span>
+<a id="line-175" name="line-175"></a><span class="p">{</span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">Thumbnailer</span><span class="w"> </span><span class="o">*</span><span class="n">thumb</span><span class="p">;</span>
+<a id="line-177" name="line-177"></a>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">thumb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slice_new0</span><span class="w"> </span><span class="p">(</span><span class="n">Thumbnailer</span><span class="p">);</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">ref_count</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span>
+<a id="line-181" name="line-181"></a>
+<a id="line-182" name="line-182"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">thumbnailer_load</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">);</span>
+<a id="line-183" name="line-183"></a><span class="p">}</span>
+<a id="line-184" name="line-184"></a>
+<a id="line-185" name="line-185"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-186" name="line-186"></a><span class="nf">thumbnailer_try_exec</span><span class="w"> </span><span class="p">(</span><span class="n">Thumbnailer</span><span class="w"> </span><span class="o">*</span><span class="n">thumb</span><span class="p">)</span>
+<a id="line-187" name="line-187"></a><span class="p">{</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span>
+<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span>
+<a id="line-190" name="line-190"></a>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_UNLIKELY</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">thumb</span><span class="p">))</span>
+<a id="line-192" name="line-192"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-193" name="line-193"></a>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="cm">/* TryExec is optional, but Exec isn&#39;t, so we assume</span>
+<a id="line-195" name="line-195"></a><span class="cm"> * the thumbnailer can be run when TryExec is not present</span>
+<a id="line-196" name="line-196"></a><span class="cm"> */</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">try_exec</span><span class="p">)</span>
+<a id="line-198" name="line-198"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-199" name="line-199"></a>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_find_program_in_path</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">try_exec</span><span class="p">);</span>
+<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-202" name="line-202"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span>
+<a id="line-203" name="line-203"></a>
+<a id="line-204" name="line-204"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span>
+<a id="line-205" name="line-205"></a><span class="p">}</span>
+<a id="line-206" name="line-206"></a>
+<a id="line-207" name="line-207"></a><span class="k">static</span><span class="w"> </span><span class="n">gpointer</span>
+<a id="line-208" name="line-208"></a><span class="nf">init_thumbnailers_dirs</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-209" name="line-209"></a><span class="p">{</span>
+<a id="line-210" name="line-210"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="o">*</span><span class="n">data_dirs</span><span class="p">;</span>
+<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">GPtrArray</span><span class="w"> </span><span class="o">*</span><span class="n">thumbs_dirs</span><span class="p">;</span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-213" name="line-213"></a>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">data_dirs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_get_system_data_dirs</span><span class="w"> </span><span class="p">();</span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">thumbs_dirs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-216" name="line-216"></a>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">thumbs_dirs</span><span class="p">,</span><span class="w"> </span><span class="n">g_build_filename</span><span class="w"> </span><span class="p">(</span><span class="n">g_get_user_data_dir</span><span class="w"> </span><span class="p">(),</span><span class="w"> </span><span class="s">&quot;thumbnailers&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span>
+<a id="line-218" name="line-218"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">data_dirs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span>
+<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">thumbs_dirs</span><span class="p">,</span><span class="w"> </span><span class="n">g_build_filename</span><span class="w"> </span><span class="p">(</span><span class="n">data_dirs</span><span class="p">[</span><span class="n">i</span><span class="p">],</span><span class="w"> </span><span class="s">&quot;thumbnailers&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span>
+<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">thumbs_dirs</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-221" name="line-221"></a>
+<a id="line-222" name="line-222"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_ptr_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">thumbs_dirs</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-223" name="line-223"></a><span class="p">}</span>
+<a id="line-224" name="line-224"></a>
+<a id="line-225" name="line-225"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="o">*</span>
+<a id="line-226" name="line-226"></a><span class="n">get_thumbnailers_dirs</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-227" name="line-227"></a><span class="p">{</span>
+<a id="line-228" name="line-228"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">GOnce</span><span class="w"> </span><span class="n">once_init</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_ONCE_INIT</span><span class="p">;</span>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_once</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">once_init</span><span class="p">,</span><span class="w"> </span><span class="n">init_thumbnailers_dirs</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-230" name="line-230"></a><span class="p">}</span>
+<a id="line-231" name="line-231"></a>
+<a id="line-232" name="line-232"></a><span class="cm">/* These should be called with the lock held */</span>
+<a id="line-233" name="line-233"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-234" name="line-234"></a><span class="n">mate_desktop_thumbnail_factory_register_mime_types</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">,</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">Thumbnailer</span><span class="w"> </span><span class="o">*</span><span class="n">thumb</span><span class="p">)</span>
+<a id="line-236" name="line-236"></a><span class="p">{</span>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">MateDesktopThumbnailFactoryPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">factory</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-239" name="line-239"></a>
+<a id="line-240" name="line-240"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">mime_types</span><span class="p">[</span><span class="n">i</span><span class="p">];</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span>
+<a id="line-241" name="line-241"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-242" name="line-242"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">mime_types_map</span><span class="p">,</span><span class="w"> </span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">mime_types</span><span class="p">[</span><span class="n">i</span><span class="p">]))</span>
+<a id="line-243" name="line-243"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">mime_types_map</span><span class="p">,</span>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">mime_types</span><span class="p">[</span><span class="n">i</span><span class="p">]),</span>
+<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">thumbnailer_ref</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">));</span>
+<a id="line-246" name="line-246"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-247" name="line-247"></a><span class="p">}</span>
+<a id="line-248" name="line-248"></a>
+<a id="line-249" name="line-249"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-250" name="line-250"></a><span class="n">mate_desktop_thumbnail_factory_add_thumbnailer</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">,</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">Thumbnailer</span><span class="w"> </span><span class="o">*</span><span class="n">thumb</span><span class="p">)</span>
+<a id="line-252" name="line-252"></a><span class="p">{</span>
+<a id="line-253" name="line-253"></a><span class="w"> </span><span class="n">MateDesktopThumbnailFactoryPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">factory</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-254" name="line-254"></a>
+<a id="line-255" name="line-255"></a><span class="w"> </span><span class="n">mate_desktop_thumbnail_factory_register_mime_types</span><span class="w"> </span><span class="p">(</span><span class="n">factory</span><span class="p">,</span><span class="w"> </span><span class="n">thumb</span><span class="p">);</span>
+<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">thumbnailers</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">thumbnailers</span><span class="p">,</span><span class="w"> </span><span class="n">thumb</span><span class="p">);</span>
+<a id="line-257" name="line-257"></a><span class="p">}</span>
+<a id="line-258" name="line-258"></a>
+<a id="line-259" name="line-259"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-260" name="line-260"></a><span class="n">mate_desktop_thumbnail_factory_is_disabled</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">,</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">mime_type</span><span class="p">)</span>
+<a id="line-262" name="line-262"></a><span class="p">{</span>
+<a id="line-263" name="line-263"></a><span class="w"> </span><span class="n">MateDesktopThumbnailFactoryPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">factory</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-265" name="line-265"></a>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">disabled</span><span class="p">)</span>
+<a id="line-267" name="line-267"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-268" name="line-268"></a>
+<a id="line-269" name="line-269"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">disabled_types</span><span class="p">)</span>
+<a id="line-270" name="line-270"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-271" name="line-271"></a>
+<a id="line-272" name="line-272"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">disabled_types</span><span class="p">[</span><span class="n">i</span><span class="p">];</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span>
+<a id="line-273" name="line-273"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-274" name="line-274"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_strcmp0</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">disabled_types</span><span class="p">[</span><span class="n">i</span><span class="p">],</span><span class="w"> </span><span class="n">mime_type</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-275" name="line-275"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-276" name="line-276"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-277" name="line-277"></a>
+<a id="line-278" name="line-278"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-279" name="line-279"></a><span class="p">}</span>
+<a id="line-280" name="line-280"></a>
+<a id="line-281" name="line-281"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-282" name="line-282"></a><span class="n">remove_thumbnailer_from_mime_type_map</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="p">,</span>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">Thumbnailer</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">)</span>
+<a id="line-285" name="line-285"></a><span class="p">{</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="o">-&gt;</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-287" name="line-287"></a><span class="p">}</span>
+<a id="line-288" name="line-288"></a>
+<a id="line-289" name="line-289"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-290" name="line-290"></a><span class="n">update_or_create_thumbnailer</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">,</span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">)</span>
+<a id="line-292" name="line-292"></a><span class="p">{</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">MateDesktopThumbnailFactoryPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">factory</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">l</span><span class="p">;</span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">Thumbnailer</span><span class="w"> </span><span class="o">*</span><span class="n">thumb</span><span class="p">;</span>
+<a id="line-296" name="line-296"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">found</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-297" name="line-297"></a>
+<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">g_mutex_lock</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">lock</span><span class="p">);</span>
+<a id="line-299" name="line-299"></a>
+<a id="line-300" name="line-300"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">thumbnailers</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">!</span><span class="n">found</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_next</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="p">))</span>
+<a id="line-301" name="line-301"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-302" name="line-302"></a><span class="w"> </span><span class="n">thumb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">Thumbnailer</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">l</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-303" name="line-303"></a>
+<a id="line-304" name="line-304"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-305" name="line-305"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-306" name="line-306"></a><span class="w"> </span><span class="n">found</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-307" name="line-307"></a>
+<a id="line-308" name="line-308"></a><span class="w"> </span><span class="cm">/* First remove the mime_types associated to this thumbnailer */</span>
+<a id="line-309" name="line-309"></a><span class="w"> </span><span class="n">g_hash_table_foreach_remove</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">mime_types_map</span><span class="p">,</span>
+<a id="line-310" name="line-310"></a><span class="w"> </span><span class="p">(</span><span class="n">GHRFunc</span><span class="p">)</span><span class="n">remove_thumbnailer_from_mime_type_map</span><span class="p">,</span>
+<a id="line-311" name="line-311"></a><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="p">)</span><span class="n">path</span><span class="p">);</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">thumbnailer_reload</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">))</span>
+<a id="line-313" name="line-313"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">thumbnailers</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_delete_link</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">thumbnailers</span><span class="p">,</span><span class="w"> </span><span class="n">l</span><span class="p">);</span>
+<a id="line-314" name="line-314"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-315" name="line-315"></a><span class="w"> </span><span class="n">mate_desktop_thumbnail_factory_register_mime_types</span><span class="w"> </span><span class="p">(</span><span class="n">factory</span><span class="p">,</span><span class="w"> </span><span class="n">thumb</span><span class="p">);</span>
+<a id="line-316" name="line-316"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-318" name="line-318"></a>
+<a id="line-319" name="line-319"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">found</span><span class="p">)</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">thumb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">thumbnailer_new</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">)</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">mate_desktop_thumbnail_factory_add_thumbnailer</span><span class="w"> </span><span class="p">(</span><span class="n">factory</span><span class="p">,</span><span class="w"> </span><span class="n">thumb</span><span class="p">);</span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-325" name="line-325"></a>
+<a id="line-326" name="line-326"></a><span class="w"> </span><span class="n">g_mutex_unlock</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">lock</span><span class="p">);</span>
+<a id="line-327" name="line-327"></a><span class="p">}</span>
+<a id="line-328" name="line-328"></a>
+<a id="line-329" name="line-329"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-330" name="line-330"></a><span class="n">remove_thumbnailer</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">,</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">)</span>
+<a id="line-332" name="line-332"></a><span class="p">{</span>
+<a id="line-333" name="line-333"></a><span class="w"> </span><span class="n">MateDesktopThumbnailFactoryPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">factory</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">l</span><span class="p">;</span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="n">Thumbnailer</span><span class="w"> </span><span class="o">*</span><span class="n">thumb</span><span class="p">;</span>
+<a id="line-336" name="line-336"></a>
+<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">g_mutex_lock</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">lock</span><span class="p">);</span>
+<a id="line-338" name="line-338"></a>
+<a id="line-339" name="line-339"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">thumbnailers</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_next</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="p">))</span>
+<a id="line-340" name="line-340"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-341" name="line-341"></a><span class="w"> </span><span class="n">thumb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">Thumbnailer</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">l</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-342" name="line-342"></a>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">thumbnailers</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_delete_link</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">thumbnailers</span><span class="p">,</span><span class="w"> </span><span class="n">l</span><span class="p">);</span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">g_hash_table_foreach_remove</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">mime_types_map</span><span class="p">,</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="p">(</span><span class="n">GHRFunc</span><span class="p">)</span><span class="n">remove_thumbnailer_from_mime_type_map</span><span class="p">,</span>
+<a id="line-348" name="line-348"></a><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="p">)</span><span class="n">path</span><span class="p">);</span>
+<a id="line-349" name="line-349"></a><span class="w"> </span><span class="n">thumbnailer_unref</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">);</span>
+<a id="line-350" name="line-350"></a>
+<a id="line-351" name="line-351"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-352" name="line-352"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-353" name="line-353"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-354" name="line-354"></a>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="n">g_mutex_unlock</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">lock</span><span class="p">);</span>
+<a id="line-356" name="line-356"></a><span class="p">}</span>
+<a id="line-357" name="line-357"></a>
+<a id="line-358" name="line-358"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-359" name="line-359"></a><span class="n">remove_thumbnailers_for_dir</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">,</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">thumbnailer_dir</span><span class="p">,</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">GFileMonitor</span><span class="w"> </span><span class="o">*</span><span class="n">monitor</span><span class="p">)</span>
+<a id="line-362" name="line-362"></a><span class="p">{</span>
+<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">MateDesktopThumbnailFactoryPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">factory</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">l</span><span class="p">;</span>
+<a id="line-365" name="line-365"></a><span class="w"> </span><span class="n">Thumbnailer</span><span class="w"> </span><span class="o">*</span><span class="n">thumb</span><span class="p">;</span>
+<a id="line-366" name="line-366"></a>
+<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">g_mutex_lock</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">lock</span><span class="p">);</span>
+<a id="line-368" name="line-368"></a>
+<a id="line-369" name="line-369"></a><span class="w"> </span><span class="cm">/* Remove all the thumbnailers inside this @thumbnailer_dir. */</span>
+<a id="line-370" name="line-370"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">thumbnailers</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_next</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="p">))</span>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">thumb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">Thumbnailer</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">l</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-373" name="line-373"></a>
+<a id="line-374" name="line-374"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_str_has_prefix</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="n">thumbnailer_dir</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">TRUE</span><span class="p">)</span>
+<a id="line-375" name="line-375"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-376" name="line-376"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">thumbnailers</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_delete_link</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">thumbnailers</span><span class="p">,</span><span class="w"> </span><span class="n">l</span><span class="p">);</span>
+<a id="line-377" name="line-377"></a><span class="w"> </span><span class="n">g_hash_table_foreach_remove</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">mime_types_map</span><span class="p">,</span>
+<a id="line-378" name="line-378"></a><span class="w"> </span><span class="p">(</span><span class="n">GHRFunc</span><span class="p">)</span><span class="n">remove_thumbnailer_from_mime_type_map</span><span class="p">,</span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="p">)</span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">path</span><span class="p">);</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">thumbnailer_unref</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">);</span>
+<a id="line-381" name="line-381"></a>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-385" name="line-385"></a>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="cm">/* Remove the monitor for @thumbnailer_dir. */</span>
+<a id="line-387" name="line-387"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">monitors</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_remove</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">monitors</span><span class="p">,</span><span class="w"> </span><span class="n">monitor</span><span class="p">);</span>
+<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">monitor</span><span class="p">,</span><span class="w"> </span><span class="n">thumbnailers_directory_changed</span><span class="p">,</span><span class="w"> </span><span class="n">factory</span><span class="p">);</span>
+<a id="line-389" name="line-389"></a>
+<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">g_mutex_unlock</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">lock</span><span class="p">);</span>
+<a id="line-391" name="line-391"></a><span class="p">}</span>
+<a id="line-392" name="line-392"></a>
+<a id="line-393" name="line-393"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-394" name="line-394"></a><span class="n">mate_desktop_thumbnail_factory_load_thumbnailers_for_dir</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">,</span>
+<a id="line-395" name="line-395"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">)</span>
+<a id="line-396" name="line-396"></a><span class="p">{</span>
+<a id="line-397" name="line-397"></a><span class="w"> </span><span class="n">MateDesktopThumbnailFactoryPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">factory</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-398" name="line-398"></a><span class="w"> </span><span class="n">GDir</span><span class="w"> </span><span class="o">*</span><span class="n">dir</span><span class="p">;</span>
+<a id="line-399" name="line-399"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">dir_file</span><span class="p">;</span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">GFileMonitor</span><span class="w"> </span><span class="o">*</span><span class="n">monitor</span><span class="p">;</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">dirent</span><span class="p">;</span>
+<a id="line-402" name="line-402"></a>
+<a id="line-403" name="line-403"></a><span class="w"> </span><span class="n">dir</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dir_open</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">dir</span><span class="p">)</span>
+<a id="line-405" name="line-405"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-406" name="line-406"></a>
+<a id="line-407" name="line-407"></a><span class="w"> </span><span class="cm">/* Monitor dir */</span>
+<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">dir_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_new_for_path</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">monitor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_monitor_directory</span><span class="w"> </span><span class="p">(</span><span class="n">dir_file</span><span class="p">,</span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">G_FILE_MONITOR_NONE</span><span class="p">,</span>
+<a id="line-411" name="line-411"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">monitor</span><span class="p">)</span>
+<a id="line-413" name="line-413"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">monitor</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span>
+<a id="line-415" name="line-415"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">thumbnailers_directory_changed</span><span class="p">),</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">factory</span><span class="p">);</span>
+<a id="line-417" name="line-417"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">monitors</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">monitors</span><span class="p">,</span><span class="w"> </span><span class="n">monitor</span><span class="p">);</span>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-419" name="line-419"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">dir_file</span><span class="p">);</span>
+<a id="line-420" name="line-420"></a>
+<a id="line-421" name="line-421"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">((</span><span class="n">dirent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dir_read_name</span><span class="w"> </span><span class="p">(</span><span class="n">dir</span><span class="p">)))</span>
+<a id="line-422" name="line-422"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-423" name="line-423"></a><span class="w"> </span><span class="n">Thumbnailer</span><span class="w"> </span><span class="o">*</span><span class="n">thumb</span><span class="p">;</span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">;</span>
+<a id="line-425" name="line-425"></a>
+<a id="line-426" name="line-426"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_str_has_suffix</span><span class="w"> </span><span class="p">(</span><span class="n">dirent</span><span class="p">,</span><span class="w"> </span><span class="n">THUMBNAILER_EXTENSION</span><span class="p">))</span>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span>
+<a id="line-428" name="line-428"></a>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_build_filename</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="n">dirent</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">thumb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">thumbnailer_new</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-431" name="line-431"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-432" name="line-432"></a>
+<a id="line-433" name="line-433"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">)</span>
+<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">mate_desktop_thumbnail_factory_add_thumbnailer</span><span class="w"> </span><span class="p">(</span><span class="n">factory</span><span class="p">,</span><span class="w"> </span><span class="n">thumb</span><span class="p">);</span>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-436" name="line-436"></a>
+<a id="line-437" name="line-437"></a><span class="w"> </span><span class="n">g_dir_close</span><span class="w"> </span><span class="p">(</span><span class="n">dir</span><span class="p">);</span>
+<a id="line-438" name="line-438"></a><span class="p">}</span>
+<a id="line-439" name="line-439"></a>
+<a id="line-440" name="line-440"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-441" name="line-441"></a><span class="n">thumbnailers_directory_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GFileMonitor</span><span class="w"> </span><span class="o">*</span><span class="n">monitor</span><span class="p">,</span>
+<a id="line-442" name="line-442"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">,</span>
+<a id="line-443" name="line-443"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">other_file</span><span class="p">,</span>
+<a id="line-444" name="line-444"></a><span class="w"> </span><span class="n">GFileMonitorEvent</span><span class="w"> </span><span class="n">event_type</span><span class="p">,</span>
+<a id="line-445" name="line-445"></a><span class="w"> </span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">)</span>
+<a id="line-446" name="line-446"></a><span class="p">{</span>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span>
+<a id="line-448" name="line-448"></a>
+<a id="line-449" name="line-449"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">event_type</span><span class="p">)</span>
+<a id="line-450" name="line-450"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-451" name="line-451"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">G_FILE_MONITOR_EVENT_CREATED</span><span class="p">:</span>
+<a id="line-452" name="line-452"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">G_FILE_MONITOR_EVENT_CHANGED</span><span class="p">:</span>
+<a id="line-453" name="line-453"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">G_FILE_MONITOR_EVENT_DELETED</span><span class="p">:</span>
+<a id="line-454" name="line-454"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_path</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-455" name="line-455"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_str_has_suffix</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="n">THUMBNAILER_EXTENSION</span><span class="p">))</span>
+<a id="line-456" name="line-456"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-457" name="line-457"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span>
+<a id="line-458" name="line-458"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-459" name="line-459"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-460" name="line-460"></a>
+<a id="line-461" name="line-461"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">G_FILE_MONITOR_EVENT_DELETED</span><span class="p">)</span>
+<a id="line-462" name="line-462"></a><span class="w"> </span><span class="n">remove_thumbnailer</span><span class="w"> </span><span class="p">(</span><span class="n">factory</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">);</span>
+<a id="line-463" name="line-463"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-464" name="line-464"></a><span class="w"> </span><span class="n">update_or_create_thumbnailer</span><span class="w"> </span><span class="p">(</span><span class="n">factory</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">);</span>
+<a id="line-465" name="line-465"></a>
+<a id="line-466" name="line-466"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span>
+<a id="line-467" name="line-467"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">G_FILE_MONITOR_EVENT_UNMOUNTED</span><span class="p">:</span>
+<a id="line-469" name="line-469"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">G_FILE_MONITOR_EVENT_MOVED</span><span class="p">:</span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_path</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-471" name="line-471"></a><span class="w"> </span><span class="n">remove_thumbnailers_for_dir</span><span class="w"> </span><span class="p">(</span><span class="n">factory</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="n">monitor</span><span class="p">);</span>
+<a id="line-472" name="line-472"></a>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">G_FILE_MONITOR_EVENT_MOVED</span><span class="p">)</span>
+<a id="line-474" name="line-474"></a><span class="w"> </span><span class="n">mate_desktop_thumbnail_factory_load_thumbnailers_for_dir</span><span class="w"> </span><span class="p">(</span><span class="n">factory</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">);</span>
+<a id="line-475" name="line-475"></a>
+<a id="line-476" name="line-476"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span>
+<a id="line-477" name="line-477"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-478" name="line-478"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT</span><span class="p">:</span>
+<a id="line-479" name="line-479"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED</span><span class="p">:</span>
+<a id="line-480" name="line-480"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">G_FILE_MONITOR_EVENT_PRE_UNMOUNT</span><span class="p">:</span>
+<a id="line-481" name="line-481"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-482" name="line-482"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-483" name="line-483"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-484" name="line-484"></a><span class="p">}</span>
+<a id="line-485" name="line-485"></a>
+<a id="line-486" name="line-486"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-487" name="line-487"></a><span class="n">mate_desktop_thumbnail_factory_load_thumbnailers</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">)</span>
+<a id="line-488" name="line-488"></a><span class="p">{</span>
+<a id="line-489" name="line-489"></a><span class="w"> </span><span class="n">MateDesktopThumbnailFactoryPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">factory</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-490" name="line-490"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="o">*</span><span class="n">dirs</span><span class="p">;</span>
+<a id="line-491" name="line-491"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-492" name="line-492"></a>
+<a id="line-493" name="line-493"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">loaded</span><span class="p">)</span>
+<a id="line-494" name="line-494"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-495" name="line-495"></a>
+<a id="line-496" name="line-496"></a><span class="w"> </span><span class="n">dirs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_thumbnailers_dirs</span><span class="w"> </span><span class="p">();</span>
+<a id="line-497" name="line-497"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">dirs</span><span class="p">[</span><span class="n">i</span><span class="p">];</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span>
+<a id="line-498" name="line-498"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-499" name="line-499"></a><span class="w"> </span><span class="n">mate_desktop_thumbnail_factory_load_thumbnailers_for_dir</span><span class="w"> </span><span class="p">(</span><span class="n">factory</span><span class="p">,</span><span class="w"> </span><span class="n">dirs</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span>
+<a id="line-500" name="line-500"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-501" name="line-501"></a>
+<a id="line-502" name="line-502"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">loaded</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-503" name="line-503"></a><span class="p">}</span>
+<a id="line-504" name="line-504"></a>
+<a id="line-505" name="line-505"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-506" name="line-506"></a><span class="n">external_thumbnailers_disabled_all_changed_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GSettings</span><span class="w"> </span><span class="o">*</span><span class="n">settings</span><span class="p">,</span>
+<a id="line-507" name="line-507"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="p">,</span>
+<a id="line-508" name="line-508"></a><span class="w"> </span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">)</span>
+<a id="line-509" name="line-509"></a><span class="p">{</span>
+<a id="line-510" name="line-510"></a><span class="w"> </span><span class="n">MateDesktopThumbnailFactoryPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">factory</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-511" name="line-511"></a>
+<a id="line-512" name="line-512"></a><span class="w"> </span><span class="n">g_mutex_lock</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">lock</span><span class="p">);</span>
+<a id="line-513" name="line-513"></a>
+<a id="line-514" name="line-514"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">disabled</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;disable-all&quot;</span><span class="p">);</span>
+<a id="line-515" name="line-515"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">disabled</span><span class="p">)</span>
+<a id="line-516" name="line-516"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-517" name="line-517"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">disabled_types</span><span class="p">);</span>
+<a id="line-518" name="line-518"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">disabled_types</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-519" name="line-519"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-520" name="line-520"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-521" name="line-521"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">disabled_types</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_strv</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;disable&quot;</span><span class="p">);</span>
+<a id="line-523" name="line-523"></a><span class="w"> </span><span class="n">mate_desktop_thumbnail_factory_load_thumbnailers</span><span class="w"> </span><span class="p">(</span><span class="n">factory</span><span class="p">);</span>
+<a id="line-524" name="line-524"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-525" name="line-525"></a>
+<a id="line-526" name="line-526"></a><span class="w"> </span><span class="n">g_mutex_unlock</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">lock</span><span class="p">);</span>
+<a id="line-527" name="line-527"></a><span class="p">}</span>
+<a id="line-528" name="line-528"></a>
+<a id="line-529" name="line-529"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-530" name="line-530"></a><span class="n">external_thumbnailers_disabled_changed_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GSettings</span><span class="w"> </span><span class="o">*</span><span class="n">settings</span><span class="p">,</span>
+<a id="line-531" name="line-531"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="p">,</span>
+<a id="line-532" name="line-532"></a><span class="w"> </span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">)</span>
+<a id="line-533" name="line-533"></a><span class="p">{</span>
+<a id="line-534" name="line-534"></a><span class="w"> </span><span class="n">MateDesktopThumbnailFactoryPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">factory</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-535" name="line-535"></a>
+<a id="line-536" name="line-536"></a><span class="w"> </span><span class="n">g_mutex_lock</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">lock</span><span class="p">);</span>
+<a id="line-537" name="line-537"></a>
+<a id="line-538" name="line-538"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">disabled</span><span class="p">)</span>
+<a id="line-539" name="line-539"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-540" name="line-540"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">disabled_types</span><span class="p">);</span>
+<a id="line-541" name="line-541"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">disabled_types</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_strv</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;disable&quot;</span><span class="p">);</span>
+<a id="line-542" name="line-542"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-543" name="line-543"></a>
+<a id="line-544" name="line-544"></a><span class="w"> </span><span class="n">g_mutex_unlock</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">lock</span><span class="p">);</span>
+<a id="line-545" name="line-545"></a><span class="p">}</span>
+<a id="line-546" name="line-546"></a>
+<a id="line-547" name="line-547"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-548" name="line-548"></a><span class="n">mate_desktop_thumbnail_factory_init</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">)</span>
+<a id="line-549" name="line-549"></a><span class="p">{</span>
+<a id="line-550" name="line-550"></a><span class="w"> </span><span class="n">MateDesktopThumbnailFactoryPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-551" name="line-551"></a>
+<a id="line-552" name="line-552"></a><span class="w"> </span><span class="n">factory</span><span class="o">-&gt;</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_thumbnail_factory_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">factory</span><span class="p">);</span>
+<a id="line-553" name="line-553"></a>
+<a id="line-554" name="line-554"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">factory</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-555" name="line-555"></a>
+<a id="line-556" name="line-556"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_DESKTOP_THUMBNAIL_SIZE_NORMAL</span><span class="p">;</span>
+<a id="line-557" name="line-557"></a>
+<a id="line-558" name="line-558"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">mime_types_map</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_new_full</span><span class="w"> </span><span class="p">(</span><span class="n">g_str_hash</span><span class="p">,</span>
+<a id="line-559" name="line-559"></a><span class="w"> </span><span class="n">g_str_equal</span><span class="p">,</span>
+<a id="line-560" name="line-560"></a><span class="w"> </span><span class="p">(</span><span class="n">GDestroyNotify</span><span class="p">)</span><span class="n">g_free</span><span class="p">,</span>
+<a id="line-561" name="line-561"></a><span class="w"> </span><span class="p">(</span><span class="n">GDestroyNotify</span><span class="p">)</span><span class="n">thumbnailer_unref</span><span class="p">);</span>
+<a id="line-562" name="line-562"></a>
+<a id="line-563" name="line-563"></a><span class="w"> </span><span class="n">g_mutex_init</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">lock</span><span class="p">);</span>
+<a id="line-564" name="line-564"></a>
+<a id="line-565" name="line-565"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">settings</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;org.mate.thumbnailers&quot;</span><span class="p">);</span>
+<a id="line-566" name="line-566"></a>
+<a id="line-567" name="line-567"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;changed::disable-all&quot;</span><span class="p">,</span>
+<a id="line-568" name="line-568"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">external_thumbnailers_disabled_all_changed_cb</span><span class="p">),</span>
+<a id="line-569" name="line-569"></a><span class="w"> </span><span class="n">factory</span><span class="p">);</span>
+<a id="line-570" name="line-570"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;changed::disable&quot;</span><span class="p">,</span>
+<a id="line-571" name="line-571"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">external_thumbnailers_disabled_changed_cb</span><span class="p">),</span>
+<a id="line-572" name="line-572"></a><span class="w"> </span><span class="n">factory</span><span class="p">);</span>
+<a id="line-573" name="line-573"></a>
+<a id="line-574" name="line-574"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">disabled</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;disable-all&quot;</span><span class="p">);</span>
+<a id="line-575" name="line-575"></a>
+<a id="line-576" name="line-576"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">disabled</span><span class="p">)</span>
+<a id="line-577" name="line-577"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">disabled_types</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_strv</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;disable&quot;</span><span class="p">);</span>
+<a id="line-578" name="line-578"></a>
+<a id="line-579" name="line-579"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">disabled</span><span class="p">)</span>
+<a id="line-580" name="line-580"></a><span class="w"> </span><span class="n">mate_desktop_thumbnail_factory_load_thumbnailers</span><span class="w"> </span><span class="p">(</span><span class="n">factory</span><span class="p">);</span>
+<a id="line-581" name="line-581"></a><span class="p">}</span>
+<a id="line-582" name="line-582"></a>
+<a id="line-583" name="line-583"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-584" name="line-584"></a><span class="n">mate_desktop_thumbnail_factory_finalize</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span>
+<a id="line-585" name="line-585"></a><span class="p">{</span>
+<a id="line-586" name="line-586"></a><span class="w"> </span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">;</span>
+<a id="line-587" name="line-587"></a><span class="w"> </span><span class="n">MateDesktopThumbnailFactoryPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-588" name="line-588"></a>
+<a id="line-589" name="line-589"></a><span class="w"> </span><span class="n">factory</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_DESKTOP_THUMBNAIL_FACTORY</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-590" name="line-590"></a>
+<a id="line-591" name="line-591"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">factory</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-592" name="line-592"></a>
+<a id="line-593" name="line-593"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">thumbnailers</span><span class="p">)</span>
+<a id="line-594" name="line-594"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-595" name="line-595"></a><span class="w"> </span><span class="n">g_list_free_full</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">thumbnailers</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">GDestroyNotify</span><span class="p">)</span><span class="n">thumbnailer_unref</span><span class="p">);</span>
+<a id="line-596" name="line-596"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">thumbnailers</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-597" name="line-597"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-598" name="line-598"></a>
+<a id="line-599" name="line-599"></a><span class="w"> </span><span class="n">g_clear_pointer</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">mime_types_map</span><span class="p">,</span><span class="w"> </span><span class="n">g_hash_table_destroy</span><span class="p">);</span>
+<a id="line-600" name="line-600"></a>
+<a id="line-601" name="line-601"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">monitors</span><span class="p">)</span>
+<a id="line-602" name="line-602"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-603" name="line-603"></a><span class="w"> </span><span class="n">g_list_free_full</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">monitors</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">GDestroyNotify</span><span class="p">)</span><span class="n">g_object_unref</span><span class="p">);</span>
+<a id="line-604" name="line-604"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">monitors</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-605" name="line-605"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-606" name="line-606"></a>
+<a id="line-607" name="line-607"></a><span class="w"> </span><span class="n">g_mutex_clear</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">lock</span><span class="p">);</span>
+<a id="line-608" name="line-608"></a>
+<a id="line-609" name="line-609"></a><span class="w"> </span><span class="n">g_clear_pointer</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">disabled_types</span><span class="p">,</span><span class="w"> </span><span class="n">g_strfreev</span><span class="p">);</span>
+<a id="line-610" name="line-610"></a>
+<a id="line-611" name="line-611"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">settings</span><span class="p">)</span>
+<a id="line-612" name="line-612"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-613" name="line-613"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">settings</span><span class="p">,</span>
+<a id="line-614" name="line-614"></a><span class="w"> </span><span class="n">external_thumbnailers_disabled_all_changed_cb</span><span class="p">,</span>
+<a id="line-615" name="line-615"></a><span class="w"> </span><span class="n">factory</span><span class="p">);</span>
+<a id="line-616" name="line-616"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">settings</span><span class="p">,</span>
+<a id="line-617" name="line-617"></a><span class="w"> </span><span class="n">external_thumbnailers_disabled_changed_cb</span><span class="p">,</span>
+<a id="line-618" name="line-618"></a><span class="w"> </span><span class="n">factory</span><span class="p">);</span>
+<a id="line-619" name="line-619"></a><span class="w"> </span><span class="n">g_clear_object</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">settings</span><span class="p">);</span>
+<a id="line-620" name="line-620"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-621" name="line-621"></a>
+<a id="line-622" name="line-622"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="p">)</span>
+<a id="line-623" name="line-623"></a><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-624" name="line-624"></a><span class="p">}</span>
+<a id="line-625" name="line-625"></a>
+<a id="line-626" name="line-626"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-627" name="line-627"></a><span class="n">mate_desktop_thumbnail_factory_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopThumbnailFactoryClass</span><span class="w"> </span><span class="o">*</span><span class="n">class</span><span class="p">)</span>
+<a id="line-628" name="line-628"></a><span class="p">{</span>
+<a id="line-629" name="line-629"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">gobject_class</span><span class="p">;</span>
+<a id="line-630" name="line-630"></a>
+<a id="line-631" name="line-631"></a><span class="w"> </span><span class="n">gobject_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">class</span><span class="p">);</span>
+<a id="line-632" name="line-632"></a>
+<a id="line-633" name="line-633"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_thumbnail_factory_finalize</span><span class="p">;</span>
+<a id="line-634" name="line-634"></a><span class="p">}</span>
+<a id="line-635" name="line-635"></a>
+<a id="line-636" name="line-636"></a><span class="cm">/**</span>
+<a id="line-637" name="line-637"></a><span class="cm"> * mate_desktop_thumbnail_factory_new:</span>
+<a id="line-638" name="line-638"></a><span class="cm"> * @size: The thumbnail size to use</span>
+<a id="line-639" name="line-639"></a><span class="cm"> *</span>
+<a id="line-640" name="line-640"></a><span class="cm"> * Creates a new #MateDesktopThumbnailFactory.</span>
+<a id="line-641" name="line-641"></a><span class="cm"> *</span>
+<a id="line-642" name="line-642"></a><span class="cm"> * This function must be called on the main thread.</span>
+<a id="line-643" name="line-643"></a><span class="cm"> *</span>
+<a id="line-644" name="line-644"></a><span class="cm"> * Return value: a new #MateDesktopThumbnailFactory</span>
+<a id="line-645" name="line-645"></a><span class="cm"> *</span>
+<a id="line-646" name="line-646"></a><span class="cm"> * Since: 2.2</span>
+<a id="line-647" name="line-647"></a><span class="cm"> **/</span>
+<a id="line-648" name="line-648"></a><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span>
+<a id="line-649" name="line-649"></a><span class="n">mate_desktop_thumbnail_factory_new</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopThumbnailSize</span><span class="w"> </span><span class="n">size</span><span class="p">)</span>
+<a id="line-650" name="line-650"></a><span class="p">{</span>
+<a id="line-651" name="line-651"></a><span class="w"> </span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">;</span>
+<a id="line-652" name="line-652"></a>
+<a id="line-653" name="line-653"></a><span class="w"> </span><span class="n">factory</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_DESKTOP_TYPE_THUMBNAIL_FACTORY</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-654" name="line-654"></a>
+<a id="line-655" name="line-655"></a><span class="w"> </span><span class="n">factory</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">size</span><span class="p">;</span>
+<a id="line-656" name="line-656"></a>
+<a id="line-657" name="line-657"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">factory</span><span class="p">;</span>
+<a id="line-658" name="line-658"></a><span class="p">}</span>
+<a id="line-659" name="line-659"></a>
+<a id="line-660" name="line-660"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-661" name="line-661"></a><span class="n">thumbnail_filename</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">)</span>
+<a id="line-662" name="line-662"></a><span class="p">{</span>
+<a id="line-663" name="line-663"></a><span class="w"> </span><span class="n">GChecksum</span><span class="w"> </span><span class="o">*</span><span class="n">checksum</span><span class="p">;</span>
+<a id="line-664" name="line-664"></a><span class="w"> </span><span class="n">guint8</span><span class="w"> </span><span class="n">digest</span><span class="p">[</span><span class="mi">16</span><span class="p">];</span>
+<a id="line-665" name="line-665"></a><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">digest_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="k">sizeof</span><span class="w"> </span><span class="p">(</span><span class="n">digest</span><span class="p">);</span>
+<a id="line-666" name="line-666"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span>
+<a id="line-667" name="line-667"></a>
+<a id="line-668" name="line-668"></a><span class="w"> </span><span class="n">checksum</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_checksum_new</span><span class="w"> </span><span class="p">(</span><span class="n">G_CHECKSUM_MD5</span><span class="p">);</span>
+<a id="line-669" name="line-669"></a><span class="w"> </span><span class="n">g_checksum_update</span><span class="w"> </span><span class="p">(</span><span class="n">checksum</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">));</span>
+<a id="line-670" name="line-670"></a>
+<a id="line-671" name="line-671"></a><span class="w"> </span><span class="n">g_checksum_get_digest</span><span class="w"> </span><span class="p">(</span><span class="n">checksum</span><span class="p">,</span><span class="w"> </span><span class="n">digest</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">digest_len</span><span class="p">);</span>
+<a id="line-672" name="line-672"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">digest_len</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">16</span><span class="p">);</span>
+<a id="line-673" name="line-673"></a>
+<a id="line-674" name="line-674"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="n">g_checksum_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">checksum</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;.png&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-675" name="line-675"></a>
+<a id="line-676" name="line-676"></a><span class="w"> </span><span class="n">g_checksum_free</span><span class="w"> </span><span class="p">(</span><span class="n">checksum</span><span class="p">);</span>
+<a id="line-677" name="line-677"></a>
+<a id="line-678" name="line-678"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">file</span><span class="p">;</span>
+<a id="line-679" name="line-679"></a><span class="p">}</span>
+<a id="line-680" name="line-680"></a>
+<a id="line-681" name="line-681"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-682" name="line-682"></a><span class="n">thumbnail_path</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span>
+<a id="line-683" name="line-683"></a><span class="w"> </span><span class="n">MateDesktopThumbnailSize</span><span class="w"> </span><span class="n">size</span><span class="p">)</span>
+<a id="line-684" name="line-684"></a><span class="p">{</span>
+<a id="line-685" name="line-685"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span>
+<a id="line-686" name="line-686"></a>
+<a id="line-687" name="line-687"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">thumbnail_filename</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">);</span>
+<a id="line-688" name="line-688"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_build_filename</span><span class="w"> </span><span class="p">(</span><span class="n">g_get_user_cache_dir</span><span class="w"> </span><span class="p">(),</span>
+<a id="line-689" name="line-689"></a><span class="w"> </span><span class="s">&quot;thumbnails&quot;</span><span class="p">,</span>
+<a id="line-690" name="line-690"></a><span class="w"> </span><span class="n">size</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">MATE_DESKTOP_THUMBNAIL_SIZE_LARGE</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="s">&quot;large&quot;</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="s">&quot;normal&quot;</span><span class="p">,</span>
+<a id="line-691" name="line-691"></a><span class="w"> </span><span class="n">file</span><span class="p">,</span>
+<a id="line-692" name="line-692"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-693" name="line-693"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-694" name="line-694"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">path</span><span class="p">;</span>
+<a id="line-695" name="line-695"></a><span class="p">}</span>
+<a id="line-696" name="line-696"></a>
+<a id="line-697" name="line-697"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-698" name="line-698"></a><span class="n">thumbnail_failed_path</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">)</span>
+<a id="line-699" name="line-699"></a><span class="p">{</span>
+<a id="line-700" name="line-700"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span>
+<a id="line-701" name="line-701"></a>
+<a id="line-702" name="line-702"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">thumbnail_filename</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">);</span>
+<a id="line-703" name="line-703"></a><span class="w"> </span><span class="cm">/* XXX: appname is only used for failed thumbnails. Is this a mistake? */</span>
+<a id="line-704" name="line-704"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_build_filename</span><span class="w"> </span><span class="p">(</span><span class="n">g_get_user_cache_dir</span><span class="w"> </span><span class="p">(),</span>
+<a id="line-705" name="line-705"></a><span class="w"> </span><span class="s">&quot;thumbnails&quot;</span><span class="p">,</span>
+<a id="line-706" name="line-706"></a><span class="w"> </span><span class="s">&quot;fail&quot;</span><span class="p">,</span>
+<a id="line-707" name="line-707"></a><span class="w"> </span><span class="n">appname</span><span class="p">,</span>
+<a id="line-708" name="line-708"></a><span class="w"> </span><span class="n">file</span><span class="p">,</span>
+<a id="line-709" name="line-709"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-710" name="line-710"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-711" name="line-711"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">path</span><span class="p">;</span>
+<a id="line-712" name="line-712"></a><span class="p">}</span>
+<a id="line-713" name="line-713"></a>
+<a id="line-714" name="line-714"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-715" name="line-715"></a><span class="n">validate_thumbnail_path</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">,</span>
+<a id="line-716" name="line-716"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span>
+<a id="line-717" name="line-717"></a><span class="w"> </span><span class="kt">time_t</span><span class="w"> </span><span class="n">mtime</span><span class="p">,</span>
+<a id="line-718" name="line-718"></a><span class="w"> </span><span class="n">MateDesktopThumbnailSize</span><span class="w"> </span><span class="n">size</span><span class="p">)</span>
+<a id="line-719" name="line-719"></a><span class="p">{</span>
+<a id="line-720" name="line-720"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-721" name="line-721"></a>
+<a id="line-722" name="line-722"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new_from_file</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-723" name="line-723"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span>
+<a id="line-724" name="line-724"></a><span class="w"> </span><span class="o">!</span><span class="n">mate_desktop_thumbnail_is_valid</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">mtime</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-725" name="line-725"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span>
+<a id="line-726" name="line-726"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-727" name="line-727"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-728" name="line-728"></a>
+<a id="line-729" name="line-729"></a><span class="w"> </span><span class="n">g_clear_object</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">pixbuf</span><span class="p">);</span>
+<a id="line-730" name="line-730"></a>
+<a id="line-731" name="line-731"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">path</span><span class="p">;</span>
+<a id="line-732" name="line-732"></a><span class="p">}</span>
+<a id="line-733" name="line-733"></a>
+<a id="line-734" name="line-734"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-735" name="line-735"></a><span class="n">lookup_thumbnail_path</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span>
+<a id="line-736" name="line-736"></a><span class="w"> </span><span class="kt">time_t</span><span class="w"> </span><span class="n">mtime</span><span class="p">,</span>
+<a id="line-737" name="line-737"></a><span class="w"> </span><span class="n">MateDesktopThumbnailSize</span><span class="w"> </span><span class="n">size</span><span class="p">)</span>
+<a id="line-738" name="line-738"></a><span class="p">{</span>
+<a id="line-739" name="line-739"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">thumbnail_path</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">size</span><span class="p">);</span>
+<a id="line-740" name="line-740"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">validate_thumbnail_path</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">mtime</span><span class="p">,</span><span class="w"> </span><span class="n">size</span><span class="p">);</span>
+<a id="line-741" name="line-741"></a><span class="p">}</span>
+<a id="line-742" name="line-742"></a>
+<a id="line-743" name="line-743"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-744" name="line-744"></a><span class="n">lookup_failed_thumbnail_path</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span>
+<a id="line-745" name="line-745"></a><span class="w"> </span><span class="kt">time_t</span><span class="w"> </span><span class="n">mtime</span><span class="p">,</span>
+<a id="line-746" name="line-746"></a><span class="w"> </span><span class="n">MateDesktopThumbnailSize</span><span class="w"> </span><span class="n">size</span><span class="p">)</span>
+<a id="line-747" name="line-747"></a><span class="p">{</span>
+<a id="line-748" name="line-748"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">thumbnail_failed_path</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">);</span>
+<a id="line-749" name="line-749"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">validate_thumbnail_path</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">mtime</span><span class="p">,</span><span class="w"> </span><span class="n">size</span><span class="p">);</span>
+<a id="line-750" name="line-750"></a><span class="p">}</span>
+<a id="line-751" name="line-751"></a>
+<a id="line-752" name="line-752"></a><span class="cm">/**</span>
+<a id="line-753" name="line-753"></a><span class="cm"> * mate_desktop_thumbnail_factory_lookup:</span>
+<a id="line-754" name="line-754"></a><span class="cm"> * @factory: a #MateDesktopThumbnailFactory</span>
+<a id="line-755" name="line-755"></a><span class="cm"> * @uri: the uri of a file</span>
+<a id="line-756" name="line-756"></a><span class="cm"> * @mtime: the mtime of the file</span>
+<a id="line-757" name="line-757"></a><span class="cm"> *</span>
+<a id="line-758" name="line-758"></a><span class="cm"> * Tries to locate an existing thumbnail for the file specified.</span>
+<a id="line-759" name="line-759"></a><span class="cm"> *</span>
+<a id="line-760" name="line-760"></a><span class="cm"> * Usage of this function is threadsafe.</span>
+<a id="line-761" name="line-761"></a><span class="cm"> *</span>
+<a id="line-762" name="line-762"></a><span class="cm"> * Return value: (transfer full): The absolute path of the thumbnail, or %NULL if none exist.</span>
+<a id="line-763" name="line-763"></a><span class="cm"> *</span>
+<a id="line-764" name="line-764"></a><span class="cm"> * Since: 2.2</span>
+<a id="line-765" name="line-765"></a><span class="cm"> **/</span>
+<a id="line-766" name="line-766"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-767" name="line-767"></a><span class="n">mate_desktop_thumbnail_factory_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">,</span>
+<a id="line-768" name="line-768"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span>
+<a id="line-769" name="line-769"></a><span class="w"> </span><span class="kt">time_t</span><span class="w"> </span><span class="n">mtime</span><span class="p">)</span>
+<a id="line-770" name="line-770"></a><span class="p">{</span>
+<a id="line-771" name="line-771"></a><span class="w"> </span><span class="n">MateDesktopThumbnailFactoryPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">factory</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-772" name="line-772"></a>
+<a id="line-773" name="line-773"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-774" name="line-774"></a>
+<a id="line-775" name="line-775"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">lookup_thumbnail_path</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">mtime</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">size</span><span class="p">);</span>
+<a id="line-776" name="line-776"></a><span class="p">}</span>
+<a id="line-777" name="line-777"></a>
+<a id="line-778" name="line-778"></a><span class="cm">/**</span>
+<a id="line-779" name="line-779"></a><span class="cm"> * mate_desktop_thumbnail_factory_has_valid_failed_thumbnail:</span>
+<a id="line-780" name="line-780"></a><span class="cm"> * @factory: a #MateDesktopThumbnailFactory</span>
+<a id="line-781" name="line-781"></a><span class="cm"> * @uri: the uri of a file</span>
+<a id="line-782" name="line-782"></a><span class="cm"> * @mtime: the mtime of the file</span>
+<a id="line-783" name="line-783"></a><span class="cm"> *</span>
+<a id="line-784" name="line-784"></a><span class="cm"> * Tries to locate an failed thumbnail for the file specified. Writing</span>
+<a id="line-785" name="line-785"></a><span class="cm"> * and looking for failed thumbnails is important to avoid to try to</span>
+<a id="line-786" name="line-786"></a><span class="cm"> * thumbnail e.g. broken images several times.</span>
+<a id="line-787" name="line-787"></a><span class="cm"> *</span>
+<a id="line-788" name="line-788"></a><span class="cm"> * Usage of this function is threadsafe.</span>
+<a id="line-789" name="line-789"></a><span class="cm"> *</span>
+<a id="line-790" name="line-790"></a><span class="cm"> * Return value: TRUE if there is a failed thumbnail for the file.</span>
+<a id="line-791" name="line-791"></a><span class="cm"> *</span>
+<a id="line-792" name="line-792"></a><span class="cm"> * Since: 2.2</span>
+<a id="line-793" name="line-793"></a><span class="cm"> **/</span>
+<a id="line-794" name="line-794"></a><span class="n">gboolean</span>
+<a id="line-795" name="line-795"></a><span class="n">mate_desktop_thumbnail_factory_has_valid_failed_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">,</span>
+<a id="line-796" name="line-796"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span>
+<a id="line-797" name="line-797"></a><span class="w"> </span><span class="kt">time_t</span><span class="w"> </span><span class="n">mtime</span><span class="p">)</span>
+<a id="line-798" name="line-798"></a><span class="p">{</span>
+<a id="line-799" name="line-799"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span>
+<a id="line-800" name="line-800"></a>
+<a id="line-801" name="line-801"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-802" name="line-802"></a>
+<a id="line-803" name="line-803"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">lookup_failed_thumbnail_path</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">mtime</span><span class="p">,</span><span class="w"> </span><span class="n">factory</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">size</span><span class="p">);</span>
+<a id="line-804" name="line-804"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-805" name="line-805"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-806" name="line-806"></a>
+<a id="line-807" name="line-807"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span>
+<a id="line-808" name="line-808"></a>
+<a id="line-809" name="line-809"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-810" name="line-810"></a><span class="p">}</span>
+<a id="line-811" name="line-811"></a>
+<a id="line-812" name="line-812"></a><span class="cm">/**</span>
+<a id="line-813" name="line-813"></a><span class="cm"> * mate_desktop_thumbnail_factory_can_thumbnail:</span>
+<a id="line-814" name="line-814"></a><span class="cm"> * @factory: a #MateDesktopThumbnailFactory</span>
+<a id="line-815" name="line-815"></a><span class="cm"> * @uri: the uri of a file</span>
+<a id="line-816" name="line-816"></a><span class="cm"> * @mime_type: the mime type of the file</span>
+<a id="line-817" name="line-817"></a><span class="cm"> * @mtime: the mtime of the file</span>
+<a id="line-818" name="line-818"></a><span class="cm"> *</span>
+<a id="line-819" name="line-819"></a><span class="cm"> * Returns TRUE if this MateDesktopThumbnailFactory can (at least try) to thumbnail</span>
+<a id="line-820" name="line-820"></a><span class="cm"> * this file. Thumbnails or files with failed thumbnails won&#39;t be thumbnailed.</span>
+<a id="line-821" name="line-821"></a><span class="cm"> *</span>
+<a id="line-822" name="line-822"></a><span class="cm"> * Usage of this function is threadsafe.</span>
+<a id="line-823" name="line-823"></a><span class="cm"> *</span>
+<a id="line-824" name="line-824"></a><span class="cm"> * Return value: TRUE if the file can be thumbnailed.</span>
+<a id="line-825" name="line-825"></a><span class="cm"> *</span>
+<a id="line-826" name="line-826"></a><span class="cm"> * Since: 2.2</span>
+<a id="line-827" name="line-827"></a><span class="cm"> **/</span>
+<a id="line-828" name="line-828"></a><span class="n">gboolean</span>
+<a id="line-829" name="line-829"></a><span class="n">mate_desktop_thumbnail_factory_can_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">,</span>
+<a id="line-830" name="line-830"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span>
+<a id="line-831" name="line-831"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">mime_type</span><span class="p">,</span>
+<a id="line-832" name="line-832"></a><span class="w"> </span><span class="kt">time_t</span><span class="w"> </span><span class="n">mtime</span><span class="p">)</span>
+<a id="line-833" name="line-833"></a><span class="p">{</span>
+<a id="line-834" name="line-834"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">have_script</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-835" name="line-835"></a>
+<a id="line-836" name="line-836"></a><span class="w"> </span><span class="cm">/* Don&#39;t thumbnail thumbnails */</span>
+<a id="line-837" name="line-837"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-838" name="line-838"></a><span class="w"> </span><span class="n">strncmp</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;file:/&quot;</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-839" name="line-839"></a><span class="w"> </span><span class="p">(</span><span class="n">strstr</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;/.thumbnails/&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span>
+<a id="line-840" name="line-840"></a><span class="w"> </span><span class="n">strstr</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;/.cache/thumbnails/&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span>
+<a id="line-841" name="line-841"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-842" name="line-842"></a>
+<a id="line-843" name="line-843"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mime_type</span><span class="p">)</span>
+<a id="line-844" name="line-844"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-845" name="line-845"></a>
+<a id="line-846" name="line-846"></a><span class="w"> </span><span class="n">g_mutex_lock</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">factory</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">lock</span><span class="p">);</span>
+<a id="line-847" name="line-847"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mate_desktop_thumbnail_factory_is_disabled</span><span class="w"> </span><span class="p">(</span><span class="n">factory</span><span class="p">,</span><span class="w"> </span><span class="n">mime_type</span><span class="p">))</span>
+<a id="line-848" name="line-848"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-849" name="line-849"></a><span class="w"> </span><span class="n">Thumbnailer</span><span class="w"> </span><span class="o">*</span><span class="n">thumb</span><span class="p">;</span>
+<a id="line-850" name="line-850"></a>
+<a id="line-851" name="line-851"></a><span class="w"> </span><span class="n">thumb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">factory</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">mime_types_map</span><span class="p">,</span><span class="w"> </span><span class="n">mime_type</span><span class="p">);</span>
+<a id="line-852" name="line-852"></a><span class="w"> </span><span class="n">have_script</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">thumbnailer_try_exec</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">);</span>
+<a id="line-853" name="line-853"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-854" name="line-854"></a><span class="w"> </span><span class="n">g_mutex_unlock</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">factory</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">lock</span><span class="p">);</span>
+<a id="line-855" name="line-855"></a>
+<a id="line-856" name="line-856"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="p">(</span><span class="n">have_script</span><span class="w"> </span><span class="p">))</span>
+<a id="line-857" name="line-857"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-858" name="line-858"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="o">!</span><span class="n">mate_desktop_thumbnail_factory_has_valid_failed_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">factory</span><span class="p">,</span>
+<a id="line-859" name="line-859"></a><span class="w"> </span><span class="n">uri</span><span class="p">,</span>
+<a id="line-860" name="line-860"></a><span class="w"> </span><span class="n">mtime</span><span class="p">);</span>
+<a id="line-861" name="line-861"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-862" name="line-862"></a>
+<a id="line-863" name="line-863"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-864" name="line-864"></a><span class="p">}</span>
+<a id="line-865" name="line-865"></a>
+<a id="line-866" name="line-866"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-867" name="line-867"></a><span class="n">expand_thumbnailing_elem</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">elem</span><span class="p">,</span>
+<a id="line-868" name="line-868"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">size</span><span class="p">,</span>
+<a id="line-869" name="line-869"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">inuri</span><span class="p">,</span>
+<a id="line-870" name="line-870"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">outfile</span><span class="p">,</span>
+<a id="line-871" name="line-871"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="o">*</span><span class="n">got_input</span><span class="p">,</span>
+<a id="line-872" name="line-872"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="o">*</span><span class="n">got_output</span><span class="p">)</span>
+<a id="line-873" name="line-873"></a><span class="p">{</span>
+<a id="line-874" name="line-874"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">;</span>
+<a id="line-875" name="line-875"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">last</span><span class="p">;</span>
+<a id="line-876" name="line-876"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">localfile</span><span class="p">;</span>
+<a id="line-877" name="line-877"></a>
+<a id="line-878" name="line-878"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_new</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-879" name="line-879"></a>
+<a id="line-880" name="line-880"></a><span class="w"> </span><span class="n">last</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">elem</span><span class="p">;</span>
+<a id="line-881" name="line-881"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">((</span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strchr</span><span class="w"> </span><span class="p">(</span><span class="n">last</span><span class="p">,</span><span class="w"> </span><span class="sc">&#39;%&#39;</span><span class="p">))</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-882" name="line-882"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-883" name="line-883"></a><span class="w"> </span><span class="n">g_string_append_len</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">last</span><span class="p">,</span><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">last</span><span class="p">);</span>
+<a id="line-884" name="line-884"></a><span class="w"> </span><span class="n">p</span><span class="o">++</span><span class="p">;</span>
+<a id="line-885" name="line-885"></a>
+<a id="line-886" name="line-886"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">p</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-887" name="line-887"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;u&#39;</span><span class="p">:</span>
+<a id="line-888" name="line-888"></a><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">inuri</span><span class="p">);</span>
+<a id="line-889" name="line-889"></a><span class="w"> </span><span class="o">*</span><span class="n">got_input</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-890" name="line-890"></a><span class="w"> </span><span class="n">p</span><span class="o">++</span><span class="p">;</span>
+<a id="line-891" name="line-891"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-892" name="line-892"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;i&#39;</span><span class="p">:</span>
+<a id="line-893" name="line-893"></a><span class="w"> </span><span class="n">localfile</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_filename_from_uri</span><span class="w"> </span><span class="p">(</span><span class="n">inuri</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-894" name="line-894"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">localfile</span><span class="p">)</span>
+<a id="line-895" name="line-895"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-896" name="line-896"></a><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">localfile</span><span class="p">);</span>
+<a id="line-897" name="line-897"></a><span class="w"> </span><span class="o">*</span><span class="n">got_input</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-898" name="line-898"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">localfile</span><span class="p">);</span>
+<a id="line-899" name="line-899"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-900" name="line-900"></a><span class="w"> </span><span class="n">p</span><span class="o">++</span><span class="p">;</span>
+<a id="line-901" name="line-901"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-902" name="line-902"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;o&#39;</span><span class="p">:</span>
+<a id="line-903" name="line-903"></a><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">outfile</span><span class="p">);</span>
+<a id="line-904" name="line-904"></a><span class="w"> </span><span class="o">*</span><span class="n">got_output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-905" name="line-905"></a><span class="w"> </span><span class="n">p</span><span class="o">++</span><span class="p">;</span>
+<a id="line-906" name="line-906"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-907" name="line-907"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;s&#39;</span><span class="p">:</span>
+<a id="line-908" name="line-908"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;%d&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">size</span><span class="p">);</span>
+<a id="line-909" name="line-909"></a><span class="w"> </span><span class="n">p</span><span class="o">++</span><span class="p">;</span>
+<a id="line-910" name="line-910"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-911" name="line-911"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="sc">&#39;%&#39;</span><span class="p">:</span>
+<a id="line-912" name="line-912"></a><span class="w"> </span><span class="n">g_string_append_c</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="sc">&#39;%&#39;</span><span class="p">);</span>
+<a id="line-913" name="line-913"></a><span class="w"> </span><span class="n">p</span><span class="o">++</span><span class="p">;</span>
+<a id="line-914" name="line-914"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-915" name="line-915"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mi">0</span><span class="p">:</span>
+<a id="line-916" name="line-916"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-917" name="line-917"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-918" name="line-918"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-919" name="line-919"></a><span class="w"> </span><span class="n">last</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p</span><span class="p">;</span>
+<a id="line-920" name="line-920"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-921" name="line-921"></a><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">last</span><span class="p">);</span>
+<a id="line-922" name="line-922"></a>
+<a id="line-923" name="line-923"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_string_free</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-924" name="line-924"></a><span class="p">}</span>
+<a id="line-925" name="line-925"></a>
+<a id="line-926" name="line-926"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span>
+<a id="line-927" name="line-927"></a><span class="n">expand_thumbnailing_script</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">script</span><span class="p">,</span>
+<a id="line-928" name="line-928"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">size</span><span class="p">,</span>
+<a id="line-929" name="line-929"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">inuri</span><span class="p">,</span>
+<a id="line-930" name="line-930"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">outfile</span><span class="p">,</span>
+<a id="line-931" name="line-931"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-932" name="line-932"></a><span class="p">{</span>
+<a id="line-933" name="line-933"></a><span class="w"> </span><span class="n">GPtrArray</span><span class="w"> </span><span class="o">*</span><span class="n">array</span><span class="p">;</span>
+<a id="line-934" name="line-934"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">script_elems</span><span class="p">;</span>
+<a id="line-935" name="line-935"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-936" name="line-936"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">got_in</span><span class="p">,</span><span class="w"> </span><span class="n">got_out</span><span class="p">;</span>
+<a id="line-937" name="line-937"></a>
+<a id="line-938" name="line-938"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_shell_parse_argv</span><span class="w"> </span><span class="p">(</span><span class="n">script</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">script_elems</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">))</span>
+<a id="line-939" name="line-939"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-940" name="line-940"></a>
+<a id="line-941" name="line-941"></a><span class="w"> </span><span class="n">array</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_new_with_free_func</span><span class="w"> </span><span class="p">(</span><span class="n">g_free</span><span class="p">);</span>
+<a id="line-942" name="line-942"></a>
+<a id="line-943" name="line-943"></a><span class="w"> </span><span class="n">got_in</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">got_out</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-944" name="line-944"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">script_elems</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span>
+<a id="line-945" name="line-945"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-946" name="line-946"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">expanded</span><span class="p">;</span>
+<a id="line-947" name="line-947"></a>
+<a id="line-948" name="line-948"></a><span class="w"> </span><span class="n">expanded</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">expand_thumbnailing_elem</span><span class="w"> </span><span class="p">(</span><span class="n">script_elems</span><span class="p">[</span><span class="n">i</span><span class="p">],</span>
+<a id="line-949" name="line-949"></a><span class="w"> </span><span class="n">size</span><span class="p">,</span>
+<a id="line-950" name="line-950"></a><span class="w"> </span><span class="n">inuri</span><span class="p">,</span>
+<a id="line-951" name="line-951"></a><span class="w"> </span><span class="n">outfile</span><span class="p">,</span>
+<a id="line-952" name="line-952"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">got_in</span><span class="p">,</span>
+<a id="line-953" name="line-953"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">got_out</span><span class="p">);</span>
+<a id="line-954" name="line-954"></a>
+<a id="line-955" name="line-955"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">array</span><span class="p">,</span><span class="w"> </span><span class="n">expanded</span><span class="p">);</span>
+<a id="line-956" name="line-956"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-957" name="line-957"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">script_elems</span><span class="p">);</span>
+<a id="line-958" name="line-958"></a>
+<a id="line-959" name="line-959"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">got_in</span><span class="p">)</span>
+<a id="line-960" name="line-960"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-961" name="line-961"></a><span class="w"> </span><span class="n">g_set_error_literal</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">G_IO_ERROR</span><span class="p">,</span><span class="w"> </span><span class="n">G_IO_ERROR_FAILED</span><span class="p">,</span>
+<a id="line-962" name="line-962"></a><span class="w"> </span><span class="s">&quot;Input file could not be set&quot;</span><span class="p">);</span>
+<a id="line-963" name="line-963"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">bail</span><span class="p">;</span>
+<a id="line-964" name="line-964"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-965" name="line-965"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">got_out</span><span class="p">)</span>
+<a id="line-966" name="line-966"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-967" name="line-967"></a><span class="w"> </span><span class="n">g_set_error_literal</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">G_IO_ERROR</span><span class="p">,</span><span class="w"> </span><span class="n">G_IO_ERROR_FAILED</span><span class="p">,</span>
+<a id="line-968" name="line-968"></a><span class="w"> </span><span class="s">&quot;Output file could not be set&quot;</span><span class="p">);</span>
+<a id="line-969" name="line-969"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">bail</span><span class="p">;</span>
+<a id="line-970" name="line-970"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-971" name="line-971"></a>
+<a id="line-972" name="line-972"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">array</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-973" name="line-973"></a>
+<a id="line-974" name="line-974"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="p">)</span><span class="w"> </span><span class="n">g_ptr_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">array</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-975" name="line-975"></a>
+<a id="line-976" name="line-976"></a><span class="nl">bail</span><span class="p">:</span>
+<a id="line-977" name="line-977"></a><span class="w"> </span><span class="n">g_ptr_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">array</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-978" name="line-978"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-979" name="line-979"></a><span class="p">}</span>
+<a id="line-980" name="line-980"></a>
+<a id="line-981" name="line-981"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span>
+<a id="line-982" name="line-982"></a><span class="n">get_preview_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span>
+<a id="line-983" name="line-983"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">size</span><span class="p">)</span>
+<a id="line-984" name="line-984"></a><span class="p">{</span>
+<a id="line-985" name="line-985"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-986" name="line-986"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span>
+<a id="line-987" name="line-987"></a><span class="w"> </span><span class="n">GFileInfo</span><span class="w"> </span><span class="o">*</span><span class="n">file_info</span><span class="p">;</span>
+<a id="line-988" name="line-988"></a><span class="w"> </span><span class="n">GInputStream</span><span class="w"> </span><span class="o">*</span><span class="n">input_stream</span><span class="p">;</span>
+<a id="line-989" name="line-989"></a><span class="w"> </span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">;</span>
+<a id="line-990" name="line-990"></a>
+<a id="line-991" name="line-991"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-992" name="line-992"></a>
+<a id="line-993" name="line-993"></a><span class="w"> </span><span class="n">input_stream</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-994" name="line-994"></a>
+<a id="line-995" name="line-995"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_new_for_uri</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">);</span>
+<a id="line-996" name="line-996"></a>
+<a id="line-997" name="line-997"></a><span class="w"> </span><span class="cm">/* First see if we can get an input stream via preview::icon */</span>
+<a id="line-998" name="line-998"></a><span class="w"> </span><span class="n">file_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_query_info</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span>
+<a id="line-999" name="line-999"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_PREVIEW_ICON</span><span class="p">,</span>
+<a id="line-1000" name="line-1000"></a><span class="w"> </span><span class="n">G_FILE_QUERY_INFO_NONE</span><span class="p">,</span>
+<a id="line-1001" name="line-1001"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-1002" name="line-1002"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"> </span><span class="cm">/* return location for GError */</span>
+<a id="line-1003" name="line-1003"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-1004" name="line-1004"></a>
+<a id="line-1005" name="line-1005"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1006" name="line-1006"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1007" name="line-1007"></a>
+<a id="line-1008" name="line-1008"></a><span class="w"> </span><span class="n">object</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_attribute_object</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">,</span>
+<a id="line-1009" name="line-1009"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_PREVIEW_ICON</span><span class="p">);</span>
+<a id="line-1010" name="line-1010"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">)</span>
+<a id="line-1011" name="line-1011"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-1012" name="line-1012"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file_info</span><span class="p">);</span>
+<a id="line-1013" name="line-1013"></a>
+<a id="line-1014" name="line-1014"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">object</span><span class="p">)</span>
+<a id="line-1015" name="line-1015"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1016" name="line-1016"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">G_IS_LOADABLE_ICON</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1017" name="line-1017"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-1018" name="line-1018"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1019" name="line-1019"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1020" name="line-1020"></a>
+<a id="line-1021" name="line-1021"></a><span class="w"> </span><span class="n">input_stream</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_loadable_icon_load</span><span class="w"> </span><span class="p">(</span><span class="n">G_LOADABLE_ICON</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">),</span>
+<a id="line-1022" name="line-1022"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="cm">/* size */</span>
+<a id="line-1023" name="line-1023"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* return location for type */</span>
+<a id="line-1024" name="line-1024"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* GCancellable */</span>
+<a id="line-1025" name="line-1025"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"> </span><span class="cm">/* return location for GError */</span>
+<a id="line-1026" name="line-1026"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-1027" name="line-1027"></a>
+<a id="line-1028" name="line-1028"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">input_stream</span><span class="p">)</span>
+<a id="line-1029" name="line-1029"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1030" name="line-1030"></a>
+<a id="line-1031" name="line-1031"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new_from_stream_at_scale</span><span class="w"> </span><span class="p">(</span><span class="n">input_stream</span><span class="p">,</span>
+<a id="line-1032" name="line-1032"></a><span class="w"> </span><span class="n">size</span><span class="p">,</span><span class="w"> </span><span class="n">size</span><span class="p">,</span>
+<a id="line-1033" name="line-1033"></a><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1034" name="line-1034"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">input_stream</span><span class="p">);</span>
+<a id="line-1035" name="line-1035"></a>
+<a id="line-1036" name="line-1036"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-1037" name="line-1037"></a><span class="p">}</span>
+<a id="line-1038" name="line-1038"></a>
+<a id="line-1039" name="line-1039"></a><span class="cm">/**</span>
+<a id="line-1040" name="line-1040"></a><span class="cm"> * mate_desktop_thumbnail_factory_generate_thumbnail:</span>
+<a id="line-1041" name="line-1041"></a><span class="cm"> * @factory: a #MateDesktopThumbnailFactory</span>
+<a id="line-1042" name="line-1042"></a><span class="cm"> * @uri: the uri of a file</span>
+<a id="line-1043" name="line-1043"></a><span class="cm"> * @mime_type: the mime type of the file</span>
+<a id="line-1044" name="line-1044"></a><span class="cm"> *</span>
+<a id="line-1045" name="line-1045"></a><span class="cm"> * Tries to generate a thumbnail for the specified file. If it succeeds</span>
+<a id="line-1046" name="line-1046"></a><span class="cm"> * it returns a pixbuf that can be used as a thumbnail.</span>
+<a id="line-1047" name="line-1047"></a><span class="cm"> *</span>
+<a id="line-1048" name="line-1048"></a><span class="cm"> * Usage of this function is threadsafe.</span>
+<a id="line-1049" name="line-1049"></a><span class="cm"> *</span>
+<a id="line-1050" name="line-1050"></a><span class="cm"> * Return value: (transfer full): thumbnail pixbuf if thumbnailing succeeded, %NULL otherwise.</span>
+<a id="line-1051" name="line-1051"></a><span class="cm"> *</span>
+<a id="line-1052" name="line-1052"></a><span class="cm"> * Since: 2.2</span>
+<a id="line-1053" name="line-1053"></a><span class="cm"> **/</span>
+<a id="line-1054" name="line-1054"></a><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1055" name="line-1055"></a><span class="n">mate_desktop_thumbnail_factory_generate_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">,</span>
+<a id="line-1056" name="line-1056"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span>
+<a id="line-1057" name="line-1057"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">mime_type</span><span class="p">)</span>
+<a id="line-1058" name="line-1058"></a><span class="p">{</span>
+<a id="line-1059" name="line-1059"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-1060" name="line-1060"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">script</span><span class="p">;</span>
+<a id="line-1061" name="line-1061"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">size</span><span class="p">;</span>
+<a id="line-1062" name="line-1062"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">exit_status</span><span class="p">;</span>
+<a id="line-1063" name="line-1063"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">tmpname</span><span class="p">;</span>
+<a id="line-1064" name="line-1064"></a>
+<a id="line-1065" name="line-1065"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1066" name="line-1066"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">mime_type</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1067" name="line-1067"></a>
+<a id="line-1068" name="line-1068"></a><span class="w"> </span><span class="cm">/* Doesn&#39;t access any volatile fields in factory, so it&#39;s threadsafe */</span>
+<a id="line-1069" name="line-1069"></a>
+<a id="line-1070" name="line-1070"></a><span class="w"> </span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">128</span><span class="p">;</span>
+<a id="line-1071" name="line-1071"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">factory</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">size</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">MATE_DESKTOP_THUMBNAIL_SIZE_LARGE</span><span class="p">)</span>
+<a id="line-1072" name="line-1072"></a><span class="w"> </span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">256</span><span class="p">;</span>
+<a id="line-1073" name="line-1073"></a>
+<a id="line-1074" name="line-1074"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1075" name="line-1075"></a>
+<a id="line-1076" name="line-1076"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_preview_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">size</span><span class="p">);</span>
+<a id="line-1077" name="line-1077"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1078" name="line-1078"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-1079" name="line-1079"></a>
+<a id="line-1080" name="line-1080"></a><span class="w"> </span><span class="n">script</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1081" name="line-1081"></a><span class="w"> </span><span class="n">g_mutex_lock</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">factory</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">lock</span><span class="p">);</span>
+<a id="line-1082" name="line-1082"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mate_desktop_thumbnail_factory_is_disabled</span><span class="w"> </span><span class="p">(</span><span class="n">factory</span><span class="p">,</span><span class="w"> </span><span class="n">mime_type</span><span class="p">))</span>
+<a id="line-1083" name="line-1083"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1084" name="line-1084"></a><span class="w"> </span><span class="n">Thumbnailer</span><span class="w"> </span><span class="o">*</span><span class="n">thumb</span><span class="p">;</span>
+<a id="line-1085" name="line-1085"></a>
+<a id="line-1086" name="line-1086"></a><span class="w"> </span><span class="n">thumb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">factory</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">mime_types_map</span><span class="p">,</span><span class="w"> </span><span class="n">mime_type</span><span class="p">);</span>
+<a id="line-1087" name="line-1087"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">)</span>
+<a id="line-1088" name="line-1088"></a><span class="w"> </span><span class="n">script</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="o">-&gt;</span><span class="n">command</span><span class="p">);</span>
+<a id="line-1089" name="line-1089"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1090" name="line-1090"></a><span class="w"> </span><span class="n">g_mutex_unlock</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">factory</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">lock</span><span class="p">);</span>
+<a id="line-1091" name="line-1091"></a>
+<a id="line-1092" name="line-1092"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">script</span><span class="p">)</span>
+<a id="line-1093" name="line-1093"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1094" name="line-1094"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">fd</span><span class="p">;</span>
+<a id="line-1095" name="line-1095"></a>
+<a id="line-1096" name="line-1096"></a><span class="w"> </span><span class="n">fd</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_open_tmp</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;.mate_desktop_thumbnail.XXXXXX&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">tmpname</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1097" name="line-1097"></a>
+<a id="line-1098" name="line-1098"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">fd</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">-1</span><span class="p">)</span>
+<a id="line-1099" name="line-1099"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1100" name="line-1100"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">expanded_script</span><span class="p">;</span>
+<a id="line-1101" name="line-1101"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1102" name="line-1102"></a>
+<a id="line-1103" name="line-1103"></a><span class="w"> </span><span class="n">close</span><span class="w"> </span><span class="p">(</span><span class="n">fd</span><span class="p">);</span>
+<a id="line-1104" name="line-1104"></a>
+<a id="line-1105" name="line-1105"></a><span class="w"> </span><span class="n">expanded_script</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">expand_thumbnailing_script</span><span class="w"> </span><span class="p">(</span><span class="n">script</span><span class="p">,</span><span class="w"> </span><span class="n">size</span><span class="p">,</span><span class="w"> </span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">tmpname</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-1106" name="line-1106"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">expanded_script</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1107" name="line-1107"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1108" name="line-1108"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to expand script &#39;%s&#39;: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">script</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-1109" name="line-1109"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span>
+<a id="line-1110" name="line-1110"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1111" name="line-1111"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1112" name="line-1112"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1113" name="line-1113"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-1114" name="line-1114"></a>
+<a id="line-1115" name="line-1115"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_spawn_sync</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">expanded_script</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">G_SPAWN_SEARCH_PATH</span><span class="p">,</span>
+<a id="line-1116" name="line-1116"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">exit_status</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1117" name="line-1117"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">ret</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">exit_status</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-1118" name="line-1118"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new_from_file</span><span class="w"> </span><span class="p">(</span><span class="n">tmpname</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1119" name="line-1119"></a>
+<a id="line-1120" name="line-1120"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">expanded_script</span><span class="p">);</span>
+<a id="line-1121" name="line-1121"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1122" name="line-1122"></a>
+<a id="line-1123" name="line-1123"></a><span class="w"> </span><span class="n">g_unlink</span><span class="w"> </span><span class="p">(</span><span class="n">tmpname</span><span class="p">);</span>
+<a id="line-1124" name="line-1124"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">tmpname</span><span class="p">);</span>
+<a id="line-1125" name="line-1125"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1126" name="line-1126"></a>
+<a id="line-1127" name="line-1127"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">script</span><span class="p">);</span>
+<a id="line-1128" name="line-1128"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1129" name="line-1129"></a>
+<a id="line-1130" name="line-1130"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-1131" name="line-1131"></a><span class="p">}</span>
+<a id="line-1132" name="line-1132"></a>
+<a id="line-1133" name="line-1133"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-1134" name="line-1134"></a><span class="n">save_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">,</span>
+<a id="line-1135" name="line-1135"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">,</span>
+<a id="line-1136" name="line-1136"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span>
+<a id="line-1137" name="line-1137"></a><span class="w"> </span><span class="kt">time_t</span><span class="w"> </span><span class="n">mtime</span><span class="p">)</span>
+<a id="line-1138" name="line-1138"></a><span class="p">{</span>
+<a id="line-1139" name="line-1139"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">dirname</span><span class="p">;</span>
+<a id="line-1140" name="line-1140"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">tmp_path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1141" name="line-1141"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">tmp_fd</span><span class="p">;</span>
+<a id="line-1142" name="line-1142"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">mtime_str</span><span class="p">;</span>
+<a id="line-1143" name="line-1143"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1144" name="line-1144"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1145" name="line-1145"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">height</span><span class="p">;</span>
+<a id="line-1146" name="line-1146"></a>
+<a id="line-1147" name="line-1147"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1148" name="line-1148"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1149" name="line-1149"></a>
+<a id="line-1150" name="line-1150"></a><span class="w"> </span><span class="n">dirname</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_path_get_dirname</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span>
+<a id="line-1151" name="line-1151"></a>
+<a id="line-1152" name="line-1152"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_mkdir_with_parents</span><span class="w"> </span><span class="p">(</span><span class="n">dirname</span><span class="p">,</span><span class="w"> </span><span class="mo">0700</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-1153" name="line-1153"></a>
+<a id="line-1154" name="line-1154"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span>
+<a id="line-1155" name="line-1155"></a>
+<a id="line-1156" name="line-1156"></a><span class="w"> </span><span class="n">tmp_path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;.XXXXXX&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1157" name="line-1157"></a><span class="w"> </span><span class="n">tmp_fd</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_mkstemp</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_path</span><span class="p">);</span>
+<a id="line-1158" name="line-1158"></a>
+<a id="line-1159" name="line-1159"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_fd</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">-1</span><span class="p">)</span>
+<a id="line-1160" name="line-1160"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span>
+<a id="line-1161" name="line-1161"></a><span class="w"> </span><span class="n">close</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_fd</span><span class="p">);</span>
+<a id="line-1162" name="line-1162"></a>
+<a id="line-1163" name="line-1163"></a><span class="w"> </span><span class="n">mtime_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;%&quot;</span><span class="w"> </span><span class="n">G_GINT64_FORMAT</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gint64</span><span class="p">)</span><span class="w"> </span><span class="n">mtime</span><span class="p">);</span>
+<a id="line-1164" name="line-1164"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_option</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;tEXt::Thumb::Image::Width&quot;</span><span class="p">);</span>
+<a id="line-1165" name="line-1165"></a><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_option</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;tEXt::Thumb::Image::Height&quot;</span><span class="p">);</span>
+<a id="line-1166" name="line-1166"></a>
+<a id="line-1167" name="line-1167"></a><span class="w"> </span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1168" name="line-1168"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">width</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1169" name="line-1169"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_save</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">,</span>
+<a id="line-1170" name="line-1170"></a><span class="w"> </span><span class="n">tmp_path</span><span class="p">,</span>
+<a id="line-1171" name="line-1171"></a><span class="w"> </span><span class="s">&quot;png&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">,</span>
+<a id="line-1172" name="line-1172"></a><span class="w"> </span><span class="s">&quot;tEXt::Thumb::Image::Width&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">,</span>
+<a id="line-1173" name="line-1173"></a><span class="w"> </span><span class="s">&quot;tEXt::Thumb::Image::Height&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">,</span>
+<a id="line-1174" name="line-1174"></a><span class="w"> </span><span class="s">&quot;tEXt::Thumb::URI&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">uri</span><span class="p">,</span>
+<a id="line-1175" name="line-1175"></a><span class="w"> </span><span class="s">&quot;tEXt::Thumb::MTime&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">mtime_str</span><span class="p">,</span>
+<a id="line-1176" name="line-1176"></a><span class="w"> </span><span class="s">&quot;tEXt::Software&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;MATE::ThumbnailFactory&quot;</span><span class="p">,</span>
+<a id="line-1177" name="line-1177"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1178" name="line-1178"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1179" name="line-1179"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_save</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">,</span>
+<a id="line-1180" name="line-1180"></a><span class="w"> </span><span class="n">tmp_path</span><span class="p">,</span>
+<a id="line-1181" name="line-1181"></a><span class="w"> </span><span class="s">&quot;png&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">,</span>
+<a id="line-1182" name="line-1182"></a><span class="w"> </span><span class="s">&quot;tEXt::Thumb::URI&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">uri</span><span class="p">,</span>
+<a id="line-1183" name="line-1183"></a><span class="w"> </span><span class="s">&quot;tEXt::Thumb::MTime&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">mtime_str</span><span class="p">,</span>
+<a id="line-1184" name="line-1184"></a><span class="w"> </span><span class="s">&quot;tEXt::Software&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;MATE::ThumbnailFactory&quot;</span><span class="p">,</span>
+<a id="line-1185" name="line-1185"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1186" name="line-1186"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">mtime_str</span><span class="p">);</span>
+<a id="line-1187" name="line-1187"></a>
+<a id="line-1188" name="line-1188"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">ret</span><span class="p">)</span>
+<a id="line-1189" name="line-1189"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span>
+<a id="line-1190" name="line-1190"></a>
+<a id="line-1191" name="line-1191"></a><span class="w"> </span><span class="n">g_chmod</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_path</span><span class="p">,</span><span class="w"> </span><span class="mo">0600</span><span class="p">);</span>
+<a id="line-1192" name="line-1192"></a><span class="w"> </span><span class="n">g_rename</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_path</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">);</span>
+<a id="line-1193" name="line-1193"></a>
+<a id="line-1194" name="line-1194"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span>
+<a id="line-1195" name="line-1195"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1196" name="line-1196"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1197" name="line-1197"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to create thumbnail %s: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">tmp_path</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-1198" name="line-1198"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span>
+<a id="line-1199" name="line-1199"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1200" name="line-1200"></a><span class="w"> </span><span class="n">g_unlink</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_path</span><span class="p">);</span>
+<a id="line-1201" name="line-1201"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">tmp_path</span><span class="p">);</span>
+<a id="line-1202" name="line-1202"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dirname</span><span class="p">);</span>
+<a id="line-1203" name="line-1203"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-1204" name="line-1204"></a><span class="p">}</span>
+<a id="line-1205" name="line-1205"></a>
+<a id="line-1206" name="line-1206"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1207" name="line-1207"></a><span class="n">make_failed_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-1208" name="line-1208"></a><span class="p">{</span>
+<a id="line-1209" name="line-1209"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-1210" name="line-1210"></a>
+<a id="line-1211" name="line-1211"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_COLORSPACE_RGB</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">8</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-1212" name="line-1212"></a><span class="w"> </span><span class="n">gdk_pixbuf_fill</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="mh">0x00000000</span><span class="p">);</span>
+<a id="line-1213" name="line-1213"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-1214" name="line-1214"></a><span class="p">}</span>
+<a id="line-1215" name="line-1215"></a>
+<a id="line-1216" name="line-1216"></a><span class="cm">/**</span>
+<a id="line-1217" name="line-1217"></a><span class="cm"> * mate_desktop_thumbnail_factory_save_thumbnail:</span>
+<a id="line-1218" name="line-1218"></a><span class="cm"> * @factory: a #MateDesktopThumbnailFactory</span>
+<a id="line-1219" name="line-1219"></a><span class="cm"> * @thumbnail: the thumbnail as a pixbuf</span>
+<a id="line-1220" name="line-1220"></a><span class="cm"> * @uri: the uri of a file</span>
+<a id="line-1221" name="line-1221"></a><span class="cm"> * @original_mtime: the modification time of the original file</span>
+<a id="line-1222" name="line-1222"></a><span class="cm"> *</span>
+<a id="line-1223" name="line-1223"></a><span class="cm"> * Saves @thumbnail at the right place. If the save fails a</span>
+<a id="line-1224" name="line-1224"></a><span class="cm"> * failed thumbnail is written.</span>
+<a id="line-1225" name="line-1225"></a><span class="cm"> *</span>
+<a id="line-1226" name="line-1226"></a><span class="cm"> * Usage of this function is threadsafe.</span>
+<a id="line-1227" name="line-1227"></a><span class="cm"> *</span>
+<a id="line-1228" name="line-1228"></a><span class="cm"> * Since: 2.2</span>
+<a id="line-1229" name="line-1229"></a><span class="cm"> **/</span>
+<a id="line-1230" name="line-1230"></a><span class="kt">void</span>
+<a id="line-1231" name="line-1231"></a><span class="n">mate_desktop_thumbnail_factory_save_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">,</span>
+<a id="line-1232" name="line-1232"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">thumbnail</span><span class="p">,</span>
+<a id="line-1233" name="line-1233"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span>
+<a id="line-1234" name="line-1234"></a><span class="w"> </span><span class="kt">time_t</span><span class="w"> </span><span class="n">original_mtime</span><span class="p">)</span>
+<a id="line-1235" name="line-1235"></a><span class="p">{</span>
+<a id="line-1236" name="line-1236"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span>
+<a id="line-1237" name="line-1237"></a>
+<a id="line-1238" name="line-1238"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">thumbnail_path</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">factory</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">size</span><span class="p">);</span>
+<a id="line-1239" name="line-1239"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">save_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">thumbnail</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">original_mtime</span><span class="p">))</span>
+<a id="line-1240" name="line-1240"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1241" name="line-1241"></a><span class="w"> </span><span class="n">thumbnail</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">make_failed_thumbnail</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1242" name="line-1242"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span>
+<a id="line-1243" name="line-1243"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">thumbnail_failed_path</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">);</span>
+<a id="line-1244" name="line-1244"></a><span class="w"> </span><span class="n">save_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">thumbnail</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">original_mtime</span><span class="p">);</span>
+<a id="line-1245" name="line-1245"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">thumbnail</span><span class="p">);</span>
+<a id="line-1246" name="line-1246"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1247" name="line-1247"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span>
+<a id="line-1248" name="line-1248"></a><span class="p">}</span>
+<a id="line-1249" name="line-1249"></a>
+<a id="line-1250" name="line-1250"></a><span class="cm">/**</span>
+<a id="line-1251" name="line-1251"></a><span class="cm"> * mate_desktop_thumbnail_factory_create_failed_thumbnail:</span>
+<a id="line-1252" name="line-1252"></a><span class="cm"> * @factory: a #MateDesktopThumbnailFactory</span>
+<a id="line-1253" name="line-1253"></a><span class="cm"> * @uri: the uri of a file</span>
+<a id="line-1254" name="line-1254"></a><span class="cm"> * @mtime: the modification time of the file</span>
+<a id="line-1255" name="line-1255"></a><span class="cm"> *</span>
+<a id="line-1256" name="line-1256"></a><span class="cm"> * Creates a failed thumbnail for the file so that we don&#39;t try</span>
+<a id="line-1257" name="line-1257"></a><span class="cm"> * to re-thumbnail the file later.</span>
+<a id="line-1258" name="line-1258"></a><span class="cm"> *</span>
+<a id="line-1259" name="line-1259"></a><span class="cm"> * Usage of this function is threadsafe.</span>
+<a id="line-1260" name="line-1260"></a><span class="cm"> *</span>
+<a id="line-1261" name="line-1261"></a><span class="cm"> * Since: 2.2</span>
+<a id="line-1262" name="line-1262"></a><span class="cm"> **/</span>
+<a id="line-1263" name="line-1263"></a><span class="kt">void</span>
+<a id="line-1264" name="line-1264"></a><span class="n">mate_desktop_thumbnail_factory_create_failed_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">,</span>
+<a id="line-1265" name="line-1265"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span>
+<a id="line-1266" name="line-1266"></a><span class="w"> </span><span class="kt">time_t</span><span class="w"> </span><span class="n">mtime</span><span class="p">)</span>
+<a id="line-1267" name="line-1267"></a><span class="p">{</span>
+<a id="line-1268" name="line-1268"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span>
+<a id="line-1269" name="line-1269"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-1270" name="line-1270"></a>
+<a id="line-1271" name="line-1271"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">thumbnail_failed_path</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">);</span>
+<a id="line-1272" name="line-1272"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">make_failed_thumbnail</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1273" name="line-1273"></a><span class="w"> </span><span class="n">save_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">mtime</span><span class="p">);</span>
+<a id="line-1274" name="line-1274"></a>
+<a id="line-1275" name="line-1275"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span>
+<a id="line-1276" name="line-1276"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span>
+<a id="line-1277" name="line-1277"></a><span class="p">}</span>
+<a id="line-1278" name="line-1278"></a>
+<a id="line-1279" name="line-1279"></a><span class="cm">/**</span>
+<a id="line-1280" name="line-1280"></a><span class="cm"> * mate_desktop_thumbnail_path_for_uri:</span>
+<a id="line-1281" name="line-1281"></a><span class="cm"> * @uri: an uri</span>
+<a id="line-1282" name="line-1282"></a><span class="cm"> * @size: a thumbnail size</span>
+<a id="line-1283" name="line-1283"></a><span class="cm"> *</span>
+<a id="line-1284" name="line-1284"></a><span class="cm"> * Returns the filename that a thumbnail of size @size for @uri would have.</span>
+<a id="line-1285" name="line-1285"></a><span class="cm"> *</span>
+<a id="line-1286" name="line-1286"></a><span class="cm"> * Return value: an absolute filename</span>
+<a id="line-1287" name="line-1287"></a><span class="cm"> *</span>
+<a id="line-1288" name="line-1288"></a><span class="cm"> * Since: 2.2</span>
+<a id="line-1289" name="line-1289"></a><span class="cm"> **/</span>
+<a id="line-1290" name="line-1290"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1291" name="line-1291"></a><span class="n">mate_desktop_thumbnail_path_for_uri</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span>
+<a id="line-1292" name="line-1292"></a><span class="w"> </span><span class="n">MateDesktopThumbnailSize</span><span class="w"> </span><span class="n">size</span><span class="p">)</span>
+<a id="line-1293" name="line-1293"></a><span class="p">{</span>
+<a id="line-1294" name="line-1294"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">thumbnail_path</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">size</span><span class="p">);</span>
+<a id="line-1295" name="line-1295"></a><span class="p">}</span>
+<a id="line-1296" name="line-1296"></a>
+<a id="line-1297" name="line-1297"></a><span class="cm">/**</span>
+<a id="line-1298" name="line-1298"></a><span class="cm"> * mate_desktop_thumbnail_has_uri:</span>
+<a id="line-1299" name="line-1299"></a><span class="cm"> * @pixbuf: an loaded thumbnail pixbuf</span>
+<a id="line-1300" name="line-1300"></a><span class="cm"> * @uri: a uri</span>
+<a id="line-1301" name="line-1301"></a><span class="cm"> *</span>
+<a id="line-1302" name="line-1302"></a><span class="cm"> * Returns whether the thumbnail has the correct uri embedded in the</span>
+<a id="line-1303" name="line-1303"></a><span class="cm"> * Thumb::URI option in the png.</span>
+<a id="line-1304" name="line-1304"></a><span class="cm"> *</span>
+<a id="line-1305" name="line-1305"></a><span class="cm"> * Return value: TRUE if the thumbnail is for @uri</span>
+<a id="line-1306" name="line-1306"></a><span class="cm"> *</span>
+<a id="line-1307" name="line-1307"></a><span class="cm"> * Since: 2.2</span>
+<a id="line-1308" name="line-1308"></a><span class="cm"> **/</span>
+<a id="line-1309" name="line-1309"></a><span class="n">gboolean</span>
+<a id="line-1310" name="line-1310"></a><span class="n">mate_desktop_thumbnail_has_uri</span><span class="w"> </span><span class="p">(</span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">,</span>
+<a id="line-1311" name="line-1311"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">)</span>
+<a id="line-1312" name="line-1312"></a><span class="p">{</span>
+<a id="line-1313" name="line-1313"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">thumb_uri</span><span class="p">;</span>
+<a id="line-1314" name="line-1314"></a>
+<a id="line-1315" name="line-1315"></a><span class="w"> </span><span class="n">thumb_uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_option</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;tEXt::Thumb::URI&quot;</span><span class="p">);</span>
+<a id="line-1316" name="line-1316"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">g_strcmp0</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">thumb_uri</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-1317" name="line-1317"></a><span class="p">}</span>
+<a id="line-1318" name="line-1318"></a>
+<a id="line-1319" name="line-1319"></a><span class="cm">/**</span>
+<a id="line-1320" name="line-1320"></a><span class="cm"> * mate_desktop_thumbnail_is_valid:</span>
+<a id="line-1321" name="line-1321"></a><span class="cm"> * @pixbuf: an loaded thumbnail #GdkPixbuf</span>
+<a id="line-1322" name="line-1322"></a><span class="cm"> * @uri: a uri</span>
+<a id="line-1323" name="line-1323"></a><span class="cm"> * @mtime: the mtime</span>
+<a id="line-1324" name="line-1324"></a><span class="cm"> *</span>
+<a id="line-1325" name="line-1325"></a><span class="cm"> * Returns whether the thumbnail has the correct uri and mtime embedded in the</span>
+<a id="line-1326" name="line-1326"></a><span class="cm"> * png options.</span>
+<a id="line-1327" name="line-1327"></a><span class="cm"> *</span>
+<a id="line-1328" name="line-1328"></a><span class="cm"> * Return value: TRUE if the thumbnail has the right @uri and @mtime</span>
+<a id="line-1329" name="line-1329"></a><span class="cm"> *</span>
+<a id="line-1330" name="line-1330"></a><span class="cm"> * Since: 2.2</span>
+<a id="line-1331" name="line-1331"></a><span class="cm"> **/</span>
+<a id="line-1332" name="line-1332"></a><span class="n">gboolean</span>
+<a id="line-1333" name="line-1333"></a><span class="n">mate_desktop_thumbnail_is_valid</span><span class="w"> </span><span class="p">(</span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">,</span>
+<a id="line-1334" name="line-1334"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span>
+<a id="line-1335" name="line-1335"></a><span class="w"> </span><span class="kt">time_t</span><span class="w"> </span><span class="n">mtime</span><span class="p">)</span>
+<a id="line-1336" name="line-1336"></a><span class="p">{</span>
+<a id="line-1337" name="line-1337"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">thumb_uri</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">thumb_mtime_str</span><span class="p">;</span>
+<a id="line-1338" name="line-1338"></a><span class="w"> </span><span class="kt">time_t</span><span class="w"> </span><span class="n">thumb_mtime</span><span class="p">;</span>
+<a id="line-1339" name="line-1339"></a>
+<a id="line-1340" name="line-1340"></a><span class="w"> </span><span class="n">thumb_uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_option</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;tEXt::Thumb::URI&quot;</span><span class="p">);</span>
+<a id="line-1341" name="line-1341"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_strcmp0</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">thumb_uri</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-1342" name="line-1342"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1343" name="line-1343"></a>
+<a id="line-1344" name="line-1344"></a><span class="w"> </span><span class="n">thumb_mtime_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_option</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;tEXt::Thumb::MTime&quot;</span><span class="p">);</span>
+<a id="line-1345" name="line-1345"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">thumb_mtime_str</span><span class="p">)</span>
+<a id="line-1346" name="line-1346"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1347" name="line-1347"></a><span class="w"> </span><span class="n">thumb_mtime</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">time_t</span><span class="p">)</span><span class="n">g_ascii_strtoll</span><span class="w"> </span><span class="p">(</span><span class="n">thumb_mtime_str</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">**</span><span class="p">)</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">);</span>
+<a id="line-1348" name="line-1348"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mtime</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">thumb_mtime</span><span class="p">)</span>
+<a id="line-1349" name="line-1349"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1350" name="line-1350"></a>
+<a id="line-1351" name="line-1351"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1352" name="line-1352"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/15.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/15.html
new file mode 100644
index 0000000..91ce3ed
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/15.html
@@ -0,0 +1,439 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/mate-desktop-thumbnail.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-desktop-thumbnail.h</p>
+<a href="15.html#line-33"> missingIncludeSystem 33</a><a href="15.html#line-34"> missingIncludeSystem 34</a><a href="15.html#line-35"> missingIncludeSystem 35</a><a href="15.html#line-36"> missingIncludeSystem 36</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal"> 10</span>
+<span class="normal"> 11</span>
+<span class="normal"> 12</span>
+<span class="normal"> 13</span>
+<span class="normal"> 14</span>
+<span class="normal"> 15</span>
+<span class="normal"> 16</span>
+<span class="normal"> 17</span>
+<span class="normal"> 18</span>
+<span class="normal"> 19</span>
+<span class="normal"> 20</span>
+<span class="normal"> 21</span>
+<span class="normal"> 22</span>
+<span class="normal"> 23</span>
+<span class="normal"> 24</span>
+<span class="normal"> 25</span>
+<span class="normal"> 26</span>
+<span class="normal"> 27</span>
+<span class="normal"> 28</span>
+<span class="normal"> 29</span>
+<span class="normal"> 30</span>
+<span class="normal"> 31</span>
+<span class="normal"> 32</span>
+<span class="normal"> 33</span>
+<span class="normal"> 34</span>
+<span class="normal"> 35</span>
+<span class="normal"> 36</span>
+<span class="normal"> 37</span>
+<span class="normal"> 38</span>
+<span class="normal"> 39</span>
+<span class="normal"> 40</span>
+<span class="normal"> 41</span>
+<span class="normal"> 42</span>
+<span class="normal"> 43</span>
+<span class="normal"> 44</span>
+<span class="normal"> 45</span>
+<span class="normal"> 46</span>
+<span class="normal"> 47</span>
+<span class="normal"> 48</span>
+<span class="normal"> 49</span>
+<span class="normal"> 50</span>
+<span class="normal"> 51</span>
+<span class="normal"> 52</span>
+<span class="normal"> 53</span>
+<span class="normal"> 54</span>
+<span class="normal"> 55</span>
+<span class="normal"> 56</span>
+<span class="normal"> 57</span>
+<span class="normal"> 58</span>
+<span class="normal"> 59</span>
+<span class="normal"> 60</span>
+<span class="normal"> 61</span>
+<span class="normal"> 62</span>
+<span class="normal"> 63</span>
+<span class="normal"> 64</span>
+<span class="normal"> 65</span>
+<span class="normal"> 66</span>
+<span class="normal"> 67</span>
+<span class="normal"> 68</span>
+<span class="normal"> 69</span>
+<span class="normal"> 70</span>
+<span class="normal"> 71</span>
+<span class="normal"> 72</span>
+<span class="normal"> 73</span>
+<span class="normal"> 74</span>
+<span class="normal"> 75</span>
+<span class="normal"> 76</span>
+<span class="normal"> 77</span>
+<span class="normal"> 78</span>
+<span class="normal"> 79</span>
+<span class="normal"> 80</span>
+<span class="normal"> 81</span>
+<span class="normal"> 82</span>
+<span class="normal"> 83</span>
+<span class="normal"> 84</span>
+<span class="normal"> 85</span>
+<span class="normal"> 86</span>
+<span class="normal"> 87</span>
+<span class="normal"> 88</span>
+<span class="normal"> 89</span>
+<span class="normal"> 90</span>
+<span class="normal"> 91</span>
+<span class="normal"> 92</span>
+<span class="normal"> 93</span>
+<span class="normal"> 94</span>
+<span class="normal"> 95</span>
+<span class="normal"> 96</span>
+<span class="normal"> 97</span>
+<span class="normal"> 98</span>
+<span class="normal"> 99</span>
+<span class="normal">100</span>
+<span class="normal">101</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span>
+<a id="line-2" name="line-2"></a><span class="cm"> * mate-thumbnail.h: Utilities for handling thumbnails</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * Copyright (C) 2002 Red Hat, Inc.</span>
+<a id="line-5" name="line-5"></a><span class="cm"> *</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * This file is part of the Mate Library.</span>
+<a id="line-7" name="line-7"></a><span class="cm"> *</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * The Mate Library is free software; you can redistribute it and/or</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * modify it under the terms of the GNU Library General Public License as</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * published by the Free Software Foundation; either version 2 of the</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * License, or (at your option) any later version.</span>
+<a id="line-12" name="line-12"></a><span class="cm"> *</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * The Mate Library is distributed in the hope that it will be useful,</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Library General Public License for more details.</span>
+<a id="line-17" name="line-17"></a><span class="cm"> *</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * You should have received a copy of the GNU Library General Public</span>
+<a id="line-19" name="line-19"></a><span class="cm"> * License along with the Mate Library; see the file COPYING.LIB. If not,</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,</span>
+<a id="line-21" name="line-21"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-22" name="line-22"></a><span class="cm"> *</span>
+<a id="line-23" name="line-23"></a><span class="cm"> * Author: Alexander Larsson &lt;[email protected]&gt;</span>
+<a id="line-24" name="line-24"></a><span class="cm"> */</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="cp">#ifndef MATE_DESKTOP_THUMBNAIL_H</span>
+<a id="line-27" name="line-27"></a><span class="cp">#define MATE_DESKTOP_THUMBNAIL_H</span>
+<a id="line-28" name="line-28"></a>
+<a id="line-29" name="line-29"></a><span class="cp">#ifndef MATE_DESKTOP_USE_UNSTABLE_API</span>
+<a id="line-30" name="line-30"></a><span class="cp">#error MateDesktopThumbnail is unstable API. You must define MATE_DESKTOP_USE_UNSTABLE_API before including mate-desktop-thumbnail.h</span>
+<a id="line-31" name="line-31"></a><span class="cp">#endif</span>
+<a id="line-32" name="line-32"></a>
+<a id="line-33" name="line-33"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib.h&gt;</span><span class="error2">&lt;--- Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-34" name="line-34"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib-object.h&gt;</span><span class="error2">&lt;--- Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-35" name="line-35"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;time.h&gt;</span><span class="error2">&lt;--- Include file: <time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-36" name="line-36"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk-pixbuf/gdk-pixbuf.h&gt;</span><span class="error2">&lt;--- Include file: <gdk-pixbuf/gdk-pixbuf.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-37" name="line-37"></a>
+<a id="line-38" name="line-38"></a><span class="n">G_BEGIN_DECLS</span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="k">typedef</span><span class="w"> </span><span class="k">enum</span><span class="w"> </span><span class="p">{</span>
+<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">MATE_DESKTOP_THUMBNAIL_SIZE_NORMAL</span><span class="p">,</span>
+<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">MATE_DESKTOP_THUMBNAIL_SIZE_LARGE</span>
+<a id="line-43" name="line-43"></a><span class="p">}</span><span class="w"> </span><span class="n">MateDesktopThumbnailSize</span><span class="p">;</span>
+<a id="line-44" name="line-44"></a>
+<a id="line-45" name="line-45"></a><span class="cp">#define MATE_DESKTOP_TYPE_THUMBNAIL_FACTORY (mate_desktop_thumbnail_factory_get_type ())</span>
+<a id="line-46" name="line-46"></a><span class="cp">#define MATE_DESKTOP_THUMBNAIL_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATE_DESKTOP_TYPE_THUMBNAIL_FACTORY, MateDesktopThumbnailFactory))</span>
+<a id="line-47" name="line-47"></a><span class="cp">#define MATE_DESKTOP_THUMBNAIL_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MATE_DESKTOP_TYPE_THUMBNAIL_FACTORY, MateDesktopThumbnailFactoryClass))</span>
+<a id="line-48" name="line-48"></a><span class="cp">#define MATE_DESKTOP_IS_THUMBNAIL_FACTORY(obj) (G_TYPE_INSTANCE_CHECK_TYPE ((obj), MATE_DESKTOP_TYPE_THUMBNAIL_FACTORY))</span>
+<a id="line-49" name="line-49"></a><span class="cp">#define MATE_DESKTOP_IS_THUMBNAIL_FACTORY_CLASS(klass) (G_TYPE_CLASS_CHECK_CLASS_TYPE ((klass), MATE_DESKTOP_TYPE_THUMBNAIL_FACTORY))</span>
+<a id="line-50" name="line-50"></a>
+<a id="line-51" name="line-51"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_MateDesktopThumbnailFactory</span><span class="w"> </span><span class="n">MateDesktopThumbnailFactory</span><span class="p">;</span>
+<a id="line-52" name="line-52"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_MateDesktopThumbnailFactoryClass</span><span class="w"> </span><span class="n">MateDesktopThumbnailFactoryClass</span><span class="p">;</span>
+<a id="line-53" name="line-53"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_MateDesktopThumbnailFactoryPrivate</span><span class="w"> </span><span class="n">MateDesktopThumbnailFactoryPrivate</span><span class="p">;</span>
+<a id="line-54" name="line-54"></a>
+<a id="line-55" name="line-55"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_MateDesktopThumbnailFactory</span><span class="w"> </span><span class="p">{</span>
+<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">GObject</span><span class="w"> </span><span class="n">parent</span><span class="p">;</span>
+<a id="line-57" name="line-57"></a>
+<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">MateDesktopThumbnailFactoryPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-59" name="line-59"></a><span class="p">};</span>
+<a id="line-60" name="line-60"></a>
+<a id="line-61" name="line-61"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_MateDesktopThumbnailFactoryClass</span><span class="w"> </span><span class="p">{</span>
+<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="n">parent</span><span class="p">;</span>
+<a id="line-63" name="line-63"></a><span class="p">};</span>
+<a id="line-64" name="line-64"></a>
+<a id="line-65" name="line-65"></a><span class="n">GType</span><span class="w"> </span><span class="nf">mate_desktop_thumbnail_factory_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-66" name="line-66"></a><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="nf">mate_desktop_thumbnail_factory_new</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopThumbnailSize</span><span class="w"> </span><span class="n">size</span><span class="p">);</span>
+<a id="line-67" name="line-67"></a>
+<a id="line-68" name="line-68"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nf">mate_desktop_thumbnail_factory_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">,</span>
+<a id="line-69" name="line-69"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span>
+<a id="line-70" name="line-70"></a><span class="w"> </span><span class="kt">time_t</span><span class="w"> </span><span class="n">mtime</span><span class="p">);</span>
+<a id="line-71" name="line-71"></a>
+<a id="line-72" name="line-72"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_desktop_thumbnail_factory_has_valid_failed_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">,</span>
+<a id="line-73" name="line-73"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="kt">time_t</span><span class="w"> </span><span class="n">mtime</span><span class="p">);</span>
+<a id="line-75" name="line-75"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_desktop_thumbnail_factory_can_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">,</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">mime_type</span><span class="p">,</span>
+<a id="line-78" name="line-78"></a><span class="w"> </span><span class="kt">time_t</span><span class="w"> </span><span class="n">mtime</span><span class="p">);</span>
+<a id="line-79" name="line-79"></a><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nf">mate_desktop_thumbnail_factory_generate_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">,</span>
+<a id="line-80" name="line-80"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">mime_type</span><span class="p">);</span>
+<a id="line-82" name="line-82"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_desktop_thumbnail_factory_save_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">,</span>
+<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">thumbnail</span><span class="p">,</span>
+<a id="line-84" name="line-84"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="kt">time_t</span><span class="w"> </span><span class="n">original_mtime</span><span class="p">);</span>
+<a id="line-86" name="line-86"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_desktop_thumbnail_factory_create_failed_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">,</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="kt">time_t</span><span class="w"> </span><span class="n">mtime</span><span class="p">);</span>
+<a id="line-89" name="line-89"></a>
+<a id="line-90" name="line-90"></a><span class="cm">/* Thumbnailing utils: */</span>
+<a id="line-91" name="line-91"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_desktop_thumbnail_has_uri</span><span class="w"> </span><span class="p">(</span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">,</span>
+<a id="line-92" name="line-92"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">);</span>
+<a id="line-93" name="line-93"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_desktop_thumbnail_is_valid</span><span class="w"> </span><span class="p">(</span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">,</span>
+<a id="line-94" name="line-94"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span>
+<a id="line-95" name="line-95"></a><span class="w"> </span><span class="kt">time_t</span><span class="w"> </span><span class="n">mtime</span><span class="p">);</span>
+<a id="line-96" name="line-96"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nf">mate_desktop_thumbnail_path_for_uri</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span>
+<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">MateDesktopThumbnailSize</span><span class="w"> </span><span class="n">size</span><span class="p">);</span>
+<a id="line-98" name="line-98"></a>
+<a id="line-99" name="line-99"></a><span class="n">G_END_DECLS</span>
+<a id="line-100" name="line-100"></a>
+<a id="line-101" name="line-101"></a><span class="cp">#endif </span><span class="cm">/* MATE_DESKTOP_THUMBNAIL_H */</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/16.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/16.html
new file mode 100644
index 0000000..31e6627
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/16.html
@@ -0,0 +1,1171 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/mate-desktop-utils.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-desktop-utils.c</p>
+<a href="16.html#line-27"> missingIncludeSystem 27</a><a href="16.html#line-28"> missingIncludeSystem 28</a><a href="16.html#line-29"> missingIncludeSystem 29</a><a href="16.html#line-30"> missingIncludeSystem 30</a><a href="16.html#line-31"> missingIncludeSystem 31</a><a href="16.html#line-32"> missingIncludeSystem 32</a><a href="16.html#line-35"> missingIncludeSystem 35</a><a href="16.html#line-133"> multiCondition 133</a><a href="16.html#line-139"> multiCondition 139</a><a href="16.html#line-243"> constParameterPointer 243</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal"> 10</span>
+<span class="normal"> 11</span>
+<span class="normal"> 12</span>
+<span class="normal"> 13</span>
+<span class="normal"> 14</span>
+<span class="normal"> 15</span>
+<span class="normal"> 16</span>
+<span class="normal"> 17</span>
+<span class="normal"> 18</span>
+<span class="normal"> 19</span>
+<span class="normal"> 20</span>
+<span class="normal"> 21</span>
+<span class="normal"> 22</span>
+<span class="normal"> 23</span>
+<span class="normal"> 24</span>
+<span class="normal"> 25</span>
+<span class="normal"> 26</span>
+<span class="normal"> 27</span>
+<span class="normal"> 28</span>
+<span class="normal"> 29</span>
+<span class="normal"> 30</span>
+<span class="normal"> 31</span>
+<span class="normal"> 32</span>
+<span class="normal"> 33</span>
+<span class="normal"> 34</span>
+<span class="normal"> 35</span>
+<span class="normal"> 36</span>
+<span class="normal"> 37</span>
+<span class="normal"> 38</span>
+<span class="normal"> 39</span>
+<span class="normal"> 40</span>
+<span class="normal"> 41</span>
+<span class="normal"> 42</span>
+<span class="normal"> 43</span>
+<span class="normal"> 44</span>
+<span class="normal"> 45</span>
+<span class="normal"> 46</span>
+<span class="normal"> 47</span>
+<span class="normal"> 48</span>
+<span class="normal"> 49</span>
+<span class="normal"> 50</span>
+<span class="normal"> 51</span>
+<span class="normal"> 52</span>
+<span class="normal"> 53</span>
+<span class="normal"> 54</span>
+<span class="normal"> 55</span>
+<span class="normal"> 56</span>
+<span class="normal"> 57</span>
+<span class="normal"> 58</span>
+<span class="normal"> 59</span>
+<span class="normal"> 60</span>
+<span class="normal"> 61</span>
+<span class="normal"> 62</span>
+<span class="normal"> 63</span>
+<span class="normal"> 64</span>
+<span class="normal"> 65</span>
+<span class="normal"> 66</span>
+<span class="normal"> 67</span>
+<span class="normal"> 68</span>
+<span class="normal"> 69</span>
+<span class="normal"> 70</span>
+<span class="normal"> 71</span>
+<span class="normal"> 72</span>
+<span class="normal"> 73</span>
+<span class="normal"> 74</span>
+<span class="normal"> 75</span>
+<span class="normal"> 76</span>
+<span class="normal"> 77</span>
+<span class="normal"> 78</span>
+<span class="normal"> 79</span>
+<span class="normal"> 80</span>
+<span class="normal"> 81</span>
+<span class="normal"> 82</span>
+<span class="normal"> 83</span>
+<span class="normal"> 84</span>
+<span class="normal"> 85</span>
+<span class="normal"> 86</span>
+<span class="normal"> 87</span>
+<span class="normal"> 88</span>
+<span class="normal"> 89</span>
+<span class="normal"> 90</span>
+<span class="normal"> 91</span>
+<span class="normal"> 92</span>
+<span class="normal"> 93</span>
+<span class="normal"> 94</span>
+<span class="normal"> 95</span>
+<span class="normal"> 96</span>
+<span class="normal"> 97</span>
+<span class="normal"> 98</span>
+<span class="normal"> 99</span>
+<span class="normal">100</span>
+<span class="normal">101</span>
+<span class="normal">102</span>
+<span class="normal">103</span>
+<span class="normal">104</span>
+<span class="normal">105</span>
+<span class="normal">106</span>
+<span class="normal">107</span>
+<span class="normal">108</span>
+<span class="normal">109</span>
+<span class="normal">110</span>
+<span class="normal">111</span>
+<span class="normal">112</span>
+<span class="normal">113</span>
+<span class="normal">114</span>
+<span class="normal">115</span>
+<span class="normal">116</span>
+<span class="normal">117</span>
+<span class="normal">118</span>
+<span class="normal">119</span>
+<span class="normal">120</span>
+<span class="normal">121</span>
+<span class="normal">122</span>
+<span class="normal">123</span>
+<span class="normal">124</span>
+<span class="normal">125</span>
+<span class="normal">126</span>
+<span class="normal">127</span>
+<span class="normal">128</span>
+<span class="normal">129</span>
+<span class="normal">130</span>
+<span class="normal">131</span>
+<span class="normal">132</span>
+<span class="normal">133</span>
+<span class="normal">134</span>
+<span class="normal">135</span>
+<span class="normal">136</span>
+<span class="normal">137</span>
+<span class="normal">138</span>
+<span class="normal">139</span>
+<span class="normal">140</span>
+<span class="normal">141</span>
+<span class="normal">142</span>
+<span class="normal">143</span>
+<span class="normal">144</span>
+<span class="normal">145</span>
+<span class="normal">146</span>
+<span class="normal">147</span>
+<span class="normal">148</span>
+<span class="normal">149</span>
+<span class="normal">150</span>
+<span class="normal">151</span>
+<span class="normal">152</span>
+<span class="normal">153</span>
+<span class="normal">154</span>
+<span class="normal">155</span>
+<span class="normal">156</span>
+<span class="normal">157</span>
+<span class="normal">158</span>
+<span class="normal">159</span>
+<span class="normal">160</span>
+<span class="normal">161</span>
+<span class="normal">162</span>
+<span class="normal">163</span>
+<span class="normal">164</span>
+<span class="normal">165</span>
+<span class="normal">166</span>
+<span class="normal">167</span>
+<span class="normal">168</span>
+<span class="normal">169</span>
+<span class="normal">170</span>
+<span class="normal">171</span>
+<span class="normal">172</span>
+<span class="normal">173</span>
+<span class="normal">174</span>
+<span class="normal">175</span>
+<span class="normal">176</span>
+<span class="normal">177</span>
+<span class="normal">178</span>
+<span class="normal">179</span>
+<span class="normal">180</span>
+<span class="normal">181</span>
+<span class="normal">182</span>
+<span class="normal">183</span>
+<span class="normal">184</span>
+<span class="normal">185</span>
+<span class="normal">186</span>
+<span class="normal">187</span>
+<span class="normal">188</span>
+<span class="normal">189</span>
+<span class="normal">190</span>
+<span class="normal">191</span>
+<span class="normal">192</span>
+<span class="normal">193</span>
+<span class="normal">194</span>
+<span class="normal">195</span>
+<span class="normal">196</span>
+<span class="normal">197</span>
+<span class="normal">198</span>
+<span class="normal">199</span>
+<span class="normal">200</span>
+<span class="normal">201</span>
+<span class="normal">202</span>
+<span class="normal">203</span>
+<span class="normal">204</span>
+<span class="normal">205</span>
+<span class="normal">206</span>
+<span class="normal">207</span>
+<span class="normal">208</span>
+<span class="normal">209</span>
+<span class="normal">210</span>
+<span class="normal">211</span>
+<span class="normal">212</span>
+<span class="normal">213</span>
+<span class="normal">214</span>
+<span class="normal">215</span>
+<span class="normal">216</span>
+<span class="normal">217</span>
+<span class="normal">218</span>
+<span class="normal">219</span>
+<span class="normal">220</span>
+<span class="normal">221</span>
+<span class="normal">222</span>
+<span class="normal">223</span>
+<span class="normal">224</span>
+<span class="normal">225</span>
+<span class="normal">226</span>
+<span class="normal">227</span>
+<span class="normal">228</span>
+<span class="normal">229</span>
+<span class="normal">230</span>
+<span class="normal">231</span>
+<span class="normal">232</span>
+<span class="normal">233</span>
+<span class="normal">234</span>
+<span class="normal">235</span>
+<span class="normal">236</span>
+<span class="normal">237</span>
+<span class="normal">238</span>
+<span class="normal">239</span>
+<span class="normal">240</span>
+<span class="normal">241</span>
+<span class="normal">242</span>
+<span class="normal">243</span>
+<span class="normal">244</span>
+<span class="normal">245</span>
+<span class="normal">246</span>
+<span class="normal">247</span>
+<span class="normal">248</span>
+<span class="normal">249</span>
+<span class="normal">250</span>
+<span class="normal">251</span>
+<span class="normal">252</span>
+<span class="normal">253</span>
+<span class="normal">254</span>
+<span class="normal">255</span>
+<span class="normal">256</span>
+<span class="normal">257</span>
+<span class="normal">258</span>
+<span class="normal">259</span>
+<span class="normal">260</span>
+<span class="normal">261</span>
+<span class="normal">262</span>
+<span class="normal">263</span>
+<span class="normal">264</span>
+<span class="normal">265</span>
+<span class="normal">266</span>
+<span class="normal">267</span>
+<span class="normal">268</span>
+<span class="normal">269</span>
+<span class="normal">270</span>
+<span class="normal">271</span>
+<span class="normal">272</span>
+<span class="normal">273</span>
+<span class="normal">274</span>
+<span class="normal">275</span>
+<span class="normal">276</span>
+<span class="normal">277</span>
+<span class="normal">278</span>
+<span class="normal">279</span>
+<span class="normal">280</span>
+<span class="normal">281</span>
+<span class="normal">282</span>
+<span class="normal">283</span>
+<span class="normal">284</span>
+<span class="normal">285</span>
+<span class="normal">286</span>
+<span class="normal">287</span>
+<span class="normal">288</span>
+<span class="normal">289</span>
+<span class="normal">290</span>
+<span class="normal">291</span>
+<span class="normal">292</span>
+<span class="normal">293</span>
+<span class="normal">294</span>
+<span class="normal">295</span>
+<span class="normal">296</span>
+<span class="normal">297</span>
+<span class="normal">298</span>
+<span class="normal">299</span>
+<span class="normal">300</span>
+<span class="normal">301</span>
+<span class="normal">302</span>
+<span class="normal">303</span>
+<span class="normal">304</span>
+<span class="normal">305</span>
+<span class="normal">306</span>
+<span class="normal">307</span>
+<span class="normal">308</span>
+<span class="normal">309</span>
+<span class="normal">310</span>
+<span class="normal">311</span>
+<span class="normal">312</span>
+<span class="normal">313</span>
+<span class="normal">314</span>
+<span class="normal">315</span>
+<span class="normal">316</span>
+<span class="normal">317</span>
+<span class="normal">318</span>
+<span class="normal">319</span>
+<span class="normal">320</span>
+<span class="normal">321</span>
+<span class="normal">322</span>
+<span class="normal">323</span>
+<span class="normal">324</span>
+<span class="normal">325</span>
+<span class="normal">326</span>
+<span class="normal">327</span>
+<span class="normal">328</span>
+<span class="normal">329</span>
+<span class="normal">330</span>
+<span class="normal">331</span>
+<span class="normal">332</span>
+<span class="normal">333</span>
+<span class="normal">334</span>
+<span class="normal">335</span>
+<span class="normal">336</span>
+<span class="normal">337</span>
+<span class="normal">338</span>
+<span class="normal">339</span>
+<span class="normal">340</span>
+<span class="normal">341</span>
+<span class="normal">342</span>
+<span class="normal">343</span>
+<span class="normal">344</span>
+<span class="normal">345</span>
+<span class="normal">346</span>
+<span class="normal">347</span>
+<span class="normal">348</span>
+<span class="normal">349</span>
+<span class="normal">350</span>
+<span class="normal">351</span>
+<span class="normal">352</span>
+<span class="normal">353</span>
+<span class="normal">354</span>
+<span class="normal">355</span>
+<span class="normal">356</span>
+<span class="normal">357</span>
+<span class="normal">358</span>
+<span class="normal">359</span>
+<span class="normal">360</span>
+<span class="normal">361</span>
+<span class="normal">362</span>
+<span class="normal">363</span>
+<span class="normal">364</span>
+<span class="normal">365</span>
+<span class="normal">366</span>
+<span class="normal">367</span>
+<span class="normal">368</span>
+<span class="normal">369</span>
+<span class="normal">370</span>
+<span class="normal">371</span>
+<span class="normal">372</span>
+<span class="normal">373</span>
+<span class="normal">374</span>
+<span class="normal">375</span>
+<span class="normal">376</span>
+<span class="normal">377</span>
+<span class="normal">378</span>
+<span class="normal">379</span>
+<span class="normal">380</span>
+<span class="normal">381</span>
+<span class="normal">382</span>
+<span class="normal">383</span>
+<span class="normal">384</span>
+<span class="normal">385</span>
+<span class="normal">386</span>
+<span class="normal">387</span>
+<span class="normal">388</span>
+<span class="normal">389</span>
+<span class="normal">390</span>
+<span class="normal">391</span>
+<span class="normal">392</span>
+<span class="normal">393</span>
+<span class="normal">394</span>
+<span class="normal">395</span>
+<span class="normal">396</span>
+<span class="normal">397</span>
+<span class="normal">398</span>
+<span class="normal">399</span>
+<span class="normal">400</span>
+<span class="normal">401</span>
+<span class="normal">402</span>
+<span class="normal">403</span>
+<span class="normal">404</span>
+<span class="normal">405</span>
+<span class="normal">406</span>
+<span class="normal">407</span>
+<span class="normal">408</span>
+<span class="normal">409</span>
+<span class="normal">410</span>
+<span class="normal">411</span>
+<span class="normal">412</span>
+<span class="normal">413</span>
+<span class="normal">414</span>
+<span class="normal">415</span>
+<span class="normal">416</span>
+<span class="normal">417</span>
+<span class="normal">418</span>
+<span class="normal">419</span>
+<span class="normal">420</span>
+<span class="normal">421</span>
+<span class="normal">422</span>
+<span class="normal">423</span>
+<span class="normal">424</span>
+<span class="normal">425</span>
+<span class="normal">426</span>
+<span class="normal">427</span>
+<span class="normal">428</span>
+<span class="normal">429</span>
+<span class="normal">430</span>
+<span class="normal">431</span>
+<span class="normal">432</span>
+<span class="normal">433</span>
+<span class="normal">434</span>
+<span class="normal">435</span>
+<span class="normal">436</span>
+<span class="normal">437</span>
+<span class="normal">438</span>
+<span class="normal">439</span>
+<span class="normal">440</span>
+<span class="normal">441</span>
+<span class="normal">442</span>
+<span class="normal">443</span>
+<span class="normal">444</span>
+<span class="normal">445</span>
+<span class="normal">446</span>
+<span class="normal">447</span>
+<span class="normal">448</span>
+<span class="normal">449</span>
+<span class="normal">450</span>
+<span class="normal">451</span>
+<span class="normal">452</span>
+<span class="normal">453</span>
+<span class="normal">454</span>
+<span class="normal">455</span>
+<span class="normal">456</span>
+<span class="normal">457</span>
+<span class="normal">458</span>
+<span class="normal">459</span>
+<span class="normal">460</span>
+<span class="normal">461</span>
+<span class="normal">462</span>
+<span class="normal">463</span>
+<span class="normal">464</span>
+<span class="normal">465</span>
+<span class="normal">466</span>
+<span class="normal">467</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* -*- Mode: C; c-set-style: linux indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */</span>
+<a id="line-2" name="line-2"></a><span class="cm">/* mate-desktop-utils.c - Utilities for the MATE Desktop</span>
+<a id="line-3" name="line-3"></a>
+<a id="line-4" name="line-4"></a><span class="cm"> Copyright (C) 1998 Tom Tromey</span>
+<a id="line-5" name="line-5"></a><span class="cm"> All rights reserved.</span>
+<a id="line-6" name="line-6"></a>
+<a id="line-7" name="line-7"></a><span class="cm"> This file is part of the Mate Library.</span>
+<a id="line-8" name="line-8"></a>
+<a id="line-9" name="line-9"></a><span class="cm"> The Mate Library is free software; you can redistribute it and/or</span>
+<a id="line-10" name="line-10"></a><span class="cm"> modify it under the terms of the GNU Library General Public License as</span>
+<a id="line-11" name="line-11"></a><span class="cm"> published by the Free Software Foundation; either version 2 of the</span>
+<a id="line-12" name="line-12"></a><span class="cm"> License, or (at your option) any later version.</span>
+<a id="line-13" name="line-13"></a>
+<a id="line-14" name="line-14"></a><span class="cm"> The Mate Library is distributed in the hope that it will be useful,</span>
+<a id="line-15" name="line-15"></a><span class="cm"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-16" name="line-16"></a><span class="cm"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-17" name="line-17"></a><span class="cm"> Library General Public License for more details.</span>
+<a id="line-18" name="line-18"></a>
+<a id="line-19" name="line-19"></a><span class="cm"> You should have received a copy of the GNU Library General Public</span>
+<a id="line-20" name="line-20"></a><span class="cm"> License along with the Mate Library; see the file COPYING.LIB. If not,</span>
+<a id="line-21" name="line-21"></a><span class="cm"> write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,</span>
+<a id="line-22" name="line-22"></a><span class="cm"> Boston, MA 02110-1301, USA. */</span>
+<a id="line-23" name="line-23"></a><span class="cm">/*</span>
+<a id="line-24" name="line-24"></a><span class="cm"> @NOTATION@</span>
+<a id="line-25" name="line-25"></a><span class="cm"> */</span>
+<a id="line-26" name="line-26"></a>
+<a id="line-27" name="line-27"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;config.h&gt;</span><span class="error2">&lt;--- Include file: <config.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib.h&gt;</span><span class="error2">&lt;--- Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gio/gio.h&gt;</span><span class="error2">&lt;--- Include file: <gio/gio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n-lib.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n-lib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-31" name="line-31"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdk.h&gt;</span><span class="error2">&lt;--- Include file: <gdk/gdk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-32" name="line-32"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-33" name="line-33"></a>
+<a id="line-34" name="line-34"></a><span class="cp">#define MATE_DESKTOP_USE_UNSTABLE_API</span>
+<a id="line-35" name="line-35"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;mate-desktop-utils.h&gt;</span><span class="error2">&lt;--- Include file: <mate-desktop-utils.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-36" name="line-36"></a>
+<a id="line-37" name="line-37"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;private.h&quot;</span>
+<a id="line-38" name="line-38"></a>
+<a id="line-39" name="line-39"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-40" name="line-40"></a><span class="nf">gtk_style_shade</span><span class="w"> </span><span class="p">(</span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">a</span><span class="p">,</span>
+<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">b</span><span class="p">,</span>
+<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">k</span><span class="p">);</span>
+<a id="line-43" name="line-43"></a>
+<a id="line-44" name="line-44"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-45" name="line-45"></a><span class="nf">rgb_to_hls</span><span class="w"> </span><span class="p">(</span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">r</span><span class="p">,</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">g</span><span class="p">,</span>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">b</span><span class="p">);</span>
+<a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-50" name="line-50"></a><span class="nf">hls_to_rgb</span><span class="w"> </span><span class="p">(</span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">h</span><span class="p">,</span>
+<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">l</span><span class="p">,</span>
+<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">);</span>
+<a id="line-53" name="line-53"></a>
+<a id="line-54" name="line-54"></a><span class="cm">/**</span>
+<a id="line-55" name="line-55"></a><span class="cm"> * mate_desktop_prepend_terminal_to_vector:</span>
+<a id="line-56" name="line-56"></a><span class="cm"> * @argc: a pointer to the vector size</span>
+<a id="line-57" name="line-57"></a><span class="cm"> * @argv: a pointer to the vector</span>
+<a id="line-58" name="line-58"></a><span class="cm"> *</span>
+<a id="line-59" name="line-59"></a><span class="cm"> * Prepends a terminal (either the one configured as default in the user&#39;s</span>
+<a id="line-60" name="line-60"></a><span class="cm"> * MATE setup, or one of the common xterm emulators) to the passed in vector,</span>
+<a id="line-61" name="line-61"></a><span class="cm"> * modifying it in the process. The vector should be allocated with #g_malloc,</span>
+<a id="line-62" name="line-62"></a><span class="cm"> * as this will #g_free the original vector. Also all elements must have been</span>
+<a id="line-63" name="line-63"></a><span class="cm"> * allocated separately. That is the standard glib/MATE way of doing vectors</span>
+<a id="line-64" name="line-64"></a><span class="cm"> * however. If the integer that @argc points to is negative, the size will</span>
+<a id="line-65" name="line-65"></a><span class="cm"> * first be computed. Also note that passing in pointers to a vector that is</span>
+<a id="line-66" name="line-66"></a><span class="cm"> * empty, will just create a new vector for you.</span>
+<a id="line-67" name="line-67"></a><span class="cm"> **/</span>
+<a id="line-68" name="line-68"></a><span class="kt">void</span>
+<a id="line-69" name="line-69"></a><span class="nf">mate_desktop_prepend_terminal_to_vector</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">***</span><span class="n">argv</span><span class="p">)</span>
+<a id="line-70" name="line-70"></a><span class="p">{</span>
+<a id="line-71" name="line-71"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">real_argv</span><span class="p">;</span>
+<a id="line-72" name="line-72"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">real_argc</span><span class="p">;</span>
+<a id="line-73" name="line-73"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">j</span><span class="p">;</span>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">term_argv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">term_argc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">GSettings</span><span class="w"> </span><span class="o">*</span><span class="n">settings</span><span class="p">;</span>
+<a id="line-77" name="line-77"></a>
+<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">terminal</span><span class="p">;</span>
+<a id="line-79" name="line-79"></a>
+<a id="line-80" name="line-80"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">the_argv</span><span class="p">;</span>
+<a id="line-81" name="line-81"></a>
+<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">argc</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">argv</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-84" name="line-84"></a>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">_mate_desktop_init_i18n</span><span class="w"> </span><span class="p">();</span>
+<a id="line-86" name="line-86"></a>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="cm">/* sanity */</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">*</span><span class="n">argv</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="o">*</span><span class="n">argc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-90" name="line-90"></a>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">the_argv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">argv</span><span class="p">;</span>
+<a id="line-92" name="line-92"></a>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="cm">/* compute size if not given */</span>
+<a id="line-94" name="line-94"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">argc</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-95" name="line-95"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">the_argv</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span>
+<a id="line-96" name="line-96"></a><span class="w"> </span><span class="p">;</span>
+<a id="line-97" name="line-97"></a><span class="w"> </span><span class="o">*</span><span class="n">argc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-98" name="line-98"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-99" name="line-99"></a>
+<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">settings</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;org.mate.applications-terminal&quot;</span><span class="p">);</span>
+<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">terminal</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;exec&quot;</span><span class="p">);</span>
+<a id="line-102" name="line-102"></a>
+<a id="line-103" name="line-103"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">terminal</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">*</span><span class="n">terminal</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">command_line</span><span class="p">;</span>
+<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">exec_flag</span><span class="p">;</span>
+<a id="line-106" name="line-106"></a>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">exec_flag</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;exec-arg&quot;</span><span class="p">);</span>
+<a id="line-108" name="line-108"></a>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">exec_flag</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">*</span><span class="n">exec_flag</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">)</span>
+<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">command_line</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">terminal</span><span class="p">);</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">command_line</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;%s %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">terminal</span><span class="p">,</span>
+<a id="line-113" name="line-113"></a><span class="w"> </span><span class="n">exec_flag</span><span class="p">);</span>
+<a id="line-114" name="line-114"></a>
+<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">g_shell_parse_argv</span><span class="w"> </span><span class="p">(</span><span class="n">command_line</span><span class="p">,</span>
+<a id="line-116" name="line-116"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">term_argc</span><span class="p">,</span>
+<a id="line-117" name="line-117"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">term_argv</span><span class="p">,</span>
+<a id="line-118" name="line-118"></a><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="cm">/* error */</span><span class="p">);</span>
+<a id="line-119" name="line-119"></a>
+<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">command_line</span><span class="p">);</span>
+<a id="line-121" name="line-121"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">exec_flag</span><span class="p">);</span>
+<a id="line-122" name="line-122"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">terminal</span><span class="p">);</span>
+<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">);</span>
+<a id="line-125" name="line-125"></a>
+<a id="line-126" name="line-126"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">term_argv</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-127" name="line-127"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">check</span><span class="p">;</span>
+<a id="line-128" name="line-128"></a>
+<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">term_argc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span>
+<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">term_argv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new0</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">);</span>
+<a id="line-131" name="line-131"></a>
+<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">check</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_find_program_in_path</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;mate-terminal&quot;</span><span class="p">);</span>
+<a id="line-133" name="line-133"></a><span class="hll"><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">check</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="error2">&lt;--- first condition</span>
+</span><a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">term_argv</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">check</span><span class="p">;</span>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="cm">/* Note that mate-terminal takes -x and</span>
+<a id="line-136" name="line-136"></a><span class="cm"> * as -e in mate-terminal is broken we use that. */</span>
+<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">term_argv</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;-x&quot;</span><span class="p">);</span>
+<a id="line-138" name="line-138"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-139" name="line-139"></a><span class="hll"><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">check</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="error2">&lt;--- else if condition is opposite to first condition</span>
+</span><a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">check</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_find_program_in_path</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;nxterm&quot;</span><span class="p">);</span>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">check</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">check</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_find_program_in_path</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;color-xterm&quot;</span><span class="p">);</span>
+<a id="line-143" name="line-143"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">check</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">check</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_find_program_in_path</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;rxvt&quot;</span><span class="p">);</span>
+<a id="line-145" name="line-145"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">check</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">check</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_find_program_in_path</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;xterm&quot;</span><span class="p">);</span>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">check</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-148" name="line-148"></a><span class="w"> </span><span class="n">check</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_find_program_in_path</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;dtterm&quot;</span><span class="p">);</span>
+<a id="line-149" name="line-149"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">check</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Cannot find a terminal, using &quot;</span>
+<a id="line-151" name="line-151"></a><span class="w"> </span><span class="s">&quot;xterm, even if it may not work&quot;</span><span class="p">));</span>
+<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">check</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;xterm&quot;</span><span class="p">);</span>
+<a id="line-153" name="line-153"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">term_argv</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">check</span><span class="p">;</span>
+<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">term_argv</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;-e&quot;</span><span class="p">);</span>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-157" name="line-157"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-158" name="line-158"></a>
+<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">real_argc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">term_argc</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="o">*</span><span class="n">argc</span><span class="p">;</span>
+<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">real_argv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">,</span><span class="w"> </span><span class="n">real_argc</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-161" name="line-161"></a>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">term_argc</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span>
+<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">real_argv</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">term_argv</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-164" name="line-164"></a>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="o">*</span><span class="n">argc</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">real_argv</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">the_argv</span><span class="p">[</span><span class="n">j</span><span class="p">];</span>
+<a id="line-167" name="line-167"></a>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">real_argv</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-169" name="line-169"></a>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">argv</span><span class="p">);</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="o">*</span><span class="n">argv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">real_argv</span><span class="p">;</span>
+<a id="line-172" name="line-172"></a><span class="w"> </span><span class="o">*</span><span class="n">argc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">real_argc</span><span class="p">;</span>
+<a id="line-173" name="line-173"></a>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="cm">/* we use g_free here as we sucked all the inner strings</span>
+<a id="line-175" name="line-175"></a><span class="cm"> * out from it into real_argv */</span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">term_argv</span><span class="p">);</span>
+<a id="line-177" name="line-177"></a><span class="p">}</span>
+<a id="line-178" name="line-178"></a>
+<a id="line-179" name="line-179"></a><span class="cm">/**</span>
+<a id="line-180" name="line-180"></a><span class="cm"> * mate_gdk_spawn_command_line_on_screen:</span>
+<a id="line-181" name="line-181"></a><span class="cm"> * @screen: a GdkScreen</span>
+<a id="line-182" name="line-182"></a><span class="cm"> * @command: a command line</span>
+<a id="line-183" name="line-183"></a><span class="cm"> * @error: return location for errors</span>
+<a id="line-184" name="line-184"></a><span class="cm"> *</span>
+<a id="line-185" name="line-185"></a><span class="cm"> * This is a replacement for gdk_spawn_command_line_on_screen, deprecated</span>
+<a id="line-186" name="line-186"></a><span class="cm"> * in GDK 2.24 and removed in GDK 3.0.</span>
+<a id="line-187" name="line-187"></a><span class="cm"> *</span>
+<a id="line-188" name="line-188"></a><span class="cm"> * gdk_spawn_command_line_on_screen is like g_spawn_command_line_async(),</span>
+<a id="line-189" name="line-189"></a><span class="cm"> * except the child process is spawned in such an environment that on</span>
+<a id="line-190" name="line-190"></a><span class="cm"> * calling gdk_display_open() it would be returned a GdkDisplay with</span>
+<a id="line-191" name="line-191"></a><span class="cm"> * screen as the default screen.</span>
+<a id="line-192" name="line-192"></a><span class="cm"> *</span>
+<a id="line-193" name="line-193"></a><span class="cm"> * This is useful for applications which wish to launch an application</span>
+<a id="line-194" name="line-194"></a><span class="cm"> * on a specific screen.</span>
+<a id="line-195" name="line-195"></a><span class="cm"> *</span>
+<a id="line-196" name="line-196"></a><span class="cm"> * Returns: TRUE on success, FALSE if error is set.</span>
+<a id="line-197" name="line-197"></a><span class="cm"> *</span>
+<a id="line-198" name="line-198"></a><span class="cm"> * Since: 1.7.1</span>
+<a id="line-199" name="line-199"></a><span class="cm"> **/</span>
+<a id="line-200" name="line-200"></a><span class="n">gboolean</span>
+<a id="line-201" name="line-201"></a><span class="nf">mate_gdk_spawn_command_line_on_screen</span><span class="w"> </span><span class="p">(</span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">command</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-202" name="line-202"></a><span class="p">{</span>
+<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">GAppInfo</span><span class="w"> </span><span class="o">*</span><span class="n">appinfo</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">GdkAppLaunchContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-206" name="line-206"></a>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">appinfo</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_app_info_create_from_commandline</span><span class="w"> </span><span class="p">(</span><span class="n">command</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">G_APP_INFO_CREATE_NONE</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-208" name="line-208"></a>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">appinfo</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">context</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_display_get_app_launch_context</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_screen_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">));</span>
+<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_app_info_launch</span><span class="w"> </span><span class="p">(</span><span class="n">appinfo</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">G_APP_LAUNCH_CONTEXT</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">),</span><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">);</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">appinfo</span><span class="p">);</span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-215" name="line-215"></a>
+<a id="line-216" name="line-216"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">res</span><span class="p">;</span>
+<a id="line-217" name="line-217"></a><span class="p">}</span>
+<a id="line-218" name="line-218"></a>
+<a id="line-219" name="line-219"></a><span class="kt">void</span>
+<a id="line-220" name="line-220"></a><span class="nf">_mate_desktop_init_i18n</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-221" name="line-221"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">initialized</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-222" name="line-222"></a>
+<a id="line-223" name="line-223"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">initialized</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">bindtextdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="n">MATELOCALEDIR</span><span class="p">);</span>
+<a id="line-225" name="line-225"></a><span class="cp">#ifdef HAVE_BIND_TEXTDOMAIN_CODESET</span>
+<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">bind_textdomain_codeset</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">);</span>
+<a id="line-227" name="line-227"></a><span class="cp">#endif</span>
+<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">initialized</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-230" name="line-230"></a><span class="p">}</span>
+<a id="line-231" name="line-231"></a>
+<a id="line-232" name="line-232"></a><span class="cm">/**</span>
+<a id="line-233" name="line-233"></a><span class="cm"> * gtk_style_shade:</span>
+<a id="line-234" name="line-234"></a><span class="cm"> * @a: the starting colour</span>
+<a id="line-235" name="line-235"></a><span class="cm"> * @b: [out] the resulting colour</span>
+<a id="line-236" name="line-236"></a><span class="cm"> * @k: amount to scale lightness and saturation by</span>
+<a id="line-237" name="line-237"></a><span class="cm"> *</span>
+<a id="line-238" name="line-238"></a><span class="cm"> * Takes a colour &quot;a&quot;, scales the lightness and saturation by a certain amount,</span>
+<a id="line-239" name="line-239"></a><span class="cm"> * and sets &quot;b&quot; to the resulting colour.</span>
+<a id="line-240" name="line-240"></a><span class="cm"> * gtkstyle.c cut-and-pastage.</span>
+<a id="line-241" name="line-241"></a><span class="cm"> */</span>
+<a id="line-242" name="line-242"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-243" name="line-243"></a><span class="hll"><span class="nf">gtk_style_shade</span><span class="w"> </span><span class="p">(</span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">a</span><span class="p">,</span><span class="error2">&lt;--- Parameter 'a' can be declared as pointer to const</span>
+</span><a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">b</span><span class="p">,</span>
+<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">k</span><span class="p">)</span>
+<a id="line-246" name="line-246"></a><span class="p">{</span>
+<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">red</span><span class="p">;</span>
+<a id="line-248" name="line-248"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">green</span><span class="p">;</span>
+<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">blue</span><span class="p">;</span>
+<a id="line-250" name="line-250"></a>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">red</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">a</span><span class="o">-&gt;</span><span class="n">red</span><span class="p">;</span>
+<a id="line-252" name="line-252"></a><span class="w"> </span><span class="n">green</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">a</span><span class="o">-&gt;</span><span class="n">green</span><span class="p">;</span>
+<a id="line-253" name="line-253"></a><span class="w"> </span><span class="n">blue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">a</span><span class="o">-&gt;</span><span class="n">blue</span><span class="p">;</span>
+<a id="line-254" name="line-254"></a>
+<a id="line-255" name="line-255"></a><span class="w"> </span><span class="n">rgb_to_hls</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">red</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">green</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">blue</span><span class="p">);</span>
+<a id="line-256" name="line-256"></a>
+<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">green</span><span class="w"> </span><span class="o">*=</span><span class="w"> </span><span class="n">k</span><span class="p">;</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">green</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mf">1.0</span><span class="p">)</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">green</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">green</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mf">0.0</span><span class="p">)</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">green</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.0</span><span class="p">;</span>
+<a id="line-262" name="line-262"></a>
+<a id="line-263" name="line-263"></a><span class="w"> </span><span class="n">blue</span><span class="w"> </span><span class="o">*=</span><span class="w"> </span><span class="n">k</span><span class="p">;</span>
+<a id="line-264" name="line-264"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">blue</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mf">1.0</span><span class="p">)</span>
+<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">blue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">blue</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mf">0.0</span><span class="p">)</span>
+<a id="line-267" name="line-267"></a><span class="w"> </span><span class="n">blue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.0</span><span class="p">;</span>
+<a id="line-268" name="line-268"></a>
+<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">hls_to_rgb</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">red</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">green</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">blue</span><span class="p">);</span>
+<a id="line-270" name="line-270"></a>
+<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">b</span><span class="o">-&gt;</span><span class="n">red</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">red</span><span class="p">;</span>
+<a id="line-272" name="line-272"></a><span class="w"> </span><span class="n">b</span><span class="o">-&gt;</span><span class="n">green</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">green</span><span class="p">;</span>
+<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">b</span><span class="o">-&gt;</span><span class="n">blue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">blue</span><span class="p">;</span>
+<a id="line-274" name="line-274"></a><span class="p">}</span>
+<a id="line-275" name="line-275"></a>
+<a id="line-276" name="line-276"></a><span class="cm">/**</span>
+<a id="line-277" name="line-277"></a><span class="cm"> * rgb_to_hls:</span>
+<a id="line-278" name="line-278"></a><span class="cm"> * @r: on input, red; on output, hue</span>
+<a id="line-279" name="line-279"></a><span class="cm"> * @g: on input, green; on output, lightness</span>
+<a id="line-280" name="line-280"></a><span class="cm"> * @b: on input, blue; on output, saturation</span>
+<a id="line-281" name="line-281"></a><span class="cm"> *</span>
+<a id="line-282" name="line-282"></a><span class="cm"> * Converts a red/green/blue triplet to a hue/lightness/saturation triplet.</span>
+<a id="line-283" name="line-283"></a><span class="cm"> */</span>
+<a id="line-284" name="line-284"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-285" name="line-285"></a><span class="nf">rgb_to_hls</span><span class="w"> </span><span class="p">(</span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">r</span><span class="p">,</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">g</span><span class="p">,</span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">b</span><span class="p">)</span>
+<a id="line-288" name="line-288"></a><span class="p">{</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">min</span><span class="p">;</span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">max</span><span class="p">;</span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">red</span><span class="p">;</span>
+<a id="line-292" name="line-292"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">green</span><span class="p">;</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">blue</span><span class="p">;</span>
+<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">h</span><span class="p">,</span><span class="w"> </span><span class="n">l</span><span class="p">,</span><span class="w"> </span><span class="n">s</span><span class="p">;</span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">delta</span><span class="p">;</span>
+<a id="line-296" name="line-296"></a>
+<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">red</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">r</span><span class="p">;</span>
+<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">green</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">g</span><span class="p">;</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="n">blue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">b</span><span class="p">;</span>
+<a id="line-300" name="line-300"></a>
+<a id="line-301" name="line-301"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">red</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="n">green</span><span class="p">)</span>
+<a id="line-302" name="line-302"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-303" name="line-303"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">red</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="n">blue</span><span class="p">)</span>
+<a id="line-304" name="line-304"></a><span class="w"> </span><span class="n">max</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">red</span><span class="p">;</span>
+<a id="line-305" name="line-305"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-306" name="line-306"></a><span class="w"> </span><span class="n">max</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">blue</span><span class="p">;</span>
+<a id="line-307" name="line-307"></a>
+<a id="line-308" name="line-308"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">green</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">blue</span><span class="p">)</span>
+<a id="line-309" name="line-309"></a><span class="w"> </span><span class="n">min</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">green</span><span class="p">;</span>
+<a id="line-310" name="line-310"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">min</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">blue</span><span class="p">;</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-313" name="line-313"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-314" name="line-314"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-315" name="line-315"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">green</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="n">blue</span><span class="p">)</span>
+<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">max</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">green</span><span class="p">;</span>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">max</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">blue</span><span class="p">;</span>
+<a id="line-319" name="line-319"></a>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">red</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">blue</span><span class="p">)</span>
+<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">min</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">red</span><span class="p">;</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">min</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">blue</span><span class="p">;</span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-325" name="line-325"></a>
+<a id="line-326" name="line-326"></a><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">max</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">min</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span>
+<a id="line-327" name="line-327"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-328" name="line-328"></a><span class="w"> </span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-329" name="line-329"></a>
+<a id="line-330" name="line-330"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">max</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">min</span><span class="p">)</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-332" name="line-332"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="mf">0.5</span><span class="p">)</span>
+<a id="line-333" name="line-333"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">max</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">min</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="n">max</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">min</span><span class="p">);</span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">max</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">min</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="mi">2</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">max</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">min</span><span class="p">);</span>
+<a id="line-336" name="line-336"></a>
+<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">delta</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">max</span><span class="w"> </span><span class="o">-</span><span class="n">min</span><span class="p">;</span>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">red</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">max</span><span class="p">)</span>
+<a id="line-339" name="line-339"></a><span class="w"> </span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">green</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">blue</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">delta</span><span class="p">;</span>
+<a id="line-340" name="line-340"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">green</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">max</span><span class="p">)</span>
+<a id="line-341" name="line-341"></a><span class="w"> </span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">blue</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">red</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">delta</span><span class="p">;</span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">blue</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">max</span><span class="p">)</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">4</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">red</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">green</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">delta</span><span class="p">;</span>
+<a id="line-344" name="line-344"></a>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">h</span><span class="w"> </span><span class="o">*=</span><span class="w"> </span><span class="mi">60</span><span class="p">;</span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">h</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mf">0.0</span><span class="p">)</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">h</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mi">360</span><span class="p">;</span>
+<a id="line-348" name="line-348"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-349" name="line-349"></a>
+<a id="line-350" name="line-350"></a><span class="w"> </span><span class="o">*</span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">h</span><span class="p">;</span>
+<a id="line-351" name="line-351"></a><span class="w"> </span><span class="o">*</span><span class="n">g</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="p">;</span>
+<a id="line-352" name="line-352"></a><span class="w"> </span><span class="o">*</span><span class="n">b</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">s</span><span class="p">;</span>
+<a id="line-353" name="line-353"></a><span class="p">}</span>
+<a id="line-354" name="line-354"></a>
+<a id="line-355" name="line-355"></a><span class="cm">/**</span>
+<a id="line-356" name="line-356"></a><span class="cm"> * hls_to_rgb:</span>
+<a id="line-357" name="line-357"></a><span class="cm"> * @h: on input, hue; on output, red</span>
+<a id="line-358" name="line-358"></a><span class="cm"> * @l: on input, lightness; on output, green</span>
+<a id="line-359" name="line-359"></a><span class="cm"> * @s on input, saturation; on output, blue</span>
+<a id="line-360" name="line-360"></a><span class="cm"> *</span>
+<a id="line-361" name="line-361"></a><span class="cm"> * Converts a hue/lightness/saturation triplet to a red/green/blue triplet.</span>
+<a id="line-362" name="line-362"></a><span class="cm"> */</span>
+<a id="line-363" name="line-363"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-364" name="line-364"></a><span class="nf">hls_to_rgb</span><span class="w"> </span><span class="p">(</span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">h</span><span class="p">,</span>
+<a id="line-365" name="line-365"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">l</span><span class="p">,</span>
+<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">)</span>
+<a id="line-367" name="line-367"></a><span class="p">{</span>
+<a id="line-368" name="line-368"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">hue</span><span class="p">;</span>
+<a id="line-369" name="line-369"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">lightness</span><span class="p">;</span>
+<a id="line-370" name="line-370"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">saturation</span><span class="p">;</span>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">m1</span><span class="p">,</span><span class="w"> </span><span class="n">m2</span><span class="p">;</span>
+<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">r</span><span class="p">,</span><span class="w"> </span><span class="n">g</span><span class="p">,</span><span class="w"> </span><span class="n">b</span><span class="p">;</span>
+<a id="line-373" name="line-373"></a>
+<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">lightness</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">l</span><span class="p">;</span>
+<a id="line-375" name="line-375"></a><span class="w"> </span><span class="n">saturation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span>
+<a id="line-376" name="line-376"></a>
+<a id="line-377" name="line-377"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">lightness</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="mf">0.5</span><span class="p">)</span>
+<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">m2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">lightness</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">saturation</span><span class="p">);</span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">m2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">lightness</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">saturation</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">lightness</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">saturation</span><span class="p">;</span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">m1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">lightness</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">m2</span><span class="p">;</span>
+<a id="line-382" name="line-382"></a>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">saturation</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="o">*</span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">lightness</span><span class="p">;</span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="o">*</span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">lightness</span><span class="p">;</span>
+<a id="line-387" name="line-387"></a><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">lightness</span><span class="p">;</span>
+<a id="line-388" name="line-388"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-390" name="line-390"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-391" name="line-391"></a><span class="w"> </span><span class="n">hue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">h</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">120</span><span class="p">;</span>
+<a id="line-392" name="line-392"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">hue</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">360</span><span class="p">)</span>
+<a id="line-393" name="line-393"></a><span class="w"> </span><span class="n">hue</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="mi">360</span><span class="p">;</span>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">hue</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-395" name="line-395"></a><span class="w"> </span><span class="n">hue</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mi">360</span><span class="p">;</span>
+<a id="line-396" name="line-396"></a>
+<a id="line-397" name="line-397"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">hue</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">60</span><span class="p">)</span>
+<a id="line-398" name="line-398"></a><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">m1</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">m2</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">m1</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">hue</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">60</span><span class="p">;</span>
+<a id="line-399" name="line-399"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">hue</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">180</span><span class="p">)</span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">m2</span><span class="p">;</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">hue</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">240</span><span class="p">)</span>
+<a id="line-402" name="line-402"></a><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">m1</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">m2</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">m1</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="mi">240</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">hue</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">60</span><span class="p">;</span>
+<a id="line-403" name="line-403"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">m1</span><span class="p">;</span>
+<a id="line-405" name="line-405"></a>
+<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">hue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">h</span><span class="p">;</span>
+<a id="line-407" name="line-407"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">hue</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">360</span><span class="p">)</span>
+<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">hue</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="mi">360</span><span class="p">;</span>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">hue</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">hue</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mi">360</span><span class="p">;</span>
+<a id="line-411" name="line-411"></a>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">hue</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">60</span><span class="p">)</span>
+<a id="line-413" name="line-413"></a><span class="w"> </span><span class="n">g</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">m1</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">m2</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">m1</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">hue</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">60</span><span class="p">;</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">hue</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">180</span><span class="p">)</span>
+<a id="line-415" name="line-415"></a><span class="w"> </span><span class="n">g</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">m2</span><span class="p">;</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">hue</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">240</span><span class="p">)</span>
+<a id="line-417" name="line-417"></a><span class="w"> </span><span class="n">g</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">m1</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">m2</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">m1</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="mi">240</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">hue</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">60</span><span class="p">;</span>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-419" name="line-419"></a><span class="w"> </span><span class="n">g</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">m1</span><span class="p">;</span>
+<a id="line-420" name="line-420"></a>
+<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">hue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">h</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">120</span><span class="p">;</span>
+<a id="line-422" name="line-422"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">hue</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">360</span><span class="p">)</span>
+<a id="line-423" name="line-423"></a><span class="w"> </span><span class="n">hue</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="mi">360</span><span class="p">;</span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">hue</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-425" name="line-425"></a><span class="w"> </span><span class="n">hue</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mi">360</span><span class="p">;</span>
+<a id="line-426" name="line-426"></a>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">hue</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">60</span><span class="p">)</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">b</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">m1</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">m2</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">m1</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">hue</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">60</span><span class="p">;</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">hue</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">180</span><span class="p">)</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">b</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">m2</span><span class="p">;</span>
+<a id="line-431" name="line-431"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">hue</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">240</span><span class="p">)</span>
+<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">b</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">m1</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">m2</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">m1</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="mi">240</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">hue</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">60</span><span class="p">;</span>
+<a id="line-433" name="line-433"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">b</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">m1</span><span class="p">;</span>
+<a id="line-435" name="line-435"></a>
+<a id="line-436" name="line-436"></a><span class="w"> </span><span class="o">*</span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">r</span><span class="p">;</span>
+<a id="line-437" name="line-437"></a><span class="w"> </span><span class="o">*</span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g</span><span class="p">;</span>
+<a id="line-438" name="line-438"></a><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">b</span><span class="p">;</span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-440" name="line-440"></a><span class="p">}</span>
+<a id="line-441" name="line-441"></a>
+<a id="line-442" name="line-442"></a><span class="cm">/* Based on set_color() in gtkstyle.c */</span>
+<a id="line-443" name="line-443"></a><span class="cp">#define LIGHTNESS_MULT 1.3</span>
+<a id="line-444" name="line-444"></a><span class="cp">#define DARKNESS_MULT 0.7</span>
+<a id="line-445" name="line-445"></a><span class="kt">void</span>
+<a id="line-446" name="line-446"></a><span class="nf">mate_desktop_gtk_style_get_light_color</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStyleContext</span><span class="w"> </span><span class="o">*</span><span class="n">style</span><span class="p">,</span>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">GtkStateFlags</span><span class="w"> </span><span class="n">state</span><span class="p">,</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">)</span>
+<a id="line-449" name="line-449"></a><span class="p">{</span>
+<a id="line-450" name="line-450"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">color</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-451" name="line-451"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_STYLE_CONTEXT</span><span class="w"> </span><span class="p">(</span><span class="n">style</span><span class="p">));</span>
+<a id="line-452" name="line-452"></a>
+<a id="line-453" name="line-453"></a><span class="w"> </span><span class="n">gtk_style_context_get</span><span class="w"> </span><span class="p">(</span><span class="n">style</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;background-color&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">color</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-454" name="line-454"></a><span class="w"> </span><span class="n">gtk_style_shade</span><span class="w"> </span><span class="p">(</span><span class="n">color</span><span class="p">,</span><span class="w"> </span><span class="n">color</span><span class="p">,</span><span class="w"> </span><span class="n">LIGHTNESS_MULT</span><span class="p">);</span>
+<a id="line-455" name="line-455"></a><span class="p">}</span>
+<a id="line-456" name="line-456"></a>
+<a id="line-457" name="line-457"></a><span class="kt">void</span>
+<a id="line-458" name="line-458"></a><span class="nf">mate_desktop_gtk_style_get_dark_color</span><span class="w"> </span><span class="p">(</span><span class="n">GtkStyleContext</span><span class="w"> </span><span class="o">*</span><span class="n">style</span><span class="p">,</span>
+<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">GtkStateFlags</span><span class="w"> </span><span class="n">state</span><span class="p">,</span>
+<a id="line-460" name="line-460"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">)</span>
+<a id="line-461" name="line-461"></a><span class="p">{</span>
+<a id="line-462" name="line-462"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">color</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_STYLE_CONTEXT</span><span class="w"> </span><span class="p">(</span><span class="n">style</span><span class="p">));</span>
+<a id="line-464" name="line-464"></a>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="n">gtk_style_context_get</span><span class="w"> </span><span class="p">(</span><span class="n">style</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;background-color&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">color</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-466" name="line-466"></a><span class="w"> </span><span class="n">gtk_style_shade</span><span class="w"> </span><span class="p">(</span><span class="n">color</span><span class="p">,</span><span class="w"> </span><span class="n">color</span><span class="p">,</span><span class="w"> </span><span class="n">DARKNESS_MULT</span><span class="p">);</span>
+<a id="line-467" name="line-467"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/17.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/17.html
new file mode 100644
index 0000000..31eef1a
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/17.html
@@ -0,0 +1,339 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/mate-gsettings.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-gsettings.h</p>
+<a href="17.html#line-29"> missingIncludeSystem 29</a><a href="17.html#line-30"> missingIncludeSystem 30</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal">10</span>
+<span class="normal">11</span>
+<span class="normal">12</span>
+<span class="normal">13</span>
+<span class="normal">14</span>
+<span class="normal">15</span>
+<span class="normal">16</span>
+<span class="normal">17</span>
+<span class="normal">18</span>
+<span class="normal">19</span>
+<span class="normal">20</span>
+<span class="normal">21</span>
+<span class="normal">22</span>
+<span class="normal">23</span>
+<span class="normal">24</span>
+<span class="normal">25</span>
+<span class="normal">26</span>
+<span class="normal">27</span>
+<span class="normal">28</span>
+<span class="normal">29</span>
+<span class="normal">30</span>
+<span class="normal">31</span>
+<span class="normal">32</span>
+<span class="normal">33</span>
+<span class="normal">34</span>
+<span class="normal">35</span>
+<span class="normal">36</span>
+<span class="normal">37</span>
+<span class="normal">38</span>
+<span class="normal">39</span>
+<span class="normal">40</span>
+<span class="normal">41</span>
+<span class="normal">42</span>
+<span class="normal">43</span>
+<span class="normal">44</span>
+<span class="normal">45</span>
+<span class="normal">46</span>
+<span class="normal">47</span>
+<span class="normal">48</span>
+<span class="normal">49</span>
+<span class="normal">50</span>
+<span class="normal">51</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span>
+<a id="line-2" name="line-2"></a><span class="cm"> * mate-gsettings.h: helper API for GSettings</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * Copyright (C) 2013 Stefano Karapetsas</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * Copyright (C) 2013-2021 MATE Developers</span>
+<a id="line-6" name="line-6"></a><span class="cm"> *</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * This program is free software; you can redistribute it and/or</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * modify it under the terms of the GNU General Public License as</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * published by the Free Software Foundation; either version 2 of the</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * License, or (at your option) any later version.</span>
+<a id="line-11" name="line-11"></a><span class="cm"> *</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * This program is distributed in the hope that it will be useful, but</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * General Public License for more details.</span>
+<a id="line-16" name="line-16"></a><span class="cm"> *</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * along with this program; if not, write to the Free Software</span>
+<a id="line-19" name="line-19"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * 02110-1301, USA.</span>
+<a id="line-21" name="line-21"></a><span class="cm"> *</span>
+<a id="line-22" name="line-22"></a><span class="cm"> * Authors:</span>
+<a id="line-23" name="line-23"></a><span class="cm"> * Stefano Karapetsas &lt;[email protected]&gt;</span>
+<a id="line-24" name="line-24"></a><span class="cm"> */</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="cp">#ifndef __MATE_GSETTINGS_H__</span>
+<a id="line-27" name="line-27"></a><span class="cp">#define __MATE_GSETTINGS_H__</span>
+<a id="line-28" name="line-28"></a>
+<a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib.h&gt;</span><span class="error2">&lt;--- Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gio/gio.h&gt;</span><span class="error2">&lt;--- Include file: <gio/gio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="n">G_BEGIN_DECLS</span>
+<a id="line-33" name="line-33"></a>
+<a id="line-34" name="line-34"></a><span class="n">gboolean</span><span class="w"> </span><span class="n">mate_gsettings_schema_exists</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="o">*</span><span class="w"> </span><span class="n">schema</span><span class="p">);</span>
+<a id="line-35" name="line-35"></a>
+<a id="line-36" name="line-36"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_gsettings_is_valid_keyname</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="p">,</span>
+<a id="line-37" name="line-37"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">);</span>
+<a id="line-38" name="line-38"></a>
+<a id="line-39" name="line-39"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_gsettings_append_strv</span><span class="w"> </span><span class="p">(</span><span class="n">GSettings</span><span class="w"> </span><span class="o">*</span><span class="n">settings</span><span class="p">,</span>
+<a id="line-40" name="line-40"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="p">,</span>
+<a id="line-41" name="line-41"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">);</span>
+<a id="line-42" name="line-42"></a>
+<a id="line-43" name="line-43"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_gsettings_remove_all_from_strv</span><span class="w"> </span><span class="p">(</span><span class="n">GSettings</span><span class="w"> </span><span class="o">*</span><span class="n">settings</span><span class="p">,</span>
+<a id="line-44" name="line-44"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">key</span><span class="p">,</span>
+<a id="line-45" name="line-45"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">);</span>
+<a id="line-46" name="line-46"></a>
+<a id="line-47" name="line-47"></a><span class="n">GSList</span><span class="o">*</span><span class="w"> </span><span class="nf">mate_gsettings_strv_to_gslist</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="k">const</span><span class="w"> </span><span class="o">*</span><span class="n">array</span><span class="p">);</span>
+<a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="n">G_END_DECLS</span>
+<a id="line-50" name="line-50"></a>
+<a id="line-51" name="line-51"></a><span class="cp">#endif </span><span class="cm">/* __MATE_GSETTINGS_H__ */</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/18.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/18.html
new file mode 100644
index 0000000..c23d0cc
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/18.html
@@ -0,0 +1,3107 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/mate-hsv.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-hsv.c</p>
+<a href="18.html#line-34"> missingInclude 34</a><a href="18.html#line-39"> missingIncludeSystem 39</a><a href="18.html#line-40"> missingIncludeSystem 40</a><a href="18.html#line-42"> missingIncludeSystem 42</a><a href="18.html#line-128"> unknownMacro 128</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal"> 10</span>
+<span class="normal"> 11</span>
+<span class="normal"> 12</span>
+<span class="normal"> 13</span>
+<span class="normal"> 14</span>
+<span class="normal"> 15</span>
+<span class="normal"> 16</span>
+<span class="normal"> 17</span>
+<span class="normal"> 18</span>
+<span class="normal"> 19</span>
+<span class="normal"> 20</span>
+<span class="normal"> 21</span>
+<span class="normal"> 22</span>
+<span class="normal"> 23</span>
+<span class="normal"> 24</span>
+<span class="normal"> 25</span>
+<span class="normal"> 26</span>
+<span class="normal"> 27</span>
+<span class="normal"> 28</span>
+<span class="normal"> 29</span>
+<span class="normal"> 30</span>
+<span class="normal"> 31</span>
+<span class="normal"> 32</span>
+<span class="normal"> 33</span>
+<span class="normal"> 34</span>
+<span class="normal"> 35</span>
+<span class="normal"> 36</span>
+<span class="normal"> 37</span>
+<span class="normal"> 38</span>
+<span class="normal"> 39</span>
+<span class="normal"> 40</span>
+<span class="normal"> 41</span>
+<span class="normal"> 42</span>
+<span class="normal"> 43</span>
+<span class="normal"> 44</span>
+<span class="normal"> 45</span>
+<span class="normal"> 46</span>
+<span class="normal"> 47</span>
+<span class="normal"> 48</span>
+<span class="normal"> 49</span>
+<span class="normal"> 50</span>
+<span class="normal"> 51</span>
+<span class="normal"> 52</span>
+<span class="normal"> 53</span>
+<span class="normal"> 54</span>
+<span class="normal"> 55</span>
+<span class="normal"> 56</span>
+<span class="normal"> 57</span>
+<span class="normal"> 58</span>
+<span class="normal"> 59</span>
+<span class="normal"> 60</span>
+<span class="normal"> 61</span>
+<span class="normal"> 62</span>
+<span class="normal"> 63</span>
+<span class="normal"> 64</span>
+<span class="normal"> 65</span>
+<span class="normal"> 66</span>
+<span class="normal"> 67</span>
+<span class="normal"> 68</span>
+<span class="normal"> 69</span>
+<span class="normal"> 70</span>
+<span class="normal"> 71</span>
+<span class="normal"> 72</span>
+<span class="normal"> 73</span>
+<span class="normal"> 74</span>
+<span class="normal"> 75</span>
+<span class="normal"> 76</span>
+<span class="normal"> 77</span>
+<span class="normal"> 78</span>
+<span class="normal"> 79</span>
+<span class="normal"> 80</span>
+<span class="normal"> 81</span>
+<span class="normal"> 82</span>
+<span class="normal"> 83</span>
+<span class="normal"> 84</span>
+<span class="normal"> 85</span>
+<span class="normal"> 86</span>
+<span class="normal"> 87</span>
+<span class="normal"> 88</span>
+<span class="normal"> 89</span>
+<span class="normal"> 90</span>
+<span class="normal"> 91</span>
+<span class="normal"> 92</span>
+<span class="normal"> 93</span>
+<span class="normal"> 94</span>
+<span class="normal"> 95</span>
+<span class="normal"> 96</span>
+<span class="normal"> 97</span>
+<span class="normal"> 98</span>
+<span class="normal"> 99</span>
+<span class="normal"> 100</span>
+<span class="normal"> 101</span>
+<span class="normal"> 102</span>
+<span class="normal"> 103</span>
+<span class="normal"> 104</span>
+<span class="normal"> 105</span>
+<span class="normal"> 106</span>
+<span class="normal"> 107</span>
+<span class="normal"> 108</span>
+<span class="normal"> 109</span>
+<span class="normal"> 110</span>
+<span class="normal"> 111</span>
+<span class="normal"> 112</span>
+<span class="normal"> 113</span>
+<span class="normal"> 114</span>
+<span class="normal"> 115</span>
+<span class="normal"> 116</span>
+<span class="normal"> 117</span>
+<span class="normal"> 118</span>
+<span class="normal"> 119</span>
+<span class="normal"> 120</span>
+<span class="normal"> 121</span>
+<span class="normal"> 122</span>
+<span class="normal"> 123</span>
+<span class="normal"> 124</span>
+<span class="normal"> 125</span>
+<span class="normal"> 126</span>
+<span class="normal"> 127</span>
+<span class="normal"> 128</span>
+<span class="normal"> 129</span>
+<span class="normal"> 130</span>
+<span class="normal"> 131</span>
+<span class="normal"> 132</span>
+<span class="normal"> 133</span>
+<span class="normal"> 134</span>
+<span class="normal"> 135</span>
+<span class="normal"> 136</span>
+<span class="normal"> 137</span>
+<span class="normal"> 138</span>
+<span class="normal"> 139</span>
+<span class="normal"> 140</span>
+<span class="normal"> 141</span>
+<span class="normal"> 142</span>
+<span class="normal"> 143</span>
+<span class="normal"> 144</span>
+<span class="normal"> 145</span>
+<span class="normal"> 146</span>
+<span class="normal"> 147</span>
+<span class="normal"> 148</span>
+<span class="normal"> 149</span>
+<span class="normal"> 150</span>
+<span class="normal"> 151</span>
+<span class="normal"> 152</span>
+<span class="normal"> 153</span>
+<span class="normal"> 154</span>
+<span class="normal"> 155</span>
+<span class="normal"> 156</span>
+<span class="normal"> 157</span>
+<span class="normal"> 158</span>
+<span class="normal"> 159</span>
+<span class="normal"> 160</span>
+<span class="normal"> 161</span>
+<span class="normal"> 162</span>
+<span class="normal"> 163</span>
+<span class="normal"> 164</span>
+<span class="normal"> 165</span>
+<span class="normal"> 166</span>
+<span class="normal"> 167</span>
+<span class="normal"> 168</span>
+<span class="normal"> 169</span>
+<span class="normal"> 170</span>
+<span class="normal"> 171</span>
+<span class="normal"> 172</span>
+<span class="normal"> 173</span>
+<span class="normal"> 174</span>
+<span class="normal"> 175</span>
+<span class="normal"> 176</span>
+<span class="normal"> 177</span>
+<span class="normal"> 178</span>
+<span class="normal"> 179</span>
+<span class="normal"> 180</span>
+<span class="normal"> 181</span>
+<span class="normal"> 182</span>
+<span class="normal"> 183</span>
+<span class="normal"> 184</span>
+<span class="normal"> 185</span>
+<span class="normal"> 186</span>
+<span class="normal"> 187</span>
+<span class="normal"> 188</span>
+<span class="normal"> 189</span>
+<span class="normal"> 190</span>
+<span class="normal"> 191</span>
+<span class="normal"> 192</span>
+<span class="normal"> 193</span>
+<span class="normal"> 194</span>
+<span class="normal"> 195</span>
+<span class="normal"> 196</span>
+<span class="normal"> 197</span>
+<span class="normal"> 198</span>
+<span class="normal"> 199</span>
+<span class="normal"> 200</span>
+<span class="normal"> 201</span>
+<span class="normal"> 202</span>
+<span class="normal"> 203</span>
+<span class="normal"> 204</span>
+<span class="normal"> 205</span>
+<span class="normal"> 206</span>
+<span class="normal"> 207</span>
+<span class="normal"> 208</span>
+<span class="normal"> 209</span>
+<span class="normal"> 210</span>
+<span class="normal"> 211</span>
+<span class="normal"> 212</span>
+<span class="normal"> 213</span>
+<span class="normal"> 214</span>
+<span class="normal"> 215</span>
+<span class="normal"> 216</span>
+<span class="normal"> 217</span>
+<span class="normal"> 218</span>
+<span class="normal"> 219</span>
+<span class="normal"> 220</span>
+<span class="normal"> 221</span>
+<span class="normal"> 222</span>
+<span class="normal"> 223</span>
+<span class="normal"> 224</span>
+<span class="normal"> 225</span>
+<span class="normal"> 226</span>
+<span class="normal"> 227</span>
+<span class="normal"> 228</span>
+<span class="normal"> 229</span>
+<span class="normal"> 230</span>
+<span class="normal"> 231</span>
+<span class="normal"> 232</span>
+<span class="normal"> 233</span>
+<span class="normal"> 234</span>
+<span class="normal"> 235</span>
+<span class="normal"> 236</span>
+<span class="normal"> 237</span>
+<span class="normal"> 238</span>
+<span class="normal"> 239</span>
+<span class="normal"> 240</span>
+<span class="normal"> 241</span>
+<span class="normal"> 242</span>
+<span class="normal"> 243</span>
+<span class="normal"> 244</span>
+<span class="normal"> 245</span>
+<span class="normal"> 246</span>
+<span class="normal"> 247</span>
+<span class="normal"> 248</span>
+<span class="normal"> 249</span>
+<span class="normal"> 250</span>
+<span class="normal"> 251</span>
+<span class="normal"> 252</span>
+<span class="normal"> 253</span>
+<span class="normal"> 254</span>
+<span class="normal"> 255</span>
+<span class="normal"> 256</span>
+<span class="normal"> 257</span>
+<span class="normal"> 258</span>
+<span class="normal"> 259</span>
+<span class="normal"> 260</span>
+<span class="normal"> 261</span>
+<span class="normal"> 262</span>
+<span class="normal"> 263</span>
+<span class="normal"> 264</span>
+<span class="normal"> 265</span>
+<span class="normal"> 266</span>
+<span class="normal"> 267</span>
+<span class="normal"> 268</span>
+<span class="normal"> 269</span>
+<span class="normal"> 270</span>
+<span class="normal"> 271</span>
+<span class="normal"> 272</span>
+<span class="normal"> 273</span>
+<span class="normal"> 274</span>
+<span class="normal"> 275</span>
+<span class="normal"> 276</span>
+<span class="normal"> 277</span>
+<span class="normal"> 278</span>
+<span class="normal"> 279</span>
+<span class="normal"> 280</span>
+<span class="normal"> 281</span>
+<span class="normal"> 282</span>
+<span class="normal"> 283</span>
+<span class="normal"> 284</span>
+<span class="normal"> 285</span>
+<span class="normal"> 286</span>
+<span class="normal"> 287</span>
+<span class="normal"> 288</span>
+<span class="normal"> 289</span>
+<span class="normal"> 290</span>
+<span class="normal"> 291</span>
+<span class="normal"> 292</span>
+<span class="normal"> 293</span>
+<span class="normal"> 294</span>
+<span class="normal"> 295</span>
+<span class="normal"> 296</span>
+<span class="normal"> 297</span>
+<span class="normal"> 298</span>
+<span class="normal"> 299</span>
+<span class="normal"> 300</span>
+<span class="normal"> 301</span>
+<span class="normal"> 302</span>
+<span class="normal"> 303</span>
+<span class="normal"> 304</span>
+<span class="normal"> 305</span>
+<span class="normal"> 306</span>
+<span class="normal"> 307</span>
+<span class="normal"> 308</span>
+<span class="normal"> 309</span>
+<span class="normal"> 310</span>
+<span class="normal"> 311</span>
+<span class="normal"> 312</span>
+<span class="normal"> 313</span>
+<span class="normal"> 314</span>
+<span class="normal"> 315</span>
+<span class="normal"> 316</span>
+<span class="normal"> 317</span>
+<span class="normal"> 318</span>
+<span class="normal"> 319</span>
+<span class="normal"> 320</span>
+<span class="normal"> 321</span>
+<span class="normal"> 322</span>
+<span class="normal"> 323</span>
+<span class="normal"> 324</span>
+<span class="normal"> 325</span>
+<span class="normal"> 326</span>
+<span class="normal"> 327</span>
+<span class="normal"> 328</span>
+<span class="normal"> 329</span>
+<span class="normal"> 330</span>
+<span class="normal"> 331</span>
+<span class="normal"> 332</span>
+<span class="normal"> 333</span>
+<span class="normal"> 334</span>
+<span class="normal"> 335</span>
+<span class="normal"> 336</span>
+<span class="normal"> 337</span>
+<span class="normal"> 338</span>
+<span class="normal"> 339</span>
+<span class="normal"> 340</span>
+<span class="normal"> 341</span>
+<span class="normal"> 342</span>
+<span class="normal"> 343</span>
+<span class="normal"> 344</span>
+<span class="normal"> 345</span>
+<span class="normal"> 346</span>
+<span class="normal"> 347</span>
+<span class="normal"> 348</span>
+<span class="normal"> 349</span>
+<span class="normal"> 350</span>
+<span class="normal"> 351</span>
+<span class="normal"> 352</span>
+<span class="normal"> 353</span>
+<span class="normal"> 354</span>
+<span class="normal"> 355</span>
+<span class="normal"> 356</span>
+<span class="normal"> 357</span>
+<span class="normal"> 358</span>
+<span class="normal"> 359</span>
+<span class="normal"> 360</span>
+<span class="normal"> 361</span>
+<span class="normal"> 362</span>
+<span class="normal"> 363</span>
+<span class="normal"> 364</span>
+<span class="normal"> 365</span>
+<span class="normal"> 366</span>
+<span class="normal"> 367</span>
+<span class="normal"> 368</span>
+<span class="normal"> 369</span>
+<span class="normal"> 370</span>
+<span class="normal"> 371</span>
+<span class="normal"> 372</span>
+<span class="normal"> 373</span>
+<span class="normal"> 374</span>
+<span class="normal"> 375</span>
+<span class="normal"> 376</span>
+<span class="normal"> 377</span>
+<span class="normal"> 378</span>
+<span class="normal"> 379</span>
+<span class="normal"> 380</span>
+<span class="normal"> 381</span>
+<span class="normal"> 382</span>
+<span class="normal"> 383</span>
+<span class="normal"> 384</span>
+<span class="normal"> 385</span>
+<span class="normal"> 386</span>
+<span class="normal"> 387</span>
+<span class="normal"> 388</span>
+<span class="normal"> 389</span>
+<span class="normal"> 390</span>
+<span class="normal"> 391</span>
+<span class="normal"> 392</span>
+<span class="normal"> 393</span>
+<span class="normal"> 394</span>
+<span class="normal"> 395</span>
+<span class="normal"> 396</span>
+<span class="normal"> 397</span>
+<span class="normal"> 398</span>
+<span class="normal"> 399</span>
+<span class="normal"> 400</span>
+<span class="normal"> 401</span>
+<span class="normal"> 402</span>
+<span class="normal"> 403</span>
+<span class="normal"> 404</span>
+<span class="normal"> 405</span>
+<span class="normal"> 406</span>
+<span class="normal"> 407</span>
+<span class="normal"> 408</span>
+<span class="normal"> 409</span>
+<span class="normal"> 410</span>
+<span class="normal"> 411</span>
+<span class="normal"> 412</span>
+<span class="normal"> 413</span>
+<span class="normal"> 414</span>
+<span class="normal"> 415</span>
+<span class="normal"> 416</span>
+<span class="normal"> 417</span>
+<span class="normal"> 418</span>
+<span class="normal"> 419</span>
+<span class="normal"> 420</span>
+<span class="normal"> 421</span>
+<span class="normal"> 422</span>
+<span class="normal"> 423</span>
+<span class="normal"> 424</span>
+<span class="normal"> 425</span>
+<span class="normal"> 426</span>
+<span class="normal"> 427</span>
+<span class="normal"> 428</span>
+<span class="normal"> 429</span>
+<span class="normal"> 430</span>
+<span class="normal"> 431</span>
+<span class="normal"> 432</span>
+<span class="normal"> 433</span>
+<span class="normal"> 434</span>
+<span class="normal"> 435</span>
+<span class="normal"> 436</span>
+<span class="normal"> 437</span>
+<span class="normal"> 438</span>
+<span class="normal"> 439</span>
+<span class="normal"> 440</span>
+<span class="normal"> 441</span>
+<span class="normal"> 442</span>
+<span class="normal"> 443</span>
+<span class="normal"> 444</span>
+<span class="normal"> 445</span>
+<span class="normal"> 446</span>
+<span class="normal"> 447</span>
+<span class="normal"> 448</span>
+<span class="normal"> 449</span>
+<span class="normal"> 450</span>
+<span class="normal"> 451</span>
+<span class="normal"> 452</span>
+<span class="normal"> 453</span>
+<span class="normal"> 454</span>
+<span class="normal"> 455</span>
+<span class="normal"> 456</span>
+<span class="normal"> 457</span>
+<span class="normal"> 458</span>
+<span class="normal"> 459</span>
+<span class="normal"> 460</span>
+<span class="normal"> 461</span>
+<span class="normal"> 462</span>
+<span class="normal"> 463</span>
+<span class="normal"> 464</span>
+<span class="normal"> 465</span>
+<span class="normal"> 466</span>
+<span class="normal"> 467</span>
+<span class="normal"> 468</span>
+<span class="normal"> 469</span>
+<span class="normal"> 470</span>
+<span class="normal"> 471</span>
+<span class="normal"> 472</span>
+<span class="normal"> 473</span>
+<span class="normal"> 474</span>
+<span class="normal"> 475</span>
+<span class="normal"> 476</span>
+<span class="normal"> 477</span>
+<span class="normal"> 478</span>
+<span class="normal"> 479</span>
+<span class="normal"> 480</span>
+<span class="normal"> 481</span>
+<span class="normal"> 482</span>
+<span class="normal"> 483</span>
+<span class="normal"> 484</span>
+<span class="normal"> 485</span>
+<span class="normal"> 486</span>
+<span class="normal"> 487</span>
+<span class="normal"> 488</span>
+<span class="normal"> 489</span>
+<span class="normal"> 490</span>
+<span class="normal"> 491</span>
+<span class="normal"> 492</span>
+<span class="normal"> 493</span>
+<span class="normal"> 494</span>
+<span class="normal"> 495</span>
+<span class="normal"> 496</span>
+<span class="normal"> 497</span>
+<span class="normal"> 498</span>
+<span class="normal"> 499</span>
+<span class="normal"> 500</span>
+<span class="normal"> 501</span>
+<span class="normal"> 502</span>
+<span class="normal"> 503</span>
+<span class="normal"> 504</span>
+<span class="normal"> 505</span>
+<span class="normal"> 506</span>
+<span class="normal"> 507</span>
+<span class="normal"> 508</span>
+<span class="normal"> 509</span>
+<span class="normal"> 510</span>
+<span class="normal"> 511</span>
+<span class="normal"> 512</span>
+<span class="normal"> 513</span>
+<span class="normal"> 514</span>
+<span class="normal"> 515</span>
+<span class="normal"> 516</span>
+<span class="normal"> 517</span>
+<span class="normal"> 518</span>
+<span class="normal"> 519</span>
+<span class="normal"> 520</span>
+<span class="normal"> 521</span>
+<span class="normal"> 522</span>
+<span class="normal"> 523</span>
+<span class="normal"> 524</span>
+<span class="normal"> 525</span>
+<span class="normal"> 526</span>
+<span class="normal"> 527</span>
+<span class="normal"> 528</span>
+<span class="normal"> 529</span>
+<span class="normal"> 530</span>
+<span class="normal"> 531</span>
+<span class="normal"> 532</span>
+<span class="normal"> 533</span>
+<span class="normal"> 534</span>
+<span class="normal"> 535</span>
+<span class="normal"> 536</span>
+<span class="normal"> 537</span>
+<span class="normal"> 538</span>
+<span class="normal"> 539</span>
+<span class="normal"> 540</span>
+<span class="normal"> 541</span>
+<span class="normal"> 542</span>
+<span class="normal"> 543</span>
+<span class="normal"> 544</span>
+<span class="normal"> 545</span>
+<span class="normal"> 546</span>
+<span class="normal"> 547</span>
+<span class="normal"> 548</span>
+<span class="normal"> 549</span>
+<span class="normal"> 550</span>
+<span class="normal"> 551</span>
+<span class="normal"> 552</span>
+<span class="normal"> 553</span>
+<span class="normal"> 554</span>
+<span class="normal"> 555</span>
+<span class="normal"> 556</span>
+<span class="normal"> 557</span>
+<span class="normal"> 558</span>
+<span class="normal"> 559</span>
+<span class="normal"> 560</span>
+<span class="normal"> 561</span>
+<span class="normal"> 562</span>
+<span class="normal"> 563</span>
+<span class="normal"> 564</span>
+<span class="normal"> 565</span>
+<span class="normal"> 566</span>
+<span class="normal"> 567</span>
+<span class="normal"> 568</span>
+<span class="normal"> 569</span>
+<span class="normal"> 570</span>
+<span class="normal"> 571</span>
+<span class="normal"> 572</span>
+<span class="normal"> 573</span>
+<span class="normal"> 574</span>
+<span class="normal"> 575</span>
+<span class="normal"> 576</span>
+<span class="normal"> 577</span>
+<span class="normal"> 578</span>
+<span class="normal"> 579</span>
+<span class="normal"> 580</span>
+<span class="normal"> 581</span>
+<span class="normal"> 582</span>
+<span class="normal"> 583</span>
+<span class="normal"> 584</span>
+<span class="normal"> 585</span>
+<span class="normal"> 586</span>
+<span class="normal"> 587</span>
+<span class="normal"> 588</span>
+<span class="normal"> 589</span>
+<span class="normal"> 590</span>
+<span class="normal"> 591</span>
+<span class="normal"> 592</span>
+<span class="normal"> 593</span>
+<span class="normal"> 594</span>
+<span class="normal"> 595</span>
+<span class="normal"> 596</span>
+<span class="normal"> 597</span>
+<span class="normal"> 598</span>
+<span class="normal"> 599</span>
+<span class="normal"> 600</span>
+<span class="normal"> 601</span>
+<span class="normal"> 602</span>
+<span class="normal"> 603</span>
+<span class="normal"> 604</span>
+<span class="normal"> 605</span>
+<span class="normal"> 606</span>
+<span class="normal"> 607</span>
+<span class="normal"> 608</span>
+<span class="normal"> 609</span>
+<span class="normal"> 610</span>
+<span class="normal"> 611</span>
+<span class="normal"> 612</span>
+<span class="normal"> 613</span>
+<span class="normal"> 614</span>
+<span class="normal"> 615</span>
+<span class="normal"> 616</span>
+<span class="normal"> 617</span>
+<span class="normal"> 618</span>
+<span class="normal"> 619</span>
+<span class="normal"> 620</span>
+<span class="normal"> 621</span>
+<span class="normal"> 622</span>
+<span class="normal"> 623</span>
+<span class="normal"> 624</span>
+<span class="normal"> 625</span>
+<span class="normal"> 626</span>
+<span class="normal"> 627</span>
+<span class="normal"> 628</span>
+<span class="normal"> 629</span>
+<span class="normal"> 630</span>
+<span class="normal"> 631</span>
+<span class="normal"> 632</span>
+<span class="normal"> 633</span>
+<span class="normal"> 634</span>
+<span class="normal"> 635</span>
+<span class="normal"> 636</span>
+<span class="normal"> 637</span>
+<span class="normal"> 638</span>
+<span class="normal"> 639</span>
+<span class="normal"> 640</span>
+<span class="normal"> 641</span>
+<span class="normal"> 642</span>
+<span class="normal"> 643</span>
+<span class="normal"> 644</span>
+<span class="normal"> 645</span>
+<span class="normal"> 646</span>
+<span class="normal"> 647</span>
+<span class="normal"> 648</span>
+<span class="normal"> 649</span>
+<span class="normal"> 650</span>
+<span class="normal"> 651</span>
+<span class="normal"> 652</span>
+<span class="normal"> 653</span>
+<span class="normal"> 654</span>
+<span class="normal"> 655</span>
+<span class="normal"> 656</span>
+<span class="normal"> 657</span>
+<span class="normal"> 658</span>
+<span class="normal"> 659</span>
+<span class="normal"> 660</span>
+<span class="normal"> 661</span>
+<span class="normal"> 662</span>
+<span class="normal"> 663</span>
+<span class="normal"> 664</span>
+<span class="normal"> 665</span>
+<span class="normal"> 666</span>
+<span class="normal"> 667</span>
+<span class="normal"> 668</span>
+<span class="normal"> 669</span>
+<span class="normal"> 670</span>
+<span class="normal"> 671</span>
+<span class="normal"> 672</span>
+<span class="normal"> 673</span>
+<span class="normal"> 674</span>
+<span class="normal"> 675</span>
+<span class="normal"> 676</span>
+<span class="normal"> 677</span>
+<span class="normal"> 678</span>
+<span class="normal"> 679</span>
+<span class="normal"> 680</span>
+<span class="normal"> 681</span>
+<span class="normal"> 682</span>
+<span class="normal"> 683</span>
+<span class="normal"> 684</span>
+<span class="normal"> 685</span>
+<span class="normal"> 686</span>
+<span class="normal"> 687</span>
+<span class="normal"> 688</span>
+<span class="normal"> 689</span>
+<span class="normal"> 690</span>
+<span class="normal"> 691</span>
+<span class="normal"> 692</span>
+<span class="normal"> 693</span>
+<span class="normal"> 694</span>
+<span class="normal"> 695</span>
+<span class="normal"> 696</span>
+<span class="normal"> 697</span>
+<span class="normal"> 698</span>
+<span class="normal"> 699</span>
+<span class="normal"> 700</span>
+<span class="normal"> 701</span>
+<span class="normal"> 702</span>
+<span class="normal"> 703</span>
+<span class="normal"> 704</span>
+<span class="normal"> 705</span>
+<span class="normal"> 706</span>
+<span class="normal"> 707</span>
+<span class="normal"> 708</span>
+<span class="normal"> 709</span>
+<span class="normal"> 710</span>
+<span class="normal"> 711</span>
+<span class="normal"> 712</span>
+<span class="normal"> 713</span>
+<span class="normal"> 714</span>
+<span class="normal"> 715</span>
+<span class="normal"> 716</span>
+<span class="normal"> 717</span>
+<span class="normal"> 718</span>
+<span class="normal"> 719</span>
+<span class="normal"> 720</span>
+<span class="normal"> 721</span>
+<span class="normal"> 722</span>
+<span class="normal"> 723</span>
+<span class="normal"> 724</span>
+<span class="normal"> 725</span>
+<span class="normal"> 726</span>
+<span class="normal"> 727</span>
+<span class="normal"> 728</span>
+<span class="normal"> 729</span>
+<span class="normal"> 730</span>
+<span class="normal"> 731</span>
+<span class="normal"> 732</span>
+<span class="normal"> 733</span>
+<span class="normal"> 734</span>
+<span class="normal"> 735</span>
+<span class="normal"> 736</span>
+<span class="normal"> 737</span>
+<span class="normal"> 738</span>
+<span class="normal"> 739</span>
+<span class="normal"> 740</span>
+<span class="normal"> 741</span>
+<span class="normal"> 742</span>
+<span class="normal"> 743</span>
+<span class="normal"> 744</span>
+<span class="normal"> 745</span>
+<span class="normal"> 746</span>
+<span class="normal"> 747</span>
+<span class="normal"> 748</span>
+<span class="normal"> 749</span>
+<span class="normal"> 750</span>
+<span class="normal"> 751</span>
+<span class="normal"> 752</span>
+<span class="normal"> 753</span>
+<span class="normal"> 754</span>
+<span class="normal"> 755</span>
+<span class="normal"> 756</span>
+<span class="normal"> 757</span>
+<span class="normal"> 758</span>
+<span class="normal"> 759</span>
+<span class="normal"> 760</span>
+<span class="normal"> 761</span>
+<span class="normal"> 762</span>
+<span class="normal"> 763</span>
+<span class="normal"> 764</span>
+<span class="normal"> 765</span>
+<span class="normal"> 766</span>
+<span class="normal"> 767</span>
+<span class="normal"> 768</span>
+<span class="normal"> 769</span>
+<span class="normal"> 770</span>
+<span class="normal"> 771</span>
+<span class="normal"> 772</span>
+<span class="normal"> 773</span>
+<span class="normal"> 774</span>
+<span class="normal"> 775</span>
+<span class="normal"> 776</span>
+<span class="normal"> 777</span>
+<span class="normal"> 778</span>
+<span class="normal"> 779</span>
+<span class="normal"> 780</span>
+<span class="normal"> 781</span>
+<span class="normal"> 782</span>
+<span class="normal"> 783</span>
+<span class="normal"> 784</span>
+<span class="normal"> 785</span>
+<span class="normal"> 786</span>
+<span class="normal"> 787</span>
+<span class="normal"> 788</span>
+<span class="normal"> 789</span>
+<span class="normal"> 790</span>
+<span class="normal"> 791</span>
+<span class="normal"> 792</span>
+<span class="normal"> 793</span>
+<span class="normal"> 794</span>
+<span class="normal"> 795</span>
+<span class="normal"> 796</span>
+<span class="normal"> 797</span>
+<span class="normal"> 798</span>
+<span class="normal"> 799</span>
+<span class="normal"> 800</span>
+<span class="normal"> 801</span>
+<span class="normal"> 802</span>
+<span class="normal"> 803</span>
+<span class="normal"> 804</span>
+<span class="normal"> 805</span>
+<span class="normal"> 806</span>
+<span class="normal"> 807</span>
+<span class="normal"> 808</span>
+<span class="normal"> 809</span>
+<span class="normal"> 810</span>
+<span class="normal"> 811</span>
+<span class="normal"> 812</span>
+<span class="normal"> 813</span>
+<span class="normal"> 814</span>
+<span class="normal"> 815</span>
+<span class="normal"> 816</span>
+<span class="normal"> 817</span>
+<span class="normal"> 818</span>
+<span class="normal"> 819</span>
+<span class="normal"> 820</span>
+<span class="normal"> 821</span>
+<span class="normal"> 822</span>
+<span class="normal"> 823</span>
+<span class="normal"> 824</span>
+<span class="normal"> 825</span>
+<span class="normal"> 826</span>
+<span class="normal"> 827</span>
+<span class="normal"> 828</span>
+<span class="normal"> 829</span>
+<span class="normal"> 830</span>
+<span class="normal"> 831</span>
+<span class="normal"> 832</span>
+<span class="normal"> 833</span>
+<span class="normal"> 834</span>
+<span class="normal"> 835</span>
+<span class="normal"> 836</span>
+<span class="normal"> 837</span>
+<span class="normal"> 838</span>
+<span class="normal"> 839</span>
+<span class="normal"> 840</span>
+<span class="normal"> 841</span>
+<span class="normal"> 842</span>
+<span class="normal"> 843</span>
+<span class="normal"> 844</span>
+<span class="normal"> 845</span>
+<span class="normal"> 846</span>
+<span class="normal"> 847</span>
+<span class="normal"> 848</span>
+<span class="normal"> 849</span>
+<span class="normal"> 850</span>
+<span class="normal"> 851</span>
+<span class="normal"> 852</span>
+<span class="normal"> 853</span>
+<span class="normal"> 854</span>
+<span class="normal"> 855</span>
+<span class="normal"> 856</span>
+<span class="normal"> 857</span>
+<span class="normal"> 858</span>
+<span class="normal"> 859</span>
+<span class="normal"> 860</span>
+<span class="normal"> 861</span>
+<span class="normal"> 862</span>
+<span class="normal"> 863</span>
+<span class="normal"> 864</span>
+<span class="normal"> 865</span>
+<span class="normal"> 866</span>
+<span class="normal"> 867</span>
+<span class="normal"> 868</span>
+<span class="normal"> 869</span>
+<span class="normal"> 870</span>
+<span class="normal"> 871</span>
+<span class="normal"> 872</span>
+<span class="normal"> 873</span>
+<span class="normal"> 874</span>
+<span class="normal"> 875</span>
+<span class="normal"> 876</span>
+<span class="normal"> 877</span>
+<span class="normal"> 878</span>
+<span class="normal"> 879</span>
+<span class="normal"> 880</span>
+<span class="normal"> 881</span>
+<span class="normal"> 882</span>
+<span class="normal"> 883</span>
+<span class="normal"> 884</span>
+<span class="normal"> 885</span>
+<span class="normal"> 886</span>
+<span class="normal"> 887</span>
+<span class="normal"> 888</span>
+<span class="normal"> 889</span>
+<span class="normal"> 890</span>
+<span class="normal"> 891</span>
+<span class="normal"> 892</span>
+<span class="normal"> 893</span>
+<span class="normal"> 894</span>
+<span class="normal"> 895</span>
+<span class="normal"> 896</span>
+<span class="normal"> 897</span>
+<span class="normal"> 898</span>
+<span class="normal"> 899</span>
+<span class="normal"> 900</span>
+<span class="normal"> 901</span>
+<span class="normal"> 902</span>
+<span class="normal"> 903</span>
+<span class="normal"> 904</span>
+<span class="normal"> 905</span>
+<span class="normal"> 906</span>
+<span class="normal"> 907</span>
+<span class="normal"> 908</span>
+<span class="normal"> 909</span>
+<span class="normal"> 910</span>
+<span class="normal"> 911</span>
+<span class="normal"> 912</span>
+<span class="normal"> 913</span>
+<span class="normal"> 914</span>
+<span class="normal"> 915</span>
+<span class="normal"> 916</span>
+<span class="normal"> 917</span>
+<span class="normal"> 918</span>
+<span class="normal"> 919</span>
+<span class="normal"> 920</span>
+<span class="normal"> 921</span>
+<span class="normal"> 922</span>
+<span class="normal"> 923</span>
+<span class="normal"> 924</span>
+<span class="normal"> 925</span>
+<span class="normal"> 926</span>
+<span class="normal"> 927</span>
+<span class="normal"> 928</span>
+<span class="normal"> 929</span>
+<span class="normal"> 930</span>
+<span class="normal"> 931</span>
+<span class="normal"> 932</span>
+<span class="normal"> 933</span>
+<span class="normal"> 934</span>
+<span class="normal"> 935</span>
+<span class="normal"> 936</span>
+<span class="normal"> 937</span>
+<span class="normal"> 938</span>
+<span class="normal"> 939</span>
+<span class="normal"> 940</span>
+<span class="normal"> 941</span>
+<span class="normal"> 942</span>
+<span class="normal"> 943</span>
+<span class="normal"> 944</span>
+<span class="normal"> 945</span>
+<span class="normal"> 946</span>
+<span class="normal"> 947</span>
+<span class="normal"> 948</span>
+<span class="normal"> 949</span>
+<span class="normal"> 950</span>
+<span class="normal"> 951</span>
+<span class="normal"> 952</span>
+<span class="normal"> 953</span>
+<span class="normal"> 954</span>
+<span class="normal"> 955</span>
+<span class="normal"> 956</span>
+<span class="normal"> 957</span>
+<span class="normal"> 958</span>
+<span class="normal"> 959</span>
+<span class="normal"> 960</span>
+<span class="normal"> 961</span>
+<span class="normal"> 962</span>
+<span class="normal"> 963</span>
+<span class="normal"> 964</span>
+<span class="normal"> 965</span>
+<span class="normal"> 966</span>
+<span class="normal"> 967</span>
+<span class="normal"> 968</span>
+<span class="normal"> 969</span>
+<span class="normal"> 970</span>
+<span class="normal"> 971</span>
+<span class="normal"> 972</span>
+<span class="normal"> 973</span>
+<span class="normal"> 974</span>
+<span class="normal"> 975</span>
+<span class="normal"> 976</span>
+<span class="normal"> 977</span>
+<span class="normal"> 978</span>
+<span class="normal"> 979</span>
+<span class="normal"> 980</span>
+<span class="normal"> 981</span>
+<span class="normal"> 982</span>
+<span class="normal"> 983</span>
+<span class="normal"> 984</span>
+<span class="normal"> 985</span>
+<span class="normal"> 986</span>
+<span class="normal"> 987</span>
+<span class="normal"> 988</span>
+<span class="normal"> 989</span>
+<span class="normal"> 990</span>
+<span class="normal"> 991</span>
+<span class="normal"> 992</span>
+<span class="normal"> 993</span>
+<span class="normal"> 994</span>
+<span class="normal"> 995</span>
+<span class="normal"> 996</span>
+<span class="normal"> 997</span>
+<span class="normal"> 998</span>
+<span class="normal"> 999</span>
+<span class="normal">1000</span>
+<span class="normal">1001</span>
+<span class="normal">1002</span>
+<span class="normal">1003</span>
+<span class="normal">1004</span>
+<span class="normal">1005</span>
+<span class="normal">1006</span>
+<span class="normal">1007</span>
+<span class="normal">1008</span>
+<span class="normal">1009</span>
+<span class="normal">1010</span>
+<span class="normal">1011</span>
+<span class="normal">1012</span>
+<span class="normal">1013</span>
+<span class="normal">1014</span>
+<span class="normal">1015</span>
+<span class="normal">1016</span>
+<span class="normal">1017</span>
+<span class="normal">1018</span>
+<span class="normal">1019</span>
+<span class="normal">1020</span>
+<span class="normal">1021</span>
+<span class="normal">1022</span>
+<span class="normal">1023</span>
+<span class="normal">1024</span>
+<span class="normal">1025</span>
+<span class="normal">1026</span>
+<span class="normal">1027</span>
+<span class="normal">1028</span>
+<span class="normal">1029</span>
+<span class="normal">1030</span>
+<span class="normal">1031</span>
+<span class="normal">1032</span>
+<span class="normal">1033</span>
+<span class="normal">1034</span>
+<span class="normal">1035</span>
+<span class="normal">1036</span>
+<span class="normal">1037</span>
+<span class="normal">1038</span>
+<span class="normal">1039</span>
+<span class="normal">1040</span>
+<span class="normal">1041</span>
+<span class="normal">1042</span>
+<span class="normal">1043</span>
+<span class="normal">1044</span>
+<span class="normal">1045</span>
+<span class="normal">1046</span>
+<span class="normal">1047</span>
+<span class="normal">1048</span>
+<span class="normal">1049</span>
+<span class="normal">1050</span>
+<span class="normal">1051</span>
+<span class="normal">1052</span>
+<span class="normal">1053</span>
+<span class="normal">1054</span>
+<span class="normal">1055</span>
+<span class="normal">1056</span>
+<span class="normal">1057</span>
+<span class="normal">1058</span>
+<span class="normal">1059</span>
+<span class="normal">1060</span>
+<span class="normal">1061</span>
+<span class="normal">1062</span>
+<span class="normal">1063</span>
+<span class="normal">1064</span>
+<span class="normal">1065</span>
+<span class="normal">1066</span>
+<span class="normal">1067</span>
+<span class="normal">1068</span>
+<span class="normal">1069</span>
+<span class="normal">1070</span>
+<span class="normal">1071</span>
+<span class="normal">1072</span>
+<span class="normal">1073</span>
+<span class="normal">1074</span>
+<span class="normal">1075</span>
+<span class="normal">1076</span>
+<span class="normal">1077</span>
+<span class="normal">1078</span>
+<span class="normal">1079</span>
+<span class="normal">1080</span>
+<span class="normal">1081</span>
+<span class="normal">1082</span>
+<span class="normal">1083</span>
+<span class="normal">1084</span>
+<span class="normal">1085</span>
+<span class="normal">1086</span>
+<span class="normal">1087</span>
+<span class="normal">1088</span>
+<span class="normal">1089</span>
+<span class="normal">1090</span>
+<span class="normal">1091</span>
+<span class="normal">1092</span>
+<span class="normal">1093</span>
+<span class="normal">1094</span>
+<span class="normal">1095</span>
+<span class="normal">1096</span>
+<span class="normal">1097</span>
+<span class="normal">1098</span>
+<span class="normal">1099</span>
+<span class="normal">1100</span>
+<span class="normal">1101</span>
+<span class="normal">1102</span>
+<span class="normal">1103</span>
+<span class="normal">1104</span>
+<span class="normal">1105</span>
+<span class="normal">1106</span>
+<span class="normal">1107</span>
+<span class="normal">1108</span>
+<span class="normal">1109</span>
+<span class="normal">1110</span>
+<span class="normal">1111</span>
+<span class="normal">1112</span>
+<span class="normal">1113</span>
+<span class="normal">1114</span>
+<span class="normal">1115</span>
+<span class="normal">1116</span>
+<span class="normal">1117</span>
+<span class="normal">1118</span>
+<span class="normal">1119</span>
+<span class="normal">1120</span>
+<span class="normal">1121</span>
+<span class="normal">1122</span>
+<span class="normal">1123</span>
+<span class="normal">1124</span>
+<span class="normal">1125</span>
+<span class="normal">1126</span>
+<span class="normal">1127</span>
+<span class="normal">1128</span>
+<span class="normal">1129</span>
+<span class="normal">1130</span>
+<span class="normal">1131</span>
+<span class="normal">1132</span>
+<span class="normal">1133</span>
+<span class="normal">1134</span>
+<span class="normal">1135</span>
+<span class="normal">1136</span>
+<span class="normal">1137</span>
+<span class="normal">1138</span>
+<span class="normal">1139</span>
+<span class="normal">1140</span>
+<span class="normal">1141</span>
+<span class="normal">1142</span>
+<span class="normal">1143</span>
+<span class="normal">1144</span>
+<span class="normal">1145</span>
+<span class="normal">1146</span>
+<span class="normal">1147</span>
+<span class="normal">1148</span>
+<span class="normal">1149</span>
+<span class="normal">1150</span>
+<span class="normal">1151</span>
+<span class="normal">1152</span>
+<span class="normal">1153</span>
+<span class="normal">1154</span>
+<span class="normal">1155</span>
+<span class="normal">1156</span>
+<span class="normal">1157</span>
+<span class="normal">1158</span>
+<span class="normal">1159</span>
+<span class="normal">1160</span>
+<span class="normal">1161</span>
+<span class="normal">1162</span>
+<span class="normal">1163</span>
+<span class="normal">1164</span>
+<span class="normal">1165</span>
+<span class="normal">1166</span>
+<span class="normal">1167</span>
+<span class="normal">1168</span>
+<span class="normal">1169</span>
+<span class="normal">1170</span>
+<span class="normal">1171</span>
+<span class="normal">1172</span>
+<span class="normal">1173</span>
+<span class="normal">1174</span>
+<span class="normal">1175</span>
+<span class="normal">1176</span>
+<span class="normal">1177</span>
+<span class="normal">1178</span>
+<span class="normal">1179</span>
+<span class="normal">1180</span>
+<span class="normal">1181</span>
+<span class="normal">1182</span>
+<span class="normal">1183</span>
+<span class="normal">1184</span>
+<span class="normal">1185</span>
+<span class="normal">1186</span>
+<span class="normal">1187</span>
+<span class="normal">1188</span>
+<span class="normal">1189</span>
+<span class="normal">1190</span>
+<span class="normal">1191</span>
+<span class="normal">1192</span>
+<span class="normal">1193</span>
+<span class="normal">1194</span>
+<span class="normal">1195</span>
+<span class="normal">1196</span>
+<span class="normal">1197</span>
+<span class="normal">1198</span>
+<span class="normal">1199</span>
+<span class="normal">1200</span>
+<span class="normal">1201</span>
+<span class="normal">1202</span>
+<span class="normal">1203</span>
+<span class="normal">1204</span>
+<span class="normal">1205</span>
+<span class="normal">1206</span>
+<span class="normal">1207</span>
+<span class="normal">1208</span>
+<span class="normal">1209</span>
+<span class="normal">1210</span>
+<span class="normal">1211</span>
+<span class="normal">1212</span>
+<span class="normal">1213</span>
+<span class="normal">1214</span>
+<span class="normal">1215</span>
+<span class="normal">1216</span>
+<span class="normal">1217</span>
+<span class="normal">1218</span>
+<span class="normal">1219</span>
+<span class="normal">1220</span>
+<span class="normal">1221</span>
+<span class="normal">1222</span>
+<span class="normal">1223</span>
+<span class="normal">1224</span>
+<span class="normal">1225</span>
+<span class="normal">1226</span>
+<span class="normal">1227</span>
+<span class="normal">1228</span>
+<span class="normal">1229</span>
+<span class="normal">1230</span>
+<span class="normal">1231</span>
+<span class="normal">1232</span>
+<span class="normal">1233</span>
+<span class="normal">1234</span>
+<span class="normal">1235</span>
+<span class="normal">1236</span>
+<span class="normal">1237</span>
+<span class="normal">1238</span>
+<span class="normal">1239</span>
+<span class="normal">1240</span>
+<span class="normal">1241</span>
+<span class="normal">1242</span>
+<span class="normal">1243</span>
+<span class="normal">1244</span>
+<span class="normal">1245</span>
+<span class="normal">1246</span>
+<span class="normal">1247</span>
+<span class="normal">1248</span>
+<span class="normal">1249</span>
+<span class="normal">1250</span>
+<span class="normal">1251</span>
+<span class="normal">1252</span>
+<span class="normal">1253</span>
+<span class="normal">1254</span>
+<span class="normal">1255</span>
+<span class="normal">1256</span>
+<span class="normal">1257</span>
+<span class="normal">1258</span>
+<span class="normal">1259</span>
+<span class="normal">1260</span>
+<span class="normal">1261</span>
+<span class="normal">1262</span>
+<span class="normal">1263</span>
+<span class="normal">1264</span>
+<span class="normal">1265</span>
+<span class="normal">1266</span>
+<span class="normal">1267</span>
+<span class="normal">1268</span>
+<span class="normal">1269</span>
+<span class="normal">1270</span>
+<span class="normal">1271</span>
+<span class="normal">1272</span>
+<span class="normal">1273</span>
+<span class="normal">1274</span>
+<span class="normal">1275</span>
+<span class="normal">1276</span>
+<span class="normal">1277</span>
+<span class="normal">1278</span>
+<span class="normal">1279</span>
+<span class="normal">1280</span>
+<span class="normal">1281</span>
+<span class="normal">1282</span>
+<span class="normal">1283</span>
+<span class="normal">1284</span>
+<span class="normal">1285</span>
+<span class="normal">1286</span>
+<span class="normal">1287</span>
+<span class="normal">1288</span>
+<span class="normal">1289</span>
+<span class="normal">1290</span>
+<span class="normal">1291</span>
+<span class="normal">1292</span>
+<span class="normal">1293</span>
+<span class="normal">1294</span>
+<span class="normal">1295</span>
+<span class="normal">1296</span>
+<span class="normal">1297</span>
+<span class="normal">1298</span>
+<span class="normal">1299</span>
+<span class="normal">1300</span>
+<span class="normal">1301</span>
+<span class="normal">1302</span>
+<span class="normal">1303</span>
+<span class="normal">1304</span>
+<span class="normal">1305</span>
+<span class="normal">1306</span>
+<span class="normal">1307</span>
+<span class="normal">1308</span>
+<span class="normal">1309</span>
+<span class="normal">1310</span>
+<span class="normal">1311</span>
+<span class="normal">1312</span>
+<span class="normal">1313</span>
+<span class="normal">1314</span>
+<span class="normal">1315</span>
+<span class="normal">1316</span>
+<span class="normal">1317</span>
+<span class="normal">1318</span>
+<span class="normal">1319</span>
+<span class="normal">1320</span>
+<span class="normal">1321</span>
+<span class="normal">1322</span>
+<span class="normal">1323</span>
+<span class="normal">1324</span>
+<span class="normal">1325</span>
+<span class="normal">1326</span>
+<span class="normal">1327</span>
+<span class="normal">1328</span>
+<span class="normal">1329</span>
+<span class="normal">1330</span>
+<span class="normal">1331</span>
+<span class="normal">1332</span>
+<span class="normal">1333</span>
+<span class="normal">1334</span>
+<span class="normal">1335</span>
+<span class="normal">1336</span>
+<span class="normal">1337</span>
+<span class="normal">1338</span>
+<span class="normal">1339</span>
+<span class="normal">1340</span>
+<span class="normal">1341</span>
+<span class="normal">1342</span>
+<span class="normal">1343</span>
+<span class="normal">1344</span>
+<span class="normal">1345</span>
+<span class="normal">1346</span>
+<span class="normal">1347</span>
+<span class="normal">1348</span>
+<span class="normal">1349</span>
+<span class="normal">1350</span>
+<span class="normal">1351</span>
+<span class="normal">1352</span>
+<span class="normal">1353</span>
+<span class="normal">1354</span>
+<span class="normal">1355</span>
+<span class="normal">1356</span>
+<span class="normal">1357</span>
+<span class="normal">1358</span>
+<span class="normal">1359</span>
+<span class="normal">1360</span>
+<span class="normal">1361</span>
+<span class="normal">1362</span>
+<span class="normal">1363</span>
+<span class="normal">1364</span>
+<span class="normal">1365</span>
+<span class="normal">1366</span>
+<span class="normal">1367</span>
+<span class="normal">1368</span>
+<span class="normal">1369</span>
+<span class="normal">1370</span>
+<span class="normal">1371</span>
+<span class="normal">1372</span>
+<span class="normal">1373</span>
+<span class="normal">1374</span>
+<span class="normal">1375</span>
+<span class="normal">1376</span>
+<span class="normal">1377</span>
+<span class="normal">1378</span>
+<span class="normal">1379</span>
+<span class="normal">1380</span>
+<span class="normal">1381</span>
+<span class="normal">1382</span>
+<span class="normal">1383</span>
+<span class="normal">1384</span>
+<span class="normal">1385</span>
+<span class="normal">1386</span>
+<span class="normal">1387</span>
+<span class="normal">1388</span>
+<span class="normal">1389</span>
+<span class="normal">1390</span>
+<span class="normal">1391</span>
+<span class="normal">1392</span>
+<span class="normal">1393</span>
+<span class="normal">1394</span>
+<span class="normal">1395</span>
+<span class="normal">1396</span>
+<span class="normal">1397</span>
+<span class="normal">1398</span>
+<span class="normal">1399</span>
+<span class="normal">1400</span>
+<span class="normal">1401</span>
+<span class="normal">1402</span>
+<span class="normal">1403</span>
+<span class="normal">1404</span>
+<span class="normal">1405</span>
+<span class="normal">1406</span>
+<span class="normal">1407</span>
+<span class="normal">1408</span>
+<span class="normal">1409</span>
+<span class="normal">1410</span>
+<span class="normal">1411</span>
+<span class="normal">1412</span>
+<span class="normal">1413</span>
+<span class="normal">1414</span>
+<span class="normal">1415</span>
+<span class="normal">1416</span>
+<span class="normal">1417</span>
+<span class="normal">1418</span>
+<span class="normal">1419</span>
+<span class="normal">1420</span>
+<span class="normal">1421</span>
+<span class="normal">1422</span>
+<span class="normal">1423</span>
+<span class="normal">1424</span>
+<span class="normal">1425</span>
+<span class="normal">1426</span>
+<span class="normal">1427</span>
+<span class="normal">1428</span>
+<span class="normal">1429</span>
+<span class="normal">1430</span>
+<span class="normal">1431</span>
+<span class="normal">1432</span>
+<span class="normal">1433</span>
+<span class="normal">1434</span>
+<span class="normal">1435</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* HSV color selector for GTK+</span>
+<a id="line-2" name="line-2"></a><span class="cm"> *</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 1999 The Free Software Foundation</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * Copyright (C) 2019-2021 MATE Developers</span>
+<a id="line-5" name="line-5"></a><span class="cm"> *</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * Authors: Simon Budig &lt;[email protected]&gt; (original code)</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * Federico Mena-Quintero &lt;[email protected]&gt; (cleanup for GTK+)</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * Jonathan Blandford &lt;[email protected]&gt; (cleanup for GTK+)</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * You should have received a copy of the GNU Lesser General Public</span>
+<a id="line-21" name="line-21"></a><span class="cm"> * License along with this library. If not, see &lt;http://www.gnu.org/licenses/&gt;.</span>
+<a id="line-22" name="line-22"></a><span class="cm"> */</span>
+<a id="line-23" name="line-23"></a>
+<a id="line-24" name="line-24"></a><span class="cm">/*</span>
+<a id="line-25" name="line-25"></a><span class="cm"> * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS</span>
+<a id="line-26" name="line-26"></a><span class="cm"> * file for a list of people on the GTK+ Team. See the ChangeLog</span>
+<a id="line-27" name="line-27"></a><span class="cm"> * files for a list of changes. These files are distributed with</span>
+<a id="line-28" name="line-28"></a><span class="cm"> * GTK+ at ftp://ftp.gtk.org/pub/gtk/.</span>
+<a id="line-29" name="line-29"></a><span class="cm"> *</span>
+<a id="line-30" name="line-30"></a><span class="cm"> * Modified to work internally in mate-desktop by Pablo Barciela 2019</span>
+<a id="line-31" name="line-31"></a><span class="cm"> */</span>
+<a id="line-32" name="line-32"></a>
+<a id="line-33" name="line-33"></a><span class="cp">#ifdef HAVE_CONFIG_H</span>
+<a id="line-34" name="line-34"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-35" name="line-35"></a><span class="cp">#endif</span>
+<a id="line-36" name="line-36"></a>
+<a id="line-37" name="line-37"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;mate-hsv.h&quot;</span>
+<a id="line-38" name="line-38"></a>
+<a id="line-39" name="line-39"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;math.h&gt;</span><span class="error2">&lt;--- Include file: <math.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-40" name="line-40"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-41" name="line-41"></a>
+<a id="line-42" name="line-42"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-43" name="line-43"></a>
+<a id="line-44" name="line-44"></a><span class="cp">#define I_(string) g_intern_static_string (string)</span>
+<a id="line-45" name="line-45"></a>
+<a id="line-46" name="line-46"></a><span class="cm">/**</span>
+<a id="line-47" name="line-47"></a><span class="cm"> * SECTION:mate-hsv</span>
+<a id="line-48" name="line-48"></a><span class="cm"> * @Short_description: A “color wheel” widget</span>
+<a id="line-49" name="line-49"></a><span class="cm"> * @Title: MateHSV</span>
+<a id="line-50" name="line-50"></a><span class="cm"> *</span>
+<a id="line-51" name="line-51"></a><span class="cm"> * #MateHSV is the “color wheel” part of a complete color selector widget.</span>
+<a id="line-52" name="line-52"></a><span class="cm"> * It allows to select a color by determining its HSV components in an</span>
+<a id="line-53" name="line-53"></a><span class="cm"> * intuitive way. Moving the selection around the outer ring changes the hue,</span>
+<a id="line-54" name="line-54"></a><span class="cm"> * and moving the selection point inside the inner triangle changes value and</span>
+<a id="line-55" name="line-55"></a><span class="cm"> * saturation.</span>
+<a id="line-56" name="line-56"></a><span class="cm"> */</span>
+<a id="line-57" name="line-57"></a>
+<a id="line-58" name="line-58"></a><span class="cm">/* Default width/height */</span>
+<a id="line-59" name="line-59"></a><span class="cp">#define DEFAULT_SIZE 100</span>
+<a id="line-60" name="line-60"></a>
+<a id="line-61" name="line-61"></a><span class="cm">/* Default ring width */</span>
+<a id="line-62" name="line-62"></a><span class="cp">#define DEFAULT_RING_WIDTH 10</span>
+<a id="line-63" name="line-63"></a>
+<a id="line-64" name="line-64"></a><span class="cm">/* Dragging modes */</span>
+<a id="line-65" name="line-65"></a><span class="k">typedef</span><span class="w"> </span><span class="k">enum</span><span class="w"> </span><span class="p">{</span>
+<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">DRAG_NONE</span><span class="p">,</span>
+<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">DRAG_H</span><span class="p">,</span>
+<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">DRAG_SV</span>
+<a id="line-69" name="line-69"></a><span class="p">}</span><span class="w"> </span><span class="n">DragMode</span><span class="p">;</span>
+<a id="line-70" name="line-70"></a>
+<a id="line-71" name="line-71"></a><span class="cm">/* Private part of the MateHSV structure */</span>
+<a id="line-72" name="line-72"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_MateHSVPrivate</span>
+<a id="line-73" name="line-73"></a><span class="p">{</span>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="cm">/* Color value */</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">h</span><span class="p">;</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">s</span><span class="p">;</span>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">v</span><span class="p">;</span>
+<a id="line-78" name="line-78"></a>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="cm">/* Size and ring width */</span>
+<a id="line-80" name="line-80"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">size</span><span class="p">;</span>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">ring_width</span><span class="p">;</span>
+<a id="line-82" name="line-82"></a>
+<a id="line-83" name="line-83"></a><span class="w"> </span><span class="cm">/* Window for capturing events */</span>
+<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">GdkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span>
+<a id="line-85" name="line-85"></a>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="cm">/* Dragging mode */</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">DragMode</span><span class="w"> </span><span class="n">mode</span><span class="p">;</span>
+<a id="line-88" name="line-88"></a>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">focus_on_ring</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-90" name="line-90"></a><span class="p">};</span>
+<a id="line-91" name="line-91"></a>
+<a id="line-92" name="line-92"></a><span class="cm">/* Signal IDs */</span>
+<a id="line-93" name="line-93"></a>
+<a id="line-94" name="line-94"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span>
+<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">CHANGED</span><span class="p">,</span>
+<a id="line-96" name="line-96"></a><span class="w"> </span><span class="n">MOVE</span><span class="p">,</span>
+<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">LAST_SIGNAL</span>
+<a id="line-98" name="line-98"></a><span class="p">};</span>
+<a id="line-99" name="line-99"></a>
+<a id="line-100" name="line-100"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">mate_hsv_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-101" name="line-101"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">mate_hsv_realize</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-102" name="line-102"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">mate_hsv_unrealize</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-103" name="line-103"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">mate_hsv_get_preferred_width</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">minimum</span><span class="p">,</span>
+<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">natural</span><span class="p">);</span>
+<a id="line-106" name="line-106"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">mate_hsv_get_preferred_height</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">minimum</span><span class="p">,</span>
+<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">natural</span><span class="p">);</span>
+<a id="line-109" name="line-109"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">mate_hsv_size_allocate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="o">*</span><span class="n">allocation</span><span class="p">);</span>
+<a id="line-111" name="line-111"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_hsv_button_press</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">GdkEventButton</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">);</span>
+<a id="line-113" name="line-113"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_hsv_button_release</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">GdkEventButton</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">);</span>
+<a id="line-115" name="line-115"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_hsv_motion</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">GdkEventMotion</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">);</span>
+<a id="line-117" name="line-117"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_hsv_draw</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-119" name="line-119"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_hsv_grab_broken</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">GdkEventGrabBroken</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">);</span>
+<a id="line-121" name="line-121"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_hsv_focus</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-122" name="line-122"></a><span class="w"> </span><span class="n">GtkDirectionType</span><span class="w"> </span><span class="n">direction</span><span class="p">);</span>
+<a id="line-123" name="line-123"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">mate_hsv_move</span><span class="w"> </span><span class="p">(</span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="p">,</span>
+<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">GtkDirectionType</span><span class="w"> </span><span class="n">dir</span><span class="p">);</span>
+<a id="line-125" name="line-125"></a>
+<a id="line-126" name="line-126"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">hsv_signals</span><span class="p">[</span><span class="n">LAST_SIGNAL</span><span class="p">];</span>
+<a id="line-127" name="line-127"></a>
+<a id="line-128" name="line-128"></a><span class="hll"><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">MateHSV</span><span class="p">,</span><span class="w"> </span><span class="n">mate_hsv</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_WIDGET</span><span class="p">)</span><span class="error2">&lt;--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</span>
+</span><a id="line-129" name="line-129"></a>
+<a id="line-130" name="line-130"></a><span class="cm">/* Class initialization function for the HSV color selector */</span>
+<a id="line-131" name="line-131"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-132" name="line-132"></a><span class="n">mate_hsv_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">MateHSVClass</span><span class="w"> </span><span class="o">*</span><span class="n">class</span><span class="p">)</span>
+<a id="line-133" name="line-133"></a><span class="p">{</span>
+<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">gobject_class</span><span class="p">;</span>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">GtkWidgetClass</span><span class="w"> </span><span class="o">*</span><span class="n">widget_class</span><span class="p">;</span>
+<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">MateHSVClass</span><span class="w"> </span><span class="o">*</span><span class="n">hsv_class</span><span class="p">;</span>
+<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">GtkBindingSet</span><span class="w"> </span><span class="o">*</span><span class="n">binding_set</span><span class="p">;</span>
+<a id="line-138" name="line-138"></a>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">gobject_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">class</span><span class="p">;</span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">widget_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidgetClass</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">class</span><span class="p">;</span>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">hsv_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_HSV_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">class</span><span class="p">);</span>
+<a id="line-142" name="line-142"></a>
+<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-&gt;</span><span class="n">destroy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_hsv_destroy</span><span class="p">;</span>
+<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-&gt;</span><span class="n">realize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_hsv_realize</span><span class="p">;</span>
+<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-&gt;</span><span class="n">unrealize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_hsv_unrealize</span><span class="p">;</span>
+<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-&gt;</span><span class="n">get_preferred_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_hsv_get_preferred_width</span><span class="p">;</span>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-&gt;</span><span class="n">get_preferred_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_hsv_get_preferred_height</span><span class="p">;</span>
+<a id="line-148" name="line-148"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-&gt;</span><span class="n">size_allocate</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_hsv_size_allocate</span><span class="p">;</span>
+<a id="line-149" name="line-149"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-&gt;</span><span class="n">button_press_event</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_hsv_button_press</span><span class="p">;</span>
+<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-&gt;</span><span class="n">button_release_event</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_hsv_button_release</span><span class="p">;</span>
+<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-&gt;</span><span class="n">motion_notify_event</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_hsv_motion</span><span class="p">;</span>
+<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-&gt;</span><span class="n">draw</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_hsv_draw</span><span class="p">;</span>
+<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-&gt;</span><span class="n">focus</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_hsv_focus</span><span class="p">;</span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-&gt;</span><span class="n">grab_broken_event</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_hsv_grab_broken</span><span class="p">;</span>
+<a id="line-155" name="line-155"></a>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">gtk_widget_class_set_accessible_role</span><span class="w"> </span><span class="p">(</span><span class="n">widget_class</span><span class="p">,</span><span class="w"> </span><span class="n">ATK_ROLE_COLOR_CHOOSER</span><span class="p">);</span>
+<a id="line-157" name="line-157"></a>
+<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">hsv_class</span><span class="o">-&gt;</span><span class="n">move</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_hsv_move</span><span class="p">;</span>
+<a id="line-159" name="line-159"></a>
+<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">hsv_signals</span><span class="p">[</span><span class="n">CHANGED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="n">I_</span><span class="p">(</span><span class="s">&quot;changed&quot;</span><span class="p">),</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">),</span>
+<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_FIRST</span><span class="p">,</span>
+<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">G_STRUCT_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">MateHSVClass</span><span class="p">,</span><span class="w"> </span><span class="n">changed</span><span class="p">),</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-168" name="line-168"></a>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">hsv_signals</span><span class="p">[</span><span class="n">MOVE</span><span class="p">]</span><span class="w"> </span><span class="o">=</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="n">I_</span><span class="p">(</span><span class="s">&quot;move&quot;</span><span class="p">),</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">),</span>
+<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_SIGNAL_ACTION</span><span class="p">,</span>
+<a id="line-173" name="line-173"></a><span class="w"> </span><span class="n">G_STRUCT_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">MateHSVClass</span><span class="p">,</span><span class="w"> </span><span class="n">move</span><span class="p">),</span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">GTK_TYPE_DIRECTION_TYPE</span><span class="p">);</span>
+<a id="line-178" name="line-178"></a>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">binding_set</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_binding_set_by_class</span><span class="w"> </span><span class="p">(</span><span class="n">class</span><span class="p">);</span>
+<a id="line-180" name="line-180"></a>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">gtk_binding_entry_add_signal</span><span class="w"> </span><span class="p">(</span><span class="n">binding_set</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_KEY_Up</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
+<a id="line-182" name="line-182"></a><span class="w"> </span><span class="s">&quot;move&quot;</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span>
+<a id="line-183" name="line-183"></a><span class="w"> </span><span class="n">G_TYPE_ENUM</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_DIR_UP</span><span class="p">);</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="n">gtk_binding_entry_add_signal</span><span class="w"> </span><span class="p">(</span><span class="n">binding_set</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_KEY_KP_Up</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
+<a id="line-185" name="line-185"></a><span class="w"> </span><span class="s">&quot;move&quot;</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">G_TYPE_ENUM</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_DIR_UP</span><span class="p">);</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">gtk_binding_entry_add_signal</span><span class="w"> </span><span class="p">(</span><span class="n">binding_set</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_KEY_Down</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="s">&quot;move&quot;</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span>
+<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">G_TYPE_ENUM</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_DIR_DOWN</span><span class="p">);</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">gtk_binding_entry_add_signal</span><span class="w"> </span><span class="p">(</span><span class="n">binding_set</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_KEY_KP_Down</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="s">&quot;move&quot;</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span>
+<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">G_TYPE_ENUM</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_DIR_DOWN</span><span class="p">);</span>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">gtk_binding_entry_add_signal</span><span class="w"> </span><span class="p">(</span><span class="n">binding_set</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_KEY_Right</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="s">&quot;move&quot;</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span>
+<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">G_TYPE_ENUM</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_DIR_RIGHT</span><span class="p">);</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">gtk_binding_entry_add_signal</span><span class="w"> </span><span class="p">(</span><span class="n">binding_set</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_KEY_KP_Right</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="s">&quot;move&quot;</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span>
+<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">G_TYPE_ENUM</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_DIR_RIGHT</span><span class="p">);</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="n">gtk_binding_entry_add_signal</span><span class="w"> </span><span class="p">(</span><span class="n">binding_set</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_KEY_Left</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="s">&quot;move&quot;</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span>
+<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">G_TYPE_ENUM</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_DIR_LEFT</span><span class="p">);</span>
+<a id="line-202" name="line-202"></a><span class="w"> </span><span class="n">gtk_binding_entry_add_signal</span><span class="w"> </span><span class="p">(</span><span class="n">binding_set</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_KEY_KP_Left</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
+<a id="line-203" name="line-203"></a><span class="w"> </span><span class="s">&quot;move&quot;</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span>
+<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">G_TYPE_ENUM</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_DIR_LEFT</span><span class="p">);</span>
+<a id="line-205" name="line-205"></a><span class="p">}</span>
+<a id="line-206" name="line-206"></a>
+<a id="line-207" name="line-207"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-208" name="line-208"></a><span class="n">mate_hsv_init</span><span class="w"> </span><span class="p">(</span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="p">)</span>
+<a id="line-209" name="line-209"></a><span class="p">{</span>
+<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">MateHSVPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-211" name="line-211"></a>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_hsv_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">);</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">hsv</span><span class="o">-&gt;</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="p">;</span>
+<a id="line-214" name="line-214"></a>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">gtk_widget_set_has_window</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">gtk_widget_set_can_focus</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-217" name="line-217"></a>
+<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.0</span><span class="p">;</span>
+<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.0</span><span class="p">;</span>
+<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">v</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.0</span><span class="p">;</span>
+<a id="line-221" name="line-221"></a>
+<a id="line-222" name="line-222"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">DEFAULT_SIZE</span><span class="p">;</span>
+<a id="line-223" name="line-223"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">ring_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">DEFAULT_RING_WIDTH</span><span class="p">;</span>
+<a id="line-224" name="line-224"></a><span class="p">}</span>
+<a id="line-225" name="line-225"></a>
+<a id="line-226" name="line-226"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-227" name="line-227"></a><span class="n">mate_hsv_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">)</span>
+<a id="line-228" name="line-228"></a><span class="p">{</span>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">GTK_WIDGET_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">mate_hsv_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">destroy</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-230" name="line-230"></a><span class="p">}</span>
+<a id="line-231" name="line-231"></a>
+<a id="line-232" name="line-232"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-233" name="line-233"></a><span class="n">mate_hsv_realize</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">)</span>
+<a id="line-234" name="line-234"></a><span class="p">{</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_HSV</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">MateHSVPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hsv</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="n">allocation</span><span class="p">;</span>
+<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">GdkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">parent_window</span><span class="p">;</span>
+<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">GdkWindowAttr</span><span class="w"> </span><span class="n">attr</span><span class="p">;</span>
+<a id="line-240" name="line-240"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">attr_mask</span><span class="p">;</span>
+<a id="line-241" name="line-241"></a>
+<a id="line-242" name="line-242"></a><span class="w"> </span><span class="n">gtk_widget_set_realized</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-243" name="line-243"></a>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">gtk_widget_get_allocation</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">allocation</span><span class="p">);</span>
+<a id="line-245" name="line-245"></a>
+<a id="line-246" name="line-246"></a><span class="w"> </span><span class="n">attr</span><span class="p">.</span><span class="n">window_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_WINDOW_CHILD</span><span class="p">;</span>
+<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">attr</span><span class="p">.</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">x</span><span class="p">;</span>
+<a id="line-248" name="line-248"></a><span class="w"> </span><span class="n">attr</span><span class="p">.</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">y</span><span class="p">;</span>
+<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">attr</span><span class="p">.</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="p">;</span>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">attr</span><span class="p">.</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">height</span><span class="p">;</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">attr</span><span class="p">.</span><span class="n">wclass</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_INPUT_ONLY</span><span class="p">;</span>
+<a id="line-252" name="line-252"></a><span class="w"> </span><span class="n">attr</span><span class="p">.</span><span class="n">event_mask</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_events</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-253" name="line-253"></a><span class="w"> </span><span class="n">attr</span><span class="p">.</span><span class="n">event_mask</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_KEY_PRESS_MASK</span>
+<a id="line-254" name="line-254"></a><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_BUTTON_PRESS_MASK</span>
+<a id="line-255" name="line-255"></a><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_BUTTON_RELEASE_MASK</span>
+<a id="line-256" name="line-256"></a><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_POINTER_MOTION_MASK</span>
+<a id="line-257" name="line-257"></a><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_ENTER_NOTIFY_MASK</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_LEAVE_NOTIFY_MASK</span><span class="p">);</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">attr_mask</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_WA_X</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_WA_Y</span><span class="p">;</span>
+<a id="line-260" name="line-260"></a>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">parent_window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_parent_window</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">gtk_widget_set_window</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">parent_window</span><span class="p">);</span>
+<a id="line-263" name="line-263"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">parent_window</span><span class="p">);</span>
+<a id="line-264" name="line-264"></a>
+<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_window_new</span><span class="w"> </span><span class="p">(</span><span class="n">parent_window</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">attr</span><span class="p">,</span><span class="w"> </span><span class="n">attr_mask</span><span class="p">);</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">gdk_window_set_user_data</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">hsv</span><span class="p">);</span>
+<a id="line-267" name="line-267"></a><span class="w"> </span><span class="n">gdk_window_show</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">window</span><span class="p">);</span>
+<a id="line-268" name="line-268"></a><span class="p">}</span>
+<a id="line-269" name="line-269"></a>
+<a id="line-270" name="line-270"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-271" name="line-271"></a><span class="n">mate_hsv_unrealize</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">)</span>
+<a id="line-272" name="line-272"></a><span class="p">{</span>
+<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_HSV</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">MateHSVPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hsv</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-275" name="line-275"></a>
+<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">gdk_window_set_user_data</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-277" name="line-277"></a><span class="w"> </span><span class="n">gdk_window_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">window</span><span class="p">);</span>
+<a id="line-278" name="line-278"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-279" name="line-279"></a>
+<a id="line-280" name="line-280"></a><span class="w"> </span><span class="n">GTK_WIDGET_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">mate_hsv_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">unrealize</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-281" name="line-281"></a><span class="p">}</span>
+<a id="line-282" name="line-282"></a>
+<a id="line-283" name="line-283"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-284" name="line-284"></a><span class="n">mate_hsv_get_preferred_width</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">minimum</span><span class="p">,</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">natural</span><span class="p">)</span>
+<a id="line-287" name="line-287"></a><span class="p">{</span>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_HSV</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="n">MateHSVPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hsv</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">focus_width</span><span class="p">;</span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">focus_pad</span><span class="p">;</span>
+<a id="line-292" name="line-292"></a>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">gtk_widget_style_get</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-294" name="line-294"></a><span class="w"> </span><span class="s">&quot;focus-line-width&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">focus_width</span><span class="p">,</span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="s">&quot;focus-padding&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">focus_pad</span><span class="p">,</span>
+<a id="line-296" name="line-296"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-297" name="line-297"></a>
+<a id="line-298" name="line-298"></a><span class="w"> </span><span class="o">*</span><span class="n">minimum</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">size</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">focus_width</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">focus_pad</span><span class="p">);</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="o">*</span><span class="n">natural</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">size</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">focus_width</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">focus_pad</span><span class="p">);</span>
+<a id="line-300" name="line-300"></a><span class="p">}</span>
+<a id="line-301" name="line-301"></a>
+<a id="line-302" name="line-302"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-303" name="line-303"></a><span class="n">mate_hsv_get_preferred_height</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-304" name="line-304"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">minimum</span><span class="p">,</span>
+<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">natural</span><span class="p">)</span>
+<a id="line-306" name="line-306"></a><span class="p">{</span>
+<a id="line-307" name="line-307"></a><span class="w"> </span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_HSV</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-308" name="line-308"></a><span class="w"> </span><span class="n">MateHSVPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hsv</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-309" name="line-309"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">focus_width</span><span class="p">;</span>
+<a id="line-310" name="line-310"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">focus_pad</span><span class="p">;</span>
+<a id="line-311" name="line-311"></a>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">gtk_widget_style_get</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-313" name="line-313"></a><span class="w"> </span><span class="s">&quot;focus-line-width&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">focus_width</span><span class="p">,</span>
+<a id="line-314" name="line-314"></a><span class="w"> </span><span class="s">&quot;focus-padding&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">focus_pad</span><span class="p">,</span>
+<a id="line-315" name="line-315"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-316" name="line-316"></a>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="o">*</span><span class="n">minimum</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">size</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">focus_width</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">focus_pad</span><span class="p">);</span>
+<a id="line-318" name="line-318"></a><span class="w"> </span><span class="o">*</span><span class="n">natural</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">size</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">focus_width</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">focus_pad</span><span class="p">);</span>
+<a id="line-319" name="line-319"></a><span class="p">}</span>
+<a id="line-320" name="line-320"></a>
+<a id="line-321" name="line-321"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-322" name="line-322"></a><span class="n">mate_hsv_size_allocate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="o">*</span><span class="n">allocation</span><span class="p">)</span>
+<a id="line-324" name="line-324"></a><span class="p">{</span>
+<a id="line-325" name="line-325"></a><span class="w"> </span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_HSV</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-326" name="line-326"></a><span class="w"> </span><span class="n">MateHSVPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hsv</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-327" name="line-327"></a>
+<a id="line-328" name="line-328"></a><span class="w"> </span><span class="n">gtk_widget_set_allocation</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">allocation</span><span class="p">);</span>
+<a id="line-329" name="line-329"></a>
+<a id="line-330" name="line-330"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_realized</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">))</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">gdk_window_move_resize</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">window</span><span class="p">,</span>
+<a id="line-332" name="line-332"></a><span class="w"> </span><span class="n">allocation</span><span class="o">-&gt;</span><span class="n">x</span><span class="p">,</span>
+<a id="line-333" name="line-333"></a><span class="w"> </span><span class="n">allocation</span><span class="o">-&gt;</span><span class="n">y</span><span class="p">,</span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="n">allocation</span><span class="o">-&gt;</span><span class="n">width</span><span class="p">,</span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="n">allocation</span><span class="o">-&gt;</span><span class="n">height</span><span class="p">);</span>
+<a id="line-336" name="line-336"></a><span class="p">}</span>
+<a id="line-337" name="line-337"></a>
+<a id="line-338" name="line-338"></a><span class="cm">/* Utility functions */</span>
+<a id="line-339" name="line-339"></a>
+<a id="line-340" name="line-340"></a><span class="cp">#define INTENSITY(r, g, b) ((r) * 0.30 + (g) * 0.59 + (b) * 0.11)</span>
+<a id="line-341" name="line-341"></a>
+<a id="line-342" name="line-342"></a><span class="cm">/* Converts from HSV to RGB */</span>
+<a id="line-343" name="line-343"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-344" name="line-344"></a><span class="n">hsv_to_rgb</span><span class="w"> </span><span class="p">(</span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">h</span><span class="p">,</span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">,</span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="p">)</span>
+<a id="line-347" name="line-347"></a><span class="p">{</span>
+<a id="line-348" name="line-348"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">hue</span><span class="p">,</span><span class="w"> </span><span class="n">saturation</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">;</span>
+<a id="line-349" name="line-349"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">f</span><span class="p">,</span><span class="w"> </span><span class="n">p</span><span class="p">,</span><span class="w"> </span><span class="n">q</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">;</span>
+<a id="line-350" name="line-350"></a>
+<a id="line-351" name="line-351"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mf">0.0</span><span class="p">)</span>
+<a id="line-352" name="line-352"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-353" name="line-353"></a><span class="w"> </span><span class="o">*</span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="p">;</span>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="p">;</span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="p">;</span><span class="w"> </span><span class="cm">/* heh */</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">hue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">h</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mf">6.0</span><span class="p">;</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="n">saturation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="p">;</span>
+<a id="line-362" name="line-362"></a>
+<a id="line-363" name="line-363"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">hue</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mf">6.0</span><span class="p">)</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">hue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.0</span><span class="p">;</span>
+<a id="line-365" name="line-365"></a>
+<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">f</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hue</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="p">)</span><span class="w"> </span><span class="n">hue</span><span class="p">;</span>
+<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="mf">1.0</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">saturation</span><span class="p">);</span>
+<a id="line-368" name="line-368"></a><span class="w"> </span><span class="n">q</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="mf">1.0</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">saturation</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">f</span><span class="p">);</span>
+<a id="line-369" name="line-369"></a><span class="w"> </span><span class="n">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="mf">1.0</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">saturation</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="mf">1.0</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">f</span><span class="p">));</span>
+<a id="line-370" name="line-370"></a>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">((</span><span class="kt">int</span><span class="p">)</span><span class="w"> </span><span class="n">hue</span><span class="p">)</span>
+<a id="line-372" name="line-372"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-373" name="line-373"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mi">0</span><span class="p">:</span>
+<a id="line-374" name="line-374"></a><span class="w"> </span><span class="o">*</span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">value</span><span class="p">;</span>
+<a id="line-375" name="line-375"></a><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">t</span><span class="p">;</span>
+<a id="line-376" name="line-376"></a><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p</span><span class="p">;</span>
+<a id="line-377" name="line-377"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-378" name="line-378"></a>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mi">1</span><span class="p">:</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="o">*</span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">q</span><span class="p">;</span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">value</span><span class="p">;</span>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p</span><span class="p">;</span>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-384" name="line-384"></a>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mi">2</span><span class="p">:</span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="o">*</span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p</span><span class="p">;</span>
+<a id="line-387" name="line-387"></a><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">value</span><span class="p">;</span>
+<a id="line-388" name="line-388"></a><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">t</span><span class="p">;</span>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-390" name="line-390"></a>
+<a id="line-391" name="line-391"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mi">3</span><span class="p">:</span>
+<a id="line-392" name="line-392"></a><span class="w"> </span><span class="o">*</span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p</span><span class="p">;</span>
+<a id="line-393" name="line-393"></a><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">q</span><span class="p">;</span>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">value</span><span class="p">;</span>
+<a id="line-395" name="line-395"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-396" name="line-396"></a>
+<a id="line-397" name="line-397"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mi">4</span><span class="p">:</span>
+<a id="line-398" name="line-398"></a><span class="w"> </span><span class="o">*</span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">t</span><span class="p">;</span>
+<a id="line-399" name="line-399"></a><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p</span><span class="p">;</span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">value</span><span class="p">;</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-402" name="line-402"></a>
+<a id="line-403" name="line-403"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mi">5</span><span class="p">:</span>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="o">*</span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">value</span><span class="p">;</span>
+<a id="line-405" name="line-405"></a><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p</span><span class="p">;</span>
+<a id="line-406" name="line-406"></a><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">q</span><span class="p">;</span>
+<a id="line-407" name="line-407"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-408" name="line-408"></a>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">g_assert_not_reached</span><span class="w"> </span><span class="p">();</span>
+<a id="line-411" name="line-411"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-413" name="line-413"></a><span class="p">}</span>
+<a id="line-414" name="line-414"></a>
+<a id="line-415" name="line-415"></a><span class="cm">/* Computes the vertices of the saturation/value triangle */</span>
+<a id="line-416" name="line-416"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-417" name="line-417"></a><span class="n">compute_triangle</span><span class="w"> </span><span class="p">(</span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="p">,</span>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">hx</span><span class="p">,</span>
+<a id="line-419" name="line-419"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">hy</span><span class="p">,</span>
+<a id="line-420" name="line-420"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">sx</span><span class="p">,</span>
+<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">sy</span><span class="p">,</span>
+<a id="line-422" name="line-422"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">vx</span><span class="p">,</span>
+<a id="line-423" name="line-423"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">vy</span><span class="p">)</span>
+<a id="line-424" name="line-424"></a><span class="p">{</span>
+<a id="line-425" name="line-425"></a><span class="w"> </span><span class="n">MateHSVPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hsv</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">);</span>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">center_x</span><span class="p">;</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">center_y</span><span class="p">;</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">inner</span><span class="p">,</span><span class="w"> </span><span class="n">outer</span><span class="p">;</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">angle</span><span class="p">;</span>
+<a id="line-431" name="line-431"></a>
+<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">center_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_allocated_width</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">2.0</span><span class="p">;</span>
+<a id="line-433" name="line-433"></a><span class="w"> </span><span class="n">center_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_allocated_height</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">2.0</span><span class="p">;</span>
+<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">outer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">size</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">2.0</span><span class="p">;</span>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">inner</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">outer</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">ring_width</span><span class="p">;</span>
+<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">angle</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">h</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mf">2.0</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">G_PI</span><span class="p">;</span>
+<a id="line-437" name="line-437"></a>
+<a id="line-438" name="line-438"></a><span class="w"> </span><span class="o">*</span><span class="n">hx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">floor</span><span class="w"> </span><span class="p">(</span><span class="n">center_x</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">cos</span><span class="w"> </span><span class="p">(</span><span class="n">angle</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">inner</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="o">*</span><span class="n">hy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">floor</span><span class="w"> </span><span class="p">(</span><span class="n">center_y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sin</span><span class="w"> </span><span class="p">(</span><span class="n">angle</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">inner</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span>
+<a id="line-440" name="line-440"></a><span class="w"> </span><span class="o">*</span><span class="n">sx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">floor</span><span class="w"> </span><span class="p">(</span><span class="n">center_x</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">cos</span><span class="w"> </span><span class="p">(</span><span class="n">angle</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">2.0</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">G_PI</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">3.0</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">inner</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span>
+<a id="line-441" name="line-441"></a><span class="w"> </span><span class="o">*</span><span class="n">sy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">floor</span><span class="w"> </span><span class="p">(</span><span class="n">center_y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sin</span><span class="w"> </span><span class="p">(</span><span class="n">angle</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">2.0</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">G_PI</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">3.0</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">inner</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span>
+<a id="line-442" name="line-442"></a><span class="w"> </span><span class="o">*</span><span class="n">vx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">floor</span><span class="w"> </span><span class="p">(</span><span class="n">center_x</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">cos</span><span class="w"> </span><span class="p">(</span><span class="n">angle</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">4.0</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">G_PI</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">3.0</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">inner</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span>
+<a id="line-443" name="line-443"></a><span class="w"> </span><span class="o">*</span><span class="n">vy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">floor</span><span class="w"> </span><span class="p">(</span><span class="n">center_y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sin</span><span class="w"> </span><span class="p">(</span><span class="n">angle</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">4.0</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">G_PI</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">3.0</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">inner</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span>
+<a id="line-444" name="line-444"></a><span class="p">}</span>
+<a id="line-445" name="line-445"></a>
+<a id="line-446" name="line-446"></a><span class="cm">/* Computes whether a point is inside the hue ring */</span>
+<a id="line-447" name="line-447"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-448" name="line-448"></a><span class="n">is_in_ring</span><span class="w"> </span><span class="p">(</span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="p">,</span>
+<a id="line-449" name="line-449"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">x</span><span class="p">,</span>
+<a id="line-450" name="line-450"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">y</span><span class="p">)</span>
+<a id="line-451" name="line-451"></a><span class="p">{</span>
+<a id="line-452" name="line-452"></a><span class="w"> </span><span class="n">MateHSVPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hsv</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-453" name="line-453"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">);</span>
+<a id="line-454" name="line-454"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">dx</span><span class="p">,</span><span class="w"> </span><span class="n">dy</span><span class="p">,</span><span class="w"> </span><span class="n">dist</span><span class="p">;</span>
+<a id="line-455" name="line-455"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">center_x</span><span class="p">;</span>
+<a id="line-456" name="line-456"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">center_y</span><span class="p">;</span>
+<a id="line-457" name="line-457"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">inner</span><span class="p">,</span><span class="w"> </span><span class="n">outer</span><span class="p">;</span>
+<a id="line-458" name="line-458"></a>
+<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">center_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_allocated_width</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">2.0</span><span class="p">;</span>
+<a id="line-460" name="line-460"></a><span class="w"> </span><span class="n">center_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_allocated_height</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">2.0</span><span class="p">;</span>
+<a id="line-461" name="line-461"></a><span class="w"> </span><span class="n">outer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">size</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">2.0</span><span class="p">;</span>
+<a id="line-462" name="line-462"></a><span class="w"> </span><span class="n">inner</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">outer</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">ring_width</span><span class="p">;</span>
+<a id="line-463" name="line-463"></a>
+<a id="line-464" name="line-464"></a><span class="w"> </span><span class="n">dx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">center_x</span><span class="p">;</span>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="n">dy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">center_y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">y</span><span class="p">;</span>
+<a id="line-466" name="line-466"></a><span class="w"> </span><span class="n">dist</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dx</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">dx</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">dy</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">dy</span><span class="p">;</span>
+<a id="line-467" name="line-467"></a>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">dist</span><span class="w"> </span><span class="o">&gt;=</span><span class="w"> </span><span class="n">inner</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">inner</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">dist</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="n">outer</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">outer</span><span class="p">);</span>
+<a id="line-469" name="line-469"></a><span class="p">}</span>
+<a id="line-470" name="line-470"></a>
+<a id="line-471" name="line-471"></a><span class="cm">/* Computes a saturation/value pair based on the mouse coordinates */</span>
+<a id="line-472" name="line-472"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-473" name="line-473"></a><span class="n">compute_sv</span><span class="w"> </span><span class="p">(</span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="p">,</span>
+<a id="line-474" name="line-474"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">x</span><span class="p">,</span>
+<a id="line-475" name="line-475"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">y</span><span class="p">,</span>
+<a id="line-476" name="line-476"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">,</span>
+<a id="line-477" name="line-477"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="p">)</span>
+<a id="line-478" name="line-478"></a><span class="p">{</span>
+<a id="line-479" name="line-479"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">);</span>
+<a id="line-480" name="line-480"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">ihx</span><span class="p">,</span><span class="w"> </span><span class="n">ihy</span><span class="p">,</span><span class="w"> </span><span class="n">isx</span><span class="p">,</span><span class="w"> </span><span class="n">isy</span><span class="p">,</span><span class="w"> </span><span class="n">ivx</span><span class="p">,</span><span class="w"> </span><span class="n">ivy</span><span class="p">;</span>
+<a id="line-481" name="line-481"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">hx</span><span class="p">,</span><span class="w"> </span><span class="n">hy</span><span class="p">,</span><span class="w"> </span><span class="n">sx</span><span class="p">,</span><span class="w"> </span><span class="n">sy</span><span class="p">,</span><span class="w"> </span><span class="n">vx</span><span class="p">,</span><span class="w"> </span><span class="n">vy</span><span class="p">;</span>
+<a id="line-482" name="line-482"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">center_x</span><span class="p">;</span>
+<a id="line-483" name="line-483"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">center_y</span><span class="p">;</span>
+<a id="line-484" name="line-484"></a>
+<a id="line-485" name="line-485"></a><span class="w"> </span><span class="n">compute_triangle</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">ihx</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">ihy</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">isx</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">isy</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">ivx</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">ivy</span><span class="p">);</span>
+<a id="line-486" name="line-486"></a><span class="w"> </span><span class="n">center_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_allocated_width</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">2.0</span><span class="p">;</span>
+<a id="line-487" name="line-487"></a><span class="w"> </span><span class="n">center_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_allocated_height</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">2.0</span><span class="p">;</span>
+<a id="line-488" name="line-488"></a><span class="w"> </span><span class="n">hx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ihx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">center_x</span><span class="p">;</span>
+<a id="line-489" name="line-489"></a><span class="w"> </span><span class="n">hy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">center_y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">ihy</span><span class="p">;</span>
+<a id="line-490" name="line-490"></a><span class="w"> </span><span class="n">sx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">isx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">center_x</span><span class="p">;</span>
+<a id="line-491" name="line-491"></a><span class="w"> </span><span class="n">sy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">center_y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">isy</span><span class="p">;</span>
+<a id="line-492" name="line-492"></a><span class="w"> </span><span class="n">vx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ivx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">center_x</span><span class="p">;</span>
+<a id="line-493" name="line-493"></a><span class="w"> </span><span class="n">vy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">center_y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">ivy</span><span class="p">;</span>
+<a id="line-494" name="line-494"></a><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="n">center_x</span><span class="p">;</span>
+<a id="line-495" name="line-495"></a><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">center_y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">y</span><span class="p">;</span>
+<a id="line-496" name="line-496"></a>
+<a id="line-497" name="line-497"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">vx</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sx</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">vy</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sy</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mf">0.0</span><span class="p">)</span>
+<a id="line-498" name="line-498"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-499" name="line-499"></a><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-500" name="line-500"></a><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(((</span><span class="n">x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sx</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">hx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sx</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sy</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">hy</span><span class="o">-</span><span class="n">sy</span><span class="p">))</span>
+<a id="line-501" name="line-501"></a><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">((</span><span class="n">hx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sx</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">hx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sx</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">hy</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sy</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">hy</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sy</span><span class="p">)));</span>
+<a id="line-502" name="line-502"></a>
+<a id="line-503" name="line-503"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">v</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mf">0.0</span><span class="p">)</span>
+<a id="line-504" name="line-504"></a><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.0</span><span class="p">;</span>
+<a id="line-505" name="line-505"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">v</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mf">1.0</span><span class="p">)</span>
+<a id="line-506" name="line-506"></a><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-507" name="line-507"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-508" name="line-508"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">hx</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sx</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">hy</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sy</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mf">0.0</span><span class="p">)</span>
+<a id="line-509" name="line-509"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-510" name="line-510"></a><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.0</span><span class="p">;</span>
+<a id="line-511" name="line-511"></a><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(((</span><span class="n">x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sx</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">vx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sx</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sy</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">vy</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sy</span><span class="p">))</span>
+<a id="line-512" name="line-512"></a><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">((</span><span class="n">vx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sx</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">vx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sx</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">vy</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sy</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">vy</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sy</span><span class="p">)));</span>
+<a id="line-513" name="line-513"></a>
+<a id="line-514" name="line-514"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">v</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mf">0.0</span><span class="p">)</span>
+<a id="line-515" name="line-515"></a><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.0</span><span class="p">;</span>
+<a id="line-516" name="line-516"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">v</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mf">1.0</span><span class="p">)</span>
+<a id="line-517" name="line-517"></a><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-518" name="line-518"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-519" name="line-519"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">sx</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">hx</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">sy</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">hy</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mf">0.0</span><span class="p">)</span>
+<a id="line-520" name="line-520"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-521" name="line-521"></a><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-522" name="line-522"></a><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(((</span><span class="n">x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">vx</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">hx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">vx</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">vy</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">hy</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">vy</span><span class="p">))</span><span class="w"> </span><span class="o">/</span>
+<a id="line-523" name="line-523"></a><span class="w"> </span><span class="p">((</span><span class="n">hx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">vx</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">hx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">vx</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">hy</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">vy</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">hy</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">vy</span><span class="p">)));</span>
+<a id="line-524" name="line-524"></a>
+<a id="line-525" name="line-525"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mf">0.0</span><span class="p">)</span>
+<a id="line-526" name="line-526"></a><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.0</span><span class="p">;</span>
+<a id="line-527" name="line-527"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mf">1.0</span><span class="p">)</span>
+<a id="line-528" name="line-528"></a><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-529" name="line-529"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-530" name="line-530"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-531" name="line-531"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-532" name="line-532"></a><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(((</span><span class="n">x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sx</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">hy</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">vy</span><span class="p">)</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="p">(</span><span class="n">y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sy</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">hx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">vx</span><span class="p">))</span>
+<a id="line-533" name="line-533"></a><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">((</span><span class="n">vx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sx</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">hy</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">vy</span><span class="p">)</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="p">(</span><span class="n">vy</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sy</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">hx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">vx</span><span class="p">)));</span>
+<a id="line-534" name="line-534"></a>
+<a id="line-535" name="line-535"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">v</span><span class="o">&lt;=</span><span class="w"> </span><span class="mf">0.0</span><span class="p">)</span>
+<a id="line-536" name="line-536"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-537" name="line-537"></a><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.0</span><span class="p">;</span>
+<a id="line-538" name="line-538"></a><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.0</span><span class="p">;</span>
+<a id="line-539" name="line-539"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-540" name="line-540"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-541" name="line-541"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-542" name="line-542"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">v</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mf">1.0</span><span class="p">)</span>
+<a id="line-543" name="line-543"></a><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-544" name="line-544"></a>
+<a id="line-545" name="line-545"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">fabs</span><span class="w"> </span><span class="p">(</span><span class="n">hy</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">vy</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">fabs</span><span class="w"> </span><span class="p">(</span><span class="n">hx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">vx</span><span class="p">))</span>
+<a id="line-546" name="line-546"></a><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">vx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sx</span><span class="p">))</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">v</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">hx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">vx</span><span class="p">));</span>
+<a id="line-547" name="line-547"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-548" name="line-548"></a><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sy</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">vy</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sy</span><span class="p">))</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">v</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">hy</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">vy</span><span class="p">));</span>
+<a id="line-549" name="line-549"></a>
+<a id="line-550" name="line-550"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mf">0.0</span><span class="p">)</span>
+<a id="line-551" name="line-551"></a><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.0</span><span class="p">;</span>
+<a id="line-552" name="line-552"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mf">1.0</span><span class="p">)</span>
+<a id="line-553" name="line-553"></a><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-554" name="line-554"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-555" name="line-555"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-556" name="line-556"></a><span class="p">}</span>
+<a id="line-557" name="line-557"></a>
+<a id="line-558" name="line-558"></a><span class="cm">/* Computes whether a point is inside the saturation/value triangle */</span>
+<a id="line-559" name="line-559"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-560" name="line-560"></a><span class="n">is_in_triangle</span><span class="w"> </span><span class="p">(</span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="p">,</span>
+<a id="line-561" name="line-561"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">x</span><span class="p">,</span>
+<a id="line-562" name="line-562"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">y</span><span class="p">)</span>
+<a id="line-563" name="line-563"></a><span class="p">{</span>
+<a id="line-564" name="line-564"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">hx</span><span class="p">,</span><span class="w"> </span><span class="n">hy</span><span class="p">,</span><span class="w"> </span><span class="n">sx</span><span class="p">,</span><span class="w"> </span><span class="n">sy</span><span class="p">,</span><span class="w"> </span><span class="n">vx</span><span class="p">,</span><span class="w"> </span><span class="n">vy</span><span class="p">;</span>
+<a id="line-565" name="line-565"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">det</span><span class="p">,</span><span class="w"> </span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="n">v</span><span class="p">;</span>
+<a id="line-566" name="line-566"></a>
+<a id="line-567" name="line-567"></a><span class="w"> </span><span class="n">compute_triangle</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">hx</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">hy</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">sx</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">sy</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">vx</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">vy</span><span class="p">);</span>
+<a id="line-568" name="line-568"></a>
+<a id="line-569" name="line-569"></a><span class="w"> </span><span class="n">det</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">vx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sx</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">hy</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sy</span><span class="p">)</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="p">(</span><span class="n">vy</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sy</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">hx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sx</span><span class="p">);</span>
+<a id="line-570" name="line-570"></a>
+<a id="line-571" name="line-571"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">((</span><span class="n">x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sx</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">hy</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sy</span><span class="p">)</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="p">(</span><span class="n">y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sy</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">hx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sx</span><span class="p">))</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">det</span><span class="p">;</span>
+<a id="line-572" name="line-572"></a><span class="w"> </span><span class="n">v</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">((</span><span class="n">vx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sx</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sy</span><span class="p">)</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="p">(</span><span class="n">vy</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sy</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sx</span><span class="p">))</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">det</span><span class="p">;</span>
+<a id="line-573" name="line-573"></a>
+<a id="line-574" name="line-574"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="w"> </span><span class="o">&gt;=</span><span class="w"> </span><span class="mf">0.0</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">v</span><span class="w"> </span><span class="o">&gt;=</span><span class="w"> </span><span class="mf">0.0</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">v</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">);</span>
+<a id="line-575" name="line-575"></a><span class="p">}</span>
+<a id="line-576" name="line-576"></a>
+<a id="line-577" name="line-577"></a><span class="cm">/* Computes a value based on the mouse coordinates */</span>
+<a id="line-578" name="line-578"></a><span class="k">static</span><span class="w"> </span><span class="kt">double</span>
+<a id="line-579" name="line-579"></a><span class="n">compute_v</span><span class="w"> </span><span class="p">(</span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="p">,</span>
+<a id="line-580" name="line-580"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">x</span><span class="p">,</span>
+<a id="line-581" name="line-581"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">y</span><span class="p">)</span>
+<a id="line-582" name="line-582"></a><span class="p">{</span>
+<a id="line-583" name="line-583"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">);</span>
+<a id="line-584" name="line-584"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">center_x</span><span class="p">;</span>
+<a id="line-585" name="line-585"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">center_y</span><span class="p">;</span>
+<a id="line-586" name="line-586"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">dx</span><span class="p">,</span><span class="w"> </span><span class="n">dy</span><span class="p">;</span>
+<a id="line-587" name="line-587"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">angle</span><span class="p">;</span>
+<a id="line-588" name="line-588"></a>
+<a id="line-589" name="line-589"></a><span class="w"> </span><span class="n">center_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_allocated_width</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">2.0</span><span class="p">;</span>
+<a id="line-590" name="line-590"></a><span class="w"> </span><span class="n">center_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_allocated_height</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">2.0</span><span class="p">;</span>
+<a id="line-591" name="line-591"></a><span class="w"> </span><span class="n">dx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">center_x</span><span class="p">;</span>
+<a id="line-592" name="line-592"></a><span class="w"> </span><span class="n">dy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">center_y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">y</span><span class="p">;</span>
+<a id="line-593" name="line-593"></a>
+<a id="line-594" name="line-594"></a><span class="w"> </span><span class="n">angle</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">atan2</span><span class="w"> </span><span class="p">(</span><span class="n">dy</span><span class="p">,</span><span class="w"> </span><span class="n">dx</span><span class="p">);</span>
+<a id="line-595" name="line-595"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">angle</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mf">0.0</span><span class="p">)</span>
+<a id="line-596" name="line-596"></a><span class="w"> </span><span class="n">angle</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mf">2.0</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">G_PI</span><span class="p">;</span>
+<a id="line-597" name="line-597"></a>
+<a id="line-598" name="line-598"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">angle</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="mf">2.0</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">G_PI</span><span class="p">);</span>
+<a id="line-599" name="line-599"></a><span class="p">}</span>
+<a id="line-600" name="line-600"></a>
+<a id="line-601" name="line-601"></a><span class="cm">/* Event handlers */</span>
+<a id="line-602" name="line-602"></a>
+<a id="line-603" name="line-603"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-604" name="line-604"></a><span class="n">set_cross_grab</span><span class="w"> </span><span class="p">(</span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="p">,</span>
+<a id="line-605" name="line-605"></a><span class="w"> </span><span class="n">GdkDevice</span><span class="w"> </span><span class="o">*</span><span class="n">device</span><span class="p">,</span>
+<a id="line-606" name="line-606"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">time</span><span class="p">)</span>
+<a id="line-607" name="line-607"></a><span class="p">{</span>
+<a id="line-608" name="line-608"></a><span class="w"> </span><span class="n">MateHSVPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hsv</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-609" name="line-609"></a><span class="w"> </span><span class="n">GdkCursor</span><span class="w"> </span><span class="o">*</span><span class="n">cursor</span><span class="p">;</span>
+<a id="line-610" name="line-610"></a>
+<a id="line-611" name="line-611"></a><span class="w"> </span><span class="n">cursor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_cursor_new_for_display</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">)),</span>
+<a id="line-612" name="line-612"></a><span class="w"> </span><span class="n">GDK_CROSSHAIR</span><span class="p">);</span>
+<a id="line-613" name="line-613"></a><span class="w"> </span><span class="n">gdk_seat_grab</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_device_get_seat</span><span class="w"> </span><span class="p">(</span><span class="n">device</span><span class="p">),</span>
+<a id="line-614" name="line-614"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">window</span><span class="p">,</span>
+<a id="line-615" name="line-615"></a><span class="w"> </span><span class="n">GDK_SEAT_CAPABILITY_ALL_POINTING</span><span class="p">,</span>
+<a id="line-616" name="line-616"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span>
+<a id="line-617" name="line-617"></a><span class="w"> </span><span class="n">cursor</span><span class="p">,</span>
+<a id="line-618" name="line-618"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-619" name="line-619"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-620" name="line-620"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-621" name="line-621"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">cursor</span><span class="p">);</span>
+<a id="line-622" name="line-622"></a><span class="p">}</span>
+<a id="line-623" name="line-623"></a>
+<a id="line-624" name="line-624"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-625" name="line-625"></a><span class="n">mate_hsv_grab_broken</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-626" name="line-626"></a><span class="w"> </span><span class="n">GdkEventGrabBroken</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">)</span>
+<a id="line-627" name="line-627"></a><span class="p">{</span>
+<a id="line-628" name="line-628"></a><span class="w"> </span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_HSV</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-629" name="line-629"></a><span class="w"> </span><span class="n">MateHSVPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hsv</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-630" name="line-630"></a>
+<a id="line-631" name="line-631"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">DRAG_NONE</span><span class="p">;</span>
+<a id="line-632" name="line-632"></a>
+<a id="line-633" name="line-633"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-634" name="line-634"></a><span class="p">}</span>
+<a id="line-635" name="line-635"></a>
+<a id="line-636" name="line-636"></a><span class="k">static</span><span class="w"> </span><span class="n">gint</span>
+<a id="line-637" name="line-637"></a><span class="n">mate_hsv_button_press</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-638" name="line-638"></a><span class="w"> </span><span class="n">GdkEventButton</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">)</span>
+<a id="line-639" name="line-639"></a><span class="p">{</span>
+<a id="line-640" name="line-640"></a><span class="w"> </span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_HSV</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-641" name="line-641"></a><span class="w"> </span><span class="n">MateHSVPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hsv</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-642" name="line-642"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">;</span>
+<a id="line-643" name="line-643"></a>
+<a id="line-644" name="line-644"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">mode</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">DRAG_NONE</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">event</span><span class="o">-&gt;</span><span class="n">button</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">GDK_BUTTON_PRIMARY</span><span class="p">)</span>
+<a id="line-645" name="line-645"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-646" name="line-646"></a>
+<a id="line-647" name="line-647"></a><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">event</span><span class="o">-&gt;</span><span class="n">x</span><span class="p">;</span>
+<a id="line-648" name="line-648"></a><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">event</span><span class="o">-&gt;</span><span class="n">y</span><span class="p">;</span>
+<a id="line-649" name="line-649"></a>
+<a id="line-650" name="line-650"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">is_in_ring</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">))</span>
+<a id="line-651" name="line-651"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-652" name="line-652"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">DRAG_H</span><span class="p">;</span>
+<a id="line-653" name="line-653"></a><span class="w"> </span><span class="n">set_cross_grab</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span><span class="w"> </span><span class="n">gdk_event_get_device</span><span class="w"> </span><span class="p">((</span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">event</span><span class="p">),</span><span class="w"> </span><span class="n">event</span><span class="o">-&gt;</span><span class="n">time</span><span class="p">);</span>
+<a id="line-654" name="line-654"></a>
+<a id="line-655" name="line-655"></a><span class="w"> </span><span class="n">mate_hsv_set_color</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span>
+<a id="line-656" name="line-656"></a><span class="w"> </span><span class="n">compute_v</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">),</span>
+<a id="line-657" name="line-657"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">s</span><span class="p">,</span>
+<a id="line-658" name="line-658"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">v</span><span class="p">);</span>
+<a id="line-659" name="line-659"></a>
+<a id="line-660" name="line-660"></a><span class="w"> </span><span class="n">gtk_widget_grab_focus</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-661" name="line-661"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">focus_on_ring</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-662" name="line-662"></a>
+<a id="line-663" name="line-663"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-664" name="line-664"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-665" name="line-665"></a>
+<a id="line-666" name="line-666"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">is_in_triangle</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">))</span>
+<a id="line-667" name="line-667"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-668" name="line-668"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="n">v</span><span class="p">;</span>
+<a id="line-669" name="line-669"></a>
+<a id="line-670" name="line-670"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">DRAG_SV</span><span class="p">;</span>
+<a id="line-671" name="line-671"></a><span class="w"> </span><span class="n">set_cross_grab</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span><span class="w"> </span><span class="n">gdk_event_get_device</span><span class="w"> </span><span class="p">((</span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">event</span><span class="p">),</span><span class="w"> </span><span class="n">event</span><span class="o">-&gt;</span><span class="n">time</span><span class="p">);</span>
+<a id="line-672" name="line-672"></a>
+<a id="line-673" name="line-673"></a><span class="w"> </span><span class="n">compute_sv</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">v</span><span class="p">);</span>
+<a id="line-674" name="line-674"></a><span class="w"> </span><span class="n">mate_hsv_set_color</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">h</span><span class="p">,</span><span class="w"> </span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="n">v</span><span class="p">);</span>
+<a id="line-675" name="line-675"></a>
+<a id="line-676" name="line-676"></a><span class="w"> </span><span class="n">gtk_widget_grab_focus</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-677" name="line-677"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">focus_on_ring</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-678" name="line-678"></a>
+<a id="line-679" name="line-679"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-680" name="line-680"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-681" name="line-681"></a>
+<a id="line-682" name="line-682"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-683" name="line-683"></a><span class="p">}</span>
+<a id="line-684" name="line-684"></a>
+<a id="line-685" name="line-685"></a><span class="k">static</span><span class="w"> </span><span class="n">gint</span>
+<a id="line-686" name="line-686"></a><span class="n">mate_hsv_button_release</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-687" name="line-687"></a><span class="w"> </span><span class="n">GdkEventButton</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">)</span>
+<a id="line-688" name="line-688"></a><span class="p">{</span>
+<a id="line-689" name="line-689"></a><span class="w"> </span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_HSV</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-690" name="line-690"></a><span class="w"> </span><span class="n">MateHSVPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hsv</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-691" name="line-691"></a><span class="w"> </span><span class="n">DragMode</span><span class="w"> </span><span class="n">mode</span><span class="p">;</span>
+<a id="line-692" name="line-692"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">;</span>
+<a id="line-693" name="line-693"></a>
+<a id="line-694" name="line-694"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">DRAG_NONE</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">event</span><span class="o">-&gt;</span><span class="n">button</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">GDK_BUTTON_PRIMARY</span><span class="p">)</span>
+<a id="line-695" name="line-695"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-696" name="line-696"></a>
+<a id="line-697" name="line-697"></a><span class="w"> </span><span class="cm">/* Set the drag mode to DRAG_NONE so that signal handlers for &quot;catched&quot;</span>
+<a id="line-698" name="line-698"></a><span class="cm"> * can see that this is the final color state.</span>
+<a id="line-699" name="line-699"></a><span class="cm"> */</span>
+<a id="line-700" name="line-700"></a><span class="w"> </span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">mode</span><span class="p">;</span>
+<a id="line-701" name="line-701"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">DRAG_NONE</span><span class="p">;</span>
+<a id="line-702" name="line-702"></a>
+<a id="line-703" name="line-703"></a><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">event</span><span class="o">-&gt;</span><span class="n">x</span><span class="p">;</span>
+<a id="line-704" name="line-704"></a><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">event</span><span class="o">-&gt;</span><span class="n">y</span><span class="p">;</span>
+<a id="line-705" name="line-705"></a>
+<a id="line-706" name="line-706"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">DRAG_H</span><span class="p">)</span>
+<a id="line-707" name="line-707"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-708" name="line-708"></a><span class="w"> </span><span class="n">mate_hsv_set_color</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span><span class="w"> </span><span class="n">compute_v</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">v</span><span class="p">);</span>
+<a id="line-709" name="line-709"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-710" name="line-710"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">DRAG_SV</span><span class="p">)</span>
+<a id="line-711" name="line-711"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-712" name="line-712"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="n">v</span><span class="p">;</span>
+<a id="line-713" name="line-713"></a>
+<a id="line-714" name="line-714"></a><span class="w"> </span><span class="n">compute_sv</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">v</span><span class="p">);</span>
+<a id="line-715" name="line-715"></a><span class="w"> </span><span class="n">mate_hsv_set_color</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">h</span><span class="p">,</span><span class="w"> </span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="n">v</span><span class="p">);</span>
+<a id="line-716" name="line-716"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-717" name="line-717"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-718" name="line-718"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-719" name="line-719"></a><span class="w"> </span><span class="n">g_assert_not_reached</span><span class="w"> </span><span class="p">();</span>
+<a id="line-720" name="line-720"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-721" name="line-721"></a>
+<a id="line-722" name="line-722"></a><span class="w"> </span><span class="n">gdk_seat_ungrab</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_device_get_seat</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_event_get_device</span><span class="w"> </span><span class="p">((</span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">event</span><span class="p">)));</span>
+<a id="line-723" name="line-723"></a>
+<a id="line-724" name="line-724"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-725" name="line-725"></a><span class="p">}</span>
+<a id="line-726" name="line-726"></a>
+<a id="line-727" name="line-727"></a><span class="k">static</span><span class="w"> </span><span class="n">gint</span>
+<a id="line-728" name="line-728"></a><span class="n">mate_hsv_motion</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-729" name="line-729"></a><span class="w"> </span><span class="n">GdkEventMotion</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">)</span>
+<a id="line-730" name="line-730"></a><span class="p">{</span>
+<a id="line-731" name="line-731"></a><span class="w"> </span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_HSV</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-732" name="line-732"></a><span class="w"> </span><span class="n">MateHSVPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hsv</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-733" name="line-733"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">;</span>
+<a id="line-734" name="line-734"></a>
+<a id="line-735" name="line-735"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">DRAG_NONE</span><span class="p">)</span>
+<a id="line-736" name="line-736"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-737" name="line-737"></a>
+<a id="line-738" name="line-738"></a><span class="w"> </span><span class="n">gdk_event_request_motions</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="p">);</span>
+<a id="line-739" name="line-739"></a><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">event</span><span class="o">-&gt;</span><span class="n">x</span><span class="p">;</span>
+<a id="line-740" name="line-740"></a><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">event</span><span class="o">-&gt;</span><span class="n">y</span><span class="p">;</span>
+<a id="line-741" name="line-741"></a>
+<a id="line-742" name="line-742"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">DRAG_H</span><span class="p">)</span>
+<a id="line-743" name="line-743"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-744" name="line-744"></a><span class="w"> </span><span class="n">mate_hsv_set_color</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span><span class="w"> </span><span class="n">compute_v</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">v</span><span class="p">);</span>
+<a id="line-745" name="line-745"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-746" name="line-746"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-747" name="line-747"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">DRAG_SV</span><span class="p">)</span>
+<a id="line-748" name="line-748"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-749" name="line-749"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="n">v</span><span class="p">;</span>
+<a id="line-750" name="line-750"></a>
+<a id="line-751" name="line-751"></a><span class="w"> </span><span class="n">compute_sv</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">v</span><span class="p">);</span>
+<a id="line-752" name="line-752"></a><span class="w"> </span><span class="n">mate_hsv_set_color</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">h</span><span class="p">,</span><span class="w"> </span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="n">v</span><span class="p">);</span>
+<a id="line-753" name="line-753"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-754" name="line-754"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-755" name="line-755"></a>
+<a id="line-756" name="line-756"></a><span class="w"> </span><span class="n">g_assert_not_reached</span><span class="w"> </span><span class="p">();</span>
+<a id="line-757" name="line-757"></a>
+<a id="line-758" name="line-758"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-759" name="line-759"></a><span class="p">}</span>
+<a id="line-760" name="line-760"></a>
+<a id="line-761" name="line-761"></a><span class="cm">/* Redrawing */</span>
+<a id="line-762" name="line-762"></a>
+<a id="line-763" name="line-763"></a><span class="cm">/* Paints the hue ring */</span>
+<a id="line-764" name="line-764"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-765" name="line-765"></a><span class="n">paint_ring</span><span class="w"> </span><span class="p">(</span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="p">,</span>
+<a id="line-766" name="line-766"></a><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">cr</span><span class="p">)</span>
+<a id="line-767" name="line-767"></a><span class="p">{</span>
+<a id="line-768" name="line-768"></a><span class="w"> </span><span class="n">MateHSVPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hsv</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-769" name="line-769"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">);</span>
+<a id="line-770" name="line-770"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">xx</span><span class="p">,</span><span class="w"> </span><span class="n">yy</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">;</span>
+<a id="line-771" name="line-771"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">dx</span><span class="p">,</span><span class="w"> </span><span class="n">dy</span><span class="p">,</span><span class="w"> </span><span class="n">dist</span><span class="p">;</span>
+<a id="line-772" name="line-772"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">center_x</span><span class="p">;</span>
+<a id="line-773" name="line-773"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">center_y</span><span class="p">;</span>
+<a id="line-774" name="line-774"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">inner</span><span class="p">,</span><span class="w"> </span><span class="n">outer</span><span class="p">;</span>
+<a id="line-775" name="line-775"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="o">*</span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">;</span>
+<a id="line-776" name="line-776"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">angle</span><span class="p">;</span>
+<a id="line-777" name="line-777"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">hue</span><span class="p">;</span>
+<a id="line-778" name="line-778"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">r</span><span class="p">,</span><span class="w"> </span><span class="n">g</span><span class="p">,</span><span class="w"> </span><span class="n">b</span><span class="p">;</span>
+<a id="line-779" name="line-779"></a><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span><span class="n">source</span><span class="p">;</span>
+<a id="line-780" name="line-780"></a><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">source_cr</span><span class="p">;</span>
+<a id="line-781" name="line-781"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">stride</span><span class="p">;</span>
+<a id="line-782" name="line-782"></a>
+<a id="line-783" name="line-783"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_allocated_width</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-784" name="line-784"></a><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_allocated_height</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-785" name="line-785"></a>
+<a id="line-786" name="line-786"></a><span class="w"> </span><span class="n">center_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">2.0</span><span class="p">;</span>
+<a id="line-787" name="line-787"></a><span class="w"> </span><span class="n">center_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">2.0</span><span class="p">;</span>
+<a id="line-788" name="line-788"></a>
+<a id="line-789" name="line-789"></a><span class="w"> </span><span class="n">outer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">size</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">2.0</span><span class="p">;</span>
+<a id="line-790" name="line-790"></a><span class="w"> </span><span class="n">inner</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">outer</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">ring_width</span><span class="p">;</span>
+<a id="line-791" name="line-791"></a>
+<a id="line-792" name="line-792"></a><span class="w"> </span><span class="cm">/* Create an image initialized with the ring colors */</span>
+<a id="line-793" name="line-793"></a>
+<a id="line-794" name="line-794"></a><span class="w"> </span><span class="n">stride</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cairo_format_stride_for_width</span><span class="w"> </span><span class="p">(</span><span class="n">CAIRO_FORMAT_RGB24</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">);</span>
+<a id="line-795" name="line-795"></a><span class="w"> </span><span class="n">buf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new</span><span class="w"> </span><span class="p">(</span><span class="n">guint32</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">stride</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">4</span><span class="p">);</span>
+<a id="line-796" name="line-796"></a>
+<a id="line-797" name="line-797"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">yy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">yy</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">height</span><span class="p">;</span><span class="w"> </span><span class="n">yy</span><span class="o">++</span><span class="p">)</span>
+<a id="line-798" name="line-798"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-799" name="line-799"></a><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">buf</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">yy</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">width</span><span class="p">;</span>
+<a id="line-800" name="line-800"></a>
+<a id="line-801" name="line-801"></a><span class="w"> </span><span class="n">dy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">-</span><span class="p">(</span><span class="n">yy</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">center_y</span><span class="p">);</span>
+<a id="line-802" name="line-802"></a>
+<a id="line-803" name="line-803"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">xx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">xx</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">width</span><span class="p">;</span><span class="w"> </span><span class="n">xx</span><span class="o">++</span><span class="p">)</span>
+<a id="line-804" name="line-804"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-805" name="line-805"></a><span class="w"> </span><span class="n">dx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">center_x</span><span class="p">;</span>
+<a id="line-806" name="line-806"></a>
+<a id="line-807" name="line-807"></a><span class="w"> </span><span class="n">dist</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dx</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">dx</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">dy</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">dy</span><span class="p">;</span>
+<a id="line-808" name="line-808"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dist</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="p">((</span><span class="n">inner</span><span class="mi">-1</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">inner</span><span class="mi">-1</span><span class="p">))</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">dist</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="p">((</span><span class="n">outer</span><span class="o">+</span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">outer</span><span class="o">+</span><span class="mi">1</span><span class="p">)))</span>
+<a id="line-809" name="line-809"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-810" name="line-810"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-811" name="line-811"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span>
+<a id="line-812" name="line-812"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-813" name="line-813"></a>
+<a id="line-814" name="line-814"></a><span class="w"> </span><span class="n">angle</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">atan2</span><span class="w"> </span><span class="p">(</span><span class="n">dy</span><span class="p">,</span><span class="w"> </span><span class="n">dx</span><span class="p">);</span>
+<a id="line-815" name="line-815"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">angle</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mf">0.0</span><span class="p">)</span>
+<a id="line-816" name="line-816"></a><span class="w"> </span><span class="n">angle</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mf">2.0</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">G_PI</span><span class="p">;</span>
+<a id="line-817" name="line-817"></a>
+<a id="line-818" name="line-818"></a><span class="w"> </span><span class="n">hue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">angle</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="mf">2.0</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">G_PI</span><span class="p">);</span>
+<a id="line-819" name="line-819"></a>
+<a id="line-820" name="line-820"></a><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hue</span><span class="p">;</span>
+<a id="line-821" name="line-821"></a><span class="w"> </span><span class="n">g</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-822" name="line-822"></a><span class="w"> </span><span class="n">b</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-823" name="line-823"></a><span class="w"> </span><span class="n">hsv_to_rgb</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">r</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">g</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">b</span><span class="p">);</span>
+<a id="line-824" name="line-824"></a>
+<a id="line-825" name="line-825"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(((</span><span class="kt">int</span><span class="p">)(</span><span class="n">r</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mf">255.0</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">16</span><span class="p">)</span><span class="w"> </span><span class="o">|</span>
+<a id="line-826" name="line-826"></a><span class="w"> </span><span class="p">((</span><span class="kt">int</span><span class="p">)(</span><span class="n">g</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mf">255.0</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">8</span><span class="p">)</span><span class="w"> </span><span class="o">|</span>
+<a id="line-827" name="line-827"></a><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="p">)(</span><span class="n">b</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mf">255.0</span><span class="p">));</span>
+<a id="line-828" name="line-828"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-829" name="line-829"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-830" name="line-830"></a>
+<a id="line-831" name="line-831"></a><span class="w"> </span><span class="n">source</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cairo_image_surface_create_for_data</span><span class="w"> </span><span class="p">((</span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">buf</span><span class="p">,</span>
+<a id="line-832" name="line-832"></a><span class="w"> </span><span class="n">CAIRO_FORMAT_RGB24</span><span class="p">,</span>
+<a id="line-833" name="line-833"></a><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">,</span><span class="w"> </span><span class="n">stride</span><span class="p">);</span>
+<a id="line-834" name="line-834"></a>
+<a id="line-835" name="line-835"></a><span class="w"> </span><span class="cm">/* Now draw the value marker onto the source image, so that it</span>
+<a id="line-836" name="line-836"></a><span class="cm"> * will get properly clipped at the edges of the ring</span>
+<a id="line-837" name="line-837"></a><span class="cm"> */</span>
+<a id="line-838" name="line-838"></a><span class="w"> </span><span class="n">source_cr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cairo_create</span><span class="w"> </span><span class="p">(</span><span class="n">source</span><span class="p">);</span>
+<a id="line-839" name="line-839"></a>
+<a id="line-840" name="line-840"></a><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">h</span><span class="p">;</span>
+<a id="line-841" name="line-841"></a><span class="w"> </span><span class="n">g</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-842" name="line-842"></a><span class="w"> </span><span class="n">b</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-843" name="line-843"></a><span class="w"> </span><span class="n">hsv_to_rgb</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">r</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">g</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">b</span><span class="p">);</span>
+<a id="line-844" name="line-844"></a>
+<a id="line-845" name="line-845"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">INTENSITY</span><span class="w"> </span><span class="p">(</span><span class="n">r</span><span class="p">,</span><span class="w"> </span><span class="n">g</span><span class="p">,</span><span class="w"> </span><span class="n">b</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mf">0.5</span><span class="p">)</span>
+<a id="line-846" name="line-846"></a><span class="w"> </span><span class="n">cairo_set_source_rgb</span><span class="w"> </span><span class="p">(</span><span class="n">source_cr</span><span class="p">,</span><span class="w"> </span><span class="mf">0.</span><span class="p">,</span><span class="w"> </span><span class="mf">0.</span><span class="p">,</span><span class="w"> </span><span class="mf">0.</span><span class="p">);</span>
+<a id="line-847" name="line-847"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-848" name="line-848"></a><span class="w"> </span><span class="n">cairo_set_source_rgb</span><span class="w"> </span><span class="p">(</span><span class="n">source_cr</span><span class="p">,</span><span class="w"> </span><span class="mf">1.</span><span class="p">,</span><span class="w"> </span><span class="mf">1.</span><span class="p">,</span><span class="w"> </span><span class="mf">1.</span><span class="p">);</span>
+<a id="line-849" name="line-849"></a>
+<a id="line-850" name="line-850"></a><span class="w"> </span><span class="n">cairo_move_to</span><span class="w"> </span><span class="p">(</span><span class="n">source_cr</span><span class="p">,</span><span class="w"> </span><span class="n">center_x</span><span class="p">,</span><span class="w"> </span><span class="n">center_y</span><span class="p">);</span>
+<a id="line-851" name="line-851"></a><span class="w"> </span><span class="n">cairo_line_to</span><span class="w"> </span><span class="p">(</span><span class="n">source_cr</span><span class="p">,</span>
+<a id="line-852" name="line-852"></a><span class="w"> </span><span class="n">center_x</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">cos</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">h</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mf">2.0</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">G_PI</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">size</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span>
+<a id="line-853" name="line-853"></a><span class="w"> </span><span class="n">center_y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sin</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">h</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mf">2.0</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">G_PI</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">size</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">2</span><span class="p">);</span>
+<a id="line-854" name="line-854"></a><span class="w"> </span><span class="n">cairo_stroke</span><span class="w"> </span><span class="p">(</span><span class="n">source_cr</span><span class="p">);</span>
+<a id="line-855" name="line-855"></a><span class="w"> </span><span class="n">cairo_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">source_cr</span><span class="p">);</span>
+<a id="line-856" name="line-856"></a>
+<a id="line-857" name="line-857"></a><span class="w"> </span><span class="cm">/* Draw the ring using the source image */</span>
+<a id="line-858" name="line-858"></a>
+<a id="line-859" name="line-859"></a><span class="w"> </span><span class="n">cairo_save</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-860" name="line-860"></a>
+<a id="line-861" name="line-861"></a><span class="w"> </span><span class="n">cairo_set_source_surface</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">source</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-862" name="line-862"></a><span class="w"> </span><span class="n">cairo_surface_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">source</span><span class="p">);</span>
+<a id="line-863" name="line-863"></a>
+<a id="line-864" name="line-864"></a><span class="w"> </span><span class="n">cairo_set_line_width</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">ring_width</span><span class="p">);</span>
+<a id="line-865" name="line-865"></a><span class="w"> </span><span class="n">cairo_new_path</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-866" name="line-866"></a><span class="w"> </span><span class="n">cairo_arc</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span>
+<a id="line-867" name="line-867"></a><span class="w"> </span><span class="n">center_x</span><span class="p">,</span><span class="w"> </span><span class="n">center_y</span><span class="p">,</span>
+<a id="line-868" name="line-868"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">size</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">2.</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">ring_width</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">2.</span><span class="p">,</span>
+<a id="line-869" name="line-869"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">G_PI</span><span class="p">);</span>
+<a id="line-870" name="line-870"></a><span class="w"> </span><span class="n">cairo_stroke</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-871" name="line-871"></a>
+<a id="line-872" name="line-872"></a><span class="w"> </span><span class="n">cairo_restore</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-873" name="line-873"></a>
+<a id="line-874" name="line-874"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">buf</span><span class="p">);</span>
+<a id="line-875" name="line-875"></a><span class="p">}</span>
+<a id="line-876" name="line-876"></a>
+<a id="line-877" name="line-877"></a><span class="cm">/* Converts an HSV triplet to an integer RGB triplet */</span>
+<a id="line-878" name="line-878"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-879" name="line-879"></a><span class="n">get_color</span><span class="w"> </span><span class="p">(</span><span class="n">gdouble</span><span class="w"> </span><span class="n">h</span><span class="p">,</span>
+<a id="line-880" name="line-880"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">s</span><span class="p">,</span>
+<a id="line-881" name="line-881"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">v</span><span class="p">,</span>
+<a id="line-882" name="line-882"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">r</span><span class="p">,</span>
+<a id="line-883" name="line-883"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">g</span><span class="p">,</span>
+<a id="line-884" name="line-884"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">b</span><span class="p">)</span>
+<a id="line-885" name="line-885"></a><span class="p">{</span>
+<a id="line-886" name="line-886"></a><span class="w"> </span><span class="n">hsv_to_rgb</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">h</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">v</span><span class="p">);</span>
+<a id="line-887" name="line-887"></a>
+<a id="line-888" name="line-888"></a><span class="w"> </span><span class="o">*</span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">floor</span><span class="w"> </span><span class="p">(</span><span class="n">h</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">255</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span>
+<a id="line-889" name="line-889"></a><span class="w"> </span><span class="o">*</span><span class="n">g</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">floor</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">255</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span>
+<a id="line-890" name="line-890"></a><span class="w"> </span><span class="o">*</span><span class="n">b</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">floor</span><span class="w"> </span><span class="p">(</span><span class="n">v</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">255</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span>
+<a id="line-891" name="line-891"></a><span class="p">}</span>
+<a id="line-892" name="line-892"></a>
+<a id="line-893" name="line-893"></a><span class="cp">#define SWAP(a, b, t) ((t) = (a), (a) = (b), (b) = (t))</span>
+<a id="line-894" name="line-894"></a>
+<a id="line-895" name="line-895"></a><span class="cp">#define LERP(a, b, v1, v2, i) (((v2) - (v1) != 0) \</span>
+<a id="line-896" name="line-896"></a><span class="cp"> ? ((a) + ((b) - (a)) * ((i) - (v1)) / ((v2) - (v1))) \</span>
+<a id="line-897" name="line-897"></a><span class="cp"> : (a))</span>
+<a id="line-898" name="line-898"></a>
+<a id="line-899" name="line-899"></a><span class="cm">/* Number of pixels we extend out from the edges when creating</span>
+<a id="line-900" name="line-900"></a><span class="cm"> * color source to avoid artifacts</span>
+<a id="line-901" name="line-901"></a><span class="cm"> */</span>
+<a id="line-902" name="line-902"></a><span class="cp">#define PAD 3</span>
+<a id="line-903" name="line-903"></a>
+<a id="line-904" name="line-904"></a><span class="cm">/* Paints the HSV triangle */</span>
+<a id="line-905" name="line-905"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-906" name="line-906"></a><span class="n">paint_triangle</span><span class="w"> </span><span class="p">(</span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="p">,</span>
+<a id="line-907" name="line-907"></a><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">cr</span><span class="p">,</span>
+<a id="line-908" name="line-908"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">draw_focus</span><span class="p">)</span>
+<a id="line-909" name="line-909"></a><span class="p">{</span>
+<a id="line-910" name="line-910"></a><span class="w"> </span><span class="n">MateHSVPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hsv</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-911" name="line-911"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">);</span>
+<a id="line-912" name="line-912"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">hx</span><span class="p">,</span><span class="w"> </span><span class="n">hy</span><span class="p">,</span><span class="w"> </span><span class="n">sx</span><span class="p">,</span><span class="w"> </span><span class="n">sy</span><span class="p">,</span><span class="w"> </span><span class="n">vx</span><span class="p">,</span><span class="w"> </span><span class="n">vy</span><span class="p">;</span><span class="w"> </span><span class="cm">/* HSV vertices */</span>
+<a id="line-913" name="line-913"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x1</span><span class="p">,</span><span class="w"> </span><span class="n">y1</span><span class="p">,</span><span class="w"> </span><span class="n">r1</span><span class="p">,</span><span class="w"> </span><span class="n">g1</span><span class="p">,</span><span class="w"> </span><span class="n">b1</span><span class="p">;</span><span class="w"> </span><span class="cm">/* First vertex in scanline order */</span>
+<a id="line-914" name="line-914"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x2</span><span class="p">,</span><span class="w"> </span><span class="n">y2</span><span class="p">,</span><span class="w"> </span><span class="n">r2</span><span class="p">,</span><span class="w"> </span><span class="n">g2</span><span class="p">,</span><span class="w"> </span><span class="n">b2</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Second vertex */</span>
+<a id="line-915" name="line-915"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x3</span><span class="p">,</span><span class="w"> </span><span class="n">y3</span><span class="p">,</span><span class="w"> </span><span class="n">r3</span><span class="p">,</span><span class="w"> </span><span class="n">g3</span><span class="p">,</span><span class="w"> </span><span class="n">b3</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Third vertex */</span>
+<a id="line-916" name="line-916"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">t</span><span class="p">;</span>
+<a id="line-917" name="line-917"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="o">*</span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">,</span><span class="w"> </span><span class="n">c</span><span class="p">;</span>
+<a id="line-918" name="line-918"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">xl</span><span class="p">,</span><span class="w"> </span><span class="n">xr</span><span class="p">,</span><span class="w"> </span><span class="n">rl</span><span class="p">,</span><span class="w"> </span><span class="n">rr</span><span class="p">,</span><span class="w"> </span><span class="n">gl</span><span class="p">,</span><span class="w"> </span><span class="n">gr</span><span class="p">,</span><span class="w"> </span><span class="n">bl</span><span class="p">,</span><span class="w"> </span><span class="n">br</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Scanline data */</span>
+<a id="line-919" name="line-919"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">xx</span><span class="p">,</span><span class="w"> </span><span class="n">yy</span><span class="p">;</span>
+<a id="line-920" name="line-920"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x_interp</span><span class="p">,</span><span class="w"> </span><span class="n">y_interp</span><span class="p">;</span>
+<a id="line-921" name="line-921"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x_start</span><span class="p">,</span><span class="w"> </span><span class="n">x_end</span><span class="p">;</span>
+<a id="line-922" name="line-922"></a><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span><span class="n">source</span><span class="p">;</span>
+<a id="line-923" name="line-923"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">r</span><span class="p">,</span><span class="w"> </span><span class="n">g</span><span class="p">,</span><span class="w"> </span><span class="n">b</span><span class="p">;</span>
+<a id="line-924" name="line-924"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">stride</span><span class="p">;</span>
+<a id="line-925" name="line-925"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">;</span>
+<a id="line-926" name="line-926"></a><span class="w"> </span><span class="n">GtkStyleContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">;</span>
+<a id="line-927" name="line-927"></a>
+<a id="line-928" name="line-928"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_allocated_width</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-929" name="line-929"></a><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_allocated_height</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-930" name="line-930"></a><span class="w"> </span><span class="cm">/* Compute triangle&#39;s vertices */</span>
+<a id="line-931" name="line-931"></a>
+<a id="line-932" name="line-932"></a><span class="w"> </span><span class="n">compute_triangle</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">hx</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">hy</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">sx</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">sy</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">vx</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">vy</span><span class="p">);</span>
+<a id="line-933" name="line-933"></a>
+<a id="line-934" name="line-934"></a><span class="w"> </span><span class="n">x1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hx</span><span class="p">;</span>
+<a id="line-935" name="line-935"></a><span class="w"> </span><span class="n">y1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hy</span><span class="p">;</span>
+<a id="line-936" name="line-936"></a><span class="w"> </span><span class="n">get_color</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">h</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">r1</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">g1</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">b1</span><span class="p">);</span>
+<a id="line-937" name="line-937"></a>
+<a id="line-938" name="line-938"></a><span class="w"> </span><span class="n">x2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">sx</span><span class="p">;</span>
+<a id="line-939" name="line-939"></a><span class="w"> </span><span class="n">y2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">sy</span><span class="p">;</span>
+<a id="line-940" name="line-940"></a><span class="w"> </span><span class="n">get_color</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">h</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="p">,</span><span class="w"> </span><span class="mf">0.0</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">r2</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">g2</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">b2</span><span class="p">);</span>
+<a id="line-941" name="line-941"></a>
+<a id="line-942" name="line-942"></a><span class="w"> </span><span class="n">x3</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">vx</span><span class="p">;</span>
+<a id="line-943" name="line-943"></a><span class="w"> </span><span class="n">y3</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">vy</span><span class="p">;</span>
+<a id="line-944" name="line-944"></a><span class="w"> </span><span class="n">get_color</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">h</span><span class="p">,</span><span class="w"> </span><span class="mf">0.0</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">r3</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">g3</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">b3</span><span class="p">);</span>
+<a id="line-945" name="line-945"></a>
+<a id="line-946" name="line-946"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">y2</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="n">y3</span><span class="p">)</span>
+<a id="line-947" name="line-947"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-948" name="line-948"></a><span class="w"> </span><span class="n">SWAP</span><span class="w"> </span><span class="p">(</span><span class="n">x2</span><span class="p">,</span><span class="w"> </span><span class="n">x3</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span>
+<a id="line-949" name="line-949"></a><span class="w"> </span><span class="n">SWAP</span><span class="w"> </span><span class="p">(</span><span class="n">y2</span><span class="p">,</span><span class="w"> </span><span class="n">y3</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span>
+<a id="line-950" name="line-950"></a><span class="w"> </span><span class="n">SWAP</span><span class="w"> </span><span class="p">(</span><span class="n">r2</span><span class="p">,</span><span class="w"> </span><span class="n">r3</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span>
+<a id="line-951" name="line-951"></a><span class="w"> </span><span class="n">SWAP</span><span class="w"> </span><span class="p">(</span><span class="n">g2</span><span class="p">,</span><span class="w"> </span><span class="n">g3</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span>
+<a id="line-952" name="line-952"></a><span class="w"> </span><span class="n">SWAP</span><span class="w"> </span><span class="p">(</span><span class="n">b2</span><span class="p">,</span><span class="w"> </span><span class="n">b3</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span>
+<a id="line-953" name="line-953"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-954" name="line-954"></a>
+<a id="line-955" name="line-955"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">y1</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="n">y3</span><span class="p">)</span>
+<a id="line-956" name="line-956"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-957" name="line-957"></a><span class="w"> </span><span class="n">SWAP</span><span class="w"> </span><span class="p">(</span><span class="n">x1</span><span class="p">,</span><span class="w"> </span><span class="n">x3</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span>
+<a id="line-958" name="line-958"></a><span class="w"> </span><span class="n">SWAP</span><span class="w"> </span><span class="p">(</span><span class="n">y1</span><span class="p">,</span><span class="w"> </span><span class="n">y3</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span>
+<a id="line-959" name="line-959"></a><span class="w"> </span><span class="n">SWAP</span><span class="w"> </span><span class="p">(</span><span class="n">r1</span><span class="p">,</span><span class="w"> </span><span class="n">r3</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span>
+<a id="line-960" name="line-960"></a><span class="w"> </span><span class="n">SWAP</span><span class="w"> </span><span class="p">(</span><span class="n">g1</span><span class="p">,</span><span class="w"> </span><span class="n">g3</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span>
+<a id="line-961" name="line-961"></a><span class="w"> </span><span class="n">SWAP</span><span class="w"> </span><span class="p">(</span><span class="n">b1</span><span class="p">,</span><span class="w"> </span><span class="n">b3</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span>
+<a id="line-962" name="line-962"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-963" name="line-963"></a>
+<a id="line-964" name="line-964"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">y1</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="n">y2</span><span class="p">)</span>
+<a id="line-965" name="line-965"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-966" name="line-966"></a><span class="w"> </span><span class="n">SWAP</span><span class="w"> </span><span class="p">(</span><span class="n">x1</span><span class="p">,</span><span class="w"> </span><span class="n">x2</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span>
+<a id="line-967" name="line-967"></a><span class="w"> </span><span class="n">SWAP</span><span class="w"> </span><span class="p">(</span><span class="n">y1</span><span class="p">,</span><span class="w"> </span><span class="n">y2</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span>
+<a id="line-968" name="line-968"></a><span class="w"> </span><span class="n">SWAP</span><span class="w"> </span><span class="p">(</span><span class="n">r1</span><span class="p">,</span><span class="w"> </span><span class="n">r2</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span>
+<a id="line-969" name="line-969"></a><span class="w"> </span><span class="n">SWAP</span><span class="w"> </span><span class="p">(</span><span class="n">g1</span><span class="p">,</span><span class="w"> </span><span class="n">g2</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span>
+<a id="line-970" name="line-970"></a><span class="w"> </span><span class="n">SWAP</span><span class="w"> </span><span class="p">(</span><span class="n">b1</span><span class="p">,</span><span class="w"> </span><span class="n">b2</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span>
+<a id="line-971" name="line-971"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-972" name="line-972"></a>
+<a id="line-973" name="line-973"></a><span class="w"> </span><span class="cm">/* Shade the triangle */</span>
+<a id="line-974" name="line-974"></a>
+<a id="line-975" name="line-975"></a><span class="w"> </span><span class="n">stride</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cairo_format_stride_for_width</span><span class="w"> </span><span class="p">(</span><span class="n">CAIRO_FORMAT_RGB24</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">);</span>
+<a id="line-976" name="line-976"></a><span class="w"> </span><span class="n">buf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new</span><span class="w"> </span><span class="p">(</span><span class="n">guint32</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">stride</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">4</span><span class="p">);</span>
+<a id="line-977" name="line-977"></a>
+<a id="line-978" name="line-978"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">yy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">yy</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">height</span><span class="p">;</span><span class="w"> </span><span class="n">yy</span><span class="o">++</span><span class="p">)</span>
+<a id="line-979" name="line-979"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-980" name="line-980"></a><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">buf</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">yy</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">width</span><span class="p">;</span>
+<a id="line-981" name="line-981"></a>
+<a id="line-982" name="line-982"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">yy</span><span class="w"> </span><span class="o">&gt;=</span><span class="w"> </span><span class="n">y1</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">PAD</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">yy</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">y3</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">PAD</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-983" name="line-983"></a><span class="w"> </span><span class="n">y_interp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CLAMP</span><span class="w"> </span><span class="p">(</span><span class="n">yy</span><span class="p">,</span><span class="w"> </span><span class="n">y1</span><span class="p">,</span><span class="w"> </span><span class="n">y3</span><span class="p">);</span>
+<a id="line-984" name="line-984"></a>
+<a id="line-985" name="line-985"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">y_interp</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">y2</span><span class="p">)</span>
+<a id="line-986" name="line-986"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-987" name="line-987"></a><span class="w"> </span><span class="n">xl</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">LERP</span><span class="w"> </span><span class="p">(</span><span class="n">x1</span><span class="p">,</span><span class="w"> </span><span class="n">x2</span><span class="p">,</span><span class="w"> </span><span class="n">y1</span><span class="p">,</span><span class="w"> </span><span class="n">y2</span><span class="p">,</span><span class="w"> </span><span class="n">y_interp</span><span class="p">);</span>
+<a id="line-988" name="line-988"></a>
+<a id="line-989" name="line-989"></a><span class="w"> </span><span class="n">rl</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">LERP</span><span class="w"> </span><span class="p">(</span><span class="n">r1</span><span class="p">,</span><span class="w"> </span><span class="n">r2</span><span class="p">,</span><span class="w"> </span><span class="n">y1</span><span class="p">,</span><span class="w"> </span><span class="n">y2</span><span class="p">,</span><span class="w"> </span><span class="n">y_interp</span><span class="p">);</span>
+<a id="line-990" name="line-990"></a><span class="w"> </span><span class="n">gl</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">LERP</span><span class="w"> </span><span class="p">(</span><span class="n">g1</span><span class="p">,</span><span class="w"> </span><span class="n">g2</span><span class="p">,</span><span class="w"> </span><span class="n">y1</span><span class="p">,</span><span class="w"> </span><span class="n">y2</span><span class="p">,</span><span class="w"> </span><span class="n">y_interp</span><span class="p">);</span>
+<a id="line-991" name="line-991"></a><span class="w"> </span><span class="n">bl</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">LERP</span><span class="w"> </span><span class="p">(</span><span class="n">b1</span><span class="p">,</span><span class="w"> </span><span class="n">b2</span><span class="p">,</span><span class="w"> </span><span class="n">y1</span><span class="p">,</span><span class="w"> </span><span class="n">y2</span><span class="p">,</span><span class="w"> </span><span class="n">y_interp</span><span class="p">);</span>
+<a id="line-992" name="line-992"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-993" name="line-993"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-994" name="line-994"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-995" name="line-995"></a><span class="w"> </span><span class="n">xl</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">LERP</span><span class="w"> </span><span class="p">(</span><span class="n">x2</span><span class="p">,</span><span class="w"> </span><span class="n">x3</span><span class="p">,</span><span class="w"> </span><span class="n">y2</span><span class="p">,</span><span class="w"> </span><span class="n">y3</span><span class="p">,</span><span class="w"> </span><span class="n">y_interp</span><span class="p">);</span>
+<a id="line-996" name="line-996"></a>
+<a id="line-997" name="line-997"></a><span class="w"> </span><span class="n">rl</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">LERP</span><span class="w"> </span><span class="p">(</span><span class="n">r2</span><span class="p">,</span><span class="w"> </span><span class="n">r3</span><span class="p">,</span><span class="w"> </span><span class="n">y2</span><span class="p">,</span><span class="w"> </span><span class="n">y3</span><span class="p">,</span><span class="w"> </span><span class="n">y_interp</span><span class="p">);</span>
+<a id="line-998" name="line-998"></a><span class="w"> </span><span class="n">gl</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">LERP</span><span class="w"> </span><span class="p">(</span><span class="n">g2</span><span class="p">,</span><span class="w"> </span><span class="n">g3</span><span class="p">,</span><span class="w"> </span><span class="n">y2</span><span class="p">,</span><span class="w"> </span><span class="n">y3</span><span class="p">,</span><span class="w"> </span><span class="n">y_interp</span><span class="p">);</span>
+<a id="line-999" name="line-999"></a><span class="w"> </span><span class="n">bl</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">LERP</span><span class="w"> </span><span class="p">(</span><span class="n">b2</span><span class="p">,</span><span class="w"> </span><span class="n">b3</span><span class="p">,</span><span class="w"> </span><span class="n">y2</span><span class="p">,</span><span class="w"> </span><span class="n">y3</span><span class="p">,</span><span class="w"> </span><span class="n">y_interp</span><span class="p">);</span>
+<a id="line-1000" name="line-1000"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1001" name="line-1001"></a>
+<a id="line-1002" name="line-1002"></a><span class="w"> </span><span class="n">xr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">LERP</span><span class="w"> </span><span class="p">(</span><span class="n">x1</span><span class="p">,</span><span class="w"> </span><span class="n">x3</span><span class="p">,</span><span class="w"> </span><span class="n">y1</span><span class="p">,</span><span class="w"> </span><span class="n">y3</span><span class="p">,</span><span class="w"> </span><span class="n">y_interp</span><span class="p">);</span>
+<a id="line-1003" name="line-1003"></a>
+<a id="line-1004" name="line-1004"></a><span class="w"> </span><span class="n">rr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">LERP</span><span class="w"> </span><span class="p">(</span><span class="n">r1</span><span class="p">,</span><span class="w"> </span><span class="n">r3</span><span class="p">,</span><span class="w"> </span><span class="n">y1</span><span class="p">,</span><span class="w"> </span><span class="n">y3</span><span class="p">,</span><span class="w"> </span><span class="n">y_interp</span><span class="p">);</span>
+<a id="line-1005" name="line-1005"></a><span class="w"> </span><span class="n">gr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">LERP</span><span class="w"> </span><span class="p">(</span><span class="n">g1</span><span class="p">,</span><span class="w"> </span><span class="n">g3</span><span class="p">,</span><span class="w"> </span><span class="n">y1</span><span class="p">,</span><span class="w"> </span><span class="n">y3</span><span class="p">,</span><span class="w"> </span><span class="n">y_interp</span><span class="p">);</span>
+<a id="line-1006" name="line-1006"></a><span class="w"> </span><span class="n">br</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">LERP</span><span class="w"> </span><span class="p">(</span><span class="n">b1</span><span class="p">,</span><span class="w"> </span><span class="n">b3</span><span class="p">,</span><span class="w"> </span><span class="n">y1</span><span class="p">,</span><span class="w"> </span><span class="n">y3</span><span class="p">,</span><span class="w"> </span><span class="n">y_interp</span><span class="p">);</span>
+<a id="line-1007" name="line-1007"></a>
+<a id="line-1008" name="line-1008"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">xl</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="n">xr</span><span class="p">)</span>
+<a id="line-1009" name="line-1009"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1010" name="line-1010"></a><span class="w"> </span><span class="n">SWAP</span><span class="w"> </span><span class="p">(</span><span class="n">xl</span><span class="p">,</span><span class="w"> </span><span class="n">xr</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span>
+<a id="line-1011" name="line-1011"></a><span class="w"> </span><span class="n">SWAP</span><span class="w"> </span><span class="p">(</span><span class="n">rl</span><span class="p">,</span><span class="w"> </span><span class="n">rr</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span>
+<a id="line-1012" name="line-1012"></a><span class="w"> </span><span class="n">SWAP</span><span class="w"> </span><span class="p">(</span><span class="n">gl</span><span class="p">,</span><span class="w"> </span><span class="n">gr</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span>
+<a id="line-1013" name="line-1013"></a><span class="w"> </span><span class="n">SWAP</span><span class="w"> </span><span class="p">(</span><span class="n">bl</span><span class="p">,</span><span class="w"> </span><span class="n">br</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span>
+<a id="line-1014" name="line-1014"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1015" name="line-1015"></a>
+<a id="line-1016" name="line-1016"></a><span class="w"> </span><span class="n">x_start</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MAX</span><span class="w"> </span><span class="p">(</span><span class="n">xl</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">PAD</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-1017" name="line-1017"></a><span class="w"> </span><span class="n">x_end</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MIN</span><span class="w"> </span><span class="p">(</span><span class="n">xr</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">PAD</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">);</span>
+<a id="line-1018" name="line-1018"></a><span class="w"> </span><span class="n">x_start</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MIN</span><span class="w"> </span><span class="p">(</span><span class="n">x_start</span><span class="p">,</span><span class="w"> </span><span class="n">x_end</span><span class="p">);</span>
+<a id="line-1019" name="line-1019"></a>
+<a id="line-1020" name="line-1020"></a><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">rl</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">16</span><span class="p">)</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="p">(</span><span class="n">gl</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">8</span><span class="p">)</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">bl</span><span class="p">;</span>
+<a id="line-1021" name="line-1021"></a>
+<a id="line-1022" name="line-1022"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">xx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">xx</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">x_start</span><span class="p">;</span><span class="w"> </span><span class="n">xx</span><span class="o">++</span><span class="p">)</span>
+<a id="line-1023" name="line-1023"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">c</span><span class="p">;</span>
+<a id="line-1024" name="line-1024"></a>
+<a id="line-1025" name="line-1025"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(;</span><span class="w"> </span><span class="n">xx</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">x_end</span><span class="p">;</span><span class="w"> </span><span class="n">xx</span><span class="o">++</span><span class="p">)</span>
+<a id="line-1026" name="line-1026"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1027" name="line-1027"></a><span class="w"> </span><span class="n">x_interp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CLAMP</span><span class="w"> </span><span class="p">(</span><span class="n">xx</span><span class="p">,</span><span class="w"> </span><span class="n">xl</span><span class="p">,</span><span class="w"> </span><span class="n">xr</span><span class="p">);</span>
+<a id="line-1028" name="line-1028"></a>
+<a id="line-1029" name="line-1029"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">((</span><span class="n">LERP</span><span class="w"> </span><span class="p">(</span><span class="n">rl</span><span class="p">,</span><span class="w"> </span><span class="n">rr</span><span class="p">,</span><span class="w"> </span><span class="n">xl</span><span class="p">,</span><span class="w"> </span><span class="n">xr</span><span class="p">,</span><span class="w"> </span><span class="n">x_interp</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">16</span><span class="p">)</span><span class="w"> </span><span class="o">|</span>
+<a id="line-1030" name="line-1030"></a><span class="w"> </span><span class="p">(</span><span class="n">LERP</span><span class="w"> </span><span class="p">(</span><span class="n">gl</span><span class="p">,</span><span class="w"> </span><span class="n">gr</span><span class="p">,</span><span class="w"> </span><span class="n">xl</span><span class="p">,</span><span class="w"> </span><span class="n">xr</span><span class="p">,</span><span class="w"> </span><span class="n">x_interp</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">8</span><span class="p">)</span><span class="w"> </span><span class="o">|</span>
+<a id="line-1031" name="line-1031"></a><span class="w"> </span><span class="n">LERP</span><span class="w"> </span><span class="p">(</span><span class="n">bl</span><span class="p">,</span><span class="w"> </span><span class="n">br</span><span class="p">,</span><span class="w"> </span><span class="n">xl</span><span class="p">,</span><span class="w"> </span><span class="n">xr</span><span class="p">,</span><span class="w"> </span><span class="n">x_interp</span><span class="p">));</span>
+<a id="line-1032" name="line-1032"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1033" name="line-1033"></a>
+<a id="line-1034" name="line-1034"></a><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">rr</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">16</span><span class="p">)</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="p">(</span><span class="n">gr</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">8</span><span class="p">)</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">br</span><span class="p">;</span>
+<a id="line-1035" name="line-1035"></a>
+<a id="line-1036" name="line-1036"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(;</span><span class="w"> </span><span class="n">xx</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">width</span><span class="p">;</span><span class="w"> </span><span class="n">xx</span><span class="o">++</span><span class="p">)</span>
+<a id="line-1037" name="line-1037"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">c</span><span class="p">;</span>
+<a id="line-1038" name="line-1038"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1039" name="line-1039"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1040" name="line-1040"></a>
+<a id="line-1041" name="line-1041"></a><span class="w"> </span><span class="n">source</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cairo_image_surface_create_for_data</span><span class="w"> </span><span class="p">((</span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">buf</span><span class="p">,</span>
+<a id="line-1042" name="line-1042"></a><span class="w"> </span><span class="n">CAIRO_FORMAT_RGB24</span><span class="p">,</span>
+<a id="line-1043" name="line-1043"></a><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">,</span><span class="w"> </span><span class="n">stride</span><span class="p">);</span>
+<a id="line-1044" name="line-1044"></a>
+<a id="line-1045" name="line-1045"></a><span class="w"> </span><span class="cm">/* Draw a triangle with the image as a source */</span>
+<a id="line-1046" name="line-1046"></a>
+<a id="line-1047" name="line-1047"></a><span class="w"> </span><span class="n">cairo_set_source_surface</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">source</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-1048" name="line-1048"></a><span class="w"> </span><span class="n">cairo_surface_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">source</span><span class="p">);</span>
+<a id="line-1049" name="line-1049"></a>
+<a id="line-1050" name="line-1050"></a><span class="w"> </span><span class="n">cairo_move_to</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">x1</span><span class="p">,</span><span class="w"> </span><span class="n">y1</span><span class="p">);</span>
+<a id="line-1051" name="line-1051"></a><span class="w"> </span><span class="n">cairo_line_to</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">x2</span><span class="p">,</span><span class="w"> </span><span class="n">y2</span><span class="p">);</span>
+<a id="line-1052" name="line-1052"></a><span class="w"> </span><span class="n">cairo_line_to</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">x3</span><span class="p">,</span><span class="w"> </span><span class="n">y3</span><span class="p">);</span>
+<a id="line-1053" name="line-1053"></a><span class="w"> </span><span class="n">cairo_close_path</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-1054" name="line-1054"></a><span class="w"> </span><span class="n">cairo_fill</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-1055" name="line-1055"></a>
+<a id="line-1056" name="line-1056"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">buf</span><span class="p">);</span>
+<a id="line-1057" name="line-1057"></a>
+<a id="line-1058" name="line-1058"></a><span class="w"> </span><span class="cm">/* Draw value marker */</span>
+<a id="line-1059" name="line-1059"></a>
+<a id="line-1060" name="line-1060"></a><span class="w"> </span><span class="n">xx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">floor</span><span class="w"> </span><span class="p">(</span><span class="n">sx</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">vx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sx</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">v</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">hx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">vx</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">s</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">v</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span>
+<a id="line-1061" name="line-1061"></a><span class="w"> </span><span class="n">yy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">floor</span><span class="w"> </span><span class="p">(</span><span class="n">sy</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">vy</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sy</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">v</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">hy</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">vy</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">s</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">v</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span>
+<a id="line-1062" name="line-1062"></a>
+<a id="line-1063" name="line-1063"></a><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">h</span><span class="p">;</span>
+<a id="line-1064" name="line-1064"></a><span class="w"> </span><span class="n">g</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">s</span><span class="p">;</span>
+<a id="line-1065" name="line-1065"></a><span class="w"> </span><span class="n">b</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">v</span><span class="p">;</span>
+<a id="line-1066" name="line-1066"></a><span class="w"> </span><span class="n">hsv_to_rgb</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">r</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">g</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">b</span><span class="p">);</span>
+<a id="line-1067" name="line-1067"></a>
+<a id="line-1068" name="line-1068"></a><span class="w"> </span><span class="n">context</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_style_context</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-1069" name="line-1069"></a>
+<a id="line-1070" name="line-1070"></a><span class="w"> </span><span class="n">gtk_style_context_save</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">);</span>
+<a id="line-1071" name="line-1071"></a>
+<a id="line-1072" name="line-1072"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">INTENSITY</span><span class="w"> </span><span class="p">(</span><span class="n">r</span><span class="p">,</span><span class="w"> </span><span class="n">g</span><span class="p">,</span><span class="w"> </span><span class="n">b</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mf">0.5</span><span class="p">)</span>
+<a id="line-1073" name="line-1073"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1074" name="line-1074"></a><span class="w"> </span><span class="n">gtk_style_context_add_class</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;light-area-focus&quot;</span><span class="p">);</span>
+<a id="line-1075" name="line-1075"></a><span class="w"> </span><span class="n">cairo_set_source_rgb</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="mf">0.</span><span class="p">,</span><span class="w"> </span><span class="mf">0.</span><span class="p">,</span><span class="w"> </span><span class="mf">0.</span><span class="p">);</span>
+<a id="line-1076" name="line-1076"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1077" name="line-1077"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1078" name="line-1078"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1079" name="line-1079"></a><span class="w"> </span><span class="n">gtk_style_context_add_class</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;dark-area-focus&quot;</span><span class="p">);</span>
+<a id="line-1080" name="line-1080"></a><span class="w"> </span><span class="n">cairo_set_source_rgb</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="mf">1.</span><span class="p">,</span><span class="w"> </span><span class="mf">1.</span><span class="p">,</span><span class="w"> </span><span class="mf">1.</span><span class="p">);</span>
+<a id="line-1081" name="line-1081"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1082" name="line-1082"></a>
+<a id="line-1083" name="line-1083"></a><span class="cp">#define RADIUS 4</span>
+<a id="line-1084" name="line-1084"></a><span class="cp">#define FOCUS_RADIUS 6</span>
+<a id="line-1085" name="line-1085"></a>
+<a id="line-1086" name="line-1086"></a><span class="w"> </span><span class="n">cairo_new_path</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-1087" name="line-1087"></a><span class="w"> </span><span class="n">cairo_arc</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">xx</span><span class="p">,</span><span class="w"> </span><span class="n">yy</span><span class="p">,</span><span class="w"> </span><span class="n">RADIUS</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">G_PI</span><span class="p">);</span>
+<a id="line-1088" name="line-1088"></a><span class="w"> </span><span class="n">cairo_stroke</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-1089" name="line-1089"></a>
+<a id="line-1090" name="line-1090"></a><span class="w"> </span><span class="cm">/* Draw focus outline */</span>
+<a id="line-1091" name="line-1091"></a>
+<a id="line-1092" name="line-1092"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">draw_focus</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">!</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">focus_on_ring</span><span class="p">)</span>
+<a id="line-1093" name="line-1093"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1094" name="line-1094"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">focus_width</span><span class="p">;</span>
+<a id="line-1095" name="line-1095"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">focus_pad</span><span class="p">;</span>
+<a id="line-1096" name="line-1096"></a>
+<a id="line-1097" name="line-1097"></a><span class="w"> </span><span class="n">gtk_widget_style_get</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-1098" name="line-1098"></a><span class="w"> </span><span class="s">&quot;focus-line-width&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">focus_width</span><span class="p">,</span>
+<a id="line-1099" name="line-1099"></a><span class="w"> </span><span class="s">&quot;focus-padding&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">focus_pad</span><span class="p">,</span>
+<a id="line-1100" name="line-1100"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1101" name="line-1101"></a>
+<a id="line-1102" name="line-1102"></a><span class="w"> </span><span class="n">gtk_render_focus</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">,</span><span class="w"> </span><span class="n">cr</span><span class="p">,</span>
+<a id="line-1103" name="line-1103"></a><span class="w"> </span><span class="n">xx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">FOCUS_RADIUS</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">focus_width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">focus_pad</span><span class="p">,</span>
+<a id="line-1104" name="line-1104"></a><span class="w"> </span><span class="n">yy</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">FOCUS_RADIUS</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">focus_width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">focus_pad</span><span class="p">,</span>
+<a id="line-1105" name="line-1105"></a><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">FOCUS_RADIUS</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">focus_width</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">focus_pad</span><span class="p">),</span>
+<a id="line-1106" name="line-1106"></a><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">FOCUS_RADIUS</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">focus_width</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">focus_pad</span><span class="p">));</span>
+<a id="line-1107" name="line-1107"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1108" name="line-1108"></a>
+<a id="line-1109" name="line-1109"></a><span class="w"> </span><span class="n">gtk_style_context_restore</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">);</span>
+<a id="line-1110" name="line-1110"></a><span class="p">}</span>
+<a id="line-1111" name="line-1111"></a>
+<a id="line-1112" name="line-1112"></a><span class="cm">/* Paints the contents of the HSV color selector */</span>
+<a id="line-1113" name="line-1113"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-1114" name="line-1114"></a><span class="n">mate_hsv_draw</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-1115" name="line-1115"></a><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">cr</span><span class="p">)</span>
+<a id="line-1116" name="line-1116"></a><span class="p">{</span>
+<a id="line-1117" name="line-1117"></a><span class="w"> </span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_HSV</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-1118" name="line-1118"></a><span class="w"> </span><span class="n">MateHSVPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hsv</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-1119" name="line-1119"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">draw_focus</span><span class="p">;</span>
+<a id="line-1120" name="line-1120"></a>
+<a id="line-1121" name="line-1121"></a><span class="w"> </span><span class="n">draw_focus</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_has_visible_focus</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-1122" name="line-1122"></a>
+<a id="line-1123" name="line-1123"></a><span class="w"> </span><span class="n">paint_ring</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span><span class="w"> </span><span class="n">cr</span><span class="p">);</span>
+<a id="line-1124" name="line-1124"></a><span class="w"> </span><span class="n">paint_triangle</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span><span class="w"> </span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">draw_focus</span><span class="p">);</span>
+<a id="line-1125" name="line-1125"></a>
+<a id="line-1126" name="line-1126"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">draw_focus</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">focus_on_ring</span><span class="p">)</span>
+<a id="line-1127" name="line-1127"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1128" name="line-1128"></a><span class="w"> </span><span class="n">GtkStyleContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">;</span>
+<a id="line-1129" name="line-1129"></a>
+<a id="line-1130" name="line-1130"></a><span class="w"> </span><span class="n">context</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_style_context</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-1131" name="line-1131"></a>
+<a id="line-1132" name="line-1132"></a><span class="w"> </span><span class="n">gtk_render_focus</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">,</span><span class="w"> </span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
+<a id="line-1133" name="line-1133"></a><span class="w"> </span><span class="n">gtk_widget_get_allocated_width</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span>
+<a id="line-1134" name="line-1134"></a><span class="w"> </span><span class="n">gtk_widget_get_allocated_height</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">));</span>
+<a id="line-1135" name="line-1135"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1136" name="line-1136"></a>
+<a id="line-1137" name="line-1137"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1138" name="line-1138"></a><span class="p">}</span>
+<a id="line-1139" name="line-1139"></a>
+<a id="line-1140" name="line-1140"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-1141" name="line-1141"></a><span class="n">mate_hsv_focus</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-1142" name="line-1142"></a><span class="w"> </span><span class="n">GtkDirectionType</span><span class="w"> </span><span class="n">dir</span><span class="p">)</span>
+<a id="line-1143" name="line-1143"></a><span class="p">{</span>
+<a id="line-1144" name="line-1144"></a><span class="w"> </span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_HSV</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-1145" name="line-1145"></a><span class="w"> </span><span class="n">MateHSVPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hsv</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-1146" name="line-1146"></a>
+<a id="line-1147" name="line-1147"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_widget_has_focus</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">))</span>
+<a id="line-1148" name="line-1148"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1149" name="line-1149"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dir</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_DIR_TAB_BACKWARD</span><span class="p">)</span>
+<a id="line-1150" name="line-1150"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">focus_on_ring</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1151" name="line-1151"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1152" name="line-1152"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">focus_on_ring</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1153" name="line-1153"></a>
+<a id="line-1154" name="line-1154"></a><span class="w"> </span><span class="n">gtk_widget_grab_focus</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">));</span>
+<a id="line-1155" name="line-1155"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1156" name="line-1156"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1157" name="line-1157"></a>
+<a id="line-1158" name="line-1158"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">dir</span><span class="p">)</span>
+<a id="line-1159" name="line-1159"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1160" name="line-1160"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GTK_DIR_UP</span><span class="p">:</span>
+<a id="line-1161" name="line-1161"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">focus_on_ring</span><span class="p">)</span>
+<a id="line-1162" name="line-1162"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1163" name="line-1163"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1164" name="line-1164"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">focus_on_ring</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1165" name="line-1165"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1166" name="line-1166"></a>
+<a id="line-1167" name="line-1167"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GTK_DIR_DOWN</span><span class="p">:</span>
+<a id="line-1168" name="line-1168"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">focus_on_ring</span><span class="p">)</span>
+<a id="line-1169" name="line-1169"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">focus_on_ring</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1170" name="line-1170"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1171" name="line-1171"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1172" name="line-1172"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1173" name="line-1173"></a>
+<a id="line-1174" name="line-1174"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GTK_DIR_LEFT</span><span class="p">:</span>
+<a id="line-1175" name="line-1175"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GTK_DIR_TAB_BACKWARD</span><span class="p">:</span>
+<a id="line-1176" name="line-1176"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">focus_on_ring</span><span class="p">)</span>
+<a id="line-1177" name="line-1177"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1178" name="line-1178"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1179" name="line-1179"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">focus_on_ring</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1180" name="line-1180"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1181" name="line-1181"></a>
+<a id="line-1182" name="line-1182"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GTK_DIR_RIGHT</span><span class="p">:</span>
+<a id="line-1183" name="line-1183"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GTK_DIR_TAB_FORWARD</span><span class="p">:</span>
+<a id="line-1184" name="line-1184"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">focus_on_ring</span><span class="p">)</span>
+<a id="line-1185" name="line-1185"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">focus_on_ring</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1186" name="line-1186"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1187" name="line-1187"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1188" name="line-1188"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1189" name="line-1189"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1190" name="line-1190"></a>
+<a id="line-1191" name="line-1191"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">));</span>
+<a id="line-1192" name="line-1192"></a>
+<a id="line-1193" name="line-1193"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1194" name="line-1194"></a><span class="p">}</span>
+<a id="line-1195" name="line-1195"></a>
+<a id="line-1196" name="line-1196"></a><span class="cm">/**</span>
+<a id="line-1197" name="line-1197"></a><span class="cm"> * mate_hsv_new:</span>
+<a id="line-1198" name="line-1198"></a><span class="cm"> *</span>
+<a id="line-1199" name="line-1199"></a><span class="cm"> * Creates a new HSV color selector.</span>
+<a id="line-1200" name="line-1200"></a><span class="cm"> *</span>
+<a id="line-1201" name="line-1201"></a><span class="cm"> * Returns: A newly-created HSV color selector.</span>
+<a id="line-1202" name="line-1202"></a><span class="cm"> */</span>
+<a id="line-1203" name="line-1203"></a><span class="n">GtkWidget</span><span class="o">*</span>
+<a id="line-1204" name="line-1204"></a><span class="n">mate_hsv_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-1205" name="line-1205"></a><span class="p">{</span>
+<a id="line-1206" name="line-1206"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_TYPE_HSV</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1207" name="line-1207"></a><span class="p">}</span>
+<a id="line-1208" name="line-1208"></a>
+<a id="line-1209" name="line-1209"></a><span class="cm">/**</span>
+<a id="line-1210" name="line-1210"></a><span class="cm"> * mate_hsv_set_color:</span>
+<a id="line-1211" name="line-1211"></a><span class="cm"> * @hsv: An HSV color selector</span>
+<a id="line-1212" name="line-1212"></a><span class="cm"> * @h: Hue</span>
+<a id="line-1213" name="line-1213"></a><span class="cm"> * @s: Saturation</span>
+<a id="line-1214" name="line-1214"></a><span class="cm"> * @v: Value</span>
+<a id="line-1215" name="line-1215"></a><span class="cm"> *</span>
+<a id="line-1216" name="line-1216"></a><span class="cm"> * Sets the current color in an HSV color selector.</span>
+<a id="line-1217" name="line-1217"></a><span class="cm"> * Color component values must be in the [0.0, 1.0] range.</span>
+<a id="line-1218" name="line-1218"></a><span class="cm"> */</span>
+<a id="line-1219" name="line-1219"></a><span class="kt">void</span>
+<a id="line-1220" name="line-1220"></a><span class="n">mate_hsv_set_color</span><span class="w"> </span><span class="p">(</span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="p">,</span>
+<a id="line-1221" name="line-1221"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">h</span><span class="p">,</span>
+<a id="line-1222" name="line-1222"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">s</span><span class="p">,</span>
+<a id="line-1223" name="line-1223"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">v</span><span class="p">)</span>
+<a id="line-1224" name="line-1224"></a><span class="p">{</span>
+<a id="line-1225" name="line-1225"></a><span class="w"> </span><span class="n">MateHSVPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-1226" name="line-1226"></a>
+<a id="line-1227" name="line-1227"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_HSV</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">));</span>
+<a id="line-1228" name="line-1228"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">h</span><span class="w"> </span><span class="o">&gt;=</span><span class="w"> </span><span class="mf">0.0</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">h</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">);</span>
+<a id="line-1229" name="line-1229"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="w"> </span><span class="o">&gt;=</span><span class="w"> </span><span class="mf">0.0</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">);</span>
+<a id="line-1230" name="line-1230"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">v</span><span class="w"> </span><span class="o">&gt;=</span><span class="w"> </span><span class="mf">0.0</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">v</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">);</span>
+<a id="line-1231" name="line-1231"></a>
+<a id="line-1232" name="line-1232"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hsv</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-1233" name="line-1233"></a>
+<a id="line-1234" name="line-1234"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">h</span><span class="p">;</span>
+<a id="line-1235" name="line-1235"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">s</span><span class="p">;</span>
+<a id="line-1236" name="line-1236"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">v</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">v</span><span class="p">;</span>
+<a id="line-1237" name="line-1237"></a>
+<a id="line-1238" name="line-1238"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span><span class="w"> </span><span class="n">hsv_signals</span><span class="p">[</span><span class="n">CHANGED</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-1239" name="line-1239"></a>
+<a id="line-1240" name="line-1240"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">));</span>
+<a id="line-1241" name="line-1241"></a><span class="p">}</span>
+<a id="line-1242" name="line-1242"></a>
+<a id="line-1243" name="line-1243"></a><span class="cm">/**</span>
+<a id="line-1244" name="line-1244"></a><span class="cm"> * mate_hsv_get_color:</span>
+<a id="line-1245" name="line-1245"></a><span class="cm"> * @hsv: An HSV color selector</span>
+<a id="line-1246" name="line-1246"></a><span class="cm"> * @h: (out): Return value for the hue</span>
+<a id="line-1247" name="line-1247"></a><span class="cm"> * @s: (out): Return value for the saturation</span>
+<a id="line-1248" name="line-1248"></a><span class="cm"> * @v: (out): Return value for the value</span>
+<a id="line-1249" name="line-1249"></a><span class="cm"> *</span>
+<a id="line-1250" name="line-1250"></a><span class="cm"> * Queries the current color in an HSV color selector.</span>
+<a id="line-1251" name="line-1251"></a><span class="cm"> * Returned values will be in the [0.0, 1.0] range.</span>
+<a id="line-1252" name="line-1252"></a><span class="cm"> */</span>
+<a id="line-1253" name="line-1253"></a><span class="kt">void</span>
+<a id="line-1254" name="line-1254"></a><span class="n">mate_hsv_get_color</span><span class="w"> </span><span class="p">(</span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="p">,</span>
+<a id="line-1255" name="line-1255"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="o">*</span><span class="n">h</span><span class="p">,</span>
+<a id="line-1256" name="line-1256"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">,</span>
+<a id="line-1257" name="line-1257"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="p">)</span>
+<a id="line-1258" name="line-1258"></a><span class="p">{</span>
+<a id="line-1259" name="line-1259"></a><span class="w"> </span><span class="n">MateHSVPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-1260" name="line-1260"></a>
+<a id="line-1261" name="line-1261"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_HSV</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">));</span>
+<a id="line-1262" name="line-1262"></a>
+<a id="line-1263" name="line-1263"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hsv</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-1264" name="line-1264"></a>
+<a id="line-1265" name="line-1265"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">h</span><span class="p">)</span>
+<a id="line-1266" name="line-1266"></a><span class="w"> </span><span class="o">*</span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">h</span><span class="p">;</span>
+<a id="line-1267" name="line-1267"></a>
+<a id="line-1268" name="line-1268"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">)</span>
+<a id="line-1269" name="line-1269"></a><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">s</span><span class="p">;</span>
+<a id="line-1270" name="line-1270"></a>
+<a id="line-1271" name="line-1271"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">v</span><span class="p">)</span>
+<a id="line-1272" name="line-1272"></a><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">v</span><span class="p">;</span>
+<a id="line-1273" name="line-1273"></a><span class="p">}</span>
+<a id="line-1274" name="line-1274"></a>
+<a id="line-1275" name="line-1275"></a><span class="cm">/**</span>
+<a id="line-1276" name="line-1276"></a><span class="cm"> * mate_hsv_set_metrics:</span>
+<a id="line-1277" name="line-1277"></a><span class="cm"> * @hsv: An HSV color selector</span>
+<a id="line-1278" name="line-1278"></a><span class="cm"> * @size: Diameter for the hue ring</span>
+<a id="line-1279" name="line-1279"></a><span class="cm"> * @ring_width: Width of the hue ring</span>
+<a id="line-1280" name="line-1280"></a><span class="cm"> *</span>
+<a id="line-1281" name="line-1281"></a><span class="cm"> * Sets the size and ring width of an HSV color selector.</span>
+<a id="line-1282" name="line-1282"></a><span class="cm"> */</span>
+<a id="line-1283" name="line-1283"></a><span class="kt">void</span>
+<a id="line-1284" name="line-1284"></a><span class="n">mate_hsv_set_metrics</span><span class="w"> </span><span class="p">(</span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="p">,</span>
+<a id="line-1285" name="line-1285"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">size</span><span class="p">,</span>
+<a id="line-1286" name="line-1286"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ring_width</span><span class="p">)</span>
+<a id="line-1287" name="line-1287"></a><span class="p">{</span>
+<a id="line-1288" name="line-1288"></a><span class="w"> </span><span class="n">MateHSVPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-1289" name="line-1289"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">same_size</span><span class="p">;</span>
+<a id="line-1290" name="line-1290"></a>
+<a id="line-1291" name="line-1291"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_HSV</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">));</span>
+<a id="line-1292" name="line-1292"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">size</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-1293" name="line-1293"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">ring_width</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-1294" name="line-1294"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="mi">2</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">ring_width</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="n">size</span><span class="p">);</span>
+<a id="line-1295" name="line-1295"></a>
+<a id="line-1296" name="line-1296"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hsv</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-1297" name="line-1297"></a>
+<a id="line-1298" name="line-1298"></a><span class="w"> </span><span class="n">same_size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">size</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">size</span><span class="p">);</span>
+<a id="line-1299" name="line-1299"></a>
+<a id="line-1300" name="line-1300"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">size</span><span class="p">;</span>
+<a id="line-1301" name="line-1301"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">ring_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ring_width</span><span class="p">;</span>
+<a id="line-1302" name="line-1302"></a>
+<a id="line-1303" name="line-1303"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">same_size</span><span class="p">)</span>
+<a id="line-1304" name="line-1304"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">));</span>
+<a id="line-1305" name="line-1305"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1306" name="line-1306"></a><span class="w"> </span><span class="n">gtk_widget_queue_resize</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">));</span>
+<a id="line-1307" name="line-1307"></a><span class="p">}</span>
+<a id="line-1308" name="line-1308"></a>
+<a id="line-1309" name="line-1309"></a><span class="cm">/**</span>
+<a id="line-1310" name="line-1310"></a><span class="cm"> * mate_hsv_get_metrics:</span>
+<a id="line-1311" name="line-1311"></a><span class="cm"> * @hsv: An HSV color selector</span>
+<a id="line-1312" name="line-1312"></a><span class="cm"> * @size: (out): Return value for the diameter of the hue ring</span>
+<a id="line-1313" name="line-1313"></a><span class="cm"> * @ring_width: (out): Return value for the width of the hue ring</span>
+<a id="line-1314" name="line-1314"></a><span class="cm"> *</span>
+<a id="line-1315" name="line-1315"></a><span class="cm"> * Queries the size and ring width of an HSV color selector.</span>
+<a id="line-1316" name="line-1316"></a><span class="cm"> */</span>
+<a id="line-1317" name="line-1317"></a><span class="kt">void</span>
+<a id="line-1318" name="line-1318"></a><span class="n">mate_hsv_get_metrics</span><span class="w"> </span><span class="p">(</span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="p">,</span>
+<a id="line-1319" name="line-1319"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">size</span><span class="p">,</span>
+<a id="line-1320" name="line-1320"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">ring_width</span><span class="p">)</span>
+<a id="line-1321" name="line-1321"></a><span class="p">{</span>
+<a id="line-1322" name="line-1322"></a><span class="w"> </span><span class="n">MateHSVPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-1323" name="line-1323"></a>
+<a id="line-1324" name="line-1324"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_HSV</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">));</span>
+<a id="line-1325" name="line-1325"></a>
+<a id="line-1326" name="line-1326"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hsv</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-1327" name="line-1327"></a>
+<a id="line-1328" name="line-1328"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">size</span><span class="p">)</span>
+<a id="line-1329" name="line-1329"></a><span class="w"> </span><span class="o">*</span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">size</span><span class="p">;</span>
+<a id="line-1330" name="line-1330"></a>
+<a id="line-1331" name="line-1331"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">ring_width</span><span class="p">)</span>
+<a id="line-1332" name="line-1332"></a><span class="w"> </span><span class="o">*</span><span class="n">ring_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">ring_width</span><span class="p">;</span>
+<a id="line-1333" name="line-1333"></a><span class="p">}</span>
+<a id="line-1334" name="line-1334"></a>
+<a id="line-1335" name="line-1335"></a><span class="cm">/**</span>
+<a id="line-1336" name="line-1336"></a><span class="cm"> * mate_hsv_is_adjusting:</span>
+<a id="line-1337" name="line-1337"></a><span class="cm"> * @hsv: A #MateHSV</span>
+<a id="line-1338" name="line-1338"></a><span class="cm"> *</span>
+<a id="line-1339" name="line-1339"></a><span class="cm"> * An HSV color selector can be said to be adjusting if multiple rapid</span>
+<a id="line-1340" name="line-1340"></a><span class="cm"> * changes are being made to its value, for example, when the user is</span>
+<a id="line-1341" name="line-1341"></a><span class="cm"> * adjusting the value with the mouse. This function queries whether</span>
+<a id="line-1342" name="line-1342"></a><span class="cm"> * the HSV color selector is being adjusted or not.</span>
+<a id="line-1343" name="line-1343"></a><span class="cm"> *</span>
+<a id="line-1344" name="line-1344"></a><span class="cm"> * Returns: %TRUE if clients can ignore changes to the color value,</span>
+<a id="line-1345" name="line-1345"></a><span class="cm"> * since they may be transitory, or %FALSE if they should consider</span>
+<a id="line-1346" name="line-1346"></a><span class="cm"> * the color value status to be final.</span>
+<a id="line-1347" name="line-1347"></a><span class="cm"> */</span>
+<a id="line-1348" name="line-1348"></a><span class="n">gboolean</span>
+<a id="line-1349" name="line-1349"></a><span class="n">mate_hsv_is_adjusting</span><span class="w"> </span><span class="p">(</span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="p">)</span>
+<a id="line-1350" name="line-1350"></a><span class="p">{</span>
+<a id="line-1351" name="line-1351"></a><span class="w"> </span><span class="n">MateHSVPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-1352" name="line-1352"></a>
+<a id="line-1353" name="line-1353"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_HSV</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1354" name="line-1354"></a>
+<a id="line-1355" name="line-1355"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hsv</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-1356" name="line-1356"></a>
+<a id="line-1357" name="line-1357"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">mode</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">DRAG_NONE</span><span class="p">;</span>
+<a id="line-1358" name="line-1358"></a><span class="p">}</span>
+<a id="line-1359" name="line-1359"></a>
+<a id="line-1360" name="line-1360"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1361" name="line-1361"></a><span class="n">mate_hsv_move</span><span class="w"> </span><span class="p">(</span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="p">,</span>
+<a id="line-1362" name="line-1362"></a><span class="w"> </span><span class="n">GtkDirectionType</span><span class="w"> </span><span class="n">dir</span><span class="p">)</span>
+<a id="line-1363" name="line-1363"></a><span class="p">{</span>
+<a id="line-1364" name="line-1364"></a><span class="w"> </span><span class="n">MateHSVPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hsv</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-1365" name="line-1365"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">hue</span><span class="p">,</span><span class="w"> </span><span class="n">sat</span><span class="p">,</span><span class="w"> </span><span class="n">val</span><span class="p">;</span>
+<a id="line-1366" name="line-1366"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">hx</span><span class="p">,</span><span class="w"> </span><span class="n">hy</span><span class="p">,</span><span class="w"> </span><span class="n">sx</span><span class="p">,</span><span class="w"> </span><span class="n">sy</span><span class="p">,</span><span class="w"> </span><span class="n">vx</span><span class="p">,</span><span class="w"> </span><span class="n">vy</span><span class="p">;</span><span class="w"> </span><span class="cm">/* HSV vertices */</span>
+<a id="line-1367" name="line-1367"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">;</span><span class="w"> </span><span class="cm">/* position in triangle */</span>
+<a id="line-1368" name="line-1368"></a>
+<a id="line-1369" name="line-1369"></a><span class="w"> </span><span class="n">hue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">h</span><span class="p">;</span>
+<a id="line-1370" name="line-1370"></a><span class="w"> </span><span class="n">sat</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">s</span><span class="p">;</span>
+<a id="line-1371" name="line-1371"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">v</span><span class="p">;</span>
+<a id="line-1372" name="line-1372"></a>
+<a id="line-1373" name="line-1373"></a><span class="w"> </span><span class="n">compute_triangle</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">hx</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">hy</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">sx</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">sy</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">vx</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">vy</span><span class="p">);</span>
+<a id="line-1374" name="line-1374"></a>
+<a id="line-1375" name="line-1375"></a><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">floor</span><span class="w"> </span><span class="p">(</span><span class="n">sx</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">vx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sx</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">v</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">hx</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">vx</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">s</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">v</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span>
+<a id="line-1376" name="line-1376"></a><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">floor</span><span class="w"> </span><span class="p">(</span><span class="n">sy</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">vy</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">sy</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">v</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">hy</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">vy</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">s</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">v</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span>
+<a id="line-1377" name="line-1377"></a>
+<a id="line-1378" name="line-1378"></a><span class="cp">#define HUE_DELTA 0.002</span>
+<a id="line-1379" name="line-1379"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">dir</span><span class="p">)</span>
+<a id="line-1380" name="line-1380"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1381" name="line-1381"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GTK_DIR_UP</span><span class="p">:</span>
+<a id="line-1382" name="line-1382"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">focus_on_ring</span><span class="p">)</span>
+<a id="line-1383" name="line-1383"></a><span class="w"> </span><span class="n">hue</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">HUE_DELTA</span><span class="p">;</span>
+<a id="line-1384" name="line-1384"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1385" name="line-1385"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1386" name="line-1386"></a><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-1387" name="line-1387"></a><span class="w"> </span><span class="n">compute_sv</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">sat</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">val</span><span class="p">);</span>
+<a id="line-1388" name="line-1388"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1389" name="line-1389"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1390" name="line-1390"></a>
+<a id="line-1391" name="line-1391"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GTK_DIR_DOWN</span><span class="p">:</span>
+<a id="line-1392" name="line-1392"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">focus_on_ring</span><span class="p">)</span>
+<a id="line-1393" name="line-1393"></a><span class="w"> </span><span class="n">hue</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="n">HUE_DELTA</span><span class="p">;</span>
+<a id="line-1394" name="line-1394"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1395" name="line-1395"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1396" name="line-1396"></a><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-1397" name="line-1397"></a><span class="w"> </span><span class="n">compute_sv</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">sat</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">val</span><span class="p">);</span>
+<a id="line-1398" name="line-1398"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1399" name="line-1399"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1400" name="line-1400"></a>
+<a id="line-1401" name="line-1401"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GTK_DIR_LEFT</span><span class="p">:</span>
+<a id="line-1402" name="line-1402"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">focus_on_ring</span><span class="p">)</span>
+<a id="line-1403" name="line-1403"></a><span class="w"> </span><span class="n">hue</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">HUE_DELTA</span><span class="p">;</span>
+<a id="line-1404" name="line-1404"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1405" name="line-1405"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1406" name="line-1406"></a><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-1407" name="line-1407"></a><span class="w"> </span><span class="n">compute_sv</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">sat</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">val</span><span class="p">);</span>
+<a id="line-1408" name="line-1408"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1409" name="line-1409"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1410" name="line-1410"></a>
+<a id="line-1411" name="line-1411"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GTK_DIR_RIGHT</span><span class="p">:</span>
+<a id="line-1412" name="line-1412"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">focus_on_ring</span><span class="p">)</span>
+<a id="line-1413" name="line-1413"></a><span class="w"> </span><span class="n">hue</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="n">HUE_DELTA</span>
+<a id="line-1414" name="line-1414"></a><span class="w"> </span><span class="p">;</span>
+<a id="line-1415" name="line-1415"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1416" name="line-1416"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1417" name="line-1417"></a><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-1418" name="line-1418"></a><span class="w"> </span><span class="n">compute_sv</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">sat</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">val</span><span class="p">);</span>
+<a id="line-1419" name="line-1419"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1420" name="line-1420"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1421" name="line-1421"></a>
+<a id="line-1422" name="line-1422"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-1423" name="line-1423"></a><span class="w"> </span><span class="cm">/* we don&#39;t care about the tab directions */</span>
+<a id="line-1424" name="line-1424"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1425" name="line-1425"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1426" name="line-1426"></a>
+<a id="line-1427" name="line-1427"></a><span class="w"> </span><span class="cm">/* Wrap */</span>
+<a id="line-1428" name="line-1428"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">hue</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mf">0.0</span><span class="p">)</span>
+<a id="line-1429" name="line-1429"></a><span class="w"> </span><span class="n">hue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-1430" name="line-1430"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">hue</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mf">1.0</span><span class="p">)</span>
+<a id="line-1431" name="line-1431"></a><span class="w"> </span><span class="n">hue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.0</span><span class="p">;</span>
+<a id="line-1432" name="line-1432"></a>
+<a id="line-1433" name="line-1433"></a><span class="w"> </span><span class="n">mate_hsv_set_color</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">,</span><span class="w"> </span><span class="n">hue</span><span class="p">,</span><span class="w"> </span><span class="n">sat</span><span class="p">,</span><span class="w"> </span><span class="n">val</span><span class="p">);</span>
+<a id="line-1434" name="line-1434"></a><span class="p">}</span>
+<a id="line-1435" name="line-1435"></a>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/19.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/19.html
new file mode 100644
index 0000000..f742580
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/19.html
@@ -0,0 +1,1295 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/mate-image-menu-item.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-image-menu-item.c</p>
+<a href="19.html#line-18"> missingInclude 18</a><a href="19.html#line-19"> missingIncludeSystem 19</a><a href="19.html#line-20"> missingIncludeSystem 20</a><a href="19.html#line-21"> missingIncludeSystem 21</a><a href="19.html#line-35"> unknownMacro 35</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal"> 10</span>
+<span class="normal"> 11</span>
+<span class="normal"> 12</span>
+<span class="normal"> 13</span>
+<span class="normal"> 14</span>
+<span class="normal"> 15</span>
+<span class="normal"> 16</span>
+<span class="normal"> 17</span>
+<span class="normal"> 18</span>
+<span class="normal"> 19</span>
+<span class="normal"> 20</span>
+<span class="normal"> 21</span>
+<span class="normal"> 22</span>
+<span class="normal"> 23</span>
+<span class="normal"> 24</span>
+<span class="normal"> 25</span>
+<span class="normal"> 26</span>
+<span class="normal"> 27</span>
+<span class="normal"> 28</span>
+<span class="normal"> 29</span>
+<span class="normal"> 30</span>
+<span class="normal"> 31</span>
+<span class="normal"> 32</span>
+<span class="normal"> 33</span>
+<span class="normal"> 34</span>
+<span class="normal"> 35</span>
+<span class="normal"> 36</span>
+<span class="normal"> 37</span>
+<span class="normal"> 38</span>
+<span class="normal"> 39</span>
+<span class="normal"> 40</span>
+<span class="normal"> 41</span>
+<span class="normal"> 42</span>
+<span class="normal"> 43</span>
+<span class="normal"> 44</span>
+<span class="normal"> 45</span>
+<span class="normal"> 46</span>
+<span class="normal"> 47</span>
+<span class="normal"> 48</span>
+<span class="normal"> 49</span>
+<span class="normal"> 50</span>
+<span class="normal"> 51</span>
+<span class="normal"> 52</span>
+<span class="normal"> 53</span>
+<span class="normal"> 54</span>
+<span class="normal"> 55</span>
+<span class="normal"> 56</span>
+<span class="normal"> 57</span>
+<span class="normal"> 58</span>
+<span class="normal"> 59</span>
+<span class="normal"> 60</span>
+<span class="normal"> 61</span>
+<span class="normal"> 62</span>
+<span class="normal"> 63</span>
+<span class="normal"> 64</span>
+<span class="normal"> 65</span>
+<span class="normal"> 66</span>
+<span class="normal"> 67</span>
+<span class="normal"> 68</span>
+<span class="normal"> 69</span>
+<span class="normal"> 70</span>
+<span class="normal"> 71</span>
+<span class="normal"> 72</span>
+<span class="normal"> 73</span>
+<span class="normal"> 74</span>
+<span class="normal"> 75</span>
+<span class="normal"> 76</span>
+<span class="normal"> 77</span>
+<span class="normal"> 78</span>
+<span class="normal"> 79</span>
+<span class="normal"> 80</span>
+<span class="normal"> 81</span>
+<span class="normal"> 82</span>
+<span class="normal"> 83</span>
+<span class="normal"> 84</span>
+<span class="normal"> 85</span>
+<span class="normal"> 86</span>
+<span class="normal"> 87</span>
+<span class="normal"> 88</span>
+<span class="normal"> 89</span>
+<span class="normal"> 90</span>
+<span class="normal"> 91</span>
+<span class="normal"> 92</span>
+<span class="normal"> 93</span>
+<span class="normal"> 94</span>
+<span class="normal"> 95</span>
+<span class="normal"> 96</span>
+<span class="normal"> 97</span>
+<span class="normal"> 98</span>
+<span class="normal"> 99</span>
+<span class="normal">100</span>
+<span class="normal">101</span>
+<span class="normal">102</span>
+<span class="normal">103</span>
+<span class="normal">104</span>
+<span class="normal">105</span>
+<span class="normal">106</span>
+<span class="normal">107</span>
+<span class="normal">108</span>
+<span class="normal">109</span>
+<span class="normal">110</span>
+<span class="normal">111</span>
+<span class="normal">112</span>
+<span class="normal">113</span>
+<span class="normal">114</span>
+<span class="normal">115</span>
+<span class="normal">116</span>
+<span class="normal">117</span>
+<span class="normal">118</span>
+<span class="normal">119</span>
+<span class="normal">120</span>
+<span class="normal">121</span>
+<span class="normal">122</span>
+<span class="normal">123</span>
+<span class="normal">124</span>
+<span class="normal">125</span>
+<span class="normal">126</span>
+<span class="normal">127</span>
+<span class="normal">128</span>
+<span class="normal">129</span>
+<span class="normal">130</span>
+<span class="normal">131</span>
+<span class="normal">132</span>
+<span class="normal">133</span>
+<span class="normal">134</span>
+<span class="normal">135</span>
+<span class="normal">136</span>
+<span class="normal">137</span>
+<span class="normal">138</span>
+<span class="normal">139</span>
+<span class="normal">140</span>
+<span class="normal">141</span>
+<span class="normal">142</span>
+<span class="normal">143</span>
+<span class="normal">144</span>
+<span class="normal">145</span>
+<span class="normal">146</span>
+<span class="normal">147</span>
+<span class="normal">148</span>
+<span class="normal">149</span>
+<span class="normal">150</span>
+<span class="normal">151</span>
+<span class="normal">152</span>
+<span class="normal">153</span>
+<span class="normal">154</span>
+<span class="normal">155</span>
+<span class="normal">156</span>
+<span class="normal">157</span>
+<span class="normal">158</span>
+<span class="normal">159</span>
+<span class="normal">160</span>
+<span class="normal">161</span>
+<span class="normal">162</span>
+<span class="normal">163</span>
+<span class="normal">164</span>
+<span class="normal">165</span>
+<span class="normal">166</span>
+<span class="normal">167</span>
+<span class="normal">168</span>
+<span class="normal">169</span>
+<span class="normal">170</span>
+<span class="normal">171</span>
+<span class="normal">172</span>
+<span class="normal">173</span>
+<span class="normal">174</span>
+<span class="normal">175</span>
+<span class="normal">176</span>
+<span class="normal">177</span>
+<span class="normal">178</span>
+<span class="normal">179</span>
+<span class="normal">180</span>
+<span class="normal">181</span>
+<span class="normal">182</span>
+<span class="normal">183</span>
+<span class="normal">184</span>
+<span class="normal">185</span>
+<span class="normal">186</span>
+<span class="normal">187</span>
+<span class="normal">188</span>
+<span class="normal">189</span>
+<span class="normal">190</span>
+<span class="normal">191</span>
+<span class="normal">192</span>
+<span class="normal">193</span>
+<span class="normal">194</span>
+<span class="normal">195</span>
+<span class="normal">196</span>
+<span class="normal">197</span>
+<span class="normal">198</span>
+<span class="normal">199</span>
+<span class="normal">200</span>
+<span class="normal">201</span>
+<span class="normal">202</span>
+<span class="normal">203</span>
+<span class="normal">204</span>
+<span class="normal">205</span>
+<span class="normal">206</span>
+<span class="normal">207</span>
+<span class="normal">208</span>
+<span class="normal">209</span>
+<span class="normal">210</span>
+<span class="normal">211</span>
+<span class="normal">212</span>
+<span class="normal">213</span>
+<span class="normal">214</span>
+<span class="normal">215</span>
+<span class="normal">216</span>
+<span class="normal">217</span>
+<span class="normal">218</span>
+<span class="normal">219</span>
+<span class="normal">220</span>
+<span class="normal">221</span>
+<span class="normal">222</span>
+<span class="normal">223</span>
+<span class="normal">224</span>
+<span class="normal">225</span>
+<span class="normal">226</span>
+<span class="normal">227</span>
+<span class="normal">228</span>
+<span class="normal">229</span>
+<span class="normal">230</span>
+<span class="normal">231</span>
+<span class="normal">232</span>
+<span class="normal">233</span>
+<span class="normal">234</span>
+<span class="normal">235</span>
+<span class="normal">236</span>
+<span class="normal">237</span>
+<span class="normal">238</span>
+<span class="normal">239</span>
+<span class="normal">240</span>
+<span class="normal">241</span>
+<span class="normal">242</span>
+<span class="normal">243</span>
+<span class="normal">244</span>
+<span class="normal">245</span>
+<span class="normal">246</span>
+<span class="normal">247</span>
+<span class="normal">248</span>
+<span class="normal">249</span>
+<span class="normal">250</span>
+<span class="normal">251</span>
+<span class="normal">252</span>
+<span class="normal">253</span>
+<span class="normal">254</span>
+<span class="normal">255</span>
+<span class="normal">256</span>
+<span class="normal">257</span>
+<span class="normal">258</span>
+<span class="normal">259</span>
+<span class="normal">260</span>
+<span class="normal">261</span>
+<span class="normal">262</span>
+<span class="normal">263</span>
+<span class="normal">264</span>
+<span class="normal">265</span>
+<span class="normal">266</span>
+<span class="normal">267</span>
+<span class="normal">268</span>
+<span class="normal">269</span>
+<span class="normal">270</span>
+<span class="normal">271</span>
+<span class="normal">272</span>
+<span class="normal">273</span>
+<span class="normal">274</span>
+<span class="normal">275</span>
+<span class="normal">276</span>
+<span class="normal">277</span>
+<span class="normal">278</span>
+<span class="normal">279</span>
+<span class="normal">280</span>
+<span class="normal">281</span>
+<span class="normal">282</span>
+<span class="normal">283</span>
+<span class="normal">284</span>
+<span class="normal">285</span>
+<span class="normal">286</span>
+<span class="normal">287</span>
+<span class="normal">288</span>
+<span class="normal">289</span>
+<span class="normal">290</span>
+<span class="normal">291</span>
+<span class="normal">292</span>
+<span class="normal">293</span>
+<span class="normal">294</span>
+<span class="normal">295</span>
+<span class="normal">296</span>
+<span class="normal">297</span>
+<span class="normal">298</span>
+<span class="normal">299</span>
+<span class="normal">300</span>
+<span class="normal">301</span>
+<span class="normal">302</span>
+<span class="normal">303</span>
+<span class="normal">304</span>
+<span class="normal">305</span>
+<span class="normal">306</span>
+<span class="normal">307</span>
+<span class="normal">308</span>
+<span class="normal">309</span>
+<span class="normal">310</span>
+<span class="normal">311</span>
+<span class="normal">312</span>
+<span class="normal">313</span>
+<span class="normal">314</span>
+<span class="normal">315</span>
+<span class="normal">316</span>
+<span class="normal">317</span>
+<span class="normal">318</span>
+<span class="normal">319</span>
+<span class="normal">320</span>
+<span class="normal">321</span>
+<span class="normal">322</span>
+<span class="normal">323</span>
+<span class="normal">324</span>
+<span class="normal">325</span>
+<span class="normal">326</span>
+<span class="normal">327</span>
+<span class="normal">328</span>
+<span class="normal">329</span>
+<span class="normal">330</span>
+<span class="normal">331</span>
+<span class="normal">332</span>
+<span class="normal">333</span>
+<span class="normal">334</span>
+<span class="normal">335</span>
+<span class="normal">336</span>
+<span class="normal">337</span>
+<span class="normal">338</span>
+<span class="normal">339</span>
+<span class="normal">340</span>
+<span class="normal">341</span>
+<span class="normal">342</span>
+<span class="normal">343</span>
+<span class="normal">344</span>
+<span class="normal">345</span>
+<span class="normal">346</span>
+<span class="normal">347</span>
+<span class="normal">348</span>
+<span class="normal">349</span>
+<span class="normal">350</span>
+<span class="normal">351</span>
+<span class="normal">352</span>
+<span class="normal">353</span>
+<span class="normal">354</span>
+<span class="normal">355</span>
+<span class="normal">356</span>
+<span class="normal">357</span>
+<span class="normal">358</span>
+<span class="normal">359</span>
+<span class="normal">360</span>
+<span class="normal">361</span>
+<span class="normal">362</span>
+<span class="normal">363</span>
+<span class="normal">364</span>
+<span class="normal">365</span>
+<span class="normal">366</span>
+<span class="normal">367</span>
+<span class="normal">368</span>
+<span class="normal">369</span>
+<span class="normal">370</span>
+<span class="normal">371</span>
+<span class="normal">372</span>
+<span class="normal">373</span>
+<span class="normal">374</span>
+<span class="normal">375</span>
+<span class="normal">376</span>
+<span class="normal">377</span>
+<span class="normal">378</span>
+<span class="normal">379</span>
+<span class="normal">380</span>
+<span class="normal">381</span>
+<span class="normal">382</span>
+<span class="normal">383</span>
+<span class="normal">384</span>
+<span class="normal">385</span>
+<span class="normal">386</span>
+<span class="normal">387</span>
+<span class="normal">388</span>
+<span class="normal">389</span>
+<span class="normal">390</span>
+<span class="normal">391</span>
+<span class="normal">392</span>
+<span class="normal">393</span>
+<span class="normal">394</span>
+<span class="normal">395</span>
+<span class="normal">396</span>
+<span class="normal">397</span>
+<span class="normal">398</span>
+<span class="normal">399</span>
+<span class="normal">400</span>
+<span class="normal">401</span>
+<span class="normal">402</span>
+<span class="normal">403</span>
+<span class="normal">404</span>
+<span class="normal">405</span>
+<span class="normal">406</span>
+<span class="normal">407</span>
+<span class="normal">408</span>
+<span class="normal">409</span>
+<span class="normal">410</span>
+<span class="normal">411</span>
+<span class="normal">412</span>
+<span class="normal">413</span>
+<span class="normal">414</span>
+<span class="normal">415</span>
+<span class="normal">416</span>
+<span class="normal">417</span>
+<span class="normal">418</span>
+<span class="normal">419</span>
+<span class="normal">420</span>
+<span class="normal">421</span>
+<span class="normal">422</span>
+<span class="normal">423</span>
+<span class="normal">424</span>
+<span class="normal">425</span>
+<span class="normal">426</span>
+<span class="normal">427</span>
+<span class="normal">428</span>
+<span class="normal">429</span>
+<span class="normal">430</span>
+<span class="normal">431</span>
+<span class="normal">432</span>
+<span class="normal">433</span>
+<span class="normal">434</span>
+<span class="normal">435</span>
+<span class="normal">436</span>
+<span class="normal">437</span>
+<span class="normal">438</span>
+<span class="normal">439</span>
+<span class="normal">440</span>
+<span class="normal">441</span>
+<span class="normal">442</span>
+<span class="normal">443</span>
+<span class="normal">444</span>
+<span class="normal">445</span>
+<span class="normal">446</span>
+<span class="normal">447</span>
+<span class="normal">448</span>
+<span class="normal">449</span>
+<span class="normal">450</span>
+<span class="normal">451</span>
+<span class="normal">452</span>
+<span class="normal">453</span>
+<span class="normal">454</span>
+<span class="normal">455</span>
+<span class="normal">456</span>
+<span class="normal">457</span>
+<span class="normal">458</span>
+<span class="normal">459</span>
+<span class="normal">460</span>
+<span class="normal">461</span>
+<span class="normal">462</span>
+<span class="normal">463</span>
+<span class="normal">464</span>
+<span class="normal">465</span>
+<span class="normal">466</span>
+<span class="normal">467</span>
+<span class="normal">468</span>
+<span class="normal">469</span>
+<span class="normal">470</span>
+<span class="normal">471</span>
+<span class="normal">472</span>
+<span class="normal">473</span>
+<span class="normal">474</span>
+<span class="normal">475</span>
+<span class="normal">476</span>
+<span class="normal">477</span>
+<span class="normal">478</span>
+<span class="normal">479</span>
+<span class="normal">480</span>
+<span class="normal">481</span>
+<span class="normal">482</span>
+<span class="normal">483</span>
+<span class="normal">484</span>
+<span class="normal">485</span>
+<span class="normal">486</span>
+<span class="normal">487</span>
+<span class="normal">488</span>
+<span class="normal">489</span>
+<span class="normal">490</span>
+<span class="normal">491</span>
+<span class="normal">492</span>
+<span class="normal">493</span>
+<span class="normal">494</span>
+<span class="normal">495</span>
+<span class="normal">496</span>
+<span class="normal">497</span>
+<span class="normal">498</span>
+<span class="normal">499</span>
+<span class="normal">500</span>
+<span class="normal">501</span>
+<span class="normal">502</span>
+<span class="normal">503</span>
+<span class="normal">504</span>
+<span class="normal">505</span>
+<span class="normal">506</span>
+<span class="normal">507</span>
+<span class="normal">508</span>
+<span class="normal">509</span>
+<span class="normal">510</span>
+<span class="normal">511</span>
+<span class="normal">512</span>
+<span class="normal">513</span>
+<span class="normal">514</span>
+<span class="normal">515</span>
+<span class="normal">516</span>
+<span class="normal">517</span>
+<span class="normal">518</span>
+<span class="normal">519</span>
+<span class="normal">520</span>
+<span class="normal">521</span>
+<span class="normal">522</span>
+<span class="normal">523</span>
+<span class="normal">524</span>
+<span class="normal">525</span>
+<span class="normal">526</span>
+<span class="normal">527</span>
+<span class="normal">528</span>
+<span class="normal">529</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span>
+<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2023 zhuyaliang.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-8" name="line-8"></a><span class="cm"> *</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-13" name="line-13"></a><span class="cm"> *</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * You should have received a copy of the GNU Lesser General Public</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * License along with this library. If not, see &lt;http://www.gnu.org/licenses/&gt;.</span>
+<a id="line-16" name="line-16"></a><span class="cm"> */</span>
+<a id="line-17" name="line-17"></a>
+<a id="line-18" name="line-18"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-19" name="line-19"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib.h&gt;</span><span class="error2">&lt;--- Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-20" name="line-20"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-21" name="line-21"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gstdio.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gstdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;mate-image-menu-item.h&quot;</span>
+<a id="line-24" name="line-24"></a>
+<a id="line-25" name="line-25"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_MateImageMenuItemPrivate</span>
+<a id="line-26" name="line-26"></a><span class="p">{</span>
+<a id="line-27" name="line-27"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span>
+<a id="line-28" name="line-28"></a><span class="p">};</span>
+<a id="line-29" name="line-29"></a>
+<a id="line-30" name="line-30"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span>
+<a id="line-31" name="line-31"></a><span class="w"> </span><span class="n">PROP_0</span><span class="p">,</span>
+<a id="line-32" name="line-32"></a><span class="w"> </span><span class="n">PROP_IMAGE</span><span class="p">,</span>
+<a id="line-33" name="line-33"></a><span class="p">};</span>
+<a id="line-34" name="line-34"></a>
+<a id="line-35" name="line-35"></a><span class="hll"><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">MateImageMenuItem</span><span class="p">,</span><span class="w"> </span><span class="n">mate_image_menu_item</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_MENU_ITEM</span><span class="p">)</span><span class="error2">&lt;--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</span>
+</span><a id="line-36" name="line-36"></a>
+<a id="line-37" name="line-37"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-38" name="line-38"></a><span class="n">mate_image_menu_item_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">)</span>
+<a id="line-39" name="line-39"></a><span class="p">{</span>
+<a id="line-40" name="line-40"></a><span class="w"> </span><span class="n">MateImageMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">image_menu_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_IMAGE_MENU_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">MateImageMenuItemPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">image_menu_item</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-42" name="line-42"></a>
+<a id="line-43" name="line-43"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="p">)</span>
+<a id="line-44" name="line-44"></a><span class="w"> </span><span class="n">gtk_container_remove</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">image_menu_item</span><span class="p">),</span>
+<a id="line-45" name="line-45"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="p">);</span>
+<a id="line-46" name="line-46"></a>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">GTK_WIDGET_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">mate_image_menu_item_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">destroy</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-48" name="line-48"></a><span class="p">}</span>
+<a id="line-49" name="line-49"></a>
+<a id="line-50" name="line-50"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-51" name="line-51"></a><span class="n">mate_image_menu_item_get_preferred_width</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">minimum</span><span class="p">,</span>
+<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">natural</span><span class="p">)</span>
+<a id="line-54" name="line-54"></a><span class="p">{</span>
+<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">MateImageMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">image_menu_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_IMAGE_MENU_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">MateImageMenuItemPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">image_menu_item</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">GtkPackDirection</span><span class="w"> </span><span class="n">pack_dir</span><span class="p">;</span>
+<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">parent</span><span class="p">;</span>
+<a id="line-59" name="line-59"></a>
+<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">parent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_parent</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-61" name="line-61"></a>
+<a id="line-62" name="line-62"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_MENU_BAR</span><span class="w"> </span><span class="p">(</span><span class="n">parent</span><span class="p">))</span>
+<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">pack_dir</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_bar_get_child_pack_direction</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU_BAR</span><span class="w"> </span><span class="p">(</span><span class="n">parent</span><span class="p">));</span>
+<a id="line-64" name="line-64"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">pack_dir</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_PACK_DIRECTION_LTR</span><span class="p">;</span>
+<a id="line-66" name="line-66"></a>
+<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">GTK_WIDGET_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">mate_image_menu_item_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">get_preferred_width</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">minimum</span><span class="p">,</span><span class="w"> </span><span class="n">natural</span><span class="p">);</span>
+<a id="line-68" name="line-68"></a>
+<a id="line-69" name="line-69"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">pack_dir</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_PACK_DIRECTION_TTB</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">pack_dir</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_PACK_DIRECTION_BTT</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="p">))</span>
+<a id="line-72" name="line-72"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">child_minimum</span><span class="p">,</span><span class="w"> </span><span class="n">child_natural</span><span class="p">;</span>
+<a id="line-74" name="line-74"></a>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">gtk_widget_get_preferred_width</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">child_minimum</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">child_natural</span><span class="p">);</span>
+<a id="line-76" name="line-76"></a>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="o">*</span><span class="n">minimum</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MAX</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">minimum</span><span class="p">,</span><span class="w"> </span><span class="n">child_minimum</span><span class="p">);</span>
+<a id="line-78" name="line-78"></a><span class="w"> </span><span class="o">*</span><span class="n">natural</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MAX</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">natural</span><span class="p">,</span><span class="w"> </span><span class="n">child_natural</span><span class="p">);</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-80" name="line-80"></a><span class="p">}</span>
+<a id="line-81" name="line-81"></a>
+<a id="line-82" name="line-82"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-83" name="line-83"></a><span class="n">mate_image_menu_item_get_preferred_height</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">minimum</span><span class="p">,</span>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">natural</span><span class="p">)</span>
+<a id="line-86" name="line-86"></a><span class="p">{</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">MateImageMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">image_menu_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_IMAGE_MENU_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">MateImageMenuItemPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">image_menu_item</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">child_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">GtkPackDirection</span><span class="w"> </span><span class="n">pack_dir</span><span class="p">;</span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">parent</span><span class="p">;</span>
+<a id="line-92" name="line-92"></a>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">parent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_parent</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-94" name="line-94"></a>
+<a id="line-95" name="line-95"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_MENU_BAR</span><span class="w"> </span><span class="p">(</span><span class="n">parent</span><span class="p">))</span>
+<a id="line-96" name="line-96"></a><span class="w"> </span><span class="n">pack_dir</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_bar_get_child_pack_direction</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU_BAR</span><span class="w"> </span><span class="p">(</span><span class="n">parent</span><span class="p">));</span>
+<a id="line-97" name="line-97"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">pack_dir</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_PACK_DIRECTION_LTR</span><span class="p">;</span>
+<a id="line-99" name="line-99"></a>
+<a id="line-100" name="line-100"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="p">))</span>
+<a id="line-101" name="line-101"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">GtkRequisition</span><span class="w"> </span><span class="n">child_requisition</span><span class="p">;</span>
+<a id="line-103" name="line-103"></a>
+<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">gtk_widget_get_preferred_size</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">child_requisition</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-105" name="line-105"></a>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">child_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">child_requisition</span><span class="p">.</span><span class="n">height</span><span class="p">;</span>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-108" name="line-108"></a>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">GTK_WIDGET_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">mate_image_menu_item_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">get_preferred_height</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">minimum</span><span class="p">,</span><span class="w"> </span><span class="n">natural</span><span class="p">);</span>
+<a id="line-110" name="line-110"></a>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">pack_dir</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_PACK_DIRECTION_RTL</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">pack_dir</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_PACK_DIRECTION_LTR</span><span class="p">)</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-113" name="line-113"></a><span class="w"> </span><span class="o">*</span><span class="n">minimum</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MAX</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">minimum</span><span class="p">,</span><span class="w"> </span><span class="n">child_height</span><span class="p">);</span>
+<a id="line-114" name="line-114"></a><span class="w"> </span><span class="o">*</span><span class="n">natural</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MAX</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">natural</span><span class="p">,</span><span class="w"> </span><span class="n">child_height</span><span class="p">);</span>
+<a id="line-115" name="line-115"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-116" name="line-116"></a><span class="p">}</span>
+<a id="line-117" name="line-117"></a>
+<a id="line-118" name="line-118"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-119" name="line-119"></a><span class="n">mate_image_menu_item_get_preferred_height_for_width</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">width</span><span class="p">,</span>
+<a id="line-121" name="line-121"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">minimum</span><span class="p">,</span>
+<a id="line-122" name="line-122"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">natural</span><span class="p">)</span>
+<a id="line-123" name="line-123"></a><span class="p">{</span>
+<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">MateImageMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">image_menu_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_IMAGE_MENU_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">MateImageMenuItemPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">image_menu_item</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">child_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">GtkPackDirection</span><span class="w"> </span><span class="n">pack_dir</span><span class="p">;</span>
+<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">parent</span><span class="p">;</span>
+<a id="line-129" name="line-129"></a>
+<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">parent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_parent</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-131" name="line-131"></a>
+<a id="line-132" name="line-132"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_MENU_BAR</span><span class="w"> </span><span class="p">(</span><span class="n">parent</span><span class="p">))</span>
+<a id="line-133" name="line-133"></a><span class="w"> </span><span class="n">pack_dir</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_bar_get_child_pack_direction</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU_BAR</span><span class="w"> </span><span class="p">(</span><span class="n">parent</span><span class="p">));</span>
+<a id="line-134" name="line-134"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">pack_dir</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_PACK_DIRECTION_LTR</span><span class="p">;</span>
+<a id="line-136" name="line-136"></a>
+<a id="line-137" name="line-137"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="p">))</span>
+<a id="line-138" name="line-138"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">GtkRequisition</span><span class="w"> </span><span class="n">child_requisition</span><span class="p">;</span>
+<a id="line-140" name="line-140"></a>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">gtk_widget_get_preferred_size</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">child_requisition</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-142" name="line-142"></a>
+<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">child_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">child_requisition</span><span class="p">.</span><span class="n">height</span><span class="p">;</span>
+<a id="line-144" name="line-144"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-145" name="line-145"></a>
+<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">GTK_WIDGET_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">mate_image_menu_item_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">get_preferred_height_for_width</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">minimum</span><span class="p">,</span><span class="w"> </span><span class="n">natural</span><span class="p">);</span>
+<a id="line-147" name="line-147"></a>
+<a id="line-148" name="line-148"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">pack_dir</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_PACK_DIRECTION_RTL</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">pack_dir</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_PACK_DIRECTION_LTR</span><span class="p">)</span>
+<a id="line-149" name="line-149"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-150" name="line-150"></a><span class="w"> </span><span class="o">*</span><span class="n">minimum</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MAX</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">minimum</span><span class="p">,</span><span class="w"> </span><span class="n">child_height</span><span class="p">);</span>
+<a id="line-151" name="line-151"></a><span class="w"> </span><span class="o">*</span><span class="n">natural</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MAX</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">natural</span><span class="p">,</span><span class="w"> </span><span class="n">child_height</span><span class="p">);</span>
+<a id="line-152" name="line-152"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-153" name="line-153"></a><span class="p">}</span>
+<a id="line-154" name="line-154"></a>
+<a id="line-155" name="line-155"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-156" name="line-156"></a><span class="n">mate_image_menu_item_size_allocate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-157" name="line-157"></a><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="o">*</span><span class="n">allocation</span><span class="p">)</span>
+<a id="line-158" name="line-158"></a><span class="p">{</span>
+<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">MateImageMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">image_menu_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_IMAGE_MENU_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">MateImageMenuItemPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">image_menu_item</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="n">widget_allocation</span><span class="p">;</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">GtkRequisition</span><span class="w"> </span><span class="n">image_requisition</span><span class="p">;</span>
+<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">GtkPackDirection</span><span class="w"> </span><span class="n">pack_dir</span><span class="p">;</span>
+<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">GtkTextDirection</span><span class="w"> </span><span class="n">text_dir</span><span class="p">;</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="n">image_allocation</span><span class="p">;</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">GtkStyleContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">;</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">GtkStateFlags</span><span class="w"> </span><span class="n">state</span><span class="p">;</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">GtkBorder</span><span class="w"> </span><span class="n">padding</span><span class="p">;</span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">parent</span><span class="p">;</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">toggle_size</span><span class="p">;</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x</span><span class="p">;</span>
+<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">y</span><span class="p">;</span>
+<a id="line-173" name="line-173"></a>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">parent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_parent</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-175" name="line-175"></a>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_MENU_BAR</span><span class="w"> </span><span class="p">(</span><span class="n">parent</span><span class="p">))</span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">pack_dir</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_bar_get_child_pack_direction</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU_BAR</span><span class="w"> </span><span class="p">(</span><span class="n">parent</span><span class="p">));</span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">pack_dir</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_PACK_DIRECTION_LTR</span><span class="p">;</span>
+<a id="line-180" name="line-180"></a>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">GTK_WIDGET_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">mate_image_menu_item_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">size_allocate</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">allocation</span><span class="p">);</span>
+<a id="line-182" name="line-182"></a>
+<a id="line-183" name="line-183"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="p">))</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-185" name="line-185"></a>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">gtk_widget_get_allocation</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">widget_allocation</span><span class="p">);</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">gtk_widget_get_preferred_size</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">image_requisition</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-188" name="line-188"></a>
+<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">context</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_style_context</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_style_context_get_state</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">);</span>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">gtk_style_context_get_padding</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">padding</span><span class="p">);</span>
+<a id="line-192" name="line-192"></a>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">toggle_size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">gtk_menu_item_toggle_size_request</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">image_menu_item</span><span class="p">),</span><span class="w"> </span><span class="o">&amp;</span><span class="n">toggle_size</span><span class="p">);</span>
+<a id="line-195" name="line-195"></a>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">text_dir</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_direction</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-197" name="line-197"></a>
+<a id="line-198" name="line-198"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">pack_dir</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_PACK_DIRECTION_LTR</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">pack_dir</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_PACK_DIRECTION_RTL</span><span class="p">)</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">text_dir</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_TEXT_DIR_LTR</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="p">(</span><span class="n">pack_dir</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_PACK_DIRECTION_LTR</span><span class="p">))</span>
+<a id="line-201" name="line-201"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-202" name="line-202"></a><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">padding</span><span class="p">.</span><span class="n">left</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">toggle_size</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">image_requisition</span><span class="p">.</span><span class="n">width</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span>
+<a id="line-203" name="line-203"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-204" name="line-204"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">widget_allocation</span><span class="p">.</span><span class="n">width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">padding</span><span class="p">.</span><span class="n">right</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">toggle_size</span><span class="w"> </span><span class="o">+</span>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="p">(</span><span class="n">toggle_size</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">image_requisition</span><span class="p">.</span><span class="n">width</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-209" name="line-209"></a>
+<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">widget_allocation</span><span class="p">.</span><span class="n">height</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">image_requisition</span><span class="p">.</span><span class="n">height</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span>
+<a id="line-211" name="line-211"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">text_dir</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_TEXT_DIR_LTR</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="p">(</span><span class="n">pack_dir</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_PACK_DIRECTION_TTB</span><span class="p">))</span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">padding</span><span class="p">.</span><span class="n">top</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">toggle_size</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">image_requisition</span><span class="p">.</span><span class="n">height</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-218" name="line-218"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-219" name="line-219"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">widget_allocation</span><span class="p">.</span><span class="n">height</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">padding</span><span class="p">.</span><span class="n">bottom</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">toggle_size</span><span class="w"> </span><span class="o">+</span>
+<a id="line-221" name="line-221"></a><span class="w"> </span><span class="p">(</span><span class="n">toggle_size</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">image_requisition</span><span class="p">.</span><span class="n">height</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span>
+<a id="line-222" name="line-222"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-223" name="line-223"></a>
+<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">widget_allocation</span><span class="p">.</span><span class="n">width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">image_requisition</span><span class="p">.</span><span class="n">width</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span>
+<a id="line-225" name="line-225"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-226" name="line-226"></a>
+<a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">image_allocation</span><span class="p">.</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">widget_allocation</span><span class="p">.</span><span class="n">x</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">MAX</span><span class="w"> </span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">);</span>
+<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">image_allocation</span><span class="p">.</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">widget_allocation</span><span class="p">.</span><span class="n">y</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">MAX</span><span class="w"> </span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">);</span>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">image_allocation</span><span class="p">.</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">image_requisition</span><span class="p">.</span><span class="n">width</span><span class="p">;</span>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">image_allocation</span><span class="p">.</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">image_requisition</span><span class="p">.</span><span class="n">height</span><span class="p">;</span>
+<a id="line-231" name="line-231"></a>
+<a id="line-232" name="line-232"></a><span class="w"> </span><span class="n">gtk_widget_size_allocate</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">image_allocation</span><span class="p">);</span>
+<a id="line-233" name="line-233"></a><span class="p">}</span>
+<a id="line-234" name="line-234"></a>
+<a id="line-235" name="line-235"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-236" name="line-236"></a><span class="n">mate_image_menu_item_add</span><span class="w"> </span><span class="p">(</span><span class="n">GtkContainer</span><span class="w"> </span><span class="o">*</span><span class="n">container</span><span class="p">,</span>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">)</span>
+<a id="line-238" name="line-238"></a><span class="p">{</span>
+<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">GTK_CONTAINER_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">mate_image_menu_item_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">add</span><span class="w"> </span><span class="p">(</span><span class="n">container</span><span class="p">,</span><span class="w"> </span><span class="n">widget</span><span class="p">);</span>
+<a id="line-240" name="line-240"></a><span class="p">}</span>
+<a id="line-241" name="line-241"></a>
+<a id="line-242" name="line-242"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-243" name="line-243"></a><span class="n">mate_image_menu_item_forall</span><span class="w"> </span><span class="p">(</span><span class="n">GtkContainer</span><span class="w"> </span><span class="o">*</span><span class="n">container</span><span class="p">,</span>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">include_internals</span><span class="p">,</span>
+<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">GtkCallback</span><span class="w"> </span><span class="n">callback</span><span class="p">,</span>
+<a id="line-246" name="line-246"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">callback_data</span><span class="p">)</span>
+<a id="line-247" name="line-247"></a><span class="p">{</span>
+<a id="line-248" name="line-248"></a><span class="w"> </span><span class="n">MateImageMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">image_menu_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_IMAGE_MENU_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">container</span><span class="p">);</span>
+<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">MateImageMenuItemPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">image_menu_item</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-250" name="line-250"></a>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">GTK_CONTAINER_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">mate_image_menu_item_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">forall</span><span class="w"> </span><span class="p">(</span><span class="n">container</span><span class="p">,</span>
+<a id="line-252" name="line-252"></a><span class="w"> </span><span class="n">include_internals</span><span class="p">,</span>
+<a id="line-253" name="line-253"></a><span class="w"> </span><span class="n">callback</span><span class="p">,</span>
+<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">callback_data</span><span class="p">);</span>
+<a id="line-255" name="line-255"></a>
+<a id="line-256" name="line-256"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">include_internals</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="p">)</span>
+<a id="line-257" name="line-257"></a><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="w"> </span><span class="n">callback</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">callback_data</span><span class="p">);</span>
+<a id="line-258" name="line-258"></a><span class="p">}</span>
+<a id="line-259" name="line-259"></a>
+<a id="line-260" name="line-260"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-261" name="line-261"></a><span class="n">mate_image_menu_item_remove</span><span class="w"> </span><span class="p">(</span><span class="n">GtkContainer</span><span class="w"> </span><span class="o">*</span><span class="n">container</span><span class="p">,</span>
+<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">child</span><span class="p">)</span>
+<a id="line-263" name="line-263"></a><span class="p">{</span>
+<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">MateImageMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">image_menu_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_IMAGE_MENU_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">container</span><span class="p">);</span>
+<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">MateImageMenuItemPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">image_menu_item</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-266" name="line-266"></a>
+<a id="line-267" name="line-267"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="p">)</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">widget_was_visible</span><span class="p">;</span>
+<a id="line-270" name="line-270"></a>
+<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">widget_was_visible</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="p">);</span>
+<a id="line-272" name="line-272"></a>
+<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">gtk_widget_unparent</span><span class="w"> </span><span class="p">(</span><span class="n">child</span><span class="p">);</span>
+<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-275" name="line-275"></a>
+<a id="line-276" name="line-276"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">widget_was_visible</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-277" name="line-277"></a><span class="w"> </span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">container</span><span class="p">)))</span>
+<a id="line-278" name="line-278"></a><span class="w"> </span><span class="n">gtk_widget_queue_resize</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">container</span><span class="p">));</span>
+<a id="line-279" name="line-279"></a>
+<a id="line-280" name="line-280"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">image_menu_item</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;image&quot;</span><span class="p">);</span>
+<a id="line-281" name="line-281"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-282" name="line-282"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">GTK_CONTAINER_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">mate_image_menu_item_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">remove</span><span class="w"> </span><span class="p">(</span><span class="n">container</span><span class="p">,</span><span class="w"> </span><span class="n">child</span><span class="p">);</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-286" name="line-286"></a><span class="p">}</span>
+<a id="line-287" name="line-287"></a>
+<a id="line-288" name="line-288"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-289" name="line-289"></a><span class="n">mate_image_menu_item_toggle_size_request</span><span class="w"> </span><span class="p">(</span><span class="n">GtkMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item</span><span class="p">,</span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">requisition</span><span class="p">)</span>
+<a id="line-291" name="line-291"></a><span class="p">{</span>
+<a id="line-292" name="line-292"></a><span class="w"> </span><span class="n">MateImageMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">image_menu_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_IMAGE_MENU_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">menu_item</span><span class="p">);</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">MateImageMenuItemPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">image_menu_item</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">GtkPackDirection</span><span class="w"> </span><span class="n">pack_dir</span><span class="p">;</span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">parent</span><span class="p">;</span>
+<a id="line-296" name="line-296"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">menu_item</span><span class="p">);</span>
+<a id="line-297" name="line-297"></a>
+<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">parent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_parent</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-299" name="line-299"></a>
+<a id="line-300" name="line-300"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_MENU_BAR</span><span class="w"> </span><span class="p">(</span><span class="n">parent</span><span class="p">))</span>
+<a id="line-301" name="line-301"></a><span class="w"> </span><span class="n">pack_dir</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_bar_get_child_pack_direction</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU_BAR</span><span class="w"> </span><span class="p">(</span><span class="n">parent</span><span class="p">));</span>
+<a id="line-302" name="line-302"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-303" name="line-303"></a><span class="w"> </span><span class="n">pack_dir</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_PACK_DIRECTION_LTR</span><span class="p">;</span>
+<a id="line-304" name="line-304"></a>
+<a id="line-305" name="line-305"></a><span class="w"> </span><span class="o">*</span><span class="n">requisition</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-306" name="line-306"></a>
+<a id="line-307" name="line-307"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">gtk_widget_get_visible</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="p">))</span>
+<a id="line-308" name="line-308"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-309" name="line-309"></a><span class="w"> </span><span class="n">GtkRequisition</span><span class="w"> </span><span class="n">image_requisition</span><span class="p">;</span>
+<a id="line-310" name="line-310"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">toggle_spacing</span><span class="p">;</span>
+<a id="line-311" name="line-311"></a>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">gtk_widget_get_preferred_size</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">image_requisition</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-313" name="line-313"></a>
+<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">gtk_widget_style_get</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">menu_item</span><span class="p">),</span>
+<a id="line-315" name="line-315"></a><span class="w"> </span><span class="s">&quot;toggle-spacing&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">toggle_spacing</span><span class="p">,</span>
+<a id="line-316" name="line-316"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-317" name="line-317"></a>
+<a id="line-318" name="line-318"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">pack_dir</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_PACK_DIRECTION_LTR</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">pack_dir</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_PACK_DIRECTION_RTL</span><span class="p">)</span>
+<a id="line-319" name="line-319"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">image_requisition</span><span class="p">.</span><span class="n">width</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-321" name="line-321"></a><span class="w"> </span><span class="o">*</span><span class="n">requisition</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">image_requisition</span><span class="p">.</span><span class="n">width</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">toggle_spacing</span><span class="p">;</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-325" name="line-325"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">image_requisition</span><span class="p">.</span><span class="n">height</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-326" name="line-326"></a><span class="w"> </span><span class="o">*</span><span class="n">requisition</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">image_requisition</span><span class="p">.</span><span class="n">height</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">toggle_spacing</span><span class="p">;</span>
+<a id="line-327" name="line-327"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-328" name="line-328"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-329" name="line-329"></a><span class="p">}</span>
+<a id="line-330" name="line-330"></a>
+<a id="line-331" name="line-331"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-332" name="line-332"></a><span class="n">mate_image_menu_item_set_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span>
+<a id="line-333" name="line-333"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span>
+<a id="line-336" name="line-336"></a><span class="p">{</span>
+<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">MateImageMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">image_menu_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_IMAGE_MENU_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-338" name="line-338"></a>
+<a id="line-339" name="line-339"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span>
+<a id="line-340" name="line-340"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-341" name="line-341"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_IMAGE</span><span class="p">:</span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="n">mate_image_menu_item_set_image</span><span class="w"> </span><span class="p">(</span><span class="n">image_menu_item</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">g_value_get_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-344" name="line-344"></a>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-348" name="line-348"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-349" name="line-349"></a><span class="p">}</span>
+<a id="line-350" name="line-350"></a>
+<a id="line-351" name="line-351"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-352" name="line-352"></a><span class="n">mate_image_menu_item_get_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span>
+<a id="line-353" name="line-353"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span>
+<a id="line-356" name="line-356"></a><span class="p">{</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">MateImageMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">image_menu_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_IMAGE_MENU_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-358" name="line-358"></a>
+<a id="line-359" name="line-359"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_IMAGE</span><span class="p">:</span>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="n">g_value_set_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">mate_image_menu_item_get_image</span><span class="w"> </span><span class="p">(</span><span class="n">image_menu_item</span><span class="p">));</span>
+<a id="line-363" name="line-363"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-365" name="line-365"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span>
+<a id="line-366" name="line-366"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-367" name="line-367"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-368" name="line-368"></a><span class="p">}</span>
+<a id="line-369" name="line-369"></a>
+<a id="line-370" name="line-370"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-371" name="line-371"></a><span class="n">mate_image_menu_item_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">MateImageMenuItemClass</span><span class="w"> </span><span class="o">*</span><span class="n">class</span><span class="p">)</span>
+<a id="line-372" name="line-372"></a><span class="p">{</span>
+<a id="line-373" name="line-373"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">gobject_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GObjectClass</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">class</span><span class="p">;</span>
+<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">GtkWidgetClass</span><span class="w"> </span><span class="o">*</span><span class="n">widget_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidgetClass</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">class</span><span class="p">;</span>
+<a id="line-375" name="line-375"></a><span class="w"> </span><span class="n">GtkMenuItemClass</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GtkMenuItemClass</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">class</span><span class="p">;</span>
+<a id="line-376" name="line-376"></a><span class="w"> </span><span class="n">GtkContainerClass</span><span class="w"> </span><span class="o">*</span><span class="n">container_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GtkContainerClass</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">class</span><span class="p">;</span>
+<a id="line-377" name="line-377"></a>
+<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-&gt;</span><span class="n">destroy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_image_menu_item_destroy</span><span class="p">;</span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-&gt;</span><span class="n">get_preferred_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_image_menu_item_get_preferred_width</span><span class="p">;</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-&gt;</span><span class="n">get_preferred_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_image_menu_item_get_preferred_height</span><span class="p">;</span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-&gt;</span><span class="n">get_preferred_height_for_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_image_menu_item_get_preferred_height_for_width</span><span class="p">;</span>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-&gt;</span><span class="n">size_allocate</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_image_menu_item_size_allocate</span><span class="p">;</span>
+<a id="line-383" name="line-383"></a>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="n">container_class</span><span class="o">-&gt;</span><span class="n">add</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_image_menu_item_add</span><span class="p">;</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">container_class</span><span class="o">-&gt;</span><span class="n">forall</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_image_menu_item_forall</span><span class="p">;</span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">container_class</span><span class="o">-&gt;</span><span class="n">remove</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_image_menu_item_remove</span><span class="p">;</span>
+<a id="line-387" name="line-387"></a>
+<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">menu_item_class</span><span class="o">-&gt;</span><span class="n">toggle_size_request</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_image_menu_item_toggle_size_request</span><span class="p">;</span>
+<a id="line-389" name="line-389"></a>
+<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_image_menu_item_set_property</span><span class="p">;</span>
+<a id="line-391" name="line-391"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_image_menu_item_get_property</span><span class="p">;</span>
+<a id="line-392" name="line-392"></a>
+<a id="line-393" name="line-393"></a><span class="w"> </span><span class="cm">/**</span>
+<a id="line-394" name="line-394"></a><span class="cm"> * MateImageMenuItem:image:</span>
+<a id="line-395" name="line-395"></a><span class="cm"> *</span>
+<a id="line-396" name="line-396"></a><span class="cm"> * Child widget to appear next to the menu text.</span>
+<a id="line-397" name="line-397"></a><span class="cm"> *</span>
+<a id="line-398" name="line-398"></a><span class="cm"> */</span>
+<a id="line-399" name="line-399"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">,</span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">PROP_IMAGE</span><span class="p">,</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;image&quot;</span><span class="p">,</span>
+<a id="line-402" name="line-402"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Image widget&quot;</span><span class="p">),</span>
+<a id="line-403" name="line-403"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Child widget to appear next to the menu text&quot;</span><span class="p">),</span>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">GTK_TYPE_WIDGET</span><span class="p">,</span>
+<a id="line-405" name="line-405"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_DEPRECATED</span><span class="p">));</span>
+<a id="line-406" name="line-406"></a><span class="p">}</span>
+<a id="line-407" name="line-407"></a>
+<a id="line-408" name="line-408"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-409" name="line-409"></a><span class="n">mate_image_menu_item_init</span><span class="w"> </span><span class="p">(</span><span class="n">MateImageMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">image_menu_item</span><span class="p">)</span>
+<a id="line-410" name="line-410"></a><span class="p">{</span>
+<a id="line-411" name="line-411"></a><span class="w"> </span><span class="n">MateImageMenuItemPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-412" name="line-412"></a>
+<a id="line-413" name="line-413"></a><span class="w"> </span><span class="n">image_menu_item</span><span class="o">-&gt;</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_image_menu_item_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">image_menu_item</span><span class="p">);</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">image_menu_item</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-415" name="line-415"></a>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-417" name="line-417"></a><span class="p">}</span>
+<a id="line-418" name="line-418"></a>
+<a id="line-419" name="line-419"></a><span class="cm">/**</span>
+<a id="line-420" name="line-420"></a><span class="cm"> * mate_image_menu_item_new:</span>
+<a id="line-421" name="line-421"></a><span class="cm"> *</span>
+<a id="line-422" name="line-422"></a><span class="cm"> * Creates a new #MateImageMenuItem with an empty label.</span>
+<a id="line-423" name="line-423"></a><span class="cm"> *</span>
+<a id="line-424" name="line-424"></a><span class="cm"> * Returns: a new #MateImageMenuItem</span>
+<a id="line-425" name="line-425"></a><span class="cm"> *</span>
+<a id="line-426" name="line-426"></a><span class="cm"> */</span>
+<a id="line-427" name="line-427"></a><span class="n">GtkWidget</span><span class="o">*</span>
+<a id="line-428" name="line-428"></a><span class="n">mate_image_menu_item_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-429" name="line-429"></a><span class="p">{</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_TYPE_IMAGE_MENU_ITEM</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-431" name="line-431"></a><span class="p">}</span>
+<a id="line-432" name="line-432"></a>
+<a id="line-433" name="line-433"></a><span class="cm">/**</span>
+<a id="line-434" name="line-434"></a><span class="cm"> * mate_image_menu_item_new_with_label:</span>
+<a id="line-435" name="line-435"></a><span class="cm"> * @label: the text of the menu item.</span>
+<a id="line-436" name="line-436"></a><span class="cm"> *</span>
+<a id="line-437" name="line-437"></a><span class="cm"> * Creates a new #MateImageMenuItem containing a label.</span>
+<a id="line-438" name="line-438"></a><span class="cm"> *</span>
+<a id="line-439" name="line-439"></a><span class="cm"> * Returns: a new #MateImageMenuItem.</span>
+<a id="line-440" name="line-440"></a><span class="cm"> *</span>
+<a id="line-441" name="line-441"></a><span class="cm"> */</span>
+<a id="line-442" name="line-442"></a><span class="n">GtkWidget</span><span class="o">*</span>
+<a id="line-443" name="line-443"></a><span class="n">mate_image_menu_item_new_with_label</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">)</span>
+<a id="line-444" name="line-444"></a><span class="p">{</span>
+<a id="line-445" name="line-445"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_TYPE_IMAGE_MENU_ITEM</span><span class="p">,</span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="s">&quot;label&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">label</span><span class="p">,</span>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-448" name="line-448"></a><span class="p">}</span>
+<a id="line-449" name="line-449"></a>
+<a id="line-450" name="line-450"></a><span class="cm">/**</span>
+<a id="line-451" name="line-451"></a><span class="cm"> * mate_image_menu_item_new_with_mnemonic:</span>
+<a id="line-452" name="line-452"></a><span class="cm"> * @label: the text of the menu item, with an underscore in front of the</span>
+<a id="line-453" name="line-453"></a><span class="cm"> * mnemonic character</span>
+<a id="line-454" name="line-454"></a><span class="cm"> *</span>
+<a id="line-455" name="line-455"></a><span class="cm"> * Creates a new #MateImageMenuItem containing a label. The label</span>
+<a id="line-456" name="line-456"></a><span class="cm"> * will be created using gtk_label_new_with_mnemonic(), so underscores</span>
+<a id="line-457" name="line-457"></a><span class="cm"> * in @label indicate the mnemonic for the menu item.</span>
+<a id="line-458" name="line-458"></a><span class="cm"> *</span>
+<a id="line-459" name="line-459"></a><span class="cm"> * Returns: a new #MateImageMenuItem</span>
+<a id="line-460" name="line-460"></a><span class="cm"> *</span>
+<a id="line-461" name="line-461"></a><span class="cm"> */</span>
+<a id="line-462" name="line-462"></a><span class="n">GtkWidget</span><span class="o">*</span>
+<a id="line-463" name="line-463"></a><span class="n">mate_image_menu_item_new_with_mnemonic</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">)</span>
+<a id="line-464" name="line-464"></a><span class="p">{</span>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_TYPE_IMAGE_MENU_ITEM</span><span class="p">,</span>
+<a id="line-466" name="line-466"></a><span class="w"> </span><span class="s">&quot;use-underline&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span>
+<a id="line-467" name="line-467"></a><span class="w"> </span><span class="s">&quot;label&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">label</span><span class="p">,</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-469" name="line-469"></a><span class="p">}</span>
+<a id="line-470" name="line-470"></a>
+<a id="line-471" name="line-471"></a><span class="cm">/**</span>
+<a id="line-472" name="line-472"></a><span class="cm"> * mate_image_menu_item_set_image:</span>
+<a id="line-473" name="line-473"></a><span class="cm"> * @image_menu_item: a #MateImageMenuItem.</span>
+<a id="line-474" name="line-474"></a><span class="cm"> * @image: (allow-none): a widget to set as the image for the menu item.</span>
+<a id="line-475" name="line-475"></a><span class="cm"> *</span>
+<a id="line-476" name="line-476"></a><span class="cm"> * Sets the image of @image_menu_item to the given widget.</span>
+<a id="line-477" name="line-477"></a><span class="cm"> * Note that it depends on the show-menu-images setting whether</span>
+<a id="line-478" name="line-478"></a><span class="cm"> * the image will be displayed or not.</span>
+<a id="line-479" name="line-479"></a><span class="cm"> *</span>
+<a id="line-480" name="line-480"></a><span class="cm"> */</span>
+<a id="line-481" name="line-481"></a><span class="kt">void</span>
+<a id="line-482" name="line-482"></a><span class="n">mate_image_menu_item_set_image</span><span class="w"> </span><span class="p">(</span><span class="n">MateImageMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">image_menu_item</span><span class="p">,</span>
+<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">)</span>
+<a id="line-484" name="line-484"></a><span class="p">{</span>
+<a id="line-485" name="line-485"></a><span class="w"> </span><span class="n">MateImageMenuItemPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-486" name="line-486"></a>
+<a id="line-487" name="line-487"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_IMAGE_MENU_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">image_menu_item</span><span class="p">));</span>
+<a id="line-488" name="line-488"></a>
+<a id="line-489" name="line-489"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">image_menu_item</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-490" name="line-490"></a>
+<a id="line-491" name="line-491"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="p">)</span>
+<a id="line-492" name="line-492"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-493" name="line-493"></a>
+<a id="line-494" name="line-494"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="p">)</span>
+<a id="line-495" name="line-495"></a><span class="w"> </span><span class="n">gtk_container_remove</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">image_menu_item</span><span class="p">),</span>
+<a id="line-496" name="line-496"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="p">);</span>
+<a id="line-497" name="line-497"></a>
+<a id="line-498" name="line-498"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">image</span><span class="p">;</span>
+<a id="line-499" name="line-499"></a>
+<a id="line-500" name="line-500"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-501" name="line-501"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-502" name="line-502"></a>
+<a id="line-503" name="line-503"></a><span class="w"> </span><span class="n">gtk_widget_set_parent</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">image_menu_item</span><span class="p">));</span>
+<a id="line-504" name="line-504"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">,</span>
+<a id="line-505" name="line-505"></a><span class="w"> </span><span class="s">&quot;visible&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span>
+<a id="line-506" name="line-506"></a><span class="w"> </span><span class="s">&quot;no-show-all&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span>
+<a id="line-507" name="line-507"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-508" name="line-508"></a><span class="w"> </span><span class="n">gtk_image_set_pixel_size</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IMAGE</span><span class="w"> </span><span class="p">(</span><span class="n">image</span><span class="p">),</span><span class="w"> </span><span class="mi">16</span><span class="p">);</span>
+<a id="line-509" name="line-509"></a>
+<a id="line-510" name="line-510"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">image_menu_item</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;image&quot;</span><span class="p">);</span>
+<a id="line-511" name="line-511"></a><span class="p">}</span>
+<a id="line-512" name="line-512"></a>
+<a id="line-513" name="line-513"></a><span class="cm">/**</span>
+<a id="line-514" name="line-514"></a><span class="cm"> * mate_image_menu_item_get_image:</span>
+<a id="line-515" name="line-515"></a><span class="cm"> * @image_menu_item: a #MateImageMenuItem</span>
+<a id="line-516" name="line-516"></a><span class="cm"> *</span>
+<a id="line-517" name="line-517"></a><span class="cm"> * Gets the widget that is currently set as the image of @image_menu_item.</span>
+<a id="line-518" name="line-518"></a><span class="cm"> * See mate_image_menu_item_set_image().</span>
+<a id="line-519" name="line-519"></a><span class="cm"> *</span>
+<a id="line-520" name="line-520"></a><span class="cm"> * Returns: (transfer none): the widget set as image of @image_menu_item</span>
+<a id="line-521" name="line-521"></a><span class="cm"> *</span>
+<a id="line-522" name="line-522"></a><span class="cm"> **/</span>
+<a id="line-523" name="line-523"></a><span class="n">GtkWidget</span><span class="o">*</span>
+<a id="line-524" name="line-524"></a><span class="n">mate_image_menu_item_get_image</span><span class="w"> </span><span class="p">(</span><span class="n">MateImageMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">image_menu_item</span><span class="p">)</span>
+<a id="line-525" name="line-525"></a><span class="p">{</span>
+<a id="line-526" name="line-526"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_IMAGE_MENU_ITEM</span><span class="w"> </span><span class="p">(</span><span class="n">image_menu_item</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-527" name="line-527"></a>
+<a id="line-528" name="line-528"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">image_menu_item</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">image</span><span class="p">;</span>
+<a id="line-529" name="line-529"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/2.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/2.html
new file mode 100644
index 0000000..ac23f4d
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/2.html
@@ -0,0 +1,1769 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/mate-bg-crossfade.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-bg-crossfade.c</p>
+<a href="2.html#line-22"> missingIncludeSystem 22</a><a href="2.html#line-23"> missingIncludeSystem 23</a><a href="2.html#line-24"> missingIncludeSystem 24</a><a href="2.html#line-26"> missingIncludeSystem 26</a><a href="2.html#line-28"> missingIncludeSystem 28</a><a href="2.html#line-29"> missingIncludeSystem 29</a><a href="2.html#line-30"> missingIncludeSystem 30</a><a href="2.html#line-31"> missingIncludeSystem 31</a><a href="2.html#line-32"> missingIncludeSystem 32</a><a href="2.html#line-34"> missingIncludeSystem 34</a><a href="2.html#line-35"> missingIncludeSystem 35</a><a href="2.html#line-38"> missingIncludeSystem 38</a><a href="2.html#line-69"> unknownMacro 69</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal"> 10</span>
+<span class="normal"> 11</span>
+<span class="normal"> 12</span>
+<span class="normal"> 13</span>
+<span class="normal"> 14</span>
+<span class="normal"> 15</span>
+<span class="normal"> 16</span>
+<span class="normal"> 17</span>
+<span class="normal"> 18</span>
+<span class="normal"> 19</span>
+<span class="normal"> 20</span>
+<span class="normal"> 21</span>
+<span class="normal"> 22</span>
+<span class="normal"> 23</span>
+<span class="normal"> 24</span>
+<span class="normal"> 25</span>
+<span class="normal"> 26</span>
+<span class="normal"> 27</span>
+<span class="normal"> 28</span>
+<span class="normal"> 29</span>
+<span class="normal"> 30</span>
+<span class="normal"> 31</span>
+<span class="normal"> 32</span>
+<span class="normal"> 33</span>
+<span class="normal"> 34</span>
+<span class="normal"> 35</span>
+<span class="normal"> 36</span>
+<span class="normal"> 37</span>
+<span class="normal"> 38</span>
+<span class="normal"> 39</span>
+<span class="normal"> 40</span>
+<span class="normal"> 41</span>
+<span class="normal"> 42</span>
+<span class="normal"> 43</span>
+<span class="normal"> 44</span>
+<span class="normal"> 45</span>
+<span class="normal"> 46</span>
+<span class="normal"> 47</span>
+<span class="normal"> 48</span>
+<span class="normal"> 49</span>
+<span class="normal"> 50</span>
+<span class="normal"> 51</span>
+<span class="normal"> 52</span>
+<span class="normal"> 53</span>
+<span class="normal"> 54</span>
+<span class="normal"> 55</span>
+<span class="normal"> 56</span>
+<span class="normal"> 57</span>
+<span class="normal"> 58</span>
+<span class="normal"> 59</span>
+<span class="normal"> 60</span>
+<span class="normal"> 61</span>
+<span class="normal"> 62</span>
+<span class="normal"> 63</span>
+<span class="normal"> 64</span>
+<span class="normal"> 65</span>
+<span class="normal"> 66</span>
+<span class="normal"> 67</span>
+<span class="normal"> 68</span>
+<span class="normal"> 69</span>
+<span class="normal"> 70</span>
+<span class="normal"> 71</span>
+<span class="normal"> 72</span>
+<span class="normal"> 73</span>
+<span class="normal"> 74</span>
+<span class="normal"> 75</span>
+<span class="normal"> 76</span>
+<span class="normal"> 77</span>
+<span class="normal"> 78</span>
+<span class="normal"> 79</span>
+<span class="normal"> 80</span>
+<span class="normal"> 81</span>
+<span class="normal"> 82</span>
+<span class="normal"> 83</span>
+<span class="normal"> 84</span>
+<span class="normal"> 85</span>
+<span class="normal"> 86</span>
+<span class="normal"> 87</span>
+<span class="normal"> 88</span>
+<span class="normal"> 89</span>
+<span class="normal"> 90</span>
+<span class="normal"> 91</span>
+<span class="normal"> 92</span>
+<span class="normal"> 93</span>
+<span class="normal"> 94</span>
+<span class="normal"> 95</span>
+<span class="normal"> 96</span>
+<span class="normal"> 97</span>
+<span class="normal"> 98</span>
+<span class="normal"> 99</span>
+<span class="normal">100</span>
+<span class="normal">101</span>
+<span class="normal">102</span>
+<span class="normal">103</span>
+<span class="normal">104</span>
+<span class="normal">105</span>
+<span class="normal">106</span>
+<span class="normal">107</span>
+<span class="normal">108</span>
+<span class="normal">109</span>
+<span class="normal">110</span>
+<span class="normal">111</span>
+<span class="normal">112</span>
+<span class="normal">113</span>
+<span class="normal">114</span>
+<span class="normal">115</span>
+<span class="normal">116</span>
+<span class="normal">117</span>
+<span class="normal">118</span>
+<span class="normal">119</span>
+<span class="normal">120</span>
+<span class="normal">121</span>
+<span class="normal">122</span>
+<span class="normal">123</span>
+<span class="normal">124</span>
+<span class="normal">125</span>
+<span class="normal">126</span>
+<span class="normal">127</span>
+<span class="normal">128</span>
+<span class="normal">129</span>
+<span class="normal">130</span>
+<span class="normal">131</span>
+<span class="normal">132</span>
+<span class="normal">133</span>
+<span class="normal">134</span>
+<span class="normal">135</span>
+<span class="normal">136</span>
+<span class="normal">137</span>
+<span class="normal">138</span>
+<span class="normal">139</span>
+<span class="normal">140</span>
+<span class="normal">141</span>
+<span class="normal">142</span>
+<span class="normal">143</span>
+<span class="normal">144</span>
+<span class="normal">145</span>
+<span class="normal">146</span>
+<span class="normal">147</span>
+<span class="normal">148</span>
+<span class="normal">149</span>
+<span class="normal">150</span>
+<span class="normal">151</span>
+<span class="normal">152</span>
+<span class="normal">153</span>
+<span class="normal">154</span>
+<span class="normal">155</span>
+<span class="normal">156</span>
+<span class="normal">157</span>
+<span class="normal">158</span>
+<span class="normal">159</span>
+<span class="normal">160</span>
+<span class="normal">161</span>
+<span class="normal">162</span>
+<span class="normal">163</span>
+<span class="normal">164</span>
+<span class="normal">165</span>
+<span class="normal">166</span>
+<span class="normal">167</span>
+<span class="normal">168</span>
+<span class="normal">169</span>
+<span class="normal">170</span>
+<span class="normal">171</span>
+<span class="normal">172</span>
+<span class="normal">173</span>
+<span class="normal">174</span>
+<span class="normal">175</span>
+<span class="normal">176</span>
+<span class="normal">177</span>
+<span class="normal">178</span>
+<span class="normal">179</span>
+<span class="normal">180</span>
+<span class="normal">181</span>
+<span class="normal">182</span>
+<span class="normal">183</span>
+<span class="normal">184</span>
+<span class="normal">185</span>
+<span class="normal">186</span>
+<span class="normal">187</span>
+<span class="normal">188</span>
+<span class="normal">189</span>
+<span class="normal">190</span>
+<span class="normal">191</span>
+<span class="normal">192</span>
+<span class="normal">193</span>
+<span class="normal">194</span>
+<span class="normal">195</span>
+<span class="normal">196</span>
+<span class="normal">197</span>
+<span class="normal">198</span>
+<span class="normal">199</span>
+<span class="normal">200</span>
+<span class="normal">201</span>
+<span class="normal">202</span>
+<span class="normal">203</span>
+<span class="normal">204</span>
+<span class="normal">205</span>
+<span class="normal">206</span>
+<span class="normal">207</span>
+<span class="normal">208</span>
+<span class="normal">209</span>
+<span class="normal">210</span>
+<span class="normal">211</span>
+<span class="normal">212</span>
+<span class="normal">213</span>
+<span class="normal">214</span>
+<span class="normal">215</span>
+<span class="normal">216</span>
+<span class="normal">217</span>
+<span class="normal">218</span>
+<span class="normal">219</span>
+<span class="normal">220</span>
+<span class="normal">221</span>
+<span class="normal">222</span>
+<span class="normal">223</span>
+<span class="normal">224</span>
+<span class="normal">225</span>
+<span class="normal">226</span>
+<span class="normal">227</span>
+<span class="normal">228</span>
+<span class="normal">229</span>
+<span class="normal">230</span>
+<span class="normal">231</span>
+<span class="normal">232</span>
+<span class="normal">233</span>
+<span class="normal">234</span>
+<span class="normal">235</span>
+<span class="normal">236</span>
+<span class="normal">237</span>
+<span class="normal">238</span>
+<span class="normal">239</span>
+<span class="normal">240</span>
+<span class="normal">241</span>
+<span class="normal">242</span>
+<span class="normal">243</span>
+<span class="normal">244</span>
+<span class="normal">245</span>
+<span class="normal">246</span>
+<span class="normal">247</span>
+<span class="normal">248</span>
+<span class="normal">249</span>
+<span class="normal">250</span>
+<span class="normal">251</span>
+<span class="normal">252</span>
+<span class="normal">253</span>
+<span class="normal">254</span>
+<span class="normal">255</span>
+<span class="normal">256</span>
+<span class="normal">257</span>
+<span class="normal">258</span>
+<span class="normal">259</span>
+<span class="normal">260</span>
+<span class="normal">261</span>
+<span class="normal">262</span>
+<span class="normal">263</span>
+<span class="normal">264</span>
+<span class="normal">265</span>
+<span class="normal">266</span>
+<span class="normal">267</span>
+<span class="normal">268</span>
+<span class="normal">269</span>
+<span class="normal">270</span>
+<span class="normal">271</span>
+<span class="normal">272</span>
+<span class="normal">273</span>
+<span class="normal">274</span>
+<span class="normal">275</span>
+<span class="normal">276</span>
+<span class="normal">277</span>
+<span class="normal">278</span>
+<span class="normal">279</span>
+<span class="normal">280</span>
+<span class="normal">281</span>
+<span class="normal">282</span>
+<span class="normal">283</span>
+<span class="normal">284</span>
+<span class="normal">285</span>
+<span class="normal">286</span>
+<span class="normal">287</span>
+<span class="normal">288</span>
+<span class="normal">289</span>
+<span class="normal">290</span>
+<span class="normal">291</span>
+<span class="normal">292</span>
+<span class="normal">293</span>
+<span class="normal">294</span>
+<span class="normal">295</span>
+<span class="normal">296</span>
+<span class="normal">297</span>
+<span class="normal">298</span>
+<span class="normal">299</span>
+<span class="normal">300</span>
+<span class="normal">301</span>
+<span class="normal">302</span>
+<span class="normal">303</span>
+<span class="normal">304</span>
+<span class="normal">305</span>
+<span class="normal">306</span>
+<span class="normal">307</span>
+<span class="normal">308</span>
+<span class="normal">309</span>
+<span class="normal">310</span>
+<span class="normal">311</span>
+<span class="normal">312</span>
+<span class="normal">313</span>
+<span class="normal">314</span>
+<span class="normal">315</span>
+<span class="normal">316</span>
+<span class="normal">317</span>
+<span class="normal">318</span>
+<span class="normal">319</span>
+<span class="normal">320</span>
+<span class="normal">321</span>
+<span class="normal">322</span>
+<span class="normal">323</span>
+<span class="normal">324</span>
+<span class="normal">325</span>
+<span class="normal">326</span>
+<span class="normal">327</span>
+<span class="normal">328</span>
+<span class="normal">329</span>
+<span class="normal">330</span>
+<span class="normal">331</span>
+<span class="normal">332</span>
+<span class="normal">333</span>
+<span class="normal">334</span>
+<span class="normal">335</span>
+<span class="normal">336</span>
+<span class="normal">337</span>
+<span class="normal">338</span>
+<span class="normal">339</span>
+<span class="normal">340</span>
+<span class="normal">341</span>
+<span class="normal">342</span>
+<span class="normal">343</span>
+<span class="normal">344</span>
+<span class="normal">345</span>
+<span class="normal">346</span>
+<span class="normal">347</span>
+<span class="normal">348</span>
+<span class="normal">349</span>
+<span class="normal">350</span>
+<span class="normal">351</span>
+<span class="normal">352</span>
+<span class="normal">353</span>
+<span class="normal">354</span>
+<span class="normal">355</span>
+<span class="normal">356</span>
+<span class="normal">357</span>
+<span class="normal">358</span>
+<span class="normal">359</span>
+<span class="normal">360</span>
+<span class="normal">361</span>
+<span class="normal">362</span>
+<span class="normal">363</span>
+<span class="normal">364</span>
+<span class="normal">365</span>
+<span class="normal">366</span>
+<span class="normal">367</span>
+<span class="normal">368</span>
+<span class="normal">369</span>
+<span class="normal">370</span>
+<span class="normal">371</span>
+<span class="normal">372</span>
+<span class="normal">373</span>
+<span class="normal">374</span>
+<span class="normal">375</span>
+<span class="normal">376</span>
+<span class="normal">377</span>
+<span class="normal">378</span>
+<span class="normal">379</span>
+<span class="normal">380</span>
+<span class="normal">381</span>
+<span class="normal">382</span>
+<span class="normal">383</span>
+<span class="normal">384</span>
+<span class="normal">385</span>
+<span class="normal">386</span>
+<span class="normal">387</span>
+<span class="normal">388</span>
+<span class="normal">389</span>
+<span class="normal">390</span>
+<span class="normal">391</span>
+<span class="normal">392</span>
+<span class="normal">393</span>
+<span class="normal">394</span>
+<span class="normal">395</span>
+<span class="normal">396</span>
+<span class="normal">397</span>
+<span class="normal">398</span>
+<span class="normal">399</span>
+<span class="normal">400</span>
+<span class="normal">401</span>
+<span class="normal">402</span>
+<span class="normal">403</span>
+<span class="normal">404</span>
+<span class="normal">405</span>
+<span class="normal">406</span>
+<span class="normal">407</span>
+<span class="normal">408</span>
+<span class="normal">409</span>
+<span class="normal">410</span>
+<span class="normal">411</span>
+<span class="normal">412</span>
+<span class="normal">413</span>
+<span class="normal">414</span>
+<span class="normal">415</span>
+<span class="normal">416</span>
+<span class="normal">417</span>
+<span class="normal">418</span>
+<span class="normal">419</span>
+<span class="normal">420</span>
+<span class="normal">421</span>
+<span class="normal">422</span>
+<span class="normal">423</span>
+<span class="normal">424</span>
+<span class="normal">425</span>
+<span class="normal">426</span>
+<span class="normal">427</span>
+<span class="normal">428</span>
+<span class="normal">429</span>
+<span class="normal">430</span>
+<span class="normal">431</span>
+<span class="normal">432</span>
+<span class="normal">433</span>
+<span class="normal">434</span>
+<span class="normal">435</span>
+<span class="normal">436</span>
+<span class="normal">437</span>
+<span class="normal">438</span>
+<span class="normal">439</span>
+<span class="normal">440</span>
+<span class="normal">441</span>
+<span class="normal">442</span>
+<span class="normal">443</span>
+<span class="normal">444</span>
+<span class="normal">445</span>
+<span class="normal">446</span>
+<span class="normal">447</span>
+<span class="normal">448</span>
+<span class="normal">449</span>
+<span class="normal">450</span>
+<span class="normal">451</span>
+<span class="normal">452</span>
+<span class="normal">453</span>
+<span class="normal">454</span>
+<span class="normal">455</span>
+<span class="normal">456</span>
+<span class="normal">457</span>
+<span class="normal">458</span>
+<span class="normal">459</span>
+<span class="normal">460</span>
+<span class="normal">461</span>
+<span class="normal">462</span>
+<span class="normal">463</span>
+<span class="normal">464</span>
+<span class="normal">465</span>
+<span class="normal">466</span>
+<span class="normal">467</span>
+<span class="normal">468</span>
+<span class="normal">469</span>
+<span class="normal">470</span>
+<span class="normal">471</span>
+<span class="normal">472</span>
+<span class="normal">473</span>
+<span class="normal">474</span>
+<span class="normal">475</span>
+<span class="normal">476</span>
+<span class="normal">477</span>
+<span class="normal">478</span>
+<span class="normal">479</span>
+<span class="normal">480</span>
+<span class="normal">481</span>
+<span class="normal">482</span>
+<span class="normal">483</span>
+<span class="normal">484</span>
+<span class="normal">485</span>
+<span class="normal">486</span>
+<span class="normal">487</span>
+<span class="normal">488</span>
+<span class="normal">489</span>
+<span class="normal">490</span>
+<span class="normal">491</span>
+<span class="normal">492</span>
+<span class="normal">493</span>
+<span class="normal">494</span>
+<span class="normal">495</span>
+<span class="normal">496</span>
+<span class="normal">497</span>
+<span class="normal">498</span>
+<span class="normal">499</span>
+<span class="normal">500</span>
+<span class="normal">501</span>
+<span class="normal">502</span>
+<span class="normal">503</span>
+<span class="normal">504</span>
+<span class="normal">505</span>
+<span class="normal">506</span>
+<span class="normal">507</span>
+<span class="normal">508</span>
+<span class="normal">509</span>
+<span class="normal">510</span>
+<span class="normal">511</span>
+<span class="normal">512</span>
+<span class="normal">513</span>
+<span class="normal">514</span>
+<span class="normal">515</span>
+<span class="normal">516</span>
+<span class="normal">517</span>
+<span class="normal">518</span>
+<span class="normal">519</span>
+<span class="normal">520</span>
+<span class="normal">521</span>
+<span class="normal">522</span>
+<span class="normal">523</span>
+<span class="normal">524</span>
+<span class="normal">525</span>
+<span class="normal">526</span>
+<span class="normal">527</span>
+<span class="normal">528</span>
+<span class="normal">529</span>
+<span class="normal">530</span>
+<span class="normal">531</span>
+<span class="normal">532</span>
+<span class="normal">533</span>
+<span class="normal">534</span>
+<span class="normal">535</span>
+<span class="normal">536</span>
+<span class="normal">537</span>
+<span class="normal">538</span>
+<span class="normal">539</span>
+<span class="normal">540</span>
+<span class="normal">541</span>
+<span class="normal">542</span>
+<span class="normal">543</span>
+<span class="normal">544</span>
+<span class="normal">545</span>
+<span class="normal">546</span>
+<span class="normal">547</span>
+<span class="normal">548</span>
+<span class="normal">549</span>
+<span class="normal">550</span>
+<span class="normal">551</span>
+<span class="normal">552</span>
+<span class="normal">553</span>
+<span class="normal">554</span>
+<span class="normal">555</span>
+<span class="normal">556</span>
+<span class="normal">557</span>
+<span class="normal">558</span>
+<span class="normal">559</span>
+<span class="normal">560</span>
+<span class="normal">561</span>
+<span class="normal">562</span>
+<span class="normal">563</span>
+<span class="normal">564</span>
+<span class="normal">565</span>
+<span class="normal">566</span>
+<span class="normal">567</span>
+<span class="normal">568</span>
+<span class="normal">569</span>
+<span class="normal">570</span>
+<span class="normal">571</span>
+<span class="normal">572</span>
+<span class="normal">573</span>
+<span class="normal">574</span>
+<span class="normal">575</span>
+<span class="normal">576</span>
+<span class="normal">577</span>
+<span class="normal">578</span>
+<span class="normal">579</span>
+<span class="normal">580</span>
+<span class="normal">581</span>
+<span class="normal">582</span>
+<span class="normal">583</span>
+<span class="normal">584</span>
+<span class="normal">585</span>
+<span class="normal">586</span>
+<span class="normal">587</span>
+<span class="normal">588</span>
+<span class="normal">589</span>
+<span class="normal">590</span>
+<span class="normal">591</span>
+<span class="normal">592</span>
+<span class="normal">593</span>
+<span class="normal">594</span>
+<span class="normal">595</span>
+<span class="normal">596</span>
+<span class="normal">597</span>
+<span class="normal">598</span>
+<span class="normal">599</span>
+<span class="normal">600</span>
+<span class="normal">601</span>
+<span class="normal">602</span>
+<span class="normal">603</span>
+<span class="normal">604</span>
+<span class="normal">605</span>
+<span class="normal">606</span>
+<span class="normal">607</span>
+<span class="normal">608</span>
+<span class="normal">609</span>
+<span class="normal">610</span>
+<span class="normal">611</span>
+<span class="normal">612</span>
+<span class="normal">613</span>
+<span class="normal">614</span>
+<span class="normal">615</span>
+<span class="normal">616</span>
+<span class="normal">617</span>
+<span class="normal">618</span>
+<span class="normal">619</span>
+<span class="normal">620</span>
+<span class="normal">621</span>
+<span class="normal">622</span>
+<span class="normal">623</span>
+<span class="normal">624</span>
+<span class="normal">625</span>
+<span class="normal">626</span>
+<span class="normal">627</span>
+<span class="normal">628</span>
+<span class="normal">629</span>
+<span class="normal">630</span>
+<span class="normal">631</span>
+<span class="normal">632</span>
+<span class="normal">633</span>
+<span class="normal">634</span>
+<span class="normal">635</span>
+<span class="normal">636</span>
+<span class="normal">637</span>
+<span class="normal">638</span>
+<span class="normal">639</span>
+<span class="normal">640</span>
+<span class="normal">641</span>
+<span class="normal">642</span>
+<span class="normal">643</span>
+<span class="normal">644</span>
+<span class="normal">645</span>
+<span class="normal">646</span>
+<span class="normal">647</span>
+<span class="normal">648</span>
+<span class="normal">649</span>
+<span class="normal">650</span>
+<span class="normal">651</span>
+<span class="normal">652</span>
+<span class="normal">653</span>
+<span class="normal">654</span>
+<span class="normal">655</span>
+<span class="normal">656</span>
+<span class="normal">657</span>
+<span class="normal">658</span>
+<span class="normal">659</span>
+<span class="normal">660</span>
+<span class="normal">661</span>
+<span class="normal">662</span>
+<span class="normal">663</span>
+<span class="normal">664</span>
+<span class="normal">665</span>
+<span class="normal">666</span>
+<span class="normal">667</span>
+<span class="normal">668</span>
+<span class="normal">669</span>
+<span class="normal">670</span>
+<span class="normal">671</span>
+<span class="normal">672</span>
+<span class="normal">673</span>
+<span class="normal">674</span>
+<span class="normal">675</span>
+<span class="normal">676</span>
+<span class="normal">677</span>
+<span class="normal">678</span>
+<span class="normal">679</span>
+<span class="normal">680</span>
+<span class="normal">681</span>
+<span class="normal">682</span>
+<span class="normal">683</span>
+<span class="normal">684</span>
+<span class="normal">685</span>
+<span class="normal">686</span>
+<span class="normal">687</span>
+<span class="normal">688</span>
+<span class="normal">689</span>
+<span class="normal">690</span>
+<span class="normal">691</span>
+<span class="normal">692</span>
+<span class="normal">693</span>
+<span class="normal">694</span>
+<span class="normal">695</span>
+<span class="normal">696</span>
+<span class="normal">697</span>
+<span class="normal">698</span>
+<span class="normal">699</span>
+<span class="normal">700</span>
+<span class="normal">701</span>
+<span class="normal">702</span>
+<span class="normal">703</span>
+<span class="normal">704</span>
+<span class="normal">705</span>
+<span class="normal">706</span>
+<span class="normal">707</span>
+<span class="normal">708</span>
+<span class="normal">709</span>
+<span class="normal">710</span>
+<span class="normal">711</span>
+<span class="normal">712</span>
+<span class="normal">713</span>
+<span class="normal">714</span>
+<span class="normal">715</span>
+<span class="normal">716</span>
+<span class="normal">717</span>
+<span class="normal">718</span>
+<span class="normal">719</span>
+<span class="normal">720</span>
+<span class="normal">721</span>
+<span class="normal">722</span>
+<span class="normal">723</span>
+<span class="normal">724</span>
+<span class="normal">725</span>
+<span class="normal">726</span>
+<span class="normal">727</span>
+<span class="normal">728</span>
+<span class="normal">729</span>
+<span class="normal">730</span>
+<span class="normal">731</span>
+<span class="normal">732</span>
+<span class="normal">733</span>
+<span class="normal">734</span>
+<span class="normal">735</span>
+<span class="normal">736</span>
+<span class="normal">737</span>
+<span class="normal">738</span>
+<span class="normal">739</span>
+<span class="normal">740</span>
+<span class="normal">741</span>
+<span class="normal">742</span>
+<span class="normal">743</span>
+<span class="normal">744</span>
+<span class="normal">745</span>
+<span class="normal">746</span>
+<span class="normal">747</span>
+<span class="normal">748</span>
+<span class="normal">749</span>
+<span class="normal">750</span>
+<span class="normal">751</span>
+<span class="normal">752</span>
+<span class="normal">753</span>
+<span class="normal">754</span>
+<span class="normal">755</span>
+<span class="normal">756</span>
+<span class="normal">757</span>
+<span class="normal">758</span>
+<span class="normal">759</span>
+<span class="normal">760</span>
+<span class="normal">761</span>
+<span class="normal">762</span>
+<span class="normal">763</span>
+<span class="normal">764</span>
+<span class="normal">765</span>
+<span class="normal">766</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* mate-bg-crossfade.h - fade window background between two surfaces</span>
+<a id="line-2" name="line-2"></a><span class="cm"> *</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2008 Red Hat, Inc.</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This program is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Library General Public License</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * as published by the Free Software Foundation; either version 2 of</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This program is distributed in the hope that it will be useful, but</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Library General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Library General Public</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * License along with this program; if not, write to the Free Software</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * 02110-1301, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Author: Ray Strode &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm">*/</span>
+<a id="line-22" name="line-22"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-23" name="line-23"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;math.h&gt;</span><span class="error2">&lt;--- Include file: <math.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-24" name="line-24"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdarg.h&gt;</span><span class="error2">&lt;--- Include file: <stdarg.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gio/gio.h&gt;</span><span class="error2">&lt;--- Include file: <gio/gio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdk.h&gt;</span><span class="error2">&lt;--- Include file: <gdk/gdk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdkx.h&gt;</span><span class="error2">&lt;--- Include file: <gdk/gdkx.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;X11/Xlib.h&gt;</span><span class="error2">&lt;--- Include file: <X11/Xlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-31" name="line-31"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;X11/Xatom.h&gt;</span><span class="error2">&lt;--- Include file: <X11/Xatom.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-32" name="line-32"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-33" name="line-33"></a>
+<a id="line-34" name="line-34"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;cairo.h&gt;</span><span class="error2">&lt;--- Include file: <cairo.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-35" name="line-35"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;cairo-xlib.h&gt;</span><span class="error2">&lt;--- Include file: <cairo-xlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-36" name="line-36"></a>
+<a id="line-37" name="line-37"></a><span class="cp">#define MATE_DESKTOP_USE_UNSTABLE_API</span>
+<a id="line-38" name="line-38"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;mate-bg.h&gt;</span><span class="error2">&lt;--- Include file: <mate-bg.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-39" name="line-39"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;mate-bg-crossfade.h&quot;</span>
+<a id="line-40" name="line-40"></a>
+<a id="line-41" name="line-41"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_MateBGCrossfadePrivate</span>
+<a id="line-42" name="line-42"></a><span class="p">{</span>
+<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">GdkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span>
+<a id="line-44" name="line-44"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">;</span>
+<a id="line-45" name="line-45"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">;</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">height</span><span class="p">;</span>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span><span class="n">fading_surface</span><span class="p">;</span>
+<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span><span class="n">start_surface</span><span class="p">;</span>
+<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span><span class="n">end_surface</span><span class="p">;</span>
+<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">start_time</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">total_duration</span><span class="p">;</span>
+<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">timeout_id</span><span class="p">;</span>
+<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">is_first_frame</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-54" name="line-54"></a><span class="p">};</span>
+<a id="line-55" name="line-55"></a>
+<a id="line-56" name="line-56"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span>
+<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">PROP_0</span><span class="p">,</span>
+<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">PROP_WIDTH</span><span class="p">,</span>
+<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">PROP_HEIGHT</span><span class="p">,</span>
+<a id="line-60" name="line-60"></a><span class="p">};</span>
+<a id="line-61" name="line-61"></a>
+<a id="line-62" name="line-62"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span>
+<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">FINISHED</span><span class="p">,</span>
+<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">NUMBER_OF_SIGNALS</span>
+<a id="line-65" name="line-65"></a><span class="p">};</span>
+<a id="line-66" name="line-66"></a>
+<a id="line-67" name="line-67"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">NUMBER_OF_SIGNALS</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="p">};</span>
+<a id="line-68" name="line-68"></a>
+<a id="line-69" name="line-69"></a><span class="hll"><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">MateBGCrossfade</span><span class="p">,</span><span class="w"> </span><span class="n">mate_bg_crossfade</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">)</span><span class="error2">&lt;--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</span>
+</span><a id="line-70" name="line-70"></a>
+<a id="line-71" name="line-71"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-72" name="line-72"></a><span class="n">mate_bg_crossfade_set_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span>
+<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span>
+<a id="line-76" name="line-76"></a><span class="p">{</span>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">MateBGCrossfade</span><span class="w"> </span><span class="o">*</span><span class="n">fade</span><span class="p">;</span>
+<a id="line-78" name="line-78"></a>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_BG_CROSSFADE</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">));</span>
+<a id="line-80" name="line-80"></a>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">fade</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_BG_CROSSFADE</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-82" name="line-82"></a>
+<a id="line-83" name="line-83"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">property_id</span><span class="p">)</span>
+<a id="line-84" name="line-84"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_WIDTH</span><span class="p">:</span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_int</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_HEIGHT</span><span class="p">:</span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_int</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-94" name="line-94"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-95" name="line-95"></a><span class="p">}</span>
+<a id="line-96" name="line-96"></a>
+<a id="line-97" name="line-97"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-98" name="line-98"></a><span class="n">mate_bg_crossfade_get_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span>
+<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span>
+<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span>
+<a id="line-102" name="line-102"></a><span class="p">{</span>
+<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">MateBGCrossfade</span><span class="w"> </span><span class="o">*</span><span class="n">fade</span><span class="p">;</span>
+<a id="line-104" name="line-104"></a>
+<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_BG_CROSSFADE</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">));</span>
+<a id="line-106" name="line-106"></a>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">fade</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_BG_CROSSFADE</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-108" name="line-108"></a>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">property_id</span><span class="p">)</span>
+<a id="line-110" name="line-110"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_WIDTH</span><span class="p">:</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">g_value_set_int</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">width</span><span class="p">);</span>
+<a id="line-113" name="line-113"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-114" name="line-114"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_HEIGHT</span><span class="p">:</span>
+<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">g_value_set_int</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">height</span><span class="p">);</span>
+<a id="line-116" name="line-116"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-117" name="line-117"></a>
+<a id="line-118" name="line-118"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span>
+<a id="line-120" name="line-120"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-121" name="line-121"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-122" name="line-122"></a><span class="p">}</span>
+<a id="line-123" name="line-123"></a>
+<a id="line-124" name="line-124"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-125" name="line-125"></a><span class="n">mate_bg_crossfade_finalize</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span>
+<a id="line-126" name="line-126"></a><span class="p">{</span>
+<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">MateBGCrossfade</span><span class="w"> </span><span class="o">*</span><span class="n">fade</span><span class="p">;</span>
+<a id="line-128" name="line-128"></a>
+<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">fade</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_BG_CROSSFADE</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-130" name="line-130"></a>
+<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">mate_bg_crossfade_stop</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="p">);</span>
+<a id="line-132" name="line-132"></a>
+<a id="line-133" name="line-133"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fading_surface</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">cairo_surface_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fading_surface</span><span class="p">);</span>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fading_surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-136" name="line-136"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-137" name="line-137"></a>
+<a id="line-138" name="line-138"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">start_surface</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">cairo_surface_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">start_surface</span><span class="p">);</span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">start_surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-142" name="line-142"></a>
+<a id="line-143" name="line-143"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">end_surface</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">cairo_surface_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">end_surface</span><span class="p">);</span>
+<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">end_surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-146" name="line-146"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-147" name="line-147"></a><span class="p">}</span>
+<a id="line-148" name="line-148"></a>
+<a id="line-149" name="line-149"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-150" name="line-150"></a><span class="n">mate_bg_crossfade_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">MateBGCrossfadeClass</span><span class="w"> </span><span class="o">*</span><span class="n">fade_class</span><span class="p">)</span>
+<a id="line-151" name="line-151"></a><span class="p">{</span>
+<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">gobject_class</span><span class="p">;</span>
+<a id="line-153" name="line-153"></a>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">gobject_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">fade_class</span><span class="p">);</span>
+<a id="line-155" name="line-155"></a>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_bg_crossfade_get_property</span><span class="p">;</span>
+<a id="line-157" name="line-157"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_bg_crossfade_set_property</span><span class="p">;</span>
+<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_bg_crossfade_finalize</span><span class="p">;</span>
+<a id="line-159" name="line-159"></a>
+<a id="line-160" name="line-160"></a><span class="w"> </span><span class="cm">/**</span>
+<a id="line-161" name="line-161"></a><span class="cm"> * MateBGCrossfade:width:</span>
+<a id="line-162" name="line-162"></a><span class="cm"> *</span>
+<a id="line-163" name="line-163"></a><span class="cm"> * When a crossfade is running, this is width of the fading</span>
+<a id="line-164" name="line-164"></a><span class="cm"> * surface.</span>
+<a id="line-165" name="line-165"></a><span class="cm"> */</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">PROP_WIDTH</span><span class="p">,</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">g_param_spec_int</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;width&quot;</span><span class="p">,</span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="s">&quot;Window Width&quot;</span><span class="p">,</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="s">&quot;Width of window to fade&quot;</span><span class="p">,</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">G_MAXINT</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
+<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span>
+<a id="line-173" name="line-173"></a>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="cm">/**</span>
+<a id="line-175" name="line-175"></a><span class="cm"> * MateBGCrossfade:height:</span>
+<a id="line-176" name="line-176"></a><span class="cm"> *</span>
+<a id="line-177" name="line-177"></a><span class="cm"> * When a crossfade is running, this is height of the fading</span>
+<a id="line-178" name="line-178"></a><span class="cm"> * surface.</span>
+<a id="line-179" name="line-179"></a><span class="cm"> */</span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">,</span>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">PROP_HEIGHT</span><span class="p">,</span>
+<a id="line-182" name="line-182"></a><span class="w"> </span><span class="n">g_param_spec_int</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;height&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Window Height&quot;</span><span class="p">,</span>
+<a id="line-183" name="line-183"></a><span class="w"> </span><span class="s">&quot;Height of window to fade on&quot;</span><span class="p">,</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">G_MAXINT</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
+<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span>
+<a id="line-186" name="line-186"></a>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="cm">/**</span>
+<a id="line-188" name="line-188"></a><span class="cm"> * MateBGCrossfade::finished:</span>
+<a id="line-189" name="line-189"></a><span class="cm"> * @fade: the #MateBGCrossfade that received the signal</span>
+<a id="line-190" name="line-190"></a><span class="cm"> * @window: the #GdkWindow the crossfade happend on.</span>
+<a id="line-191" name="line-191"></a><span class="cm"> *</span>
+<a id="line-192" name="line-192"></a><span class="cm"> * When a crossfade finishes, @window will have a copy</span>
+<a id="line-193" name="line-193"></a><span class="cm"> * of the end surface as its background, and this signal will</span>
+<a id="line-194" name="line-194"></a><span class="cm"> * get emitted.</span>
+<a id="line-195" name="line-195"></a><span class="cm"> */</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">FINISHED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;finished&quot;</span><span class="p">,</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">),</span>
+<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="n">g_cclosure_marshal_VOID__OBJECT</span><span class="p">,</span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">);</span>
+<a id="line-201" name="line-201"></a><span class="p">}</span>
+<a id="line-202" name="line-202"></a>
+<a id="line-203" name="line-203"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-204" name="line-204"></a><span class="n">mate_bg_crossfade_init</span><span class="w"> </span><span class="p">(</span><span class="n">MateBGCrossfade</span><span class="w"> </span><span class="o">*</span><span class="n">fade</span><span class="p">)</span>
+<a id="line-205" name="line-205"></a><span class="p">{</span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_bg_crossfade_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="p">);</span>
+<a id="line-207" name="line-207"></a>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fading_surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">start_surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">end_surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">timeout_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-214" name="line-214"></a><span class="p">}</span>
+<a id="line-215" name="line-215"></a>
+<a id="line-216" name="line-216"></a><span class="cm">/**</span>
+<a id="line-217" name="line-217"></a><span class="cm"> * mate_bg_crossfade_new:</span>
+<a id="line-218" name="line-218"></a><span class="cm"> * @width: The width of the crossfading window</span>
+<a id="line-219" name="line-219"></a><span class="cm"> * @height: The height of the crossfading window</span>
+<a id="line-220" name="line-220"></a><span class="cm"> *</span>
+<a id="line-221" name="line-221"></a><span class="cm"> * Creates a new object to manage crossfading a</span>
+<a id="line-222" name="line-222"></a><span class="cm"> * window background between two #cairo_surface_ts.</span>
+<a id="line-223" name="line-223"></a><span class="cm"> *</span>
+<a id="line-224" name="line-224"></a><span class="cm"> * Return value: the new #MateBGCrossfade</span>
+<a id="line-225" name="line-225"></a><span class="cm"> **/</span>
+<a id="line-226" name="line-226"></a><span class="n">MateBGCrossfade</span><span class="o">*</span><span class="w"> </span><span class="n">mate_bg_crossfade_new</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">height</span><span class="p">)</span>
+<a id="line-227" name="line-227"></a><span class="p">{</span>
+<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">GObject</span><span class="o">*</span><span class="w"> </span><span class="n">object</span><span class="p">;</span>
+<a id="line-229" name="line-229"></a>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">object</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_new</span><span class="p">(</span><span class="n">MATE_TYPE_BG_CROSSFADE</span><span class="p">,</span>
+<a id="line-231" name="line-231"></a><span class="w"> </span><span class="s">&quot;width&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">,</span>
+<a id="line-232" name="line-232"></a><span class="w"> </span><span class="s">&quot;height&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">,</span>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-234" name="line-234"></a>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">MateBGCrossfade</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">object</span><span class="p">;</span>
+<a id="line-236" name="line-236"></a><span class="p">}</span>
+<a id="line-237" name="line-237"></a>
+<a id="line-238" name="line-238"></a><span class="k">static</span><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span>
+<a id="line-239" name="line-239"></a><span class="n">tile_surface</span><span class="w"> </span><span class="p">(</span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span><span class="n">surface</span><span class="p">,</span>
+<a id="line-240" name="line-240"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">,</span>
+<a id="line-241" name="line-241"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">height</span><span class="p">)</span>
+<a id="line-242" name="line-242"></a><span class="p">{</span>
+<a id="line-243" name="line-243"></a><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span><span class="n">copy</span><span class="p">;</span>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">cr</span><span class="p">;</span>
+<a id="line-245" name="line-245"></a>
+<a id="line-246" name="line-246"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">surface</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-247" name="line-247"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-248" name="line-248"></a><span class="w"> </span><span class="n">copy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_window_create_similar_surface</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_get_default_root_window</span><span class="w"> </span><span class="p">(),</span>
+<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">CAIRO_CONTENT_COLOR</span><span class="p">,</span>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">);</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-252" name="line-252"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-253" name="line-253"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">copy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cairo_surface_create_similar</span><span class="w"> </span><span class="p">(</span><span class="n">surface</span><span class="p">,</span>
+<a id="line-255" name="line-255"></a><span class="w"> </span><span class="n">cairo_surface_get_content</span><span class="w"> </span><span class="p">(</span><span class="n">surface</span><span class="p">),</span>
+<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">);</span>
+<a id="line-257" name="line-257"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-258" name="line-258"></a>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">cr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cairo_create</span><span class="w"> </span><span class="p">(</span><span class="n">copy</span><span class="p">);</span>
+<a id="line-260" name="line-260"></a>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">surface</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-262" name="line-262"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-263" name="line-263"></a><span class="w"> </span><span class="n">cairo_pattern_t</span><span class="w"> </span><span class="o">*</span><span class="n">pattern</span><span class="p">;</span>
+<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">cairo_set_source_surface</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">surface</span><span class="p">,</span><span class="w"> </span><span class="mf">0.0</span><span class="p">,</span><span class="w"> </span><span class="mf">0.0</span><span class="p">);</span>
+<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">pattern</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cairo_get_source</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">cairo_pattern_set_extend</span><span class="w"> </span><span class="p">(</span><span class="n">pattern</span><span class="p">,</span><span class="w"> </span><span class="n">CAIRO_EXTEND_REPEAT</span><span class="p">);</span>
+<a id="line-267" name="line-267"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-269" name="line-269"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-270" name="line-270"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">GtkCssProvider</span><span class="w"> </span><span class="o">*</span><span class="n">provider</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">GtkStyleContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">;</span>
+<a id="line-272" name="line-272"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="n">bg</span><span class="p">;</span>
+<a id="line-273" name="line-273"></a>
+<a id="line-274" name="line-274"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">provider</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-275" name="line-275"></a><span class="w"> </span><span class="n">provider</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_css_provider_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-276" name="line-276"></a>
+<a id="line-277" name="line-277"></a><span class="w"> </span><span class="n">context</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_style_context_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-278" name="line-278"></a><span class="w"> </span><span class="n">gtk_style_context_add_provider</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">,</span>
+<a id="line-279" name="line-279"></a><span class="w"> </span><span class="n">GTK_STYLE_PROVIDER</span><span class="w"> </span><span class="p">(</span><span class="n">provider</span><span class="p">),</span>
+<a id="line-280" name="line-280"></a><span class="w"> </span><span class="n">GTK_STYLE_PROVIDER_PRIORITY_THEME</span><span class="p">);</span>
+<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">gtk_style_context_get</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_STATE_FLAG_NORMAL</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;background-color&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-282" name="line-282"></a><span class="w"> </span><span class="n">gdk_cairo_set_source_rgba</span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">bg</span><span class="p">);</span>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">));</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-285" name="line-285"></a>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">cairo_paint</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-287" name="line-287"></a>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">cairo_status</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">CAIRO_STATUS_SUCCESS</span><span class="p">)</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="n">cairo_surface_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">copy</span><span class="p">);</span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="n">copy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-292" name="line-292"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-293" name="line-293"></a>
+<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">cairo_destroy</span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-295" name="line-295"></a>
+<a id="line-296" name="line-296"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">copy</span><span class="p">;</span>
+<a id="line-297" name="line-297"></a><span class="p">}</span>
+<a id="line-298" name="line-298"></a>
+<a id="line-299" name="line-299"></a><span class="cm">/**</span>
+<a id="line-300" name="line-300"></a><span class="cm"> * mate_bg_crossfade_set_start_surface:</span>
+<a id="line-301" name="line-301"></a><span class="cm"> * @fade: a #MateBGCrossfade</span>
+<a id="line-302" name="line-302"></a><span class="cm"> * @surface: The cairo surface to fade from</span>
+<a id="line-303" name="line-303"></a><span class="cm"> *</span>
+<a id="line-304" name="line-304"></a><span class="cm"> * Before initiating a crossfade with mate_bg_crossfade_start()</span>
+<a id="line-305" name="line-305"></a><span class="cm"> * a start and end surface have to be set. This function sets</span>
+<a id="line-306" name="line-306"></a><span class="cm"> * the surface shown at the beginning of the crossfade effect.</span>
+<a id="line-307" name="line-307"></a><span class="cm"> *</span>
+<a id="line-308" name="line-308"></a><span class="cm"> * Return value: %TRUE if successful, or %FALSE if the surface</span>
+<a id="line-309" name="line-309"></a><span class="cm"> * could not be copied.</span>
+<a id="line-310" name="line-310"></a><span class="cm"> **/</span>
+<a id="line-311" name="line-311"></a><span class="n">gboolean</span>
+<a id="line-312" name="line-312"></a><span class="n">mate_bg_crossfade_set_start_surface</span><span class="w"> </span><span class="p">(</span><span class="n">MateBGCrossfade</span><span class="o">*</span><span class="w"> </span><span class="n">fade</span><span class="p">,</span><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span><span class="n">surface</span><span class="p">)</span>
+<a id="line-313" name="line-313"></a><span class="p">{</span>
+<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_BG_CROSSFADE</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-315" name="line-315"></a>
+<a id="line-316" name="line-316"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">start_surface</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">cairo_surface_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">start_surface</span><span class="p">);</span>
+<a id="line-319" name="line-319"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">start_surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-321" name="line-321"></a>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">start_surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tile_surface</span><span class="w"> </span><span class="p">(</span><span class="n">surface</span><span class="p">,</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">width</span><span class="p">,</span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">height</span><span class="p">);</span>
+<a id="line-325" name="line-325"></a>
+<a id="line-326" name="line-326"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">start_surface</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-327" name="line-327"></a><span class="p">}</span>
+<a id="line-328" name="line-328"></a>
+<a id="line-329" name="line-329"></a><span class="cp">#if GLIB_CHECK_VERSION(2,61,2)</span>
+<a id="line-330" name="line-330"></a><span class="k">static</span><span class="w"> </span><span class="n">gdouble</span>
+<a id="line-331" name="line-331"></a><span class="n">get_current_time</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-332" name="line-332"></a><span class="p">{</span>
+<a id="line-333" name="line-333"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">microseconds_per_second</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="n">G_USEC_PER_SEC</span><span class="p">;</span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="n">gint64</span><span class="w"> </span><span class="n">tv</span><span class="p">;</span>
+<a id="line-335" name="line-335"></a>
+<a id="line-336" name="line-336"></a><span class="w"> </span><span class="n">tv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_get_real_time</span><span class="w"> </span><span class="p">();</span>
+<a id="line-337" name="line-337"></a>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">tv</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">microseconds_per_second</span><span class="p">);</span>
+<a id="line-339" name="line-339"></a><span class="p">}</span>
+<a id="line-340" name="line-340"></a><span class="cp">#else</span>
+<a id="line-341" name="line-341"></a><span class="k">static</span><span class="w"> </span><span class="n">gdouble</span>
+<a id="line-342" name="line-342"></a><span class="n">get_current_time</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-343" name="line-343"></a><span class="p">{</span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">microseconds_per_second</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="n">G_USEC_PER_SEC</span><span class="p">;</span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">timestamp</span><span class="p">;</span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">GTimeVal</span><span class="w"> </span><span class="n">now</span><span class="p">;</span>
+<a id="line-347" name="line-347"></a>
+<a id="line-348" name="line-348"></a><span class="w"> </span><span class="n">g_get_current_time</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">now</span><span class="p">);</span>
+<a id="line-349" name="line-349"></a>
+<a id="line-350" name="line-350"></a><span class="w"> </span><span class="n">timestamp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">((</span><span class="n">microseconds_per_second</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">now</span><span class="p">.</span><span class="n">tv_sec</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">now</span><span class="p">.</span><span class="n">tv_usec</span><span class="p">)</span><span class="w"> </span><span class="o">/</span>
+<a id="line-351" name="line-351"></a><span class="w"> </span><span class="n">microseconds_per_second</span><span class="p">;</span>
+<a id="line-352" name="line-352"></a>
+<a id="line-353" name="line-353"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">timestamp</span><span class="p">;</span>
+<a id="line-354" name="line-354"></a><span class="p">}</span>
+<a id="line-355" name="line-355"></a><span class="cp">#endif</span>
+<a id="line-356" name="line-356"></a>
+<a id="line-357" name="line-357"></a><span class="cm">/**</span>
+<a id="line-358" name="line-358"></a><span class="cm"> * mate_bg_crossfade_set_end_surface:</span>
+<a id="line-359" name="line-359"></a><span class="cm"> * @fade: a #MateBGCrossfade</span>
+<a id="line-360" name="line-360"></a><span class="cm"> * @surface: The cairo surface to fade to</span>
+<a id="line-361" name="line-361"></a><span class="cm"> *</span>
+<a id="line-362" name="line-362"></a><span class="cm"> * Before initiating a crossfade with mate_bg_crossfade_start()</span>
+<a id="line-363" name="line-363"></a><span class="cm"> * a start and end surface have to be set. This function sets</span>
+<a id="line-364" name="line-364"></a><span class="cm"> * the surface shown at the end of the crossfade effect.</span>
+<a id="line-365" name="line-365"></a><span class="cm"> *</span>
+<a id="line-366" name="line-366"></a><span class="cm"> * Return value: %TRUE if successful, or %FALSE if the surface</span>
+<a id="line-367" name="line-367"></a><span class="cm"> * could not be copied.</span>
+<a id="line-368" name="line-368"></a><span class="cm"> **/</span>
+<a id="line-369" name="line-369"></a><span class="n">gboolean</span>
+<a id="line-370" name="line-370"></a><span class="n">mate_bg_crossfade_set_end_surface</span><span class="w"> </span><span class="p">(</span><span class="n">MateBGCrossfade</span><span class="o">*</span><span class="w"> </span><span class="n">fade</span><span class="p">,</span><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span><span class="n">surface</span><span class="p">)</span>
+<a id="line-371" name="line-371"></a><span class="p">{</span>
+<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_BG_CROSSFADE</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-373" name="line-373"></a>
+<a id="line-374" name="line-374"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">end_surface</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-375" name="line-375"></a><span class="w"> </span><span class="n">cairo_surface_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">end_surface</span><span class="p">);</span>
+<a id="line-376" name="line-376"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">end_surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-377" name="line-377"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-378" name="line-378"></a>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">end_surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tile_surface</span><span class="w"> </span><span class="p">(</span><span class="n">surface</span><span class="p">,</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">width</span><span class="p">,</span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">height</span><span class="p">);</span>
+<a id="line-382" name="line-382"></a>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="cm">/* Reset timer in case we&#39;re called while animating</span>
+<a id="line-384" name="line-384"></a><span class="cm"> */</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">start_time</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_current_time</span><span class="w"> </span><span class="p">();</span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">end_surface</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-387" name="line-387"></a><span class="p">}</span>
+<a id="line-388" name="line-388"></a>
+<a id="line-389" name="line-389"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-390" name="line-390"></a><span class="n">animations_are_disabled</span><span class="w"> </span><span class="p">(</span><span class="n">MateBGCrossfade</span><span class="w"> </span><span class="o">*</span><span class="n">fade</span><span class="p">)</span>
+<a id="line-391" name="line-391"></a><span class="p">{</span>
+<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">GtkSettings</span><span class="w"> </span><span class="o">*</span><span class="n">settings</span><span class="p">;</span>
+<a id="line-393" name="line-393"></a><span class="w"> </span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">;</span>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">are_enabled</span><span class="p">;</span>
+<a id="line-395" name="line-395"></a>
+<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">window</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-397" name="line-397"></a>
+<a id="line-398" name="line-398"></a><span class="w"> </span><span class="n">screen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_window_get_screen</span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">window</span><span class="p">);</span>
+<a id="line-399" name="line-399"></a>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">settings</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_settings_get_for_screen</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">);</span>
+<a id="line-401" name="line-401"></a>
+<a id="line-402" name="line-402"></a><span class="w"> </span><span class="n">g_object_get</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;gtk-enable-animations&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">are_enabled</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-403" name="line-403"></a>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="o">!</span><span class="n">are_enabled</span><span class="p">;</span>
+<a id="line-405" name="line-405"></a><span class="p">}</span>
+<a id="line-406" name="line-406"></a>
+<a id="line-407" name="line-407"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-408" name="line-408"></a><span class="n">send_root_property_change_notification</span><span class="w"> </span><span class="p">(</span><span class="n">MateBGCrossfade</span><span class="w"> </span><span class="o">*</span><span class="n">fade</span><span class="p">)</span>
+<a id="line-409" name="line-409"></a><span class="p">{</span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="n">zero_length_pixmap</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-411" name="line-411"></a>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="cm">/* We do a zero length append to force a change notification,</span>
+<a id="line-413" name="line-413"></a><span class="cm"> * without changing the value */</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">XChangeProperty</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_WINDOW_XDISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">window</span><span class="p">),</span>
+<a id="line-415" name="line-415"></a><span class="w"> </span><span class="n">GDK_WINDOW_XID</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">window</span><span class="p">),</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">gdk_x11_get_xatom_by_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;_XROOTPMAP_ID&quot;</span><span class="p">),</span>
+<a id="line-417" name="line-417"></a><span class="w"> </span><span class="n">XA_PIXMAP</span><span class="p">,</span><span class="w"> </span><span class="mi">32</span><span class="p">,</span><span class="w"> </span><span class="n">PropModeAppend</span><span class="p">,</span>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="p">(</span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;</span><span class="n">zero_length_pixmap</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-419" name="line-419"></a><span class="p">}</span>
+<a id="line-420" name="line-420"></a>
+<a id="line-421" name="line-421"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-422" name="line-422"></a><span class="n">draw_background</span><span class="w"> </span><span class="p">(</span><span class="n">MateBGCrossfade</span><span class="w"> </span><span class="o">*</span><span class="n">fade</span><span class="p">)</span>
+<a id="line-423" name="line-423"></a><span class="p">{</span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">widget</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-425" name="line-425"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-426" name="line-426"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_window_get_window_type</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">window</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">GDK_WINDOW_ROOT</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">cr</span><span class="p">;</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">cairo_region_t</span><span class="w"> </span><span class="o">*</span><span class="n">region</span><span class="p">;</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">GdkDrawingContext</span><span class="w"> </span><span class="o">*</span><span class="n">draw_context</span><span class="p">;</span>
+<a id="line-430" name="line-430"></a>
+<a id="line-431" name="line-431"></a><span class="w"> </span><span class="n">region</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_window_get_visible_region</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">window</span><span class="p">);</span>
+<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">draw_context</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_window_begin_draw_frame</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">window</span><span class="p">,</span>
+<a id="line-433" name="line-433"></a><span class="w"> </span><span class="n">region</span><span class="p">);</span>
+<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">cr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_drawing_context_get_cairo_context</span><span class="w"> </span><span class="p">(</span><span class="n">draw_context</span><span class="p">);</span>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">cairo_set_operator</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">CAIRO_OPERATOR_OVER</span><span class="p">);</span>
+<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">cairo_set_source_surface</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fading_surface</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-437" name="line-437"></a><span class="w"> </span><span class="n">cairo_paint</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-438" name="line-438"></a><span class="w"> </span><span class="n">gdk_window_end_draw_frame</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">draw_context</span><span class="p">);</span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">cairo_region_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">region</span><span class="p">);</span>
+<a id="line-440" name="line-440"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-441" name="line-441"></a><span class="w"> </span><span class="n">Display</span><span class="w"> </span><span class="o">*</span><span class="n">xdisplay</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_WINDOW_XDISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">window</span><span class="p">);</span>
+<a id="line-442" name="line-442"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">;</span>
+<a id="line-443" name="line-443"></a><span class="w"> </span><span class="n">display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_display_get_default</span><span class="w"> </span><span class="p">();</span>
+<a id="line-444" name="line-444"></a><span class="w"> </span><span class="n">gdk_x11_display_error_trap_push</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-445" name="line-445"></a><span class="w"> </span><span class="n">XGrabServer</span><span class="w"> </span><span class="p">(</span><span class="n">xdisplay</span><span class="p">);</span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">XClearWindow</span><span class="w"> </span><span class="p">(</span><span class="n">xdisplay</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_WINDOW_XID</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">window</span><span class="p">));</span>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">send_root_property_change_notification</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="p">);</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="n">XFlush</span><span class="w"> </span><span class="p">(</span><span class="n">xdisplay</span><span class="p">);</span>
+<a id="line-449" name="line-449"></a><span class="w"> </span><span class="n">XUngrabServer</span><span class="w"> </span><span class="p">(</span><span class="n">xdisplay</span><span class="p">);</span>
+<a id="line-450" name="line-450"></a><span class="w"> </span><span class="n">gdk_x11_display_error_trap_pop_ignored</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-451" name="line-451"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-452" name="line-452"></a><span class="p">}</span>
+<a id="line-453" name="line-453"></a>
+<a id="line-454" name="line-454"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-455" name="line-455"></a><span class="n">on_widget_draw</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-456" name="line-456"></a><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">cr</span><span class="p">,</span>
+<a id="line-457" name="line-457"></a><span class="w"> </span><span class="n">MateBGCrossfade</span><span class="w"> </span><span class="o">*</span><span class="n">fade</span><span class="p">)</span>
+<a id="line-458" name="line-458"></a><span class="p">{</span>
+<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fading_surface</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-460" name="line-460"></a>
+<a id="line-461" name="line-461"></a><span class="w"> </span><span class="n">cairo_set_source_surface</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fading_surface</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-462" name="line-462"></a><span class="w"> </span><span class="n">cairo_pattern_set_extend</span><span class="w"> </span><span class="p">(</span><span class="n">cairo_get_source</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">),</span><span class="w"> </span><span class="n">CAIRO_EXTEND_REPEAT</span><span class="p">);</span>
+<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">cairo_paint</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-464" name="line-464"></a>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-466" name="line-466"></a><span class="p">}</span>
+<a id="line-467" name="line-467"></a>
+<a id="line-468" name="line-468"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-469" name="line-469"></a><span class="n">on_tick</span><span class="w"> </span><span class="p">(</span><span class="n">MateBGCrossfade</span><span class="w"> </span><span class="o">*</span><span class="n">fade</span><span class="p">)</span>
+<a id="line-470" name="line-470"></a><span class="p">{</span>
+<a id="line-471" name="line-471"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">now</span><span class="p">,</span><span class="w"> </span><span class="n">percent_done</span><span class="p">;</span>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">cr</span><span class="p">;</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">cairo_status_t</span><span class="w"> </span><span class="n">status</span><span class="p">;</span>
+<a id="line-474" name="line-474"></a>
+<a id="line-475" name="line-475"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_BG_CROSSFADE</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-476" name="line-476"></a>
+<a id="line-477" name="line-477"></a><span class="w"> </span><span class="n">now</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_current_time</span><span class="w"> </span><span class="p">();</span>
+<a id="line-478" name="line-478"></a>
+<a id="line-479" name="line-479"></a><span class="w"> </span><span class="n">percent_done</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">now</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">start_time</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">total_duration</span><span class="p">;</span>
+<a id="line-480" name="line-480"></a><span class="w"> </span><span class="n">percent_done</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CLAMP</span><span class="w"> </span><span class="p">(</span><span class="n">percent_done</span><span class="p">,</span><span class="w"> </span><span class="mf">0.0</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="p">);</span>
+<a id="line-481" name="line-481"></a>
+<a id="line-482" name="line-482"></a><span class="w"> </span><span class="cm">/* If it&#39;s taking a long time to get to the first frame,</span>
+<a id="line-483" name="line-483"></a><span class="cm"> * then lengthen the duration, so the user will get to see</span>
+<a id="line-484" name="line-484"></a><span class="cm"> * the effect.</span>
+<a id="line-485" name="line-485"></a><span class="cm"> */</span>
+<a id="line-486" name="line-486"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_first_frame</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">percent_done</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mf">.33</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-487" name="line-487"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_first_frame</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-488" name="line-488"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">total_duration</span><span class="w"> </span><span class="o">*=</span><span class="w"> </span><span class="mf">1.5</span><span class="p">;</span>
+<a id="line-489" name="line-489"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">on_tick</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="p">);</span>
+<a id="line-490" name="line-490"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-491" name="line-491"></a>
+<a id="line-492" name="line-492"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fading_surface</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span>
+<a id="line-493" name="line-493"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">end_surface</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-494" name="line-494"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-495" name="line-495"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-496" name="line-496"></a>
+<a id="line-497" name="line-497"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">animations_are_disabled</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-498" name="line-498"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-499" name="line-499"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-500" name="line-500"></a>
+<a id="line-501" name="line-501"></a><span class="w"> </span><span class="cm">/* We accumulate the results in place for performance reasons.</span>
+<a id="line-502" name="line-502"></a><span class="cm"> *</span>
+<a id="line-503" name="line-503"></a><span class="cm"> * This means 1) The fade is exponential, not linear (looks good!)</span>
+<a id="line-504" name="line-504"></a><span class="cm"> * 2) The rate of fade is not independent of frame rate. Slower machines</span>
+<a id="line-505" name="line-505"></a><span class="cm"> * will get a slower fade (but never longer than .75 seconds), and</span>
+<a id="line-506" name="line-506"></a><span class="cm"> * even the fastest machines will get *some* fade because the framerate</span>
+<a id="line-507" name="line-507"></a><span class="cm"> * is capped.</span>
+<a id="line-508" name="line-508"></a><span class="cm"> */</span>
+<a id="line-509" name="line-509"></a><span class="w"> </span><span class="n">cr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cairo_create</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fading_surface</span><span class="p">);</span>
+<a id="line-510" name="line-510"></a>
+<a id="line-511" name="line-511"></a><span class="w"> </span><span class="n">cairo_set_source_surface</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">end_surface</span><span class="p">,</span>
+<a id="line-512" name="line-512"></a><span class="w"> </span><span class="mf">0.0</span><span class="p">,</span><span class="w"> </span><span class="mf">0.0</span><span class="p">);</span>
+<a id="line-513" name="line-513"></a><span class="w"> </span><span class="n">cairo_paint_with_alpha</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">percent_done</span><span class="p">);</span>
+<a id="line-514" name="line-514"></a>
+<a id="line-515" name="line-515"></a><span class="w"> </span><span class="n">status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cairo_status</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-516" name="line-516"></a><span class="w"> </span><span class="n">cairo_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-517" name="line-517"></a>
+<a id="line-518" name="line-518"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">status</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">CAIRO_STATUS_SUCCESS</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-519" name="line-519"></a><span class="w"> </span><span class="n">draw_background</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="p">);</span>
+<a id="line-520" name="line-520"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-521" name="line-521"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">percent_done</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="mf">.99</span><span class="p">;</span>
+<a id="line-522" name="line-522"></a><span class="p">}</span>
+<a id="line-523" name="line-523"></a>
+<a id="line-524" name="line-524"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-525" name="line-525"></a><span class="n">on_finished</span><span class="w"> </span><span class="p">(</span><span class="n">MateBGCrossfade</span><span class="w"> </span><span class="o">*</span><span class="n">fade</span><span class="p">)</span>
+<a id="line-526" name="line-526"></a><span class="p">{</span>
+<a id="line-527" name="line-527"></a><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">cr</span><span class="p">;</span>
+<a id="line-528" name="line-528"></a>
+<a id="line-529" name="line-529"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">timeout_id</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-530" name="line-530"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-531" name="line-531"></a>
+<a id="line-532" name="line-532"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fading_surface</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-533" name="line-533"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">end_surface</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-534" name="line-534"></a>
+<a id="line-535" name="line-535"></a><span class="w"> </span><span class="n">cr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cairo_create</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fading_surface</span><span class="p">);</span>
+<a id="line-536" name="line-536"></a><span class="w"> </span><span class="n">cairo_set_source_surface</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">end_surface</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-537" name="line-537"></a><span class="w"> </span><span class="n">cairo_paint</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-538" name="line-538"></a><span class="w"> </span><span class="n">cairo_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-539" name="line-539"></a><span class="w"> </span><span class="n">draw_background</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="p">);</span>
+<a id="line-540" name="line-540"></a>
+<a id="line-541" name="line-541"></a><span class="w"> </span><span class="n">cairo_surface_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fading_surface</span><span class="p">);</span>
+<a id="line-542" name="line-542"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fading_surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-543" name="line-543"></a>
+<a id="line-544" name="line-544"></a><span class="w"> </span><span class="n">cairo_surface_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">end_surface</span><span class="p">);</span>
+<a id="line-545" name="line-545"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">end_surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-546" name="line-546"></a>
+<a id="line-547" name="line-547"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">start_surface</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-548" name="line-548"></a>
+<a id="line-549" name="line-549"></a><span class="w"> </span><span class="n">cairo_surface_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">start_surface</span><span class="p">);</span>
+<a id="line-550" name="line-550"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">start_surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-551" name="line-551"></a>
+<a id="line-552" name="line-552"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">widget</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-553" name="line-553"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-554" name="line-554"></a><span class="w"> </span><span class="p">(</span><span class="n">GCallback</span><span class="p">)</span><span class="w"> </span><span class="n">on_widget_draw</span><span class="p">,</span>
+<a id="line-555" name="line-555"></a><span class="w"> </span><span class="n">fade</span><span class="p">);</span>
+<a id="line-556" name="line-556"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-557" name="line-557"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-558" name="line-558"></a>
+<a id="line-559" name="line-559"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">timeout_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-560" name="line-560"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="p">,</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">FINISHED</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">window</span><span class="p">);</span>
+<a id="line-561" name="line-561"></a><span class="p">}</span>
+<a id="line-562" name="line-562"></a>
+<a id="line-563" name="line-563"></a><span class="cm">/* This function queries the _XROOTPMAP_ID property from the root window</span>
+<a id="line-564" name="line-564"></a><span class="cm"> * to determine the current root window background pixmap and returns a</span>
+<a id="line-565" name="line-565"></a><span class="cm"> * surface to draw directly to it.</span>
+<a id="line-566" name="line-566"></a><span class="cm"> * If _XROOTPMAP_ID is not set, then NULL returned.</span>
+<a id="line-567" name="line-567"></a><span class="cm"> */</span>
+<a id="line-568" name="line-568"></a><span class="k">static</span><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span>
+<a id="line-569" name="line-569"></a><span class="n">get_root_pixmap_id_surface</span><span class="w"> </span><span class="p">(</span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">)</span>
+<a id="line-570" name="line-570"></a><span class="p">{</span>
+<a id="line-571" name="line-571"></a><span class="w"> </span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">;</span>
+<a id="line-572" name="line-572"></a><span class="w"> </span><span class="n">Display</span><span class="w"> </span><span class="o">*</span><span class="n">xdisplay</span><span class="p">;</span>
+<a id="line-573" name="line-573"></a><span class="w"> </span><span class="n">Visual</span><span class="w"> </span><span class="o">*</span><span class="n">xvisual</span><span class="p">;</span>
+<a id="line-574" name="line-574"></a><span class="w"> </span><span class="n">Window</span><span class="w"> </span><span class="n">xroot</span><span class="p">;</span>
+<a id="line-575" name="line-575"></a><span class="w"> </span><span class="n">Atom</span><span class="w"> </span><span class="n">type</span><span class="p">;</span>
+<a id="line-576" name="line-576"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-577" name="line-577"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="n">nitems</span><span class="p">,</span><span class="w"> </span><span class="n">bytes_after</span><span class="p">;</span>
+<a id="line-578" name="line-578"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">;</span>
+<a id="line-579" name="line-579"></a><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span><span class="n">surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-580" name="line-580"></a>
+<a id="line-581" name="line-581"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-582" name="line-582"></a>
+<a id="line-583" name="line-583"></a><span class="w"> </span><span class="n">screen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_display_get_default_screen</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-584" name="line-584"></a><span class="w"> </span><span class="n">xdisplay</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_DISPLAY_XDISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-585" name="line-585"></a><span class="w"> </span><span class="n">xvisual</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_VISUAL_XVISUAL</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_screen_get_system_visual</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">));</span>
+<a id="line-586" name="line-586"></a><span class="w"> </span><span class="n">xroot</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">RootWindow</span><span class="w"> </span><span class="p">(</span><span class="n">xdisplay</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_SCREEN_XNUMBER</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">));</span>
+<a id="line-587" name="line-587"></a>
+<a id="line-588" name="line-588"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XGetWindowProperty</span><span class="w"> </span><span class="p">(</span><span class="n">xdisplay</span><span class="p">,</span><span class="w"> </span><span class="n">xroot</span><span class="p">,</span>
+<a id="line-589" name="line-589"></a><span class="w"> </span><span class="n">gdk_x11_get_xatom_by_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;_XROOTPMAP_ID&quot;</span><span class="p">),</span>
+<a id="line-590" name="line-590"></a><span class="w"> </span><span class="mf">0L</span><span class="p">,</span><span class="w"> </span><span class="mf">1L</span><span class="p">,</span><span class="w"> </span><span class="n">False</span><span class="p">,</span><span class="w"> </span><span class="n">XA_PIXMAP</span><span class="p">,</span>
+<a id="line-591" name="line-591"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">type</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">nitems</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">bytes_after</span><span class="p">,</span>
+<a id="line-592" name="line-592"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">data</span><span class="p">);</span>
+<a id="line-593" name="line-593"></a>
+<a id="line-594" name="line-594"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">Success</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">XA_PIXMAP</span><span class="w"> </span><span class="o">||</span>
+<a id="line-595" name="line-595"></a><span class="w"> </span><span class="n">format</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">32</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">nitems</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-596" name="line-596"></a><span class="w"> </span><span class="n">XFree</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span>
+<a id="line-597" name="line-597"></a><span class="w"> </span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-598" name="line-598"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-599" name="line-599"></a>
+<a id="line-600" name="line-600"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-601" name="line-601"></a><span class="w"> </span><span class="n">Pixmap</span><span class="w"> </span><span class="n">pixmap</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="p">(</span><span class="n">Pixmap</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">data</span><span class="p">;</span>
+<a id="line-602" name="line-602"></a><span class="w"> </span><span class="n">Window</span><span class="w"> </span><span class="n">root_ret</span><span class="p">;</span>
+<a id="line-603" name="line-603"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x_ret</span><span class="p">,</span><span class="w"> </span><span class="n">y_ret</span><span class="p">;</span>
+<a id="line-604" name="line-604"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">w_ret</span><span class="p">,</span><span class="w"> </span><span class="n">h_ret</span><span class="p">,</span><span class="w"> </span><span class="n">bw_ret</span><span class="p">,</span><span class="w"> </span><span class="n">depth_ret</span><span class="p">;</span>
+<a id="line-605" name="line-605"></a>
+<a id="line-606" name="line-606"></a><span class="w"> </span><span class="n">gdk_x11_display_error_trap_push</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-607" name="line-607"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">XGetGeometry</span><span class="w"> </span><span class="p">(</span><span class="n">xdisplay</span><span class="p">,</span><span class="w"> </span><span class="n">pixmap</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">root_ret</span><span class="p">,</span>
+<a id="line-608" name="line-608"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">x_ret</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">y_ret</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">w_ret</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">h_ret</span><span class="p">,</span>
+<a id="line-609" name="line-609"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">bw_ret</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">depth_ret</span><span class="p">))</span>
+<a id="line-610" name="line-610"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-611" name="line-611"></a><span class="w"> </span><span class="n">surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cairo_xlib_surface_create</span><span class="w"> </span><span class="p">(</span><span class="n">xdisplay</span><span class="p">,</span>
+<a id="line-612" name="line-612"></a><span class="w"> </span><span class="n">pixmap</span><span class="p">,</span><span class="w"> </span><span class="n">xvisual</span><span class="p">,</span>
+<a id="line-613" name="line-613"></a><span class="w"> </span><span class="n">w_ret</span><span class="p">,</span><span class="w"> </span><span class="n">h_ret</span><span class="p">);</span>
+<a id="line-614" name="line-614"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-615" name="line-615"></a>
+<a id="line-616" name="line-616"></a><span class="w"> </span><span class="n">gdk_x11_display_error_trap_pop_ignored</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-617" name="line-617"></a><span class="w"> </span><span class="n">XFree</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span>
+<a id="line-618" name="line-618"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-619" name="line-619"></a>
+<a id="line-620" name="line-620"></a><span class="w"> </span><span class="n">gdk_display_flush</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-621" name="line-621"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">surface</span><span class="p">;</span>
+<a id="line-622" name="line-622"></a><span class="p">}</span>
+<a id="line-623" name="line-623"></a>
+<a id="line-624" name="line-624"></a><span class="cm">/**</span>
+<a id="line-625" name="line-625"></a><span class="cm"> * mate_bg_crossfade_start:</span>
+<a id="line-626" name="line-626"></a><span class="cm"> * @fade: a #MateBGCrossfade</span>
+<a id="line-627" name="line-627"></a><span class="cm"> * @window: The #GdkWindow to draw crossfade on</span>
+<a id="line-628" name="line-628"></a><span class="cm"> *</span>
+<a id="line-629" name="line-629"></a><span class="cm"> * This function initiates a quick crossfade between two surfaces on</span>
+<a id="line-630" name="line-630"></a><span class="cm"> * the background of @window. Before initiating the crossfade both</span>
+<a id="line-631" name="line-631"></a><span class="cm"> * mate_bg_crossfade_set_start_surface() and</span>
+<a id="line-632" name="line-632"></a><span class="cm"> * mate_bg_crossfade_set_end_surface() need to be called. If animations</span>
+<a id="line-633" name="line-633"></a><span class="cm"> * are disabled, the crossfade is skipped, and the window background is</span>
+<a id="line-634" name="line-634"></a><span class="cm"> * set immediately to the end surface.</span>
+<a id="line-635" name="line-635"></a><span class="cm"> **/</span>
+<a id="line-636" name="line-636"></a><span class="kt">void</span>
+<a id="line-637" name="line-637"></a><span class="n">mate_bg_crossfade_start</span><span class="w"> </span><span class="p">(</span><span class="n">MateBGCrossfade</span><span class="w"> </span><span class="o">*</span><span class="n">fade</span><span class="p">,</span>
+<a id="line-638" name="line-638"></a><span class="w"> </span><span class="n">GdkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span>
+<a id="line-639" name="line-639"></a><span class="p">{</span>
+<a id="line-640" name="line-640"></a><span class="w"> </span><span class="n">GSource</span><span class="w"> </span><span class="o">*</span><span class="n">source</span><span class="p">;</span>
+<a id="line-641" name="line-641"></a><span class="w"> </span><span class="n">GMainContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">;</span>
+<a id="line-642" name="line-642"></a>
+<a id="line-643" name="line-643"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_BG_CROSSFADE</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="p">));</span>
+<a id="line-644" name="line-644"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-645" name="line-645"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">start_surface</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-646" name="line-646"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">end_surface</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-647" name="line-647"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mate_bg_crossfade_is_started</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="p">));</span>
+<a id="line-648" name="line-648"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_window_get_window_type</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">GDK_WINDOW_FOREIGN</span><span class="p">);</span>
+<a id="line-649" name="line-649"></a>
+<a id="line-650" name="line-650"></a><span class="w"> </span><span class="cm">/* If drawing is done on the root window,</span>
+<a id="line-651" name="line-651"></a><span class="cm"> * it is essential to have the root pixmap.</span>
+<a id="line-652" name="line-652"></a><span class="cm"> */</span>
+<a id="line-653" name="line-653"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_window_get_window_type</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_WINDOW_ROOT</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-654" name="line-654"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_window_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span>
+<a id="line-655" name="line-655"></a><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span><span class="n">surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_root_pixmap_id_surface</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-656" name="line-656"></a>
+<a id="line-657" name="line-657"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">surface</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-658" name="line-658"></a><span class="w"> </span><span class="n">cairo_surface_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">surface</span><span class="p">);</span>
+<a id="line-659" name="line-659"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-660" name="line-660"></a>
+<a id="line-661" name="line-661"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fading_surface</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-662" name="line-662"></a><span class="w"> </span><span class="n">cairo_surface_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fading_surface</span><span class="p">);</span>
+<a id="line-663" name="line-663"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fading_surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-664" name="line-664"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-665" name="line-665"></a>
+<a id="line-666" name="line-666"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window</span><span class="p">;</span>
+<a id="line-667" name="line-667"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_window_get_window_type</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">window</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">GDK_WINDOW_ROOT</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-668" name="line-668"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fading_surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tile_surface</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">start_surface</span><span class="p">,</span>
+<a id="line-669" name="line-669"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">width</span><span class="p">,</span>
+<a id="line-670" name="line-670"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">height</span><span class="p">);</span>
+<a id="line-671" name="line-671"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">widget</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-672" name="line-672"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;draw&quot;</span><span class="p">,</span>
+<a id="line-673" name="line-673"></a><span class="w"> </span><span class="p">(</span><span class="n">GCallback</span><span class="p">)</span><span class="w"> </span><span class="n">on_widget_draw</span><span class="p">,</span><span class="w"> </span><span class="n">fade</span><span class="p">);</span>
+<a id="line-674" name="line-674"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-675" name="line-675"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-676" name="line-676"></a><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">cr</span><span class="p">;</span>
+<a id="line-677" name="line-677"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_window_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">window</span><span class="p">);</span>
+<a id="line-678" name="line-678"></a>
+<a id="line-679" name="line-679"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fading_surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_root_pixmap_id_surface</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-680" name="line-680"></a><span class="w"> </span><span class="n">cr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cairo_create</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">fading_surface</span><span class="p">);</span>
+<a id="line-681" name="line-681"></a><span class="w"> </span><span class="n">cairo_set_source_surface</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">start_surface</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-682" name="line-682"></a><span class="w"> </span><span class="n">cairo_paint</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-683" name="line-683"></a><span class="w"> </span><span class="n">cairo_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-684" name="line-684"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-685" name="line-685"></a><span class="w"> </span><span class="n">draw_background</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="p">);</span>
+<a id="line-686" name="line-686"></a>
+<a id="line-687" name="line-687"></a><span class="w"> </span><span class="n">source</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_timeout_source_new</span><span class="w"> </span><span class="p">(</span><span class="mi">1000</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">60.0</span><span class="p">);</span>
+<a id="line-688" name="line-688"></a><span class="w"> </span><span class="n">g_source_set_callback</span><span class="w"> </span><span class="p">(</span><span class="n">source</span><span class="p">,</span>
+<a id="line-689" name="line-689"></a><span class="w"> </span><span class="p">(</span><span class="n">GSourceFunc</span><span class="p">)</span><span class="w"> </span><span class="n">on_tick</span><span class="p">,</span>
+<a id="line-690" name="line-690"></a><span class="w"> </span><span class="n">fade</span><span class="p">,</span>
+<a id="line-691" name="line-691"></a><span class="w"> </span><span class="p">(</span><span class="n">GDestroyNotify</span><span class="p">)</span><span class="w"> </span><span class="n">on_finished</span><span class="p">);</span>
+<a id="line-692" name="line-692"></a><span class="w"> </span><span class="n">context</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_main_context_default</span><span class="w"> </span><span class="p">();</span>
+<a id="line-693" name="line-693"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">timeout_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_source_attach</span><span class="w"> </span><span class="p">(</span><span class="n">source</span><span class="p">,</span><span class="w"> </span><span class="n">context</span><span class="p">);</span>
+<a id="line-694" name="line-694"></a><span class="w"> </span><span class="n">g_source_unref</span><span class="w"> </span><span class="p">(</span><span class="n">source</span><span class="p">);</span>
+<a id="line-695" name="line-695"></a>
+<a id="line-696" name="line-696"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">is_first_frame</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-697" name="line-697"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">total_duration</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">.75</span><span class="p">;</span>
+<a id="line-698" name="line-698"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">start_time</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_current_time</span><span class="w"> </span><span class="p">();</span>
+<a id="line-699" name="line-699"></a><span class="p">}</span>
+<a id="line-700" name="line-700"></a>
+<a id="line-701" name="line-701"></a><span class="cm">/**</span>
+<a id="line-702" name="line-702"></a><span class="cm"> * mate_bg_crossfade_start_widget:</span>
+<a id="line-703" name="line-703"></a><span class="cm"> * @fade: a #MateBGCrossfade</span>
+<a id="line-704" name="line-704"></a><span class="cm"> * @widget: The #GtkWidget to draw crossfade on</span>
+<a id="line-705" name="line-705"></a><span class="cm"> *</span>
+<a id="line-706" name="line-706"></a><span class="cm"> * This function initiates a quick crossfade between two surfaces on</span>
+<a id="line-707" name="line-707"></a><span class="cm"> * the background of @widget. Before initiating the crossfade both</span>
+<a id="line-708" name="line-708"></a><span class="cm"> * mate_bg_crossfade_set_start_surface() and</span>
+<a id="line-709" name="line-709"></a><span class="cm"> * mate_bg_crossfade_set_end_surface() need to be called. If animations</span>
+<a id="line-710" name="line-710"></a><span class="cm"> * are disabled, the crossfade is skipped, and the window background is</span>
+<a id="line-711" name="line-711"></a><span class="cm"> * set immediately to the end surface.</span>
+<a id="line-712" name="line-712"></a><span class="cm"> **/</span>
+<a id="line-713" name="line-713"></a><span class="kt">void</span>
+<a id="line-714" name="line-714"></a><span class="n">mate_bg_crossfade_start_widget</span><span class="w"> </span><span class="p">(</span><span class="n">MateBGCrossfade</span><span class="w"> </span><span class="o">*</span><span class="n">fade</span><span class="p">,</span>
+<a id="line-715" name="line-715"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">)</span>
+<a id="line-716" name="line-716"></a><span class="p">{</span>
+<a id="line-717" name="line-717"></a><span class="w"> </span><span class="n">GdkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span>
+<a id="line-718" name="line-718"></a>
+<a id="line-719" name="line-719"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_BG_CROSSFADE</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="p">));</span>
+<a id="line-720" name="line-720"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-721" name="line-721"></a>
+<a id="line-722" name="line-722"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">widget</span><span class="p">;</span>
+<a id="line-723" name="line-723"></a><span class="w"> </span><span class="n">gtk_widget_realize</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-724" name="line-724"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_window</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-725" name="line-725"></a>
+<a id="line-726" name="line-726"></a><span class="w"> </span><span class="n">mate_bg_crossfade_start</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="p">,</span><span class="w"> </span><span class="n">window</span><span class="p">);</span>
+<a id="line-727" name="line-727"></a><span class="p">}</span>
+<a id="line-728" name="line-728"></a>
+<a id="line-729" name="line-729"></a><span class="cm">/**</span>
+<a id="line-730" name="line-730"></a><span class="cm"> * mate_bg_crossfade_is_started:</span>
+<a id="line-731" name="line-731"></a><span class="cm"> * @fade: a #MateBGCrossfade</span>
+<a id="line-732" name="line-732"></a><span class="cm"> *</span>
+<a id="line-733" name="line-733"></a><span class="cm"> * This function reveals whether or not @fade is currently</span>
+<a id="line-734" name="line-734"></a><span class="cm"> * running on a window. See mate_bg_crossfade_start() for</span>
+<a id="line-735" name="line-735"></a><span class="cm"> * information on how to initiate a crossfade.</span>
+<a id="line-736" name="line-736"></a><span class="cm"> *</span>
+<a id="line-737" name="line-737"></a><span class="cm"> * Return value: %TRUE if fading, or %FALSE if not fading</span>
+<a id="line-738" name="line-738"></a><span class="cm"> **/</span>
+<a id="line-739" name="line-739"></a><span class="n">gboolean</span>
+<a id="line-740" name="line-740"></a><span class="n">mate_bg_crossfade_is_started</span><span class="w"> </span><span class="p">(</span><span class="n">MateBGCrossfade</span><span class="w"> </span><span class="o">*</span><span class="n">fade</span><span class="p">)</span>
+<a id="line-741" name="line-741"></a><span class="p">{</span>
+<a id="line-742" name="line-742"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_BG_CROSSFADE</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-743" name="line-743"></a>
+<a id="line-744" name="line-744"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">timeout_id</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-745" name="line-745"></a><span class="p">}</span>
+<a id="line-746" name="line-746"></a>
+<a id="line-747" name="line-747"></a><span class="cm">/**</span>
+<a id="line-748" name="line-748"></a><span class="cm"> * mate_bg_crossfade_stop:</span>
+<a id="line-749" name="line-749"></a><span class="cm"> * @fade: a #MateBGCrossfade</span>
+<a id="line-750" name="line-750"></a><span class="cm"> *</span>
+<a id="line-751" name="line-751"></a><span class="cm"> * This function stops any in progress crossfades that may be</span>
+<a id="line-752" name="line-752"></a><span class="cm"> * happening. It&#39;s harmless to call this function if @fade is</span>
+<a id="line-753" name="line-753"></a><span class="cm"> * already stopped.</span>
+<a id="line-754" name="line-754"></a><span class="cm"> **/</span>
+<a id="line-755" name="line-755"></a><span class="kt">void</span>
+<a id="line-756" name="line-756"></a><span class="n">mate_bg_crossfade_stop</span><span class="w"> </span><span class="p">(</span><span class="n">MateBGCrossfade</span><span class="w"> </span><span class="o">*</span><span class="n">fade</span><span class="p">)</span>
+<a id="line-757" name="line-757"></a><span class="p">{</span>
+<a id="line-758" name="line-758"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_BG_CROSSFADE</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="p">));</span>
+<a id="line-759" name="line-759"></a>
+<a id="line-760" name="line-760"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mate_bg_crossfade_is_started</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="p">))</span>
+<a id="line-761" name="line-761"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-762" name="line-762"></a>
+<a id="line-763" name="line-763"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">timeout_id</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-764" name="line-764"></a><span class="w"> </span><span class="n">g_source_remove</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">timeout_id</span><span class="p">);</span>
+<a id="line-765" name="line-765"></a><span class="w"> </span><span class="n">fade</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">timeout_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-766" name="line-766"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/20.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/20.html
new file mode 100644
index 0000000..928f553
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/20.html
@@ -0,0 +1,373 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/mate-image-menu-item.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-image-menu-item.h</p>
+<a href="20.html#line-21"> missingIncludeSystem 21</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal">10</span>
+<span class="normal">11</span>
+<span class="normal">12</span>
+<span class="normal">13</span>
+<span class="normal">14</span>
+<span class="normal">15</span>
+<span class="normal">16</span>
+<span class="normal">17</span>
+<span class="normal">18</span>
+<span class="normal">19</span>
+<span class="normal">20</span>
+<span class="normal">21</span>
+<span class="normal">22</span>
+<span class="normal">23</span>
+<span class="normal">24</span>
+<span class="normal">25</span>
+<span class="normal">26</span>
+<span class="normal">27</span>
+<span class="normal">28</span>
+<span class="normal">29</span>
+<span class="normal">30</span>
+<span class="normal">31</span>
+<span class="normal">32</span>
+<span class="normal">33</span>
+<span class="normal">34</span>
+<span class="normal">35</span>
+<span class="normal">36</span>
+<span class="normal">37</span>
+<span class="normal">38</span>
+<span class="normal">39</span>
+<span class="normal">40</span>
+<span class="normal">41</span>
+<span class="normal">42</span>
+<span class="normal">43</span>
+<span class="normal">44</span>
+<span class="normal">45</span>
+<span class="normal">46</span>
+<span class="normal">47</span>
+<span class="normal">48</span>
+<span class="normal">49</span>
+<span class="normal">50</span>
+<span class="normal">51</span>
+<span class="normal">52</span>
+<span class="normal">53</span>
+<span class="normal">54</span>
+<span class="normal">55</span>
+<span class="normal">56</span>
+<span class="normal">57</span>
+<span class="normal">58</span>
+<span class="normal">59</span>
+<span class="normal">60</span>
+<span class="normal">61</span>
+<span class="normal">62</span>
+<span class="normal">63</span>
+<span class="normal">64</span>
+<span class="normal">65</span>
+<span class="normal">66</span>
+<span class="normal">67</span>
+<span class="normal">68</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span>
+<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2023 zhuyaliang.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-8" name="line-8"></a><span class="cm"> *</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-13" name="line-13"></a><span class="cm"> *</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * You should have received a copy of the GNU Lesser General Public</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * License along with this library. If not, see &lt;http://www.gnu.org/licenses/&gt;.</span>
+<a id="line-16" name="line-16"></a><span class="cm"> */</span>
+<a id="line-17" name="line-17"></a>
+<a id="line-18" name="line-18"></a><span class="cp">#ifndef __MATE_IMAGE_MENU_ITEM_H__</span>
+<a id="line-19" name="line-19"></a><span class="cp">#define __MATE_IMAGE_MENU_ITEM_H__</span>
+<a id="line-20" name="line-20"></a>
+<a id="line-21" name="line-21"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="n">G_BEGIN_DECLS</span>
+<a id="line-24" name="line-24"></a>
+<a id="line-25" name="line-25"></a><span class="cp">#define MATE_TYPE_IMAGE_MENU_ITEM (mate_image_menu_item_get_type ())</span>
+<a id="line-26" name="line-26"></a><span class="cp">#define MATE_IMAGE_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATE_TYPE_IMAGE_MENU_ITEM, MateImageMenuItem))</span>
+<a id="line-27" name="line-27"></a><span class="cp">#define MATE_IMAGE_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MATE_TYPE_IMAGE_MENU_ITEM, MateImageMenuItemClass))</span>
+<a id="line-28" name="line-28"></a><span class="cp">#define MATE_IS_IMAGE_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MATE_TYPE_IMAGE_MENU_ITEM))</span>
+<a id="line-29" name="line-29"></a><span class="cp">#define MATE_IS_IMAGE_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MATE_TYPE_IMAGE_MENU_ITEM))</span>
+<a id="line-30" name="line-30"></a><span class="cp">#define MATE_IMAGE_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MATE_TYPE_IMAGE_MENU_ITEM, MateImageMenuItemClass))</span>
+<a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_MateImageMenuItem</span><span class="w"> </span><span class="n">MateImageMenuItem</span><span class="p">;</span>
+<a id="line-33" name="line-33"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_MateImageMenuItemPrivate</span><span class="w"> </span><span class="n">MateImageMenuItemPrivate</span><span class="p">;</span>
+<a id="line-34" name="line-34"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_MateImageMenuItemClass</span><span class="w"> </span><span class="n">MateImageMenuItemClass</span><span class="p">;</span>
+<a id="line-35" name="line-35"></a>
+<a id="line-36" name="line-36"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_MateImageMenuItem</span>
+<a id="line-37" name="line-37"></a><span class="p">{</span>
+<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">GtkMenuItem</span><span class="w"> </span><span class="n">menu_item</span><span class="p">;</span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="w"> </span><span class="cm">/*&lt; private &gt;*/</span>
+<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">MateImageMenuItemPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-42" name="line-42"></a><span class="p">};</span>
+<a id="line-43" name="line-43"></a>
+<a id="line-44" name="line-44"></a><span class="cm">/**</span>
+<a id="line-45" name="line-45"></a><span class="cm"> * MateImageMenuItemClass:</span>
+<a id="line-46" name="line-46"></a><span class="cm"> * @parent_class: The parent class.</span>
+<a id="line-47" name="line-47"></a><span class="cm"> */</span>
+<a id="line-48" name="line-48"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_MateImageMenuItemClass</span>
+<a id="line-49" name="line-49"></a><span class="p">{</span>
+<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">GtkMenuItemClass</span><span class="w"> </span><span class="n">parent_class</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a><span class="p">};</span>
+<a id="line-52" name="line-52"></a>
+<a id="line-53" name="line-53"></a><span class="n">GType</span><span class="w"> </span><span class="nf">mate_image_menu_item_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"> </span><span class="n">G_GNUC_CONST</span><span class="p">;</span>
+<a id="line-54" name="line-54"></a>
+<a id="line-55" name="line-55"></a><span class="n">GtkWidget</span><span class="o">*</span><span class="w"> </span><span class="nf">mate_image_menu_item_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-56" name="line-56"></a>
+<a id="line-57" name="line-57"></a><span class="n">GtkWidget</span><span class="o">*</span><span class="w"> </span><span class="nf">mate_image_menu_item_new_with_label</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">);</span>
+<a id="line-58" name="line-58"></a>
+<a id="line-59" name="line-59"></a><span class="n">GtkWidget</span><span class="o">*</span><span class="w"> </span><span class="nf">mate_image_menu_item_new_with_mnemonic</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">);</span>
+<a id="line-60" name="line-60"></a>
+<a id="line-61" name="line-61"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_image_menu_item_set_image</span><span class="w"> </span><span class="p">(</span><span class="n">MateImageMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">image_menu_item</span><span class="p">,</span>
+<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">);</span>
+<a id="line-63" name="line-63"></a>
+<a id="line-64" name="line-64"></a><span class="n">GtkWidget</span><span class="o">*</span><span class="w"> </span><span class="nf">mate_image_menu_item_get_image</span><span class="w"> </span><span class="p">(</span><span class="n">MateImageMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">image_menu_item</span><span class="p">);</span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="n">G_END_DECLS</span>
+<a id="line-67" name="line-67"></a>
+<a id="line-68" name="line-68"></a><span class="cp">#endif </span><span class="cm">/* __GTK_IMAGE_MENU_ITEM_H__ */</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/21.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/21.html
new file mode 100644
index 0000000..f9ad1b6
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/21.html
@@ -0,0 +1,2915 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/mate-languages.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-languages.c</p>
+<a href="21.html#line-23"> missingInclude 23</a><a href="21.html#line-25"> missingIncludeSystem 25</a><a href="21.html#line-26"> missingIncludeSystem 26</a><a href="21.html#line-27"> missingIncludeSystem 27</a><a href="21.html#line-28"> missingIncludeSystem 28</a><a href="21.html#line-29"> missingIncludeSystem 29</a><a href="21.html#line-30"> missingIncludeSystem 30</a><a href="21.html#line-31"> missingIncludeSystem 31</a><a href="21.html#line-32"> missingIncludeSystem 32</a><a href="21.html#line-33"> missingIncludeSystem 33</a><a href="21.html#line-35"> missingIncludeSystem 35</a><a href="21.html#line-36"> missingIncludeSystem 36</a><a href="21.html#line-37"> missingIncludeSystem 37</a><a href="21.html#line-42"> missingIncludeSystem 42</a><a href="21.html#line-401"> constVariablePointer 401</a><a href="21.html#line-534"> variableScope 534</a><a href="21.html#line-587"> constVariablePointer 587</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal"> 10</span>
+<span class="normal"> 11</span>
+<span class="normal"> 12</span>
+<span class="normal"> 13</span>
+<span class="normal"> 14</span>
+<span class="normal"> 15</span>
+<span class="normal"> 16</span>
+<span class="normal"> 17</span>
+<span class="normal"> 18</span>
+<span class="normal"> 19</span>
+<span class="normal"> 20</span>
+<span class="normal"> 21</span>
+<span class="normal"> 22</span>
+<span class="normal"> 23</span>
+<span class="normal"> 24</span>
+<span class="normal"> 25</span>
+<span class="normal"> 26</span>
+<span class="normal"> 27</span>
+<span class="normal"> 28</span>
+<span class="normal"> 29</span>
+<span class="normal"> 30</span>
+<span class="normal"> 31</span>
+<span class="normal"> 32</span>
+<span class="normal"> 33</span>
+<span class="normal"> 34</span>
+<span class="normal"> 35</span>
+<span class="normal"> 36</span>
+<span class="normal"> 37</span>
+<span class="normal"> 38</span>
+<span class="normal"> 39</span>
+<span class="normal"> 40</span>
+<span class="normal"> 41</span>
+<span class="normal"> 42</span>
+<span class="normal"> 43</span>
+<span class="normal"> 44</span>
+<span class="normal"> 45</span>
+<span class="normal"> 46</span>
+<span class="normal"> 47</span>
+<span class="normal"> 48</span>
+<span class="normal"> 49</span>
+<span class="normal"> 50</span>
+<span class="normal"> 51</span>
+<span class="normal"> 52</span>
+<span class="normal"> 53</span>
+<span class="normal"> 54</span>
+<span class="normal"> 55</span>
+<span class="normal"> 56</span>
+<span class="normal"> 57</span>
+<span class="normal"> 58</span>
+<span class="normal"> 59</span>
+<span class="normal"> 60</span>
+<span class="normal"> 61</span>
+<span class="normal"> 62</span>
+<span class="normal"> 63</span>
+<span class="normal"> 64</span>
+<span class="normal"> 65</span>
+<span class="normal"> 66</span>
+<span class="normal"> 67</span>
+<span class="normal"> 68</span>
+<span class="normal"> 69</span>
+<span class="normal"> 70</span>
+<span class="normal"> 71</span>
+<span class="normal"> 72</span>
+<span class="normal"> 73</span>
+<span class="normal"> 74</span>
+<span class="normal"> 75</span>
+<span class="normal"> 76</span>
+<span class="normal"> 77</span>
+<span class="normal"> 78</span>
+<span class="normal"> 79</span>
+<span class="normal"> 80</span>
+<span class="normal"> 81</span>
+<span class="normal"> 82</span>
+<span class="normal"> 83</span>
+<span class="normal"> 84</span>
+<span class="normal"> 85</span>
+<span class="normal"> 86</span>
+<span class="normal"> 87</span>
+<span class="normal"> 88</span>
+<span class="normal"> 89</span>
+<span class="normal"> 90</span>
+<span class="normal"> 91</span>
+<span class="normal"> 92</span>
+<span class="normal"> 93</span>
+<span class="normal"> 94</span>
+<span class="normal"> 95</span>
+<span class="normal"> 96</span>
+<span class="normal"> 97</span>
+<span class="normal"> 98</span>
+<span class="normal"> 99</span>
+<span class="normal"> 100</span>
+<span class="normal"> 101</span>
+<span class="normal"> 102</span>
+<span class="normal"> 103</span>
+<span class="normal"> 104</span>
+<span class="normal"> 105</span>
+<span class="normal"> 106</span>
+<span class="normal"> 107</span>
+<span class="normal"> 108</span>
+<span class="normal"> 109</span>
+<span class="normal"> 110</span>
+<span class="normal"> 111</span>
+<span class="normal"> 112</span>
+<span class="normal"> 113</span>
+<span class="normal"> 114</span>
+<span class="normal"> 115</span>
+<span class="normal"> 116</span>
+<span class="normal"> 117</span>
+<span class="normal"> 118</span>
+<span class="normal"> 119</span>
+<span class="normal"> 120</span>
+<span class="normal"> 121</span>
+<span class="normal"> 122</span>
+<span class="normal"> 123</span>
+<span class="normal"> 124</span>
+<span class="normal"> 125</span>
+<span class="normal"> 126</span>
+<span class="normal"> 127</span>
+<span class="normal"> 128</span>
+<span class="normal"> 129</span>
+<span class="normal"> 130</span>
+<span class="normal"> 131</span>
+<span class="normal"> 132</span>
+<span class="normal"> 133</span>
+<span class="normal"> 134</span>
+<span class="normal"> 135</span>
+<span class="normal"> 136</span>
+<span class="normal"> 137</span>
+<span class="normal"> 138</span>
+<span class="normal"> 139</span>
+<span class="normal"> 140</span>
+<span class="normal"> 141</span>
+<span class="normal"> 142</span>
+<span class="normal"> 143</span>
+<span class="normal"> 144</span>
+<span class="normal"> 145</span>
+<span class="normal"> 146</span>
+<span class="normal"> 147</span>
+<span class="normal"> 148</span>
+<span class="normal"> 149</span>
+<span class="normal"> 150</span>
+<span class="normal"> 151</span>
+<span class="normal"> 152</span>
+<span class="normal"> 153</span>
+<span class="normal"> 154</span>
+<span class="normal"> 155</span>
+<span class="normal"> 156</span>
+<span class="normal"> 157</span>
+<span class="normal"> 158</span>
+<span class="normal"> 159</span>
+<span class="normal"> 160</span>
+<span class="normal"> 161</span>
+<span class="normal"> 162</span>
+<span class="normal"> 163</span>
+<span class="normal"> 164</span>
+<span class="normal"> 165</span>
+<span class="normal"> 166</span>
+<span class="normal"> 167</span>
+<span class="normal"> 168</span>
+<span class="normal"> 169</span>
+<span class="normal"> 170</span>
+<span class="normal"> 171</span>
+<span class="normal"> 172</span>
+<span class="normal"> 173</span>
+<span class="normal"> 174</span>
+<span class="normal"> 175</span>
+<span class="normal"> 176</span>
+<span class="normal"> 177</span>
+<span class="normal"> 178</span>
+<span class="normal"> 179</span>
+<span class="normal"> 180</span>
+<span class="normal"> 181</span>
+<span class="normal"> 182</span>
+<span class="normal"> 183</span>
+<span class="normal"> 184</span>
+<span class="normal"> 185</span>
+<span class="normal"> 186</span>
+<span class="normal"> 187</span>
+<span class="normal"> 188</span>
+<span class="normal"> 189</span>
+<span class="normal"> 190</span>
+<span class="normal"> 191</span>
+<span class="normal"> 192</span>
+<span class="normal"> 193</span>
+<span class="normal"> 194</span>
+<span class="normal"> 195</span>
+<span class="normal"> 196</span>
+<span class="normal"> 197</span>
+<span class="normal"> 198</span>
+<span class="normal"> 199</span>
+<span class="normal"> 200</span>
+<span class="normal"> 201</span>
+<span class="normal"> 202</span>
+<span class="normal"> 203</span>
+<span class="normal"> 204</span>
+<span class="normal"> 205</span>
+<span class="normal"> 206</span>
+<span class="normal"> 207</span>
+<span class="normal"> 208</span>
+<span class="normal"> 209</span>
+<span class="normal"> 210</span>
+<span class="normal"> 211</span>
+<span class="normal"> 212</span>
+<span class="normal"> 213</span>
+<span class="normal"> 214</span>
+<span class="normal"> 215</span>
+<span class="normal"> 216</span>
+<span class="normal"> 217</span>
+<span class="normal"> 218</span>
+<span class="normal"> 219</span>
+<span class="normal"> 220</span>
+<span class="normal"> 221</span>
+<span class="normal"> 222</span>
+<span class="normal"> 223</span>
+<span class="normal"> 224</span>
+<span class="normal"> 225</span>
+<span class="normal"> 226</span>
+<span class="normal"> 227</span>
+<span class="normal"> 228</span>
+<span class="normal"> 229</span>
+<span class="normal"> 230</span>
+<span class="normal"> 231</span>
+<span class="normal"> 232</span>
+<span class="normal"> 233</span>
+<span class="normal"> 234</span>
+<span class="normal"> 235</span>
+<span class="normal"> 236</span>
+<span class="normal"> 237</span>
+<span class="normal"> 238</span>
+<span class="normal"> 239</span>
+<span class="normal"> 240</span>
+<span class="normal"> 241</span>
+<span class="normal"> 242</span>
+<span class="normal"> 243</span>
+<span class="normal"> 244</span>
+<span class="normal"> 245</span>
+<span class="normal"> 246</span>
+<span class="normal"> 247</span>
+<span class="normal"> 248</span>
+<span class="normal"> 249</span>
+<span class="normal"> 250</span>
+<span class="normal"> 251</span>
+<span class="normal"> 252</span>
+<span class="normal"> 253</span>
+<span class="normal"> 254</span>
+<span class="normal"> 255</span>
+<span class="normal"> 256</span>
+<span class="normal"> 257</span>
+<span class="normal"> 258</span>
+<span class="normal"> 259</span>
+<span class="normal"> 260</span>
+<span class="normal"> 261</span>
+<span class="normal"> 262</span>
+<span class="normal"> 263</span>
+<span class="normal"> 264</span>
+<span class="normal"> 265</span>
+<span class="normal"> 266</span>
+<span class="normal"> 267</span>
+<span class="normal"> 268</span>
+<span class="normal"> 269</span>
+<span class="normal"> 270</span>
+<span class="normal"> 271</span>
+<span class="normal"> 272</span>
+<span class="normal"> 273</span>
+<span class="normal"> 274</span>
+<span class="normal"> 275</span>
+<span class="normal"> 276</span>
+<span class="normal"> 277</span>
+<span class="normal"> 278</span>
+<span class="normal"> 279</span>
+<span class="normal"> 280</span>
+<span class="normal"> 281</span>
+<span class="normal"> 282</span>
+<span class="normal"> 283</span>
+<span class="normal"> 284</span>
+<span class="normal"> 285</span>
+<span class="normal"> 286</span>
+<span class="normal"> 287</span>
+<span class="normal"> 288</span>
+<span class="normal"> 289</span>
+<span class="normal"> 290</span>
+<span class="normal"> 291</span>
+<span class="normal"> 292</span>
+<span class="normal"> 293</span>
+<span class="normal"> 294</span>
+<span class="normal"> 295</span>
+<span class="normal"> 296</span>
+<span class="normal"> 297</span>
+<span class="normal"> 298</span>
+<span class="normal"> 299</span>
+<span class="normal"> 300</span>
+<span class="normal"> 301</span>
+<span class="normal"> 302</span>
+<span class="normal"> 303</span>
+<span class="normal"> 304</span>
+<span class="normal"> 305</span>
+<span class="normal"> 306</span>
+<span class="normal"> 307</span>
+<span class="normal"> 308</span>
+<span class="normal"> 309</span>
+<span class="normal"> 310</span>
+<span class="normal"> 311</span>
+<span class="normal"> 312</span>
+<span class="normal"> 313</span>
+<span class="normal"> 314</span>
+<span class="normal"> 315</span>
+<span class="normal"> 316</span>
+<span class="normal"> 317</span>
+<span class="normal"> 318</span>
+<span class="normal"> 319</span>
+<span class="normal"> 320</span>
+<span class="normal"> 321</span>
+<span class="normal"> 322</span>
+<span class="normal"> 323</span>
+<span class="normal"> 324</span>
+<span class="normal"> 325</span>
+<span class="normal"> 326</span>
+<span class="normal"> 327</span>
+<span class="normal"> 328</span>
+<span class="normal"> 329</span>
+<span class="normal"> 330</span>
+<span class="normal"> 331</span>
+<span class="normal"> 332</span>
+<span class="normal"> 333</span>
+<span class="normal"> 334</span>
+<span class="normal"> 335</span>
+<span class="normal"> 336</span>
+<span class="normal"> 337</span>
+<span class="normal"> 338</span>
+<span class="normal"> 339</span>
+<span class="normal"> 340</span>
+<span class="normal"> 341</span>
+<span class="normal"> 342</span>
+<span class="normal"> 343</span>
+<span class="normal"> 344</span>
+<span class="normal"> 345</span>
+<span class="normal"> 346</span>
+<span class="normal"> 347</span>
+<span class="normal"> 348</span>
+<span class="normal"> 349</span>
+<span class="normal"> 350</span>
+<span class="normal"> 351</span>
+<span class="normal"> 352</span>
+<span class="normal"> 353</span>
+<span class="normal"> 354</span>
+<span class="normal"> 355</span>
+<span class="normal"> 356</span>
+<span class="normal"> 357</span>
+<span class="normal"> 358</span>
+<span class="normal"> 359</span>
+<span class="normal"> 360</span>
+<span class="normal"> 361</span>
+<span class="normal"> 362</span>
+<span class="normal"> 363</span>
+<span class="normal"> 364</span>
+<span class="normal"> 365</span>
+<span class="normal"> 366</span>
+<span class="normal"> 367</span>
+<span class="normal"> 368</span>
+<span class="normal"> 369</span>
+<span class="normal"> 370</span>
+<span class="normal"> 371</span>
+<span class="normal"> 372</span>
+<span class="normal"> 373</span>
+<span class="normal"> 374</span>
+<span class="normal"> 375</span>
+<span class="normal"> 376</span>
+<span class="normal"> 377</span>
+<span class="normal"> 378</span>
+<span class="normal"> 379</span>
+<span class="normal"> 380</span>
+<span class="normal"> 381</span>
+<span class="normal"> 382</span>
+<span class="normal"> 383</span>
+<span class="normal"> 384</span>
+<span class="normal"> 385</span>
+<span class="normal"> 386</span>
+<span class="normal"> 387</span>
+<span class="normal"> 388</span>
+<span class="normal"> 389</span>
+<span class="normal"> 390</span>
+<span class="normal"> 391</span>
+<span class="normal"> 392</span>
+<span class="normal"> 393</span>
+<span class="normal"> 394</span>
+<span class="normal"> 395</span>
+<span class="normal"> 396</span>
+<span class="normal"> 397</span>
+<span class="normal"> 398</span>
+<span class="normal"> 399</span>
+<span class="normal"> 400</span>
+<span class="normal"> 401</span>
+<span class="normal"> 402</span>
+<span class="normal"> 403</span>
+<span class="normal"> 404</span>
+<span class="normal"> 405</span>
+<span class="normal"> 406</span>
+<span class="normal"> 407</span>
+<span class="normal"> 408</span>
+<span class="normal"> 409</span>
+<span class="normal"> 410</span>
+<span class="normal"> 411</span>
+<span class="normal"> 412</span>
+<span class="normal"> 413</span>
+<span class="normal"> 414</span>
+<span class="normal"> 415</span>
+<span class="normal"> 416</span>
+<span class="normal"> 417</span>
+<span class="normal"> 418</span>
+<span class="normal"> 419</span>
+<span class="normal"> 420</span>
+<span class="normal"> 421</span>
+<span class="normal"> 422</span>
+<span class="normal"> 423</span>
+<span class="normal"> 424</span>
+<span class="normal"> 425</span>
+<span class="normal"> 426</span>
+<span class="normal"> 427</span>
+<span class="normal"> 428</span>
+<span class="normal"> 429</span>
+<span class="normal"> 430</span>
+<span class="normal"> 431</span>
+<span class="normal"> 432</span>
+<span class="normal"> 433</span>
+<span class="normal"> 434</span>
+<span class="normal"> 435</span>
+<span class="normal"> 436</span>
+<span class="normal"> 437</span>
+<span class="normal"> 438</span>
+<span class="normal"> 439</span>
+<span class="normal"> 440</span>
+<span class="normal"> 441</span>
+<span class="normal"> 442</span>
+<span class="normal"> 443</span>
+<span class="normal"> 444</span>
+<span class="normal"> 445</span>
+<span class="normal"> 446</span>
+<span class="normal"> 447</span>
+<span class="normal"> 448</span>
+<span class="normal"> 449</span>
+<span class="normal"> 450</span>
+<span class="normal"> 451</span>
+<span class="normal"> 452</span>
+<span class="normal"> 453</span>
+<span class="normal"> 454</span>
+<span class="normal"> 455</span>
+<span class="normal"> 456</span>
+<span class="normal"> 457</span>
+<span class="normal"> 458</span>
+<span class="normal"> 459</span>
+<span class="normal"> 460</span>
+<span class="normal"> 461</span>
+<span class="normal"> 462</span>
+<span class="normal"> 463</span>
+<span class="normal"> 464</span>
+<span class="normal"> 465</span>
+<span class="normal"> 466</span>
+<span class="normal"> 467</span>
+<span class="normal"> 468</span>
+<span class="normal"> 469</span>
+<span class="normal"> 470</span>
+<span class="normal"> 471</span>
+<span class="normal"> 472</span>
+<span class="normal"> 473</span>
+<span class="normal"> 474</span>
+<span class="normal"> 475</span>
+<span class="normal"> 476</span>
+<span class="normal"> 477</span>
+<span class="normal"> 478</span>
+<span class="normal"> 479</span>
+<span class="normal"> 480</span>
+<span class="normal"> 481</span>
+<span class="normal"> 482</span>
+<span class="normal"> 483</span>
+<span class="normal"> 484</span>
+<span class="normal"> 485</span>
+<span class="normal"> 486</span>
+<span class="normal"> 487</span>
+<span class="normal"> 488</span>
+<span class="normal"> 489</span>
+<span class="normal"> 490</span>
+<span class="normal"> 491</span>
+<span class="normal"> 492</span>
+<span class="normal"> 493</span>
+<span class="normal"> 494</span>
+<span class="normal"> 495</span>
+<span class="normal"> 496</span>
+<span class="normal"> 497</span>
+<span class="normal"> 498</span>
+<span class="normal"> 499</span>
+<span class="normal"> 500</span>
+<span class="normal"> 501</span>
+<span class="normal"> 502</span>
+<span class="normal"> 503</span>
+<span class="normal"> 504</span>
+<span class="normal"> 505</span>
+<span class="normal"> 506</span>
+<span class="normal"> 507</span>
+<span class="normal"> 508</span>
+<span class="normal"> 509</span>
+<span class="normal"> 510</span>
+<span class="normal"> 511</span>
+<span class="normal"> 512</span>
+<span class="normal"> 513</span>
+<span class="normal"> 514</span>
+<span class="normal"> 515</span>
+<span class="normal"> 516</span>
+<span class="normal"> 517</span>
+<span class="normal"> 518</span>
+<span class="normal"> 519</span>
+<span class="normal"> 520</span>
+<span class="normal"> 521</span>
+<span class="normal"> 522</span>
+<span class="normal"> 523</span>
+<span class="normal"> 524</span>
+<span class="normal"> 525</span>
+<span class="normal"> 526</span>
+<span class="normal"> 527</span>
+<span class="normal"> 528</span>
+<span class="normal"> 529</span>
+<span class="normal"> 530</span>
+<span class="normal"> 531</span>
+<span class="normal"> 532</span>
+<span class="normal"> 533</span>
+<span class="normal"> 534</span>
+<span class="normal"> 535</span>
+<span class="normal"> 536</span>
+<span class="normal"> 537</span>
+<span class="normal"> 538</span>
+<span class="normal"> 539</span>
+<span class="normal"> 540</span>
+<span class="normal"> 541</span>
+<span class="normal"> 542</span>
+<span class="normal"> 543</span>
+<span class="normal"> 544</span>
+<span class="normal"> 545</span>
+<span class="normal"> 546</span>
+<span class="normal"> 547</span>
+<span class="normal"> 548</span>
+<span class="normal"> 549</span>
+<span class="normal"> 550</span>
+<span class="normal"> 551</span>
+<span class="normal"> 552</span>
+<span class="normal"> 553</span>
+<span class="normal"> 554</span>
+<span class="normal"> 555</span>
+<span class="normal"> 556</span>
+<span class="normal"> 557</span>
+<span class="normal"> 558</span>
+<span class="normal"> 559</span>
+<span class="normal"> 560</span>
+<span class="normal"> 561</span>
+<span class="normal"> 562</span>
+<span class="normal"> 563</span>
+<span class="normal"> 564</span>
+<span class="normal"> 565</span>
+<span class="normal"> 566</span>
+<span class="normal"> 567</span>
+<span class="normal"> 568</span>
+<span class="normal"> 569</span>
+<span class="normal"> 570</span>
+<span class="normal"> 571</span>
+<span class="normal"> 572</span>
+<span class="normal"> 573</span>
+<span class="normal"> 574</span>
+<span class="normal"> 575</span>
+<span class="normal"> 576</span>
+<span class="normal"> 577</span>
+<span class="normal"> 578</span>
+<span class="normal"> 579</span>
+<span class="normal"> 580</span>
+<span class="normal"> 581</span>
+<span class="normal"> 582</span>
+<span class="normal"> 583</span>
+<span class="normal"> 584</span>
+<span class="normal"> 585</span>
+<span class="normal"> 586</span>
+<span class="normal"> 587</span>
+<span class="normal"> 588</span>
+<span class="normal"> 589</span>
+<span class="normal"> 590</span>
+<span class="normal"> 591</span>
+<span class="normal"> 592</span>
+<span class="normal"> 593</span>
+<span class="normal"> 594</span>
+<span class="normal"> 595</span>
+<span class="normal"> 596</span>
+<span class="normal"> 597</span>
+<span class="normal"> 598</span>
+<span class="normal"> 599</span>
+<span class="normal"> 600</span>
+<span class="normal"> 601</span>
+<span class="normal"> 602</span>
+<span class="normal"> 603</span>
+<span class="normal"> 604</span>
+<span class="normal"> 605</span>
+<span class="normal"> 606</span>
+<span class="normal"> 607</span>
+<span class="normal"> 608</span>
+<span class="normal"> 609</span>
+<span class="normal"> 610</span>
+<span class="normal"> 611</span>
+<span class="normal"> 612</span>
+<span class="normal"> 613</span>
+<span class="normal"> 614</span>
+<span class="normal"> 615</span>
+<span class="normal"> 616</span>
+<span class="normal"> 617</span>
+<span class="normal"> 618</span>
+<span class="normal"> 619</span>
+<span class="normal"> 620</span>
+<span class="normal"> 621</span>
+<span class="normal"> 622</span>
+<span class="normal"> 623</span>
+<span class="normal"> 624</span>
+<span class="normal"> 625</span>
+<span class="normal"> 626</span>
+<span class="normal"> 627</span>
+<span class="normal"> 628</span>
+<span class="normal"> 629</span>
+<span class="normal"> 630</span>
+<span class="normal"> 631</span>
+<span class="normal"> 632</span>
+<span class="normal"> 633</span>
+<span class="normal"> 634</span>
+<span class="normal"> 635</span>
+<span class="normal"> 636</span>
+<span class="normal"> 637</span>
+<span class="normal"> 638</span>
+<span class="normal"> 639</span>
+<span class="normal"> 640</span>
+<span class="normal"> 641</span>
+<span class="normal"> 642</span>
+<span class="normal"> 643</span>
+<span class="normal"> 644</span>
+<span class="normal"> 645</span>
+<span class="normal"> 646</span>
+<span class="normal"> 647</span>
+<span class="normal"> 648</span>
+<span class="normal"> 649</span>
+<span class="normal"> 650</span>
+<span class="normal"> 651</span>
+<span class="normal"> 652</span>
+<span class="normal"> 653</span>
+<span class="normal"> 654</span>
+<span class="normal"> 655</span>
+<span class="normal"> 656</span>
+<span class="normal"> 657</span>
+<span class="normal"> 658</span>
+<span class="normal"> 659</span>
+<span class="normal"> 660</span>
+<span class="normal"> 661</span>
+<span class="normal"> 662</span>
+<span class="normal"> 663</span>
+<span class="normal"> 664</span>
+<span class="normal"> 665</span>
+<span class="normal"> 666</span>
+<span class="normal"> 667</span>
+<span class="normal"> 668</span>
+<span class="normal"> 669</span>
+<span class="normal"> 670</span>
+<span class="normal"> 671</span>
+<span class="normal"> 672</span>
+<span class="normal"> 673</span>
+<span class="normal"> 674</span>
+<span class="normal"> 675</span>
+<span class="normal"> 676</span>
+<span class="normal"> 677</span>
+<span class="normal"> 678</span>
+<span class="normal"> 679</span>
+<span class="normal"> 680</span>
+<span class="normal"> 681</span>
+<span class="normal"> 682</span>
+<span class="normal"> 683</span>
+<span class="normal"> 684</span>
+<span class="normal"> 685</span>
+<span class="normal"> 686</span>
+<span class="normal"> 687</span>
+<span class="normal"> 688</span>
+<span class="normal"> 689</span>
+<span class="normal"> 690</span>
+<span class="normal"> 691</span>
+<span class="normal"> 692</span>
+<span class="normal"> 693</span>
+<span class="normal"> 694</span>
+<span class="normal"> 695</span>
+<span class="normal"> 696</span>
+<span class="normal"> 697</span>
+<span class="normal"> 698</span>
+<span class="normal"> 699</span>
+<span class="normal"> 700</span>
+<span class="normal"> 701</span>
+<span class="normal"> 702</span>
+<span class="normal"> 703</span>
+<span class="normal"> 704</span>
+<span class="normal"> 705</span>
+<span class="normal"> 706</span>
+<span class="normal"> 707</span>
+<span class="normal"> 708</span>
+<span class="normal"> 709</span>
+<span class="normal"> 710</span>
+<span class="normal"> 711</span>
+<span class="normal"> 712</span>
+<span class="normal"> 713</span>
+<span class="normal"> 714</span>
+<span class="normal"> 715</span>
+<span class="normal"> 716</span>
+<span class="normal"> 717</span>
+<span class="normal"> 718</span>
+<span class="normal"> 719</span>
+<span class="normal"> 720</span>
+<span class="normal"> 721</span>
+<span class="normal"> 722</span>
+<span class="normal"> 723</span>
+<span class="normal"> 724</span>
+<span class="normal"> 725</span>
+<span class="normal"> 726</span>
+<span class="normal"> 727</span>
+<span class="normal"> 728</span>
+<span class="normal"> 729</span>
+<span class="normal"> 730</span>
+<span class="normal"> 731</span>
+<span class="normal"> 732</span>
+<span class="normal"> 733</span>
+<span class="normal"> 734</span>
+<span class="normal"> 735</span>
+<span class="normal"> 736</span>
+<span class="normal"> 737</span>
+<span class="normal"> 738</span>
+<span class="normal"> 739</span>
+<span class="normal"> 740</span>
+<span class="normal"> 741</span>
+<span class="normal"> 742</span>
+<span class="normal"> 743</span>
+<span class="normal"> 744</span>
+<span class="normal"> 745</span>
+<span class="normal"> 746</span>
+<span class="normal"> 747</span>
+<span class="normal"> 748</span>
+<span class="normal"> 749</span>
+<span class="normal"> 750</span>
+<span class="normal"> 751</span>
+<span class="normal"> 752</span>
+<span class="normal"> 753</span>
+<span class="normal"> 754</span>
+<span class="normal"> 755</span>
+<span class="normal"> 756</span>
+<span class="normal"> 757</span>
+<span class="normal"> 758</span>
+<span class="normal"> 759</span>
+<span class="normal"> 760</span>
+<span class="normal"> 761</span>
+<span class="normal"> 762</span>
+<span class="normal"> 763</span>
+<span class="normal"> 764</span>
+<span class="normal"> 765</span>
+<span class="normal"> 766</span>
+<span class="normal"> 767</span>
+<span class="normal"> 768</span>
+<span class="normal"> 769</span>
+<span class="normal"> 770</span>
+<span class="normal"> 771</span>
+<span class="normal"> 772</span>
+<span class="normal"> 773</span>
+<span class="normal"> 774</span>
+<span class="normal"> 775</span>
+<span class="normal"> 776</span>
+<span class="normal"> 777</span>
+<span class="normal"> 778</span>
+<span class="normal"> 779</span>
+<span class="normal"> 780</span>
+<span class="normal"> 781</span>
+<span class="normal"> 782</span>
+<span class="normal"> 783</span>
+<span class="normal"> 784</span>
+<span class="normal"> 785</span>
+<span class="normal"> 786</span>
+<span class="normal"> 787</span>
+<span class="normal"> 788</span>
+<span class="normal"> 789</span>
+<span class="normal"> 790</span>
+<span class="normal"> 791</span>
+<span class="normal"> 792</span>
+<span class="normal"> 793</span>
+<span class="normal"> 794</span>
+<span class="normal"> 795</span>
+<span class="normal"> 796</span>
+<span class="normal"> 797</span>
+<span class="normal"> 798</span>
+<span class="normal"> 799</span>
+<span class="normal"> 800</span>
+<span class="normal"> 801</span>
+<span class="normal"> 802</span>
+<span class="normal"> 803</span>
+<span class="normal"> 804</span>
+<span class="normal"> 805</span>
+<span class="normal"> 806</span>
+<span class="normal"> 807</span>
+<span class="normal"> 808</span>
+<span class="normal"> 809</span>
+<span class="normal"> 810</span>
+<span class="normal"> 811</span>
+<span class="normal"> 812</span>
+<span class="normal"> 813</span>
+<span class="normal"> 814</span>
+<span class="normal"> 815</span>
+<span class="normal"> 816</span>
+<span class="normal"> 817</span>
+<span class="normal"> 818</span>
+<span class="normal"> 819</span>
+<span class="normal"> 820</span>
+<span class="normal"> 821</span>
+<span class="normal"> 822</span>
+<span class="normal"> 823</span>
+<span class="normal"> 824</span>
+<span class="normal"> 825</span>
+<span class="normal"> 826</span>
+<span class="normal"> 827</span>
+<span class="normal"> 828</span>
+<span class="normal"> 829</span>
+<span class="normal"> 830</span>
+<span class="normal"> 831</span>
+<span class="normal"> 832</span>
+<span class="normal"> 833</span>
+<span class="normal"> 834</span>
+<span class="normal"> 835</span>
+<span class="normal"> 836</span>
+<span class="normal"> 837</span>
+<span class="normal"> 838</span>
+<span class="normal"> 839</span>
+<span class="normal"> 840</span>
+<span class="normal"> 841</span>
+<span class="normal"> 842</span>
+<span class="normal"> 843</span>
+<span class="normal"> 844</span>
+<span class="normal"> 845</span>
+<span class="normal"> 846</span>
+<span class="normal"> 847</span>
+<span class="normal"> 848</span>
+<span class="normal"> 849</span>
+<span class="normal"> 850</span>
+<span class="normal"> 851</span>
+<span class="normal"> 852</span>
+<span class="normal"> 853</span>
+<span class="normal"> 854</span>
+<span class="normal"> 855</span>
+<span class="normal"> 856</span>
+<span class="normal"> 857</span>
+<span class="normal"> 858</span>
+<span class="normal"> 859</span>
+<span class="normal"> 860</span>
+<span class="normal"> 861</span>
+<span class="normal"> 862</span>
+<span class="normal"> 863</span>
+<span class="normal"> 864</span>
+<span class="normal"> 865</span>
+<span class="normal"> 866</span>
+<span class="normal"> 867</span>
+<span class="normal"> 868</span>
+<span class="normal"> 869</span>
+<span class="normal"> 870</span>
+<span class="normal"> 871</span>
+<span class="normal"> 872</span>
+<span class="normal"> 873</span>
+<span class="normal"> 874</span>
+<span class="normal"> 875</span>
+<span class="normal"> 876</span>
+<span class="normal"> 877</span>
+<span class="normal"> 878</span>
+<span class="normal"> 879</span>
+<span class="normal"> 880</span>
+<span class="normal"> 881</span>
+<span class="normal"> 882</span>
+<span class="normal"> 883</span>
+<span class="normal"> 884</span>
+<span class="normal"> 885</span>
+<span class="normal"> 886</span>
+<span class="normal"> 887</span>
+<span class="normal"> 888</span>
+<span class="normal"> 889</span>
+<span class="normal"> 890</span>
+<span class="normal"> 891</span>
+<span class="normal"> 892</span>
+<span class="normal"> 893</span>
+<span class="normal"> 894</span>
+<span class="normal"> 895</span>
+<span class="normal"> 896</span>
+<span class="normal"> 897</span>
+<span class="normal"> 898</span>
+<span class="normal"> 899</span>
+<span class="normal"> 900</span>
+<span class="normal"> 901</span>
+<span class="normal"> 902</span>
+<span class="normal"> 903</span>
+<span class="normal"> 904</span>
+<span class="normal"> 905</span>
+<span class="normal"> 906</span>
+<span class="normal"> 907</span>
+<span class="normal"> 908</span>
+<span class="normal"> 909</span>
+<span class="normal"> 910</span>
+<span class="normal"> 911</span>
+<span class="normal"> 912</span>
+<span class="normal"> 913</span>
+<span class="normal"> 914</span>
+<span class="normal"> 915</span>
+<span class="normal"> 916</span>
+<span class="normal"> 917</span>
+<span class="normal"> 918</span>
+<span class="normal"> 919</span>
+<span class="normal"> 920</span>
+<span class="normal"> 921</span>
+<span class="normal"> 922</span>
+<span class="normal"> 923</span>
+<span class="normal"> 924</span>
+<span class="normal"> 925</span>
+<span class="normal"> 926</span>
+<span class="normal"> 927</span>
+<span class="normal"> 928</span>
+<span class="normal"> 929</span>
+<span class="normal"> 930</span>
+<span class="normal"> 931</span>
+<span class="normal"> 932</span>
+<span class="normal"> 933</span>
+<span class="normal"> 934</span>
+<span class="normal"> 935</span>
+<span class="normal"> 936</span>
+<span class="normal"> 937</span>
+<span class="normal"> 938</span>
+<span class="normal"> 939</span>
+<span class="normal"> 940</span>
+<span class="normal"> 941</span>
+<span class="normal"> 942</span>
+<span class="normal"> 943</span>
+<span class="normal"> 944</span>
+<span class="normal"> 945</span>
+<span class="normal"> 946</span>
+<span class="normal"> 947</span>
+<span class="normal"> 948</span>
+<span class="normal"> 949</span>
+<span class="normal"> 950</span>
+<span class="normal"> 951</span>
+<span class="normal"> 952</span>
+<span class="normal"> 953</span>
+<span class="normal"> 954</span>
+<span class="normal"> 955</span>
+<span class="normal"> 956</span>
+<span class="normal"> 957</span>
+<span class="normal"> 958</span>
+<span class="normal"> 959</span>
+<span class="normal"> 960</span>
+<span class="normal"> 961</span>
+<span class="normal"> 962</span>
+<span class="normal"> 963</span>
+<span class="normal"> 964</span>
+<span class="normal"> 965</span>
+<span class="normal"> 966</span>
+<span class="normal"> 967</span>
+<span class="normal"> 968</span>
+<span class="normal"> 969</span>
+<span class="normal"> 970</span>
+<span class="normal"> 971</span>
+<span class="normal"> 972</span>
+<span class="normal"> 973</span>
+<span class="normal"> 974</span>
+<span class="normal"> 975</span>
+<span class="normal"> 976</span>
+<span class="normal"> 977</span>
+<span class="normal"> 978</span>
+<span class="normal"> 979</span>
+<span class="normal"> 980</span>
+<span class="normal"> 981</span>
+<span class="normal"> 982</span>
+<span class="normal"> 983</span>
+<span class="normal"> 984</span>
+<span class="normal"> 985</span>
+<span class="normal"> 986</span>
+<span class="normal"> 987</span>
+<span class="normal"> 988</span>
+<span class="normal"> 989</span>
+<span class="normal"> 990</span>
+<span class="normal"> 991</span>
+<span class="normal"> 992</span>
+<span class="normal"> 993</span>
+<span class="normal"> 994</span>
+<span class="normal"> 995</span>
+<span class="normal"> 996</span>
+<span class="normal"> 997</span>
+<span class="normal"> 998</span>
+<span class="normal"> 999</span>
+<span class="normal">1000</span>
+<span class="normal">1001</span>
+<span class="normal">1002</span>
+<span class="normal">1003</span>
+<span class="normal">1004</span>
+<span class="normal">1005</span>
+<span class="normal">1006</span>
+<span class="normal">1007</span>
+<span class="normal">1008</span>
+<span class="normal">1009</span>
+<span class="normal">1010</span>
+<span class="normal">1011</span>
+<span class="normal">1012</span>
+<span class="normal">1013</span>
+<span class="normal">1014</span>
+<span class="normal">1015</span>
+<span class="normal">1016</span>
+<span class="normal">1017</span>
+<span class="normal">1018</span>
+<span class="normal">1019</span>
+<span class="normal">1020</span>
+<span class="normal">1021</span>
+<span class="normal">1022</span>
+<span class="normal">1023</span>
+<span class="normal">1024</span>
+<span class="normal">1025</span>
+<span class="normal">1026</span>
+<span class="normal">1027</span>
+<span class="normal">1028</span>
+<span class="normal">1029</span>
+<span class="normal">1030</span>
+<span class="normal">1031</span>
+<span class="normal">1032</span>
+<span class="normal">1033</span>
+<span class="normal">1034</span>
+<span class="normal">1035</span>
+<span class="normal">1036</span>
+<span class="normal">1037</span>
+<span class="normal">1038</span>
+<span class="normal">1039</span>
+<span class="normal">1040</span>
+<span class="normal">1041</span>
+<span class="normal">1042</span>
+<span class="normal">1043</span>
+<span class="normal">1044</span>
+<span class="normal">1045</span>
+<span class="normal">1046</span>
+<span class="normal">1047</span>
+<span class="normal">1048</span>
+<span class="normal">1049</span>
+<span class="normal">1050</span>
+<span class="normal">1051</span>
+<span class="normal">1052</span>
+<span class="normal">1053</span>
+<span class="normal">1054</span>
+<span class="normal">1055</span>
+<span class="normal">1056</span>
+<span class="normal">1057</span>
+<span class="normal">1058</span>
+<span class="normal">1059</span>
+<span class="normal">1060</span>
+<span class="normal">1061</span>
+<span class="normal">1062</span>
+<span class="normal">1063</span>
+<span class="normal">1064</span>
+<span class="normal">1065</span>
+<span class="normal">1066</span>
+<span class="normal">1067</span>
+<span class="normal">1068</span>
+<span class="normal">1069</span>
+<span class="normal">1070</span>
+<span class="normal">1071</span>
+<span class="normal">1072</span>
+<span class="normal">1073</span>
+<span class="normal">1074</span>
+<span class="normal">1075</span>
+<span class="normal">1076</span>
+<span class="normal">1077</span>
+<span class="normal">1078</span>
+<span class="normal">1079</span>
+<span class="normal">1080</span>
+<span class="normal">1081</span>
+<span class="normal">1082</span>
+<span class="normal">1083</span>
+<span class="normal">1084</span>
+<span class="normal">1085</span>
+<span class="normal">1086</span>
+<span class="normal">1087</span>
+<span class="normal">1088</span>
+<span class="normal">1089</span>
+<span class="normal">1090</span>
+<span class="normal">1091</span>
+<span class="normal">1092</span>
+<span class="normal">1093</span>
+<span class="normal">1094</span>
+<span class="normal">1095</span>
+<span class="normal">1096</span>
+<span class="normal">1097</span>
+<span class="normal">1098</span>
+<span class="normal">1099</span>
+<span class="normal">1100</span>
+<span class="normal">1101</span>
+<span class="normal">1102</span>
+<span class="normal">1103</span>
+<span class="normal">1104</span>
+<span class="normal">1105</span>
+<span class="normal">1106</span>
+<span class="normal">1107</span>
+<span class="normal">1108</span>
+<span class="normal">1109</span>
+<span class="normal">1110</span>
+<span class="normal">1111</span>
+<span class="normal">1112</span>
+<span class="normal">1113</span>
+<span class="normal">1114</span>
+<span class="normal">1115</span>
+<span class="normal">1116</span>
+<span class="normal">1117</span>
+<span class="normal">1118</span>
+<span class="normal">1119</span>
+<span class="normal">1120</span>
+<span class="normal">1121</span>
+<span class="normal">1122</span>
+<span class="normal">1123</span>
+<span class="normal">1124</span>
+<span class="normal">1125</span>
+<span class="normal">1126</span>
+<span class="normal">1127</span>
+<span class="normal">1128</span>
+<span class="normal">1129</span>
+<span class="normal">1130</span>
+<span class="normal">1131</span>
+<span class="normal">1132</span>
+<span class="normal">1133</span>
+<span class="normal">1134</span>
+<span class="normal">1135</span>
+<span class="normal">1136</span>
+<span class="normal">1137</span>
+<span class="normal">1138</span>
+<span class="normal">1139</span>
+<span class="normal">1140</span>
+<span class="normal">1141</span>
+<span class="normal">1142</span>
+<span class="normal">1143</span>
+<span class="normal">1144</span>
+<span class="normal">1145</span>
+<span class="normal">1146</span>
+<span class="normal">1147</span>
+<span class="normal">1148</span>
+<span class="normal">1149</span>
+<span class="normal">1150</span>
+<span class="normal">1151</span>
+<span class="normal">1152</span>
+<span class="normal">1153</span>
+<span class="normal">1154</span>
+<span class="normal">1155</span>
+<span class="normal">1156</span>
+<span class="normal">1157</span>
+<span class="normal">1158</span>
+<span class="normal">1159</span>
+<span class="normal">1160</span>
+<span class="normal">1161</span>
+<span class="normal">1162</span>
+<span class="normal">1163</span>
+<span class="normal">1164</span>
+<span class="normal">1165</span>
+<span class="normal">1166</span>
+<span class="normal">1167</span>
+<span class="normal">1168</span>
+<span class="normal">1169</span>
+<span class="normal">1170</span>
+<span class="normal">1171</span>
+<span class="normal">1172</span>
+<span class="normal">1173</span>
+<span class="normal">1174</span>
+<span class="normal">1175</span>
+<span class="normal">1176</span>
+<span class="normal">1177</span>
+<span class="normal">1178</span>
+<span class="normal">1179</span>
+<span class="normal">1180</span>
+<span class="normal">1181</span>
+<span class="normal">1182</span>
+<span class="normal">1183</span>
+<span class="normal">1184</span>
+<span class="normal">1185</span>
+<span class="normal">1186</span>
+<span class="normal">1187</span>
+<span class="normal">1188</span>
+<span class="normal">1189</span>
+<span class="normal">1190</span>
+<span class="normal">1191</span>
+<span class="normal">1192</span>
+<span class="normal">1193</span>
+<span class="normal">1194</span>
+<span class="normal">1195</span>
+<span class="normal">1196</span>
+<span class="normal">1197</span>
+<span class="normal">1198</span>
+<span class="normal">1199</span>
+<span class="normal">1200</span>
+<span class="normal">1201</span>
+<span class="normal">1202</span>
+<span class="normal">1203</span>
+<span class="normal">1204</span>
+<span class="normal">1205</span>
+<span class="normal">1206</span>
+<span class="normal">1207</span>
+<span class="normal">1208</span>
+<span class="normal">1209</span>
+<span class="normal">1210</span>
+<span class="normal">1211</span>
+<span class="normal">1212</span>
+<span class="normal">1213</span>
+<span class="normal">1214</span>
+<span class="normal">1215</span>
+<span class="normal">1216</span>
+<span class="normal">1217</span>
+<span class="normal">1218</span>
+<span class="normal">1219</span>
+<span class="normal">1220</span>
+<span class="normal">1221</span>
+<span class="normal">1222</span>
+<span class="normal">1223</span>
+<span class="normal">1224</span>
+<span class="normal">1225</span>
+<span class="normal">1226</span>
+<span class="normal">1227</span>
+<span class="normal">1228</span>
+<span class="normal">1229</span>
+<span class="normal">1230</span>
+<span class="normal">1231</span>
+<span class="normal">1232</span>
+<span class="normal">1233</span>
+<span class="normal">1234</span>
+<span class="normal">1235</span>
+<span class="normal">1236</span>
+<span class="normal">1237</span>
+<span class="normal">1238</span>
+<span class="normal">1239</span>
+<span class="normal">1240</span>
+<span class="normal">1241</span>
+<span class="normal">1242</span>
+<span class="normal">1243</span>
+<span class="normal">1244</span>
+<span class="normal">1245</span>
+<span class="normal">1246</span>
+<span class="normal">1247</span>
+<span class="normal">1248</span>
+<span class="normal">1249</span>
+<span class="normal">1250</span>
+<span class="normal">1251</span>
+<span class="normal">1252</span>
+<span class="normal">1253</span>
+<span class="normal">1254</span>
+<span class="normal">1255</span>
+<span class="normal">1256</span>
+<span class="normal">1257</span>
+<span class="normal">1258</span>
+<span class="normal">1259</span>
+<span class="normal">1260</span>
+<span class="normal">1261</span>
+<span class="normal">1262</span>
+<span class="normal">1263</span>
+<span class="normal">1264</span>
+<span class="normal">1265</span>
+<span class="normal">1266</span>
+<span class="normal">1267</span>
+<span class="normal">1268</span>
+<span class="normal">1269</span>
+<span class="normal">1270</span>
+<span class="normal">1271</span>
+<span class="normal">1272</span>
+<span class="normal">1273</span>
+<span class="normal">1274</span>
+<span class="normal">1275</span>
+<span class="normal">1276</span>
+<span class="normal">1277</span>
+<span class="normal">1278</span>
+<span class="normal">1279</span>
+<span class="normal">1280</span>
+<span class="normal">1281</span>
+<span class="normal">1282</span>
+<span class="normal">1283</span>
+<span class="normal">1284</span>
+<span class="normal">1285</span>
+<span class="normal">1286</span>
+<span class="normal">1287</span>
+<span class="normal">1288</span>
+<span class="normal">1289</span>
+<span class="normal">1290</span>
+<span class="normal">1291</span>
+<span class="normal">1292</span>
+<span class="normal">1293</span>
+<span class="normal">1294</span>
+<span class="normal">1295</span>
+<span class="normal">1296</span>
+<span class="normal">1297</span>
+<span class="normal">1298</span>
+<span class="normal">1299</span>
+<span class="normal">1300</span>
+<span class="normal">1301</span>
+<span class="normal">1302</span>
+<span class="normal">1303</span>
+<span class="normal">1304</span>
+<span class="normal">1305</span>
+<span class="normal">1306</span>
+<span class="normal">1307</span>
+<span class="normal">1308</span>
+<span class="normal">1309</span>
+<span class="normal">1310</span>
+<span class="normal">1311</span>
+<span class="normal">1312</span>
+<span class="normal">1313</span>
+<span class="normal">1314</span>
+<span class="normal">1315</span>
+<span class="normal">1316</span>
+<span class="normal">1317</span>
+<span class="normal">1318</span>
+<span class="normal">1319</span>
+<span class="normal">1320</span>
+<span class="normal">1321</span>
+<span class="normal">1322</span>
+<span class="normal">1323</span>
+<span class="normal">1324</span>
+<span class="normal">1325</span>
+<span class="normal">1326</span>
+<span class="normal">1327</span>
+<span class="normal">1328</span>
+<span class="normal">1329</span>
+<span class="normal">1330</span>
+<span class="normal">1331</span>
+<span class="normal">1332</span>
+<span class="normal">1333</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-</span>
+<a id="line-2" name="line-2"></a><span class="cm"> *</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright 2008 Red Hat, Inc,</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * 2007 William Jon McCann &lt;[email protected]&gt;</span>
+<a id="line-5" name="line-5"></a><span class="cm"> *</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * This program is free software; you can redistribute it and/or modify</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * (at your option) any later version.</span>
+<a id="line-10" name="line-10"></a><span class="cm"> *</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * GNU General Public License for more details.</span>
+<a id="line-15" name="line-15"></a><span class="cm"> *</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * along with this program; if not, see &lt;http://www.gnu.org/licenses/&gt;.</span>
+<a id="line-18" name="line-18"></a><span class="cm"> *</span>
+<a id="line-19" name="line-19"></a><span class="cm"> * Written by : William Jon McCann &lt;[email protected]&gt;</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Ray Strode &lt;[email protected]&gt;</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-24" name="line-24"></a>
+<a id="line-25" name="line-25"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdlib.h&gt;</span><span class="error2">&lt;--- Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdio.h&gt;</span><span class="error2">&lt;--- Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;unistd.h&gt;</span><span class="error2">&lt;--- Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;errno.h&gt;</span><span class="error2">&lt;--- Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;dirent.h&gt;</span><span class="error2">&lt;--- Include file: <dirent.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-31" name="line-31"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;locale.h&gt;</span><span class="error2">&lt;--- Include file: <locale.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-32" name="line-32"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;langinfo.h&gt;</span><span class="error2">&lt;--- Include file: <langinfo.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-33" name="line-33"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;sys/stat.h&gt;</span><span class="error2">&lt;--- Include file: <sys/stat.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-34" name="line-34"></a>
+<a id="line-35" name="line-35"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib.h&gt;</span><span class="error2">&lt;--- Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-36" name="line-36"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-37" name="line-37"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gstdio.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gstdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-38" name="line-38"></a>
+<a id="line-39" name="line-39"></a><span class="cp">#define MATE_DESKTOP_USE_UNSTABLE_API</span>
+<a id="line-40" name="line-40"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;mate-languages.h&quot;</span>
+<a id="line-41" name="line-41"></a>
+<a id="line-42" name="line-42"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;langinfo.h&gt;</span><span class="error2">&lt;--- Include file: <langinfo.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-43" name="line-43"></a><span class="cp">#ifndef __LC_LAST</span>
+<a id="line-44" name="line-44"></a><span class="cp">#define __LC_LAST 13</span>
+<a id="line-45" name="line-45"></a><span class="cp">#endif</span>
+<a id="line-46" name="line-46"></a>
+<a id="line-47" name="line-47"></a><span class="cp">#define ISO_CODES_DATADIR ISO_CODES_PREFIX &quot;/share/xml/iso-codes&quot;</span>
+<a id="line-48" name="line-48"></a><span class="cp">#define ISO_CODES_LOCALESDIR ISO_CODES_PREFIX &quot;/share/locale&quot;</span>
+<a id="line-49" name="line-49"></a>
+<a id="line-50" name="line-50"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_MateLocale</span><span class="w"> </span><span class="p">{</span>
+<a id="line-51" name="line-51"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">id</span><span class="p">;</span>
+<a id="line-52" name="line-52"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span>
+<a id="line-53" name="line-53"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">language_code</span><span class="p">;</span>
+<a id="line-54" name="line-54"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">territory_code</span><span class="p">;</span>
+<a id="line-55" name="line-55"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">codeset</span><span class="p">;</span>
+<a id="line-56" name="line-56"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">modifier</span><span class="p">;</span>
+<a id="line-57" name="line-57"></a><span class="p">}</span><span class="w"> </span><span class="n">MateLocale</span><span class="p">;</span>
+<a id="line-58" name="line-58"></a>
+<a id="line-59" name="line-59"></a><span class="k">static</span><span class="w"> </span><span class="n">GHashTable</span><span class="w"> </span><span class="o">*</span><span class="n">mate_languages_map</span><span class="p">;</span>
+<a id="line-60" name="line-60"></a><span class="k">static</span><span class="w"> </span><span class="n">GHashTable</span><span class="w"> </span><span class="o">*</span><span class="n">mate_territories_map</span><span class="p">;</span>
+<a id="line-61" name="line-61"></a><span class="k">static</span><span class="w"> </span><span class="n">GHashTable</span><span class="w"> </span><span class="o">*</span><span class="n">mate_available_locales_map</span><span class="p">;</span>
+<a id="line-62" name="line-62"></a><span class="k">static</span><span class="w"> </span><span class="n">GHashTable</span><span class="w"> </span><span class="o">*</span><span class="n">mate_language_count_map</span><span class="p">;</span>
+<a id="line-63" name="line-63"></a><span class="k">static</span><span class="w"> </span><span class="n">GHashTable</span><span class="w"> </span><span class="o">*</span><span class="n">mate_territory_count_map</span><span class="p">;</span>
+<a id="line-64" name="line-64"></a>
+<a id="line-65" name="line-65"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nf">construct_language_name</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">language</span><span class="p">,</span>
+<a id="line-66" name="line-66"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">territory</span><span class="p">,</span>
+<a id="line-67" name="line-67"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">codeset</span><span class="p">,</span>
+<a id="line-68" name="line-68"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">modifier</span><span class="p">);</span>
+<a id="line-69" name="line-69"></a>
+<a id="line-70" name="line-70"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">language_name_is_valid</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">language_name</span><span class="p">);</span>
+<a id="line-71" name="line-71"></a>
+<a id="line-72" name="line-72"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-73" name="line-73"></a><span class="nf">mate_locale_free</span><span class="w"> </span><span class="p">(</span><span class="n">MateLocale</span><span class="w"> </span><span class="o">*</span><span class="n">locale</span><span class="p">)</span>
+<a id="line-74" name="line-74"></a><span class="p">{</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-78" name="line-78"></a>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">);</span>
+<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">);</span>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">codeset</span><span class="p">);</span>
+<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">modifier</span><span class="p">);</span>
+<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">language_code</span><span class="p">);</span>
+<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">territory_code</span><span class="p">);</span>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="p">);</span>
+<a id="line-86" name="line-86"></a><span class="p">}</span>
+<a id="line-87" name="line-87"></a>
+<a id="line-88" name="line-88"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-89" name="line-89"></a><span class="nf">normalize_codeset</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">codeset</span><span class="p">)</span>
+<a id="line-90" name="line-90"></a><span class="p">{</span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">codeset</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-92" name="line-92"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-93" name="line-93"></a>
+<a id="line-94" name="line-94"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_str_equal</span><span class="w"> </span><span class="p">(</span><span class="n">codeset</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">||</span>
+<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">g_str_equal</span><span class="w"> </span><span class="p">(</span><span class="n">codeset</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;utf8&quot;</span><span class="p">))</span>
+<a id="line-96" name="line-96"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;UTF-8&quot;</span><span class="p">);</span>
+<a id="line-97" name="line-97"></a>
+<a id="line-98" name="line-98"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">codeset</span><span class="p">);</span>
+<a id="line-99" name="line-99"></a><span class="p">}</span>
+<a id="line-100" name="line-100"></a>
+<a id="line-101" name="line-101"></a><span class="cm">/**</span>
+<a id="line-102" name="line-102"></a><span class="cm"> * mate_parse_locale:</span>
+<a id="line-103" name="line-103"></a><span class="cm"> * @locale: a locale string</span>
+<a id="line-104" name="line-104"></a><span class="cm"> * @language_codep: (out) (allow-none) (transfer full): location to</span>
+<a id="line-105" name="line-105"></a><span class="cm"> * store the language code, or %NULL</span>
+<a id="line-106" name="line-106"></a><span class="cm"> * @country_codep: (out) (allow-none) (transfer full): location to</span>
+<a id="line-107" name="line-107"></a><span class="cm"> * store the country code, or %NULL</span>
+<a id="line-108" name="line-108"></a><span class="cm"> * @codesetp: (out) (allow-none) (transfer full): location to</span>
+<a id="line-109" name="line-109"></a><span class="cm"> * store the codeset, or %NULL</span>
+<a id="line-110" name="line-110"></a><span class="cm"> * @modifierp: (out) (allow-none) (transfer full): location to</span>
+<a id="line-111" name="line-111"></a><span class="cm"> * store the modifier, or %NULL</span>
+<a id="line-112" name="line-112"></a><span class="cm"> *</span>
+<a id="line-113" name="line-113"></a><span class="cm"> * Extracts the various components of a locale string of the form</span>
+<a id="line-114" name="line-114"></a><span class="cm"> * [language[_country][.codeset][@modifier]]. See</span>
+<a id="line-115" name="line-115"></a><span class="cm"> * http://en.wikipedia.org/wiki/Locale.</span>
+<a id="line-116" name="line-116"></a><span class="cm"> *</span>
+<a id="line-117" name="line-117"></a><span class="cm"> * Return value: %TRUE if parsing was successful.</span>
+<a id="line-118" name="line-118"></a><span class="cm"> *</span>
+<a id="line-119" name="line-119"></a><span class="cm"> * Since: 1.22</span>
+<a id="line-120" name="line-120"></a><span class="cm"> */</span>
+<a id="line-121" name="line-121"></a><span class="n">gboolean</span>
+<a id="line-122" name="line-122"></a><span class="nf">mate_parse_locale</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">locale</span><span class="p">,</span>
+<a id="line-123" name="line-123"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">language_codep</span><span class="p">,</span>
+<a id="line-124" name="line-124"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">country_codep</span><span class="p">,</span>
+<a id="line-125" name="line-125"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">codesetp</span><span class="p">,</span>
+<a id="line-126" name="line-126"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">modifierp</span><span class="p">)</span>
+<a id="line-127" name="line-127"></a><span class="p">{</span>
+<a id="line-128" name="line-128"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">GRegex</span><span class="w"> </span><span class="o">*</span><span class="n">re</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">GMatchInfo</span><span class="w"> </span><span class="o">*</span><span class="n">match_info</span><span class="p">;</span>
+<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">res</span><span class="p">;</span>
+<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">normalized_codeset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">normalized_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-133" name="line-133"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span>
+<a id="line-134" name="line-134"></a>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">match_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-137" name="line-137"></a>
+<a id="line-138" name="line-138"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">re</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">re</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_regex_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;^(?P&lt;language&gt;[^_.@[:space:]]+)&quot;</span>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="s">&quot;(_(?P&lt;territory&gt;[[:upper:]]+))?&quot;</span>
+<a id="line-142" name="line-142"></a><span class="w"> </span><span class="s">&quot;(</span><span class="se">\\</span><span class="s">.(?P&lt;codeset&gt;[-_0-9a-zA-Z]+))?&quot;</span>
+<a id="line-143" name="line-143"></a><span class="w"> </span><span class="s">&quot;(@(?P&lt;modifier&gt;[[:ascii:]]+))?$&quot;</span><span class="p">,</span>
+<a id="line-144" name="line-144"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-145" name="line-145"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">re</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;%s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span>
+<a id="line-148" name="line-148"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span>
+<a id="line-149" name="line-149"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-150" name="line-150"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-151" name="line-151"></a>
+<a id="line-152" name="line-152"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_regex_match</span><span class="w"> </span><span class="p">(</span><span class="n">re</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">match_info</span><span class="p">)</span><span class="w"> </span><span class="o">||</span>
+<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">g_match_info_is_partial_match</span><span class="w"> </span><span class="p">(</span><span class="n">match_info</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;locale &#39;%s&#39; isn&#39;t valid</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="p">);</span>
+<a id="line-155" name="line-155"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-157" name="line-157"></a>
+<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_match_info_matches</span><span class="w"> </span><span class="p">(</span><span class="n">match_info</span><span class="p">);</span>
+<a id="line-159" name="line-159"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Unable to parse locale: %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="p">);</span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-163" name="line-163"></a>
+<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-165" name="line-165"></a>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">language_codep</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="o">*</span><span class="n">language_codep</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_match_info_fetch_named</span><span class="w"> </span><span class="p">(</span><span class="n">match_info</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;language&quot;</span><span class="p">);</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-169" name="line-169"></a>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">country_codep</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="o">*</span><span class="n">country_codep</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_match_info_fetch_named</span><span class="w"> </span><span class="p">(</span><span class="n">match_info</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;territory&quot;</span><span class="p">);</span>
+<a id="line-172" name="line-172"></a>
+<a id="line-173" name="line-173"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">country_codep</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="o">*</span><span class="n">country_codep</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">country_codep</span><span class="p">);</span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="o">*</span><span class="n">country_codep</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-179" name="line-179"></a>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">codesetp</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="o">*</span><span class="n">codesetp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_match_info_fetch_named</span><span class="w"> </span><span class="p">(</span><span class="n">match_info</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;codeset&quot;</span><span class="p">);</span>
+<a id="line-182" name="line-182"></a>
+<a id="line-183" name="line-183"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">codesetp</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="o">*</span><span class="n">codesetp</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">codesetp</span><span class="p">);</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="o">*</span><span class="n">codesetp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-189" name="line-189"></a>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">modifierp</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="o">*</span><span class="n">modifierp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_match_info_fetch_named</span><span class="w"> </span><span class="p">(</span><span class="n">match_info</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;modifier&quot;</span><span class="p">);</span>
+<a id="line-192" name="line-192"></a>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">modifierp</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="o">*</span><span class="n">modifierp</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">modifierp</span><span class="p">);</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="o">*</span><span class="n">modifierp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-198" name="line-198"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-199" name="line-199"></a>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">codesetp</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">*</span><span class="n">codesetp</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">normalized_codeset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">normalize_codeset</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">codesetp</span><span class="p">);</span>
+<a id="line-202" name="line-202"></a><span class="w"> </span><span class="n">normalized_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">construct_language_name</span><span class="w"> </span><span class="p">(</span><span class="n">language_codep</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="o">*</span><span class="n">language_codep</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">country_codep</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="o">*</span><span class="n">country_codep</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">normalized_codeset</span><span class="p">,</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">modifierp</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="o">*</span><span class="n">modifierp</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-206" name="line-206"></a>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">language_name_is_valid</span><span class="w"> </span><span class="p">(</span><span class="n">normalized_name</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">codesetp</span><span class="p">);</span>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="o">*</span><span class="n">codesetp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">normalized_codeset</span><span class="p">;</span>
+<a id="line-210" name="line-210"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">normalized_codeset</span><span class="p">);</span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">normalized_name</span><span class="p">);</span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-215" name="line-215"></a>
+<a id="line-216" name="line-216"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">g_match_info_free</span><span class="w"> </span><span class="p">(</span><span class="n">match_info</span><span class="p">);</span>
+<a id="line-218" name="line-218"></a>
+<a id="line-219" name="line-219"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span>
+<a id="line-220" name="line-220"></a><span class="p">}</span>
+<a id="line-221" name="line-221"></a>
+<a id="line-222" name="line-222"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-223" name="line-223"></a><span class="nf">construct_language_name</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">language</span><span class="p">,</span>
+<a id="line-224" name="line-224"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">territory</span><span class="p">,</span>
+<a id="line-225" name="line-225"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">codeset</span><span class="p">,</span>
+<a id="line-226" name="line-226"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">modifier</span><span class="p">)</span>
+<a id="line-227" name="line-227"></a><span class="p">{</span>
+<a id="line-228" name="line-228"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span>
+<a id="line-229" name="line-229"></a>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">language</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">language</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">territory</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">territory</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-232" name="line-232"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">codeset</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">codeset</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">modifier</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">modifier</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-234" name="line-234"></a>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;%s%s%s%s%s%s%s&quot;</span><span class="p">,</span>
+<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">language</span><span class="p">,</span>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">territory</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="o">?</span><span class="w"> </span><span class="s">&quot;_&quot;</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">,</span>
+<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">territory</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="o">?</span><span class="w"> </span><span class="n">territory</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">,</span>
+<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">codeset</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="o">?</span><span class="w"> </span><span class="s">&quot;.&quot;</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">,</span>
+<a id="line-240" name="line-240"></a><span class="w"> </span><span class="n">codeset</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="o">?</span><span class="w"> </span><span class="n">codeset</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">,</span>
+<a id="line-241" name="line-241"></a><span class="w"> </span><span class="n">modifier</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="o">?</span><span class="w"> </span><span class="s">&quot;@&quot;</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">,</span>
+<a id="line-242" name="line-242"></a><span class="w"> </span><span class="n">modifier</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="o">?</span><span class="w"> </span><span class="n">modifier</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">);</span>
+<a id="line-243" name="line-243"></a>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">name</span><span class="p">;</span>
+<a id="line-245" name="line-245"></a><span class="p">}</span>
+<a id="line-246" name="line-246"></a>
+<a id="line-247" name="line-247"></a><span class="cm">/**</span>
+<a id="line-248" name="line-248"></a><span class="cm"> * mate_normalize_locale:</span>
+<a id="line-249" name="line-249"></a><span class="cm"> * @locale: a locale string</span>
+<a id="line-250" name="line-250"></a><span class="cm"> *</span>
+<a id="line-251" name="line-251"></a><span class="cm"> * Gets the normalized locale string in the form</span>
+<a id="line-252" name="line-252"></a><span class="cm"> * [language[_country][.codeset][@modifier]] for @name.</span>
+<a id="line-253" name="line-253"></a><span class="cm"> *</span>
+<a id="line-254" name="line-254"></a><span class="cm"> * Return value: (transfer full): normalized locale string. Caller</span>
+<a id="line-255" name="line-255"></a><span class="cm"> * takes ownership.</span>
+<a id="line-256" name="line-256"></a><span class="cm"> *</span>
+<a id="line-257" name="line-257"></a><span class="cm"> * Since: 1.22</span>
+<a id="line-258" name="line-258"></a><span class="cm"> */</span>
+<a id="line-259" name="line-259"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-260" name="line-260"></a><span class="nf">mate_normalize_locale</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">locale</span><span class="p">)</span>
+<a id="line-261" name="line-261"></a><span class="p">{</span>
+<a id="line-262" name="line-262"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">normalized_name</span><span class="p">;</span>
+<a id="line-263" name="line-263"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">valid</span><span class="p">;</span>
+<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">language_code</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">territory_code</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">codeset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-267" name="line-267"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">modifier</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-268" name="line-268"></a>
+<a id="line-269" name="line-269"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-270" name="line-270"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-271" name="line-271"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-272" name="line-272"></a>
+<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">valid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_parse_locale</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="p">,</span>
+<a id="line-274" name="line-274"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">language_code</span><span class="p">,</span>
+<a id="line-275" name="line-275"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">territory_code</span><span class="p">,</span>
+<a id="line-276" name="line-276"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">codeset</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">modifier</span><span class="p">);</span>
+<a id="line-277" name="line-277"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">valid</span><span class="p">)</span>
+<a id="line-278" name="line-278"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-279" name="line-279"></a>
+<a id="line-280" name="line-280"></a><span class="w"> </span><span class="n">normalized_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">construct_language_name</span><span class="w"> </span><span class="p">(</span><span class="n">language_code</span><span class="p">,</span>
+<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">territory_code</span><span class="p">,</span>
+<a id="line-282" name="line-282"></a><span class="w"> </span><span class="n">codeset</span><span class="p">,</span><span class="w"> </span><span class="n">modifier</span><span class="p">);</span>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">normalized_name</span><span class="p">;</span>
+<a id="line-284" name="line-284"></a><span class="p">}</span>
+<a id="line-285" name="line-285"></a>
+<a id="line-286" name="line-286"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-287" name="line-287"></a><span class="nf">language_name_is_valid</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">language_name</span><span class="p">)</span>
+<a id="line-288" name="line-288"></a><span class="p">{</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_valid</span><span class="p">;</span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">lc_type_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">LC_MESSAGES</span><span class="p">;</span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">old_locale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-292" name="line-292"></a>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">old_locale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">setlocale</span><span class="w"> </span><span class="p">(</span><span class="n">lc_type_id</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span>
+<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">is_valid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">setlocale</span><span class="w"> </span><span class="p">(</span><span class="n">lc_type_id</span><span class="p">,</span><span class="w"> </span><span class="n">language_name</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">setlocale</span><span class="w"> </span><span class="p">(</span><span class="n">lc_type_id</span><span class="p">,</span><span class="w"> </span><span class="n">old_locale</span><span class="p">);</span>
+<a id="line-296" name="line-296"></a>
+<a id="line-297" name="line-297"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">is_valid</span><span class="p">;</span>
+<a id="line-298" name="line-298"></a><span class="p">}</span>
+<a id="line-299" name="line-299"></a>
+<a id="line-300" name="line-300"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-301" name="line-301"></a><span class="nf">language_name_get_codeset_details</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">language_name</span><span class="p">,</span>
+<a id="line-302" name="line-302"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">pcodeset</span><span class="p">,</span>
+<a id="line-303" name="line-303"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="o">*</span><span class="n">is_utf8</span><span class="p">)</span>
+<a id="line-304" name="line-304"></a><span class="p">{</span>
+<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">old_locale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-306" name="line-306"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">codeset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-307" name="line-307"></a>
+<a id="line-308" name="line-308"></a><span class="w"> </span><span class="n">old_locale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">setlocale</span><span class="w"> </span><span class="p">(</span><span class="n">LC_CTYPE</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span>
+<a id="line-309" name="line-309"></a>
+<a id="line-310" name="line-310"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">setlocale</span><span class="w"> </span><span class="p">(</span><span class="n">LC_CTYPE</span><span class="p">,</span><span class="w"> </span><span class="n">language_name</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-311" name="line-311"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-312" name="line-312"></a>
+<a id="line-313" name="line-313"></a><span class="w"> </span><span class="n">codeset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">nl_langinfo</span><span class="w"> </span><span class="p">(</span><span class="n">CODESET</span><span class="p">);</span>
+<a id="line-314" name="line-314"></a>
+<a id="line-315" name="line-315"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">pcodeset</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-316" name="line-316"></a><span class="w"> </span><span class="o">*</span><span class="n">pcodeset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">codeset</span><span class="p">);</span>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-318" name="line-318"></a>
+<a id="line-319" name="line-319"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">is_utf8</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">codeset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">normalize_codeset</span><span class="w"> </span><span class="p">(</span><span class="n">codeset</span><span class="p">);</span>
+<a id="line-321" name="line-321"></a>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="o">*</span><span class="n">is_utf8</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">codeset</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-324" name="line-324"></a>
+<a id="line-325" name="line-325"></a><span class="w"> </span><span class="n">setlocale</span><span class="w"> </span><span class="p">(</span><span class="n">LC_CTYPE</span><span class="p">,</span><span class="w"> </span><span class="n">old_locale</span><span class="p">);</span>
+<a id="line-326" name="line-326"></a><span class="p">}</span>
+<a id="line-327" name="line-327"></a>
+<a id="line-328" name="line-328"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-329" name="line-329"></a><span class="nf">locale_dir_has_mo_files</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="o">*</span><span class="w"> </span><span class="n">path</span><span class="p">)</span>
+<a id="line-330" name="line-330"></a><span class="p">{</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">GDir</span><span class="w"> </span><span class="o">*</span><span class="n">dir</span><span class="p">;</span>
+<a id="line-332" name="line-332"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span>
+<a id="line-333" name="line-333"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">has_translations</span><span class="p">;</span>
+<a id="line-334" name="line-334"></a>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="n">has_translations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-336" name="line-336"></a><span class="w"> </span><span class="n">dir</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dir_open</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-337" name="line-337"></a>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dir</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-339" name="line-339"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span>
+<a id="line-340" name="line-340"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-341" name="line-341"></a>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="k">do</span><span class="w"> </span><span class="p">{</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dir_read_name</span><span class="w"> </span><span class="p">(</span><span class="n">dir</span><span class="p">);</span>
+<a id="line-344" name="line-344"></a>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-348" name="line-348"></a>
+<a id="line-349" name="line-349"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_str_has_suffix</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;.mo&quot;</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-350" name="line-350"></a><span class="w"> </span><span class="n">has_translations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-351" name="line-351"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-352" name="line-352"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-353" name="line-353"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">g_dir_close</span><span class="w"> </span><span class="p">(</span><span class="n">dir</span><span class="p">);</span>
+<a id="line-355" name="line-355"></a>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">has_translations</span><span class="p">;</span>
+<a id="line-358" name="line-358"></a><span class="p">}</span>
+<a id="line-359" name="line-359"></a>
+<a id="line-360" name="line-360"></a><span class="cm">/**</span>
+<a id="line-361" name="line-361"></a><span class="cm"> * mate_language_has_translations:</span>
+<a id="line-362" name="line-362"></a><span class="cm"> * @code: an ISO 639 code string</span>
+<a id="line-363" name="line-363"></a><span class="cm"> *</span>
+<a id="line-364" name="line-364"></a><span class="cm"> * Returns %TRUE if there are translations for language @code.</span>
+<a id="line-365" name="line-365"></a><span class="cm"> *</span>
+<a id="line-366" name="line-366"></a><span class="cm"> * Return value: %TRUE if there are translations for language @code.</span>
+<a id="line-367" name="line-367"></a><span class="cm"> *</span>
+<a id="line-368" name="line-368"></a><span class="cm"> * Since: 1.22</span>
+<a id="line-369" name="line-369"></a><span class="cm"> */</span>
+<a id="line-370" name="line-370"></a><span class="n">gboolean</span>
+<a id="line-371" name="line-371"></a><span class="nf">mate_language_has_translations</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">code</span><span class="p">)</span>
+<a id="line-372" name="line-372"></a><span class="p">{</span>
+<a id="line-373" name="line-373"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">has_translations</span><span class="p">;</span>
+<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span>
+<a id="line-375" name="line-375"></a>
+<a id="line-376" name="line-376"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_build_filename</span><span class="w"> </span><span class="p">(</span><span class="n">MATELOCALEDIR</span><span class="p">,</span><span class="w"> </span><span class="n">code</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;LC_MESSAGES&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-377" name="line-377"></a><span class="w"> </span><span class="n">has_translations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">locale_dir_has_mo_files</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span>
+<a id="line-378" name="line-378"></a>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">has_translations</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="o">*</span><span class="n">system_data_dirs</span><span class="p">;</span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-382" name="line-382"></a>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="n">system_data_dirs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_get_system_data_dirs</span><span class="w"> </span><span class="p">();</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">((</span><span class="n">system_data_dirs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="p">(</span><span class="n">has_translations</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">FALSE</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_build_filename</span><span class="w"> </span><span class="p">(</span><span class="n">system_data_dirs</span><span class="p">[</span><span class="n">i</span><span class="p">],</span><span class="w"> </span><span class="s">&quot;locale&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">code</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;LC_MESSAGES&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-387" name="line-387"></a><span class="w"> </span><span class="n">has_translations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">locale_dir_has_mo_files</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span>
+<a id="line-388" name="line-388"></a><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">;</span>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-390" name="line-390"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-391" name="line-391"></a>
+<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span>
+<a id="line-393" name="line-393"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">has_translations</span><span class="p">;</span>
+<a id="line-394" name="line-394"></a><span class="p">}</span>
+<a id="line-395" name="line-395"></a>
+<a id="line-396" name="line-396"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-397" name="line-397"></a><span class="nf">add_locale</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">language_name</span><span class="p">,</span>
+<a id="line-398" name="line-398"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">utf8_only</span><span class="p">)</span>
+<a id="line-399" name="line-399"></a><span class="p">{</span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">MateLocale</span><span class="w"> </span><span class="o">*</span><span class="n">locale</span><span class="p">;</span>
+<a id="line-401" name="line-401"></a><span class="hll"><span class="w"> </span><span class="n">MateLocale</span><span class="w"> </span><span class="o">*</span><span class="n">old_locale</span><span class="p">;</span><span class="error2">&lt;--- Variable 'old_locale' can be declared as pointer to const</span>
+</span><a id="line-402" name="line-402"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-403" name="line-403"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_utf8</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">valid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-405" name="line-405"></a>
+<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">language_name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-407" name="line-407"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">language_name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-408" name="line-408"></a>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">language_name_get_codeset_details</span><span class="w"> </span><span class="p">(</span><span class="n">language_name</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">is_utf8</span><span class="p">);</span>
+<a id="line-410" name="line-410"></a>
+<a id="line-411" name="line-411"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">is_utf8</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">language_name</span><span class="p">);</span>
+<a id="line-413" name="line-413"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">utf8_only</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-414" name="line-414"></a>
+<a id="line-415" name="line-415"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strchr</span><span class="w"> </span><span class="p">(</span><span class="n">language_name</span><span class="p">,</span><span class="w"> </span><span class="sc">&#39;.&#39;</span><span class="p">))</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-417" name="line-417"></a>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="cm">/* If the locale name has no dot, assume that its</span>
+<a id="line-419" name="line-419"></a><span class="cm"> * encoding part is missing and try again after adding</span>
+<a id="line-420" name="line-420"></a><span class="cm"> * &quot;.UTF-8&quot;. This catches locale names like &quot;de_DE&quot;.</span>
+<a id="line-421" name="line-421"></a><span class="cm"> */</span>
+<a id="line-422" name="line-422"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;%s.UTF-8&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">language_name</span><span class="p">);</span>
+<a id="line-423" name="line-423"></a>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">language_name_get_codeset_details</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">is_utf8</span><span class="p">);</span>
+<a id="line-425" name="line-425"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">is_utf8</span><span class="p">)</span>
+<a id="line-426" name="line-426"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">language_name</span><span class="p">);</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-430" name="line-430"></a>
+<a id="line-431" name="line-431"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">language_name_is_valid</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">g_debug</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Ignoring &#39;%s&#39; as a locale, since it&#39;s invalid&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span>
+<a id="line-433" name="line-433"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-434" name="line-434"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-435" name="line-435"></a>
+<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">locale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new0</span><span class="w"> </span><span class="p">(</span><span class="n">MateLocale</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-437" name="line-437"></a><span class="w"> </span><span class="n">valid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_parse_locale</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span>
+<a id="line-438" name="line-438"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">language_code</span><span class="p">,</span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">territory_code</span><span class="p">,</span>
+<a id="line-440" name="line-440"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">codeset</span><span class="p">,</span>
+<a id="line-441" name="line-441"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">modifier</span><span class="p">);</span>
+<a id="line-442" name="line-442"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">valid</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-443" name="line-443"></a><span class="w"> </span><span class="n">mate_locale_free</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="p">);</span>
+<a id="line-444" name="line-444"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-445" name="line-445"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-446" name="line-446"></a>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">construct_language_name</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">language_code</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">territory_code</span><span class="p">,</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">modifier</span><span class="p">);</span>
+<a id="line-449" name="line-449"></a><span class="w"> </span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">construct_language_name</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">language_code</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">territory_code</span><span class="p">,</span>
+<a id="line-450" name="line-450"></a><span class="w"> </span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">codeset</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">modifier</span><span class="p">);</span>
+<a id="line-451" name="line-451"></a>
+<a id="line-452" name="line-452"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mate_language_has_translations</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-453" name="line-453"></a><span class="w"> </span><span class="o">!</span><span class="n">mate_language_has_translations</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-454" name="line-454"></a><span class="w"> </span><span class="o">!</span><span class="n">mate_language_has_translations</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">language_code</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-455" name="line-455"></a><span class="w"> </span><span class="n">utf8_only</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-456" name="line-456"></a><span class="w"> </span><span class="n">g_debug</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Ignoring &#39;%s&#39; as a locale, since it lacks translations&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">);</span>
+<a id="line-457" name="line-457"></a><span class="w"> </span><span class="n">mate_locale_free</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="p">);</span>
+<a id="line-458" name="line-458"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-459" name="line-459"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-460" name="line-460"></a>
+<a id="line-461" name="line-461"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">utf8_only</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-462" name="line-462"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">);</span>
+<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">);</span>
+<a id="line-464" name="line-464"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-465" name="line-465"></a>
+<a id="line-466" name="line-466"></a><span class="w"> </span><span class="n">old_locale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">mate_available_locales_map</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">);</span>
+<a id="line-467" name="line-467"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">old_locale</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">old_locale</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">mate_locale_free</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="p">);</span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-471" name="line-471"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-473" name="line-473"></a>
+<a id="line-474" name="line-474"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="w"> </span><span class="p">(</span><span class="n">mate_available_locales_map</span><span class="p">,</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">),</span><span class="w"> </span><span class="n">locale</span><span class="p">);</span>
+<a id="line-475" name="line-475"></a>
+<a id="line-476" name="line-476"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-477" name="line-477"></a><span class="p">}</span>
+<a id="line-478" name="line-478"></a>
+<a id="line-479" name="line-479"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span>
+<a id="line-480" name="line-480"></a><span class="nf">select_dirs</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">dirent</span><span class="w"> </span><span class="o">*</span><span class="n">dirent</span><span class="p">)</span>
+<a id="line-481" name="line-481"></a><span class="p">{</span>
+<a id="line-482" name="line-482"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-483" name="line-483"></a>
+<a id="line-484" name="line-484"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">dirent</span><span class="o">-&gt;</span><span class="n">d_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;.&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">dirent</span><span class="o">-&gt;</span><span class="n">d_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;..&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-485" name="line-485"></a><span class="w"> </span><span class="kt">mode_t</span><span class="w"> </span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-486" name="line-486"></a>
+<a id="line-487" name="line-487"></a><span class="cp">#ifdef _DIRENT_HAVE_D_TYPE</span>
+<a id="line-488" name="line-488"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dirent</span><span class="o">-&gt;</span><span class="n">d_type</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">DT_UNKNOWN</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">dirent</span><span class="o">-&gt;</span><span class="n">d_type</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">DT_LNK</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-489" name="line-489"></a><span class="w"> </span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">DTTOIF</span><span class="w"> </span><span class="p">(</span><span class="n">dirent</span><span class="o">-&gt;</span><span class="n">d_type</span><span class="p">);</span>
+<a id="line-490" name="line-490"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span>
+<a id="line-491" name="line-491"></a><span class="cp">#endif</span>
+<a id="line-492" name="line-492"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-493" name="line-493"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">stat</span><span class="w"> </span><span class="n">st</span><span class="p">;</span>
+<a id="line-494" name="line-494"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-495" name="line-495"></a>
+<a id="line-496" name="line-496"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_build_filename</span><span class="w"> </span><span class="p">(</span><span class="n">MATELOCALEDIR</span><span class="p">,</span><span class="w"> </span><span class="n">dirent</span><span class="o">-&gt;</span><span class="n">d_name</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-497" name="line-497"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_stat</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">st</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-498" name="line-498"></a><span class="w"> </span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">st</span><span class="p">.</span><span class="n">st_mode</span><span class="p">;</span>
+<a id="line-499" name="line-499"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-500" name="line-500"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-501" name="line-501"></a>
+<a id="line-502" name="line-502"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">S_ISDIR</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="p">);</span>
+<a id="line-503" name="line-503"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-504" name="line-504"></a>
+<a id="line-505" name="line-505"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-506" name="line-506"></a><span class="p">}</span>
+<a id="line-507" name="line-507"></a>
+<a id="line-508" name="line-508"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-509" name="line-509"></a><span class="nf">collect_locales_from_directory</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-510" name="line-510"></a><span class="p">{</span>
+<a id="line-511" name="line-511"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">found_locales</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-512" name="line-512"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">dirent</span><span class="w"> </span><span class="o">**</span><span class="n">dirents</span><span class="p">;</span>
+<a id="line-513" name="line-513"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">ndirents</span><span class="p">;</span>
+<a id="line-514" name="line-514"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">cnt</span><span class="p">;</span>
+<a id="line-515" name="line-515"></a>
+<a id="line-516" name="line-516"></a><span class="w"> </span><span class="n">ndirents</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">scandir</span><span class="w"> </span><span class="p">(</span><span class="n">MATELOCALEDIR</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">dirents</span><span class="p">,</span><span class="w"> </span><span class="n">select_dirs</span><span class="p">,</span><span class="w"> </span><span class="n">alphasort</span><span class="p">);</span>
+<a id="line-517" name="line-517"></a>
+<a id="line-518" name="line-518"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">cnt</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">cnt</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">ndirents</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">cnt</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-519" name="line-519"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">add_locale</span><span class="w"> </span><span class="p">(</span><span class="n">dirents</span><span class="p">[</span><span class="n">cnt</span><span class="p">]</span><span class="o">-&gt;</span><span class="n">d_name</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">))</span>
+<a id="line-520" name="line-520"></a><span class="w"> </span><span class="n">found_locales</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-521" name="line-521"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-522" name="line-522"></a>
+<a id="line-523" name="line-523"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">ndirents</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-524" name="line-524"></a><span class="w"> </span><span class="n">free</span><span class="w"> </span><span class="p">(</span><span class="n">dirents</span><span class="p">);</span>
+<a id="line-525" name="line-525"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-526" name="line-526"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">found_locales</span><span class="p">;</span>
+<a id="line-527" name="line-527"></a><span class="p">}</span>
+<a id="line-528" name="line-528"></a>
+<a id="line-529" name="line-529"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-530" name="line-530"></a><span class="nf">collect_locales_from_localebin</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-531" name="line-531"></a><span class="p">{</span>
+<a id="line-532" name="line-532"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">found_locales</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-533" name="line-533"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">argv</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">&quot;locale&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;-a&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="p">};</span>
+<a id="line-534" name="line-534"></a><span class="hll"><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">linep</span><span class="p">;</span><div class="verbose expandable"><span class="error2">&lt;--- The scope of the variable 'linep' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable &apos;linep&apos; can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for &apos;i&apos; can be reduced:
+void f(int x)
+{
+ int i = 0;
+ if (x) {
+ // it&apos;s safe to move &apos;int i = 0;&apos; here
+ for (int n = 0; n &lt; 10; ++n) {
+ // it is possible but not safe to move &apos;int i = 0;&apos; here
+ do_something(&amp;i);
+ }
+ }
+}
+When you see this message it is always safe to reduce the variable scope 1 level.</div></div>
+</span><a id="line-535" name="line-535"></a><span class="w"> </span><span class="n">g_auto</span><span class="w"> </span><span class="p">(</span><span class="n">GStrv</span><span class="p">)</span><span class="w"> </span><span class="n">lines</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-536" name="line-536"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-537" name="line-537"></a>
+<a id="line-538" name="line-538"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_spawn_sync</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="p">)</span><span class="w"> </span><span class="n">argv</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-539" name="line-539"></a><span class="w"> </span><span class="n">G_SPAWN_SEARCH_PATH</span><span class="o">|</span><span class="n">G_SPAWN_STDERR_TO_DEV_NULL</span><span class="p">,</span>
+<a id="line-540" name="line-540"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">output</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">FALSE</span><span class="p">)</span>
+<a id="line-541" name="line-541"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-542" name="line-542"></a>
+<a id="line-543" name="line-543"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-544" name="line-544"></a>
+<a id="line-545" name="line-545"></a><span class="w"> </span><span class="n">lines</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strsplit</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-546" name="line-546"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">lines</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-547" name="line-547"></a><span class="w"> </span><span class="n">linep</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">lines</span><span class="p">;</span>
+<a id="line-548" name="line-548"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">linep</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-549" name="line-549"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">linep</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">add_locale</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">linep</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">))</span>
+<a id="line-550" name="line-550"></a><span class="w"> </span><span class="n">found_locales</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-551" name="line-551"></a><span class="w"> </span><span class="n">linep</span><span class="o">++</span><span class="p">;</span>
+<a id="line-552" name="line-552"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-553" name="line-553"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-554" name="line-554"></a>
+<a id="line-555" name="line-555"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">found_locales</span><span class="p">;</span>
+<a id="line-556" name="line-556"></a><span class="p">}</span>
+<a id="line-557" name="line-557"></a>
+<a id="line-558" name="line-558"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-559" name="line-559"></a><span class="nf">fill_count_map</span><span class="w"> </span><span class="p">(</span><span class="n">GHashTable</span><span class="w"> </span><span class="o">*</span><span class="n">count_map</span><span class="p">,</span>
+<a id="line-560" name="line-560"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">code</span><span class="p">)</span>
+<a id="line-561" name="line-561"></a><span class="p">{</span>
+<a id="line-562" name="line-562"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">count</span><span class="p">;</span>
+<a id="line-563" name="line-563"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">pointer</span><span class="p">;</span>
+<a id="line-564" name="line-564"></a>
+<a id="line-565" name="line-565"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">code</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-566" name="line-566"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-567" name="line-567"></a>
+<a id="line-568" name="line-568"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">pointer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">count_map</span><span class="p">,</span><span class="w"> </span><span class="n">code</span><span class="p">))</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-569" name="line-569"></a><span class="w"> </span><span class="n">count</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GPOINTER_TO_INT</span><span class="w"> </span><span class="p">(</span><span class="n">pointer</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-570" name="line-570"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-571" name="line-571"></a><span class="w"> </span><span class="n">count</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-572" name="line-572"></a>
+<a id="line-573" name="line-573"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="w"> </span><span class="p">(</span><span class="n">count_map</span><span class="p">,</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">code</span><span class="p">),</span><span class="w"> </span><span class="n">GINT_TO_POINTER</span><span class="w"> </span><span class="p">(</span><span class="n">count</span><span class="p">));</span>
+<a id="line-574" name="line-574"></a><span class="p">}</span>
+<a id="line-575" name="line-575"></a>
+<a id="line-576" name="line-576"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-577" name="line-577"></a><span class="nf">count_languages_and_territories</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-578" name="line-578"></a><span class="p">{</span>
+<a id="line-579" name="line-579"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">value</span><span class="p">;</span>
+<a id="line-580" name="line-580"></a><span class="w"> </span><span class="n">GHashTableIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span>
+<a id="line-581" name="line-581"></a>
+<a id="line-582" name="line-582"></a><span class="w"> </span><span class="n">mate_language_count_map</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_new_full</span><span class="w"> </span><span class="p">(</span><span class="n">g_str_hash</span><span class="p">,</span><span class="w"> </span><span class="n">g_str_equal</span><span class="p">,</span><span class="w"> </span><span class="n">g_free</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-583" name="line-583"></a><span class="w"> </span><span class="n">mate_territory_count_map</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_new_full</span><span class="w"> </span><span class="p">(</span><span class="n">g_str_hash</span><span class="p">,</span><span class="w"> </span><span class="n">g_str_equal</span><span class="p">,</span><span class="w"> </span><span class="n">g_free</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-584" name="line-584"></a>
+<a id="line-585" name="line-585"></a><span class="w"> </span><span class="n">g_hash_table_iter_init</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">mate_available_locales_map</span><span class="p">);</span>
+<a id="line-586" name="line-586"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">g_hash_table_iter_next</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">value</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-587" name="line-587"></a><span class="hll"><span class="w"> </span><span class="n">MateLocale</span><span class="w"> </span><span class="o">*</span><span class="n">locale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MateLocale</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">value</span><span class="p">;</span><span class="error2">&lt;--- Variable 'locale' can be declared as pointer to const</span>
+</span><a id="line-588" name="line-588"></a><span class="w"> </span><span class="n">fill_count_map</span><span class="w"> </span><span class="p">(</span><span class="n">mate_language_count_map</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">language_code</span><span class="p">);</span>
+<a id="line-589" name="line-589"></a><span class="w"> </span><span class="n">fill_count_map</span><span class="w"> </span><span class="p">(</span><span class="n">mate_territory_count_map</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">territory_code</span><span class="p">);</span>
+<a id="line-590" name="line-590"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-591" name="line-591"></a><span class="p">}</span>
+<a id="line-592" name="line-592"></a>
+<a id="line-593" name="line-593"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-594" name="line-594"></a><span class="nf">collect_locales</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-595" name="line-595"></a><span class="p">{</span>
+<a id="line-596" name="line-596"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">found_localebin_locales</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-597" name="line-597"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">found_dir_locales</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-598" name="line-598"></a>
+<a id="line-599" name="line-599"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mate_available_locales_map</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-600" name="line-600"></a><span class="w"> </span><span class="n">mate_available_locales_map</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_new_full</span><span class="w"> </span><span class="p">(</span><span class="n">g_str_hash</span><span class="p">,</span><span class="w"> </span><span class="n">g_str_equal</span><span class="p">,</span><span class="w"> </span><span class="n">g_free</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">GDestroyNotify</span><span class="p">)</span><span class="w"> </span><span class="n">mate_locale_free</span><span class="p">);</span>
+<a id="line-601" name="line-601"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-602" name="line-602"></a>
+<a id="line-603" name="line-603"></a><span class="w"> </span><span class="n">found_localebin_locales</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">collect_locales_from_localebin</span><span class="w"> </span><span class="p">();</span>
+<a id="line-604" name="line-604"></a>
+<a id="line-605" name="line-605"></a><span class="w"> </span><span class="n">found_dir_locales</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">collect_locales_from_directory</span><span class="w"> </span><span class="p">();</span>
+<a id="line-606" name="line-606"></a>
+<a id="line-607" name="line-607"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="n">found_localebin_locales</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">found_dir_locales</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-608" name="line-608"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Could not read list of available locales from libc, &quot;</span>
+<a id="line-609" name="line-609"></a><span class="w"> </span><span class="s">&quot;guessing possible locales from available translations, &quot;</span>
+<a id="line-610" name="line-610"></a><span class="w"> </span><span class="s">&quot;but list may be incomplete!&quot;</span><span class="p">);</span>
+<a id="line-611" name="line-611"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-612" name="line-612"></a>
+<a id="line-613" name="line-613"></a><span class="w"> </span><span class="n">count_languages_and_territories</span><span class="w"> </span><span class="p">();</span>
+<a id="line-614" name="line-614"></a><span class="p">}</span>
+<a id="line-615" name="line-615"></a>
+<a id="line-616" name="line-616"></a><span class="k">static</span><span class="w"> </span><span class="n">gint</span>
+<a id="line-617" name="line-617"></a><span class="nf">get_language_count</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">language</span><span class="p">)</span>
+<a id="line-618" name="line-618"></a><span class="p">{</span>
+<a id="line-619" name="line-619"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">count</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-620" name="line-620"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">pointer</span><span class="p">;</span>
+<a id="line-621" name="line-621"></a>
+<a id="line-622" name="line-622"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mate_language_count_map</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-623" name="line-623"></a><span class="w"> </span><span class="n">collect_locales</span><span class="w"> </span><span class="p">();</span>
+<a id="line-624" name="line-624"></a>
+<a id="line-625" name="line-625"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">pointer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">mate_language_count_map</span><span class="p">,</span><span class="w"> </span><span class="n">language</span><span class="p">))</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-626" name="line-626"></a><span class="w"> </span><span class="n">count</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GPOINTER_TO_INT</span><span class="w"> </span><span class="p">(</span><span class="n">pointer</span><span class="p">);</span>
+<a id="line-627" name="line-627"></a>
+<a id="line-628" name="line-628"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">count</span><span class="p">;</span>
+<a id="line-629" name="line-629"></a><span class="p">}</span>
+<a id="line-630" name="line-630"></a>
+<a id="line-631" name="line-631"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-632" name="line-632"></a><span class="nf">is_unique_language</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">language</span><span class="p">)</span>
+<a id="line-633" name="line-633"></a><span class="p">{</span>
+<a id="line-634" name="line-634"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">get_language_count</span><span class="w"> </span><span class="p">(</span><span class="n">language</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-635" name="line-635"></a><span class="p">}</span>
+<a id="line-636" name="line-636"></a>
+<a id="line-637" name="line-637"></a><span class="k">static</span><span class="w"> </span><span class="n">gint</span>
+<a id="line-638" name="line-638"></a><span class="nf">get_territory_count</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">territory</span><span class="p">)</span>
+<a id="line-639" name="line-639"></a><span class="p">{</span>
+<a id="line-640" name="line-640"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">count</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-641" name="line-641"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">pointer</span><span class="p">;</span>
+<a id="line-642" name="line-642"></a>
+<a id="line-643" name="line-643"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mate_territory_count_map</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-644" name="line-644"></a><span class="w"> </span><span class="n">collect_locales</span><span class="w"> </span><span class="p">();</span>
+<a id="line-645" name="line-645"></a>
+<a id="line-646" name="line-646"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">pointer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">mate_territory_count_map</span><span class="p">,</span><span class="w"> </span><span class="n">territory</span><span class="p">))</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-647" name="line-647"></a><span class="w"> </span><span class="n">count</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GPOINTER_TO_INT</span><span class="w"> </span><span class="p">(</span><span class="n">pointer</span><span class="p">);</span>
+<a id="line-648" name="line-648"></a>
+<a id="line-649" name="line-649"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">count</span><span class="p">;</span>
+<a id="line-650" name="line-650"></a><span class="p">}</span>
+<a id="line-651" name="line-651"></a>
+<a id="line-652" name="line-652"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-653" name="line-653"></a><span class="nf">is_unique_territory</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">territory</span><span class="p">)</span>
+<a id="line-654" name="line-654"></a><span class="p">{</span>
+<a id="line-655" name="line-655"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">get_territory_count</span><span class="w"> </span><span class="p">(</span><span class="n">territory</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-656" name="line-656"></a><span class="p">}</span>
+<a id="line-657" name="line-657"></a>
+<a id="line-658" name="line-658"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-659" name="line-659"></a><span class="nf">is_fallback_language</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">code</span><span class="p">)</span>
+<a id="line-660" name="line-660"></a><span class="p">{</span>
+<a id="line-661" name="line-661"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">fallback_language_names</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">&quot;C&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;POSIX&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="p">};</span>
+<a id="line-662" name="line-662"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-663" name="line-663"></a>
+<a id="line-664" name="line-664"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">fallback_language_names</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-665" name="line-665"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">code</span><span class="p">,</span><span class="w"> </span><span class="n">fallback_language_names</span><span class="p">[</span><span class="n">i</span><span class="p">])</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-666" name="line-666"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-667" name="line-667"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-668" name="line-668"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-669" name="line-669"></a>
+<a id="line-670" name="line-670"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-671" name="line-671"></a><span class="p">}</span>
+<a id="line-672" name="line-672"></a>
+<a id="line-673" name="line-673"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-674" name="line-674"></a><span class="nf">get_language</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">code</span><span class="p">)</span>
+<a id="line-675" name="line-675"></a><span class="p">{</span>
+<a id="line-676" name="line-676"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span>
+<a id="line-677" name="line-677"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">len</span><span class="p">;</span>
+<a id="line-678" name="line-678"></a>
+<a id="line-679" name="line-679"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">code</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-680" name="line-680"></a>
+<a id="line-681" name="line-681"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">is_fallback_language</span><span class="w"> </span><span class="p">(</span><span class="n">code</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-682" name="line-682"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="s">&quot;Unspecified&quot;</span><span class="p">;</span>
+<a id="line-683" name="line-683"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-684" name="line-684"></a>
+<a id="line-685" name="line-685"></a><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">code</span><span class="p">);</span>
+<a id="line-686" name="line-686"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">len</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">3</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-687" name="line-687"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-688" name="line-688"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-689" name="line-689"></a>
+<a id="line-690" name="line-690"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">mate_languages_map</span><span class="p">,</span><span class="w"> </span><span class="n">code</span><span class="p">);</span>
+<a id="line-691" name="line-691"></a>
+<a id="line-692" name="line-692"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">name</span><span class="p">;</span>
+<a id="line-693" name="line-693"></a><span class="p">}</span>
+<a id="line-694" name="line-694"></a>
+<a id="line-695" name="line-695"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-696" name="line-696"></a><span class="nf">get_first_item_in_semicolon_list</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="p">)</span>
+<a id="line-697" name="line-697"></a><span class="p">{</span>
+<a id="line-698" name="line-698"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">items</span><span class="p">;</span>
+<a id="line-699" name="line-699"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">;</span>
+<a id="line-700" name="line-700"></a>
+<a id="line-701" name="line-701"></a><span class="w"> </span><span class="cm">/* Some entries in iso codes have multiple values, separated</span>
+<a id="line-702" name="line-702"></a><span class="cm"> * by semicolons. Not really sure which one to pick, so</span>
+<a id="line-703" name="line-703"></a><span class="cm"> * we just arbitrarily pick the first one.</span>
+<a id="line-704" name="line-704"></a><span class="cm"> */</span>
+<a id="line-705" name="line-705"></a><span class="w"> </span><span class="n">items</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strsplit</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;; &quot;</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">);</span>
+<a id="line-706" name="line-706"></a>
+<a id="line-707" name="line-707"></a><span class="w"> </span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">items</span><span class="p">[</span><span class="mi">0</span><span class="p">]);</span>
+<a id="line-708" name="line-708"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">items</span><span class="p">);</span>
+<a id="line-709" name="line-709"></a>
+<a id="line-710" name="line-710"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">item</span><span class="p">;</span>
+<a id="line-711" name="line-711"></a><span class="p">}</span>
+<a id="line-712" name="line-712"></a>
+<a id="line-713" name="line-713"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-714" name="line-714"></a><span class="nf">capitalize_utf8_string</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">)</span>
+<a id="line-715" name="line-715"></a><span class="p">{</span>
+<a id="line-716" name="line-716"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">first</span><span class="p">[</span><span class="mi">8</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="p">};</span>
+<a id="line-717" name="line-717"></a>
+<a id="line-718" name="line-718"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">str</span><span class="p">)</span>
+<a id="line-719" name="line-719"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-720" name="line-720"></a>
+<a id="line-721" name="line-721"></a><span class="w"> </span><span class="n">g_unichar_to_utf8</span><span class="w"> </span><span class="p">(</span><span class="n">g_unichar_totitle</span><span class="w"> </span><span class="p">(</span><span class="n">g_utf8_get_char</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">)),</span><span class="w"> </span><span class="n">first</span><span class="p">);</span>
+<a id="line-722" name="line-722"></a>
+<a id="line-723" name="line-723"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="n">first</span><span class="p">,</span><span class="w"> </span><span class="n">g_utf8_offset_to_pointer</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-724" name="line-724"></a><span class="p">}</span>
+<a id="line-725" name="line-725"></a>
+<a id="line-726" name="line-726"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-727" name="line-727"></a><span class="nf">get_translated_language</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">code</span><span class="p">,</span>
+<a id="line-728" name="line-728"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">locale</span><span class="p">)</span>
+<a id="line-729" name="line-729"></a><span class="p">{</span>
+<a id="line-730" name="line-730"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">language</span><span class="p">;</span>
+<a id="line-731" name="line-731"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span>
+<a id="line-732" name="line-732"></a>
+<a id="line-733" name="line-733"></a><span class="w"> </span><span class="n">language</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_language</span><span class="w"> </span><span class="p">(</span><span class="n">code</span><span class="p">);</span>
+<a id="line-734" name="line-734"></a>
+<a id="line-735" name="line-735"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-736" name="line-736"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">language</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-737" name="line-737"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">translated_name</span><span class="p">;</span>
+<a id="line-738" name="line-738"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">old_locale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-739" name="line-739"></a>
+<a id="line-740" name="line-740"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-741" name="line-741"></a><span class="w"> </span><span class="n">old_locale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">setlocale</span><span class="w"> </span><span class="p">(</span><span class="n">LC_MESSAGES</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span>
+<a id="line-742" name="line-742"></a><span class="w"> </span><span class="n">setlocale</span><span class="w"> </span><span class="p">(</span><span class="n">LC_MESSAGES</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="p">);</span>
+<a id="line-743" name="line-743"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-744" name="line-744"></a>
+<a id="line-745" name="line-745"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">is_fallback_language</span><span class="w"> </span><span class="p">(</span><span class="n">code</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-746" name="line-746"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Unspecified&quot;</span><span class="p">));</span>
+<a id="line-747" name="line-747"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-748" name="line-748"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-749" name="line-749"></a><span class="w"> </span><span class="n">translated_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dgettext</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;iso_639&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">language</span><span class="p">);</span>
+<a id="line-750" name="line-750"></a><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_first_item_in_semicolon_list</span><span class="w"> </span><span class="p">(</span><span class="n">translated_name</span><span class="p">);</span>
+<a id="line-751" name="line-751"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">capitalize_utf8_string</span><span class="w"> </span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span>
+<a id="line-752" name="line-752"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-753" name="line-753"></a>
+<a id="line-754" name="line-754"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-755" name="line-755"></a><span class="w"> </span><span class="n">setlocale</span><span class="w"> </span><span class="p">(</span><span class="n">LC_MESSAGES</span><span class="p">,</span><span class="w"> </span><span class="n">old_locale</span><span class="p">);</span>
+<a id="line-756" name="line-756"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-757" name="line-757"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-758" name="line-758"></a>
+<a id="line-759" name="line-759"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">name</span><span class="p">;</span>
+<a id="line-760" name="line-760"></a><span class="p">}</span>
+<a id="line-761" name="line-761"></a>
+<a id="line-762" name="line-762"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-763" name="line-763"></a><span class="nf">get_territory</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">code</span><span class="p">)</span>
+<a id="line-764" name="line-764"></a><span class="p">{</span>
+<a id="line-765" name="line-765"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span>
+<a id="line-766" name="line-766"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">len</span><span class="p">;</span>
+<a id="line-767" name="line-767"></a>
+<a id="line-768" name="line-768"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">code</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-769" name="line-769"></a>
+<a id="line-770" name="line-770"></a><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">code</span><span class="p">);</span>
+<a id="line-771" name="line-771"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">len</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">3</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-772" name="line-772"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-773" name="line-773"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-774" name="line-774"></a>
+<a id="line-775" name="line-775"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">mate_territories_map</span><span class="p">,</span><span class="w"> </span><span class="n">code</span><span class="p">);</span>
+<a id="line-776" name="line-776"></a>
+<a id="line-777" name="line-777"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">name</span><span class="p">;</span>
+<a id="line-778" name="line-778"></a><span class="p">}</span>
+<a id="line-779" name="line-779"></a>
+<a id="line-780" name="line-780"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-781" name="line-781"></a><span class="nf">get_translated_territory</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">code</span><span class="p">,</span>
+<a id="line-782" name="line-782"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">locale</span><span class="p">)</span>
+<a id="line-783" name="line-783"></a><span class="p">{</span>
+<a id="line-784" name="line-784"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">territory</span><span class="p">;</span>
+<a id="line-785" name="line-785"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span>
+<a id="line-786" name="line-786"></a>
+<a id="line-787" name="line-787"></a><span class="w"> </span><span class="n">territory</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_territory</span><span class="w"> </span><span class="p">(</span><span class="n">code</span><span class="p">);</span>
+<a id="line-788" name="line-788"></a>
+<a id="line-789" name="line-789"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-790" name="line-790"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">territory</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-791" name="line-791"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">translated_territory</span><span class="p">;</span>
+<a id="line-792" name="line-792"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">old_locale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-793" name="line-793"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-794" name="line-794"></a>
+<a id="line-795" name="line-795"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-796" name="line-796"></a><span class="w"> </span><span class="n">old_locale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">setlocale</span><span class="w"> </span><span class="p">(</span><span class="n">LC_MESSAGES</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span>
+<a id="line-797" name="line-797"></a><span class="w"> </span><span class="n">setlocale</span><span class="w"> </span><span class="p">(</span><span class="n">LC_MESSAGES</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="p">);</span>
+<a id="line-798" name="line-798"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-799" name="line-799"></a>
+<a id="line-800" name="line-800"></a><span class="w"> </span><span class="n">translated_territory</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dgettext</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;iso_3166&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">territory</span><span class="p">);</span>
+<a id="line-801" name="line-801"></a><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_first_item_in_semicolon_list</span><span class="w"> </span><span class="p">(</span><span class="n">translated_territory</span><span class="p">);</span>
+<a id="line-802" name="line-802"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">capitalize_utf8_string</span><span class="w"> </span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span>
+<a id="line-803" name="line-803"></a>
+<a id="line-804" name="line-804"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-805" name="line-805"></a><span class="w"> </span><span class="n">setlocale</span><span class="w"> </span><span class="p">(</span><span class="n">LC_MESSAGES</span><span class="p">,</span><span class="w"> </span><span class="n">old_locale</span><span class="p">);</span>
+<a id="line-806" name="line-806"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-807" name="line-807"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-808" name="line-808"></a>
+<a id="line-809" name="line-809"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">name</span><span class="p">;</span>
+<a id="line-810" name="line-810"></a><span class="p">}</span>
+<a id="line-811" name="line-811"></a>
+<a id="line-812" name="line-812"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-813" name="line-813"></a><span class="nf">languages_parse_start_tag</span><span class="w"> </span><span class="p">(</span><span class="n">GMarkupParseContext</span><span class="w"> </span><span class="o">*</span><span class="n">ctx</span><span class="p">,</span>
+<a id="line-814" name="line-814"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">element_name</span><span class="p">,</span>
+<a id="line-815" name="line-815"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">attr_names</span><span class="p">,</span>
+<a id="line-816" name="line-816"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">attr_values</span><span class="p">,</span>
+<a id="line-817" name="line-817"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">,</span>
+<a id="line-818" name="line-818"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-819" name="line-819"></a><span class="p">{</span>
+<a id="line-820" name="line-820"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">ccode_longB</span><span class="p">;</span>
+<a id="line-821" name="line-821"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">ccode_longT</span><span class="p">;</span>
+<a id="line-822" name="line-822"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">ccode</span><span class="p">;</span>
+<a id="line-823" name="line-823"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">ccode_id</span><span class="p">;</span>
+<a id="line-824" name="line-824"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">lang_name</span><span class="p">;</span>
+<a id="line-825" name="line-825"></a>
+<a id="line-826" name="line-826"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="p">(</span><span class="n">g_str_equal</span><span class="w"> </span><span class="p">(</span><span class="n">element_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;iso_639_entry&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">g_str_equal</span><span class="w"> </span><span class="p">(</span><span class="n">element_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;iso_639_3_entry&quot;</span><span class="p">))</span>
+<a id="line-827" name="line-827"></a><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">attr_names</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">attr_values</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-828" name="line-828"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-829" name="line-829"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-830" name="line-830"></a>
+<a id="line-831" name="line-831"></a><span class="w"> </span><span class="n">ccode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-832" name="line-832"></a><span class="w"> </span><span class="n">ccode_longB</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-833" name="line-833"></a><span class="w"> </span><span class="n">ccode_longT</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-834" name="line-834"></a><span class="w"> </span><span class="n">ccode_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-835" name="line-835"></a><span class="w"> </span><span class="n">lang_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-836" name="line-836"></a>
+<a id="line-837" name="line-837"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">attr_names</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">*</span><span class="n">attr_values</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-838" name="line-838"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_str_equal</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">attr_names</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;iso_639_1_code&quot;</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-839" name="line-839"></a><span class="w"> </span><span class="cm">/* skip if empty */</span>
+<a id="line-840" name="line-840"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">**</span><span class="n">attr_values</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-841" name="line-841"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">attr_values</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">2</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-842" name="line-842"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-843" name="line-843"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-844" name="line-844"></a><span class="w"> </span><span class="n">ccode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">attr_values</span><span class="p">;</span>
+<a id="line-845" name="line-845"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-846" name="line-846"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_str_equal</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">attr_names</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;iso_639_2B_code&quot;</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-847" name="line-847"></a><span class="w"> </span><span class="cm">/* skip if empty */</span>
+<a id="line-848" name="line-848"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">**</span><span class="n">attr_values</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-849" name="line-849"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">attr_values</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">3</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-850" name="line-850"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-851" name="line-851"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-852" name="line-852"></a><span class="w"> </span><span class="n">ccode_longB</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">attr_values</span><span class="p">;</span>
+<a id="line-853" name="line-853"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-854" name="line-854"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_str_equal</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">attr_names</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;iso_639_2T_code&quot;</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-855" name="line-855"></a><span class="w"> </span><span class="cm">/* skip if empty */</span>
+<a id="line-856" name="line-856"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">**</span><span class="n">attr_values</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-857" name="line-857"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">attr_values</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">3</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-858" name="line-858"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-859" name="line-859"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-860" name="line-860"></a><span class="w"> </span><span class="n">ccode_longT</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">attr_values</span><span class="p">;</span>
+<a id="line-861" name="line-861"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-862" name="line-862"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_str_equal</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">attr_names</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;id&quot;</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-863" name="line-863"></a><span class="w"> </span><span class="cm">/* skip if empty */</span>
+<a id="line-864" name="line-864"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">**</span><span class="n">attr_values</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-865" name="line-865"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">attr_values</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-866" name="line-866"></a><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">attr_values</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">3</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-867" name="line-867"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-868" name="line-868"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-869" name="line-869"></a><span class="w"> </span><span class="n">ccode_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">attr_values</span><span class="p">;</span>
+<a id="line-870" name="line-870"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-871" name="line-871"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_str_equal</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">attr_names</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;name&quot;</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-872" name="line-872"></a><span class="w"> </span><span class="n">lang_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">attr_values</span><span class="p">;</span>
+<a id="line-873" name="line-873"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-874" name="line-874"></a>
+<a id="line-875" name="line-875"></a><span class="w"> </span><span class="o">++</span><span class="n">attr_names</span><span class="p">;</span>
+<a id="line-876" name="line-876"></a><span class="w"> </span><span class="o">++</span><span class="n">attr_values</span><span class="p">;</span>
+<a id="line-877" name="line-877"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-878" name="line-878"></a>
+<a id="line-879" name="line-879"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">lang_name</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-880" name="line-880"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-881" name="line-881"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-882" name="line-882"></a>
+<a id="line-883" name="line-883"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">ccode</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-884" name="line-884"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="w"> </span><span class="p">(</span><span class="n">mate_languages_map</span><span class="p">,</span>
+<a id="line-885" name="line-885"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">ccode</span><span class="p">),</span>
+<a id="line-886" name="line-886"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">lang_name</span><span class="p">));</span>
+<a id="line-887" name="line-887"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-888" name="line-888"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">ccode_longB</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-889" name="line-889"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="w"> </span><span class="p">(</span><span class="n">mate_languages_map</span><span class="p">,</span>
+<a id="line-890" name="line-890"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">ccode_longB</span><span class="p">),</span>
+<a id="line-891" name="line-891"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">lang_name</span><span class="p">));</span>
+<a id="line-892" name="line-892"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-893" name="line-893"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">ccode_longT</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-894" name="line-894"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="w"> </span><span class="p">(</span><span class="n">mate_languages_map</span><span class="p">,</span>
+<a id="line-895" name="line-895"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">ccode_longT</span><span class="p">),</span>
+<a id="line-896" name="line-896"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">lang_name</span><span class="p">));</span>
+<a id="line-897" name="line-897"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-898" name="line-898"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">ccode_id</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-899" name="line-899"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="w"> </span><span class="p">(</span><span class="n">mate_languages_map</span><span class="p">,</span>
+<a id="line-900" name="line-900"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">ccode_id</span><span class="p">),</span>
+<a id="line-901" name="line-901"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">lang_name</span><span class="p">));</span>
+<a id="line-902" name="line-902"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-903" name="line-903"></a><span class="p">}</span>
+<a id="line-904" name="line-904"></a>
+<a id="line-905" name="line-905"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-906" name="line-906"></a><span class="nf">territories_parse_start_tag</span><span class="w"> </span><span class="p">(</span><span class="n">GMarkupParseContext</span><span class="w"> </span><span class="o">*</span><span class="n">ctx</span><span class="p">,</span>
+<a id="line-907" name="line-907"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">element_name</span><span class="p">,</span>
+<a id="line-908" name="line-908"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">attr_names</span><span class="p">,</span>
+<a id="line-909" name="line-909"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">attr_values</span><span class="p">,</span>
+<a id="line-910" name="line-910"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">,</span>
+<a id="line-911" name="line-911"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-912" name="line-912"></a><span class="p">{</span>
+<a id="line-913" name="line-913"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">acode_2</span><span class="p">;</span>
+<a id="line-914" name="line-914"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">acode_3</span><span class="p">;</span>
+<a id="line-915" name="line-915"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">ncode</span><span class="p">;</span>
+<a id="line-916" name="line-916"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">territory_common_name</span><span class="p">;</span>
+<a id="line-917" name="line-917"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">territory_name</span><span class="p">;</span>
+<a id="line-918" name="line-918"></a>
+<a id="line-919" name="line-919"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">g_str_equal</span><span class="w"> </span><span class="p">(</span><span class="n">element_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;iso_3166_entry&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">attr_names</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">attr_values</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-920" name="line-920"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-921" name="line-921"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-922" name="line-922"></a>
+<a id="line-923" name="line-923"></a><span class="w"> </span><span class="n">acode_2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-924" name="line-924"></a><span class="w"> </span><span class="n">acode_3</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-925" name="line-925"></a><span class="w"> </span><span class="n">ncode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-926" name="line-926"></a><span class="w"> </span><span class="n">territory_common_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-927" name="line-927"></a><span class="w"> </span><span class="n">territory_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-928" name="line-928"></a>
+<a id="line-929" name="line-929"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">attr_names</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">*</span><span class="n">attr_values</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-930" name="line-930"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_str_equal</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">attr_names</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;alpha_2_code&quot;</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-931" name="line-931"></a><span class="w"> </span><span class="cm">/* skip if empty */</span>
+<a id="line-932" name="line-932"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">**</span><span class="n">attr_values</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-933" name="line-933"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">attr_values</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">2</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-934" name="line-934"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-935" name="line-935"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-936" name="line-936"></a><span class="w"> </span><span class="n">acode_2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">attr_values</span><span class="p">;</span>
+<a id="line-937" name="line-937"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-938" name="line-938"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_str_equal</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">attr_names</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;alpha_3_code&quot;</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-939" name="line-939"></a><span class="w"> </span><span class="cm">/* skip if empty */</span>
+<a id="line-940" name="line-940"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">**</span><span class="n">attr_values</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-941" name="line-941"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">attr_values</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">3</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-942" name="line-942"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-943" name="line-943"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-944" name="line-944"></a><span class="w"> </span><span class="n">acode_3</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">attr_values</span><span class="p">;</span>
+<a id="line-945" name="line-945"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-946" name="line-946"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_str_equal</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">attr_names</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;numeric_code&quot;</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-947" name="line-947"></a><span class="w"> </span><span class="cm">/* skip if empty */</span>
+<a id="line-948" name="line-948"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">**</span><span class="n">attr_values</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-949" name="line-949"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">attr_values</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">3</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-950" name="line-950"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-951" name="line-951"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-952" name="line-952"></a><span class="w"> </span><span class="n">ncode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">attr_values</span><span class="p">;</span>
+<a id="line-953" name="line-953"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-954" name="line-954"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_str_equal</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">attr_names</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;common_name&quot;</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-955" name="line-955"></a><span class="w"> </span><span class="cm">/* skip if empty */</span>
+<a id="line-956" name="line-956"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">**</span><span class="n">attr_values</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-957" name="line-957"></a><span class="w"> </span><span class="n">territory_common_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">attr_values</span><span class="p">;</span>
+<a id="line-958" name="line-958"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-959" name="line-959"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_str_equal</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">attr_names</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;name&quot;</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-960" name="line-960"></a><span class="w"> </span><span class="n">territory_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">attr_values</span><span class="p">;</span>
+<a id="line-961" name="line-961"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-962" name="line-962"></a>
+<a id="line-963" name="line-963"></a><span class="w"> </span><span class="o">++</span><span class="n">attr_names</span><span class="p">;</span>
+<a id="line-964" name="line-964"></a><span class="w"> </span><span class="o">++</span><span class="n">attr_values</span><span class="p">;</span>
+<a id="line-965" name="line-965"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-966" name="line-966"></a>
+<a id="line-967" name="line-967"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">territory_common_name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-968" name="line-968"></a><span class="w"> </span><span class="n">territory_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">territory_common_name</span><span class="p">;</span>
+<a id="line-969" name="line-969"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-970" name="line-970"></a>
+<a id="line-971" name="line-971"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">territory_name</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-972" name="line-972"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-973" name="line-973"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-974" name="line-974"></a>
+<a id="line-975" name="line-975"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">acode_2</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-976" name="line-976"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="w"> </span><span class="p">(</span><span class="n">mate_territories_map</span><span class="p">,</span>
+<a id="line-977" name="line-977"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">acode_2</span><span class="p">),</span>
+<a id="line-978" name="line-978"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">territory_name</span><span class="p">));</span>
+<a id="line-979" name="line-979"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-980" name="line-980"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">acode_3</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-981" name="line-981"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="w"> </span><span class="p">(</span><span class="n">mate_territories_map</span><span class="p">,</span>
+<a id="line-982" name="line-982"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">acode_3</span><span class="p">),</span>
+<a id="line-983" name="line-983"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">territory_name</span><span class="p">));</span>
+<a id="line-984" name="line-984"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-985" name="line-985"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">ncode</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-986" name="line-986"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="w"> </span><span class="p">(</span><span class="n">mate_territories_map</span><span class="p">,</span>
+<a id="line-987" name="line-987"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">ncode</span><span class="p">),</span>
+<a id="line-988" name="line-988"></a><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">territory_name</span><span class="p">));</span>
+<a id="line-989" name="line-989"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-990" name="line-990"></a><span class="p">}</span>
+<a id="line-991" name="line-991"></a>
+<a id="line-992" name="line-992"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-993" name="line-993"></a><span class="nf">languages_variant_init</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">variant</span><span class="p">)</span>
+<a id="line-994" name="line-994"></a><span class="p">{</span>
+<a id="line-995" name="line-995"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">res</span><span class="p">;</span>
+<a id="line-996" name="line-996"></a><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">buf_len</span><span class="p">;</span>
+<a id="line-997" name="line-997"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">buf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-998" name="line-998"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-999" name="line-999"></a><span class="w"> </span><span class="n">g_autoptr</span><span class="w"> </span><span class="p">(</span><span class="n">GError</span><span class="p">)</span><span class="w"> </span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1000" name="line-1000"></a>
+<a id="line-1001" name="line-1001"></a><span class="w"> </span><span class="n">bindtextdomain</span><span class="w"> </span><span class="p">(</span><span class="n">variant</span><span class="p">,</span><span class="w"> </span><span class="n">ISO_CODES_LOCALESDIR</span><span class="p">);</span>
+<a id="line-1002" name="line-1002"></a><span class="w"> </span><span class="n">bind_textdomain_codeset</span><span class="w"> </span><span class="p">(</span><span class="n">variant</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">);</span>
+<a id="line-1003" name="line-1003"></a>
+<a id="line-1004" name="line-1004"></a><span class="w"> </span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1005" name="line-1005"></a><span class="w"> </span><span class="n">filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">ISO_CODES_DATADIR</span><span class="w"> </span><span class="s">&quot;/%s.xml&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">variant</span><span class="p">);</span>
+<a id="line-1006" name="line-1006"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_contents</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">,</span>
+<a id="line-1007" name="line-1007"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">buf</span><span class="p">,</span>
+<a id="line-1008" name="line-1008"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">buf_len</span><span class="p">,</span>
+<a id="line-1009" name="line-1009"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-1010" name="line-1010"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1011" name="line-1011"></a><span class="w"> </span><span class="n">g_autoptr</span><span class="w"> </span><span class="p">(</span><span class="n">GMarkupParseContext</span><span class="p">)</span><span class="w"> </span><span class="n">ctx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1012" name="line-1012"></a><span class="w"> </span><span class="n">GMarkupParser</span><span class="w"> </span><span class="n">parser</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">languages_parse_start_tag</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="p">};</span>
+<a id="line-1013" name="line-1013"></a>
+<a id="line-1014" name="line-1014"></a><span class="w"> </span><span class="n">ctx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_markup_parse_context_new</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1015" name="line-1015"></a>
+<a id="line-1016" name="line-1016"></a><span class="w"> </span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1017" name="line-1017"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_markup_parse_context_parse</span><span class="w"> </span><span class="p">(</span><span class="n">ctx</span><span class="p">,</span><span class="w"> </span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">buf_len</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-1018" name="line-1018"></a>
+<a id="line-1019" name="line-1019"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1020" name="line-1020"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to parse &#39;%s&#39;: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span>
+<a id="line-1021" name="line-1021"></a><span class="w"> </span><span class="n">filename</span><span class="p">,</span>
+<a id="line-1022" name="line-1022"></a><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-1023" name="line-1023"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1024" name="line-1024"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1025" name="line-1025"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to load &#39;%s&#39;: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span>
+<a id="line-1026" name="line-1026"></a><span class="w"> </span><span class="n">filename</span><span class="p">,</span>
+<a id="line-1027" name="line-1027"></a><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-1028" name="line-1028"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1029" name="line-1029"></a><span class="p">}</span>
+<a id="line-1030" name="line-1030"></a>
+<a id="line-1031" name="line-1031"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1032" name="line-1032"></a><span class="nf">languages_init</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-1033" name="line-1033"></a><span class="p">{</span>
+<a id="line-1034" name="line-1034"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mate_languages_map</span><span class="p">)</span>
+<a id="line-1035" name="line-1035"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-1036" name="line-1036"></a>
+<a id="line-1037" name="line-1037"></a><span class="w"> </span><span class="n">mate_languages_map</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_new_full</span><span class="w"> </span><span class="p">(</span><span class="n">g_str_hash</span><span class="p">,</span><span class="w"> </span><span class="n">g_str_equal</span><span class="p">,</span><span class="w"> </span><span class="n">g_free</span><span class="p">,</span><span class="w"> </span><span class="n">g_free</span><span class="p">);</span>
+<a id="line-1038" name="line-1038"></a>
+<a id="line-1039" name="line-1039"></a><span class="w"> </span><span class="n">languages_variant_init</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;iso_639&quot;</span><span class="p">);</span>
+<a id="line-1040" name="line-1040"></a><span class="w"> </span><span class="n">languages_variant_init</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;iso_639_3&quot;</span><span class="p">);</span>
+<a id="line-1041" name="line-1041"></a><span class="p">}</span>
+<a id="line-1042" name="line-1042"></a>
+<a id="line-1043" name="line-1043"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1044" name="line-1044"></a><span class="nf">territories_init</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-1045" name="line-1045"></a><span class="p">{</span>
+<a id="line-1046" name="line-1046"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">res</span><span class="p">;</span>
+<a id="line-1047" name="line-1047"></a><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">buf_len</span><span class="p">;</span>
+<a id="line-1048" name="line-1048"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">buf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1049" name="line-1049"></a><span class="w"> </span><span class="n">g_autoptr</span><span class="w"> </span><span class="p">(</span><span class="n">GError</span><span class="p">)</span><span class="w"> </span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1050" name="line-1050"></a>
+<a id="line-1051" name="line-1051"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mate_territories_map</span><span class="p">)</span>
+<a id="line-1052" name="line-1052"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-1053" name="line-1053"></a>
+<a id="line-1054" name="line-1054"></a><span class="w"> </span><span class="n">bindtextdomain</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;iso_3166&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">ISO_CODES_LOCALESDIR</span><span class="p">);</span>
+<a id="line-1055" name="line-1055"></a><span class="w"> </span><span class="n">bind_textdomain_codeset</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;iso_3166&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">);</span>
+<a id="line-1056" name="line-1056"></a>
+<a id="line-1057" name="line-1057"></a><span class="w"> </span><span class="n">mate_territories_map</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_new_full</span><span class="w"> </span><span class="p">(</span><span class="n">g_str_hash</span><span class="p">,</span><span class="w"> </span><span class="n">g_str_equal</span><span class="p">,</span><span class="w"> </span><span class="n">g_free</span><span class="p">,</span><span class="w"> </span><span class="n">g_free</span><span class="p">);</span>
+<a id="line-1058" name="line-1058"></a>
+<a id="line-1059" name="line-1059"></a><span class="w"> </span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1060" name="line-1060"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_contents</span><span class="w"> </span><span class="p">(</span><span class="n">ISO_CODES_DATADIR</span><span class="w"> </span><span class="s">&quot;/iso_3166.xml&quot;</span><span class="p">,</span>
+<a id="line-1061" name="line-1061"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">buf</span><span class="p">,</span>
+<a id="line-1062" name="line-1062"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">buf_len</span><span class="p">,</span>
+<a id="line-1063" name="line-1063"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-1064" name="line-1064"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1065" name="line-1065"></a><span class="w"> </span><span class="n">g_autoptr</span><span class="w"> </span><span class="p">(</span><span class="n">GMarkupParseContext</span><span class="p">)</span><span class="w"> </span><span class="n">ctx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1066" name="line-1066"></a><span class="w"> </span><span class="n">GMarkupParser</span><span class="w"> </span><span class="n">parser</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">territories_parse_start_tag</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="p">};</span>
+<a id="line-1067" name="line-1067"></a>
+<a id="line-1068" name="line-1068"></a><span class="w"> </span><span class="n">ctx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_markup_parse_context_new</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1069" name="line-1069"></a>
+<a id="line-1070" name="line-1070"></a><span class="w"> </span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1071" name="line-1071"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_markup_parse_context_parse</span><span class="w"> </span><span class="p">(</span><span class="n">ctx</span><span class="p">,</span><span class="w"> </span><span class="n">buf</span><span class="p">,</span><span class="w"> </span><span class="n">buf_len</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">error</span><span class="p">);</span>
+<a id="line-1072" name="line-1072"></a>
+<a id="line-1073" name="line-1073"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1074" name="line-1074"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to parse &#39;%s&#39;: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span>
+<a id="line-1075" name="line-1075"></a><span class="w"> </span><span class="n">ISO_CODES_DATADIR</span><span class="w"> </span><span class="s">&quot;/iso_3166.xml&quot;</span><span class="p">,</span>
+<a id="line-1076" name="line-1076"></a><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-1077" name="line-1077"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1078" name="line-1078"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1079" name="line-1079"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Failed to load &#39;%s&#39;: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span>
+<a id="line-1080" name="line-1080"></a><span class="w"> </span><span class="n">ISO_CODES_DATADIR</span><span class="w"> </span><span class="s">&quot;/iso_3166.xml&quot;</span><span class="p">,</span>
+<a id="line-1081" name="line-1081"></a><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-1082" name="line-1082"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1083" name="line-1083"></a><span class="p">}</span>
+<a id="line-1084" name="line-1084"></a>
+<a id="line-1085" name="line-1085"></a><span class="cm">/**</span>
+<a id="line-1086" name="line-1086"></a><span class="cm"> * mate_get_language_from_locale:</span>
+<a id="line-1087" name="line-1087"></a><span class="cm"> * @locale: a locale string</span>
+<a id="line-1088" name="line-1088"></a><span class="cm"> * @translation: (allow-none): a locale string</span>
+<a id="line-1089" name="line-1089"></a><span class="cm"> *</span>
+<a id="line-1090" name="line-1090"></a><span class="cm"> * Gets the language description for @locale. If @translation is</span>
+<a id="line-1091" name="line-1091"></a><span class="cm"> * provided the returned string is translated accordingly.</span>
+<a id="line-1092" name="line-1092"></a><span class="cm"> *</span>
+<a id="line-1093" name="line-1093"></a><span class="cm"> * Return value: (transfer full): the language description. Caller</span>
+<a id="line-1094" name="line-1094"></a><span class="cm"> * takes ownership.</span>
+<a id="line-1095" name="line-1095"></a><span class="cm"> *</span>
+<a id="line-1096" name="line-1096"></a><span class="cm"> * Since: 1.22</span>
+<a id="line-1097" name="line-1097"></a><span class="cm"> */</span>
+<a id="line-1098" name="line-1098"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1099" name="line-1099"></a><span class="nf">mate_get_language_from_locale</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">locale</span><span class="p">,</span>
+<a id="line-1100" name="line-1100"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">translation</span><span class="p">)</span>
+<a id="line-1101" name="line-1101"></a><span class="p">{</span>
+<a id="line-1102" name="line-1102"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">full_language</span><span class="p">;</span>
+<a id="line-1103" name="line-1103"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">language_code</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1104" name="line-1104"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">territory_code</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1105" name="line-1105"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">codeset_code</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1106" name="line-1106"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">langinfo_codeset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1107" name="line-1107"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">translated_language</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1108" name="line-1108"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">translated_territory</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1109" name="line-1109"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_utf8</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1110" name="line-1110"></a>
+<a id="line-1111" name="line-1111"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1112" name="line-1112"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">locale</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1113" name="line-1113"></a>
+<a id="line-1114" name="line-1114"></a><span class="w"> </span><span class="n">full_language</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_new</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1115" name="line-1115"></a>
+<a id="line-1116" name="line-1116"></a><span class="w"> </span><span class="n">languages_init</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1117" name="line-1117"></a><span class="w"> </span><span class="n">territories_init</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1118" name="line-1118"></a>
+<a id="line-1119" name="line-1119"></a><span class="w"> </span><span class="n">mate_parse_locale</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="p">,</span>
+<a id="line-1120" name="line-1120"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">language_code</span><span class="p">,</span>
+<a id="line-1121" name="line-1121"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">territory_code</span><span class="p">,</span>
+<a id="line-1122" name="line-1122"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">codeset_code</span><span class="p">,</span>
+<a id="line-1123" name="line-1123"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1124" name="line-1124"></a>
+<a id="line-1125" name="line-1125"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">language_code</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1126" name="line-1126"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span>
+<a id="line-1127" name="line-1127"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1128" name="line-1128"></a>
+<a id="line-1129" name="line-1129"></a><span class="w"> </span><span class="n">translated_language</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_translated_language</span><span class="w"> </span><span class="p">(</span><span class="n">language_code</span><span class="p">,</span><span class="w"> </span><span class="n">translation</span><span class="p">);</span>
+<a id="line-1130" name="line-1130"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">translated_language</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1131" name="line-1131"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span>
+<a id="line-1132" name="line-1132"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1133" name="line-1133"></a>
+<a id="line-1134" name="line-1134"></a><span class="w"> </span><span class="n">full_language</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">full_language</span><span class="p">,</span><span class="w"> </span><span class="n">translated_language</span><span class="p">);</span>
+<a id="line-1135" name="line-1135"></a>
+<a id="line-1136" name="line-1136"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">is_unique_language</span><span class="w"> </span><span class="p">(</span><span class="n">language_code</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1137" name="line-1137"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span>
+<a id="line-1138" name="line-1138"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1139" name="line-1139"></a>
+<a id="line-1140" name="line-1140"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">territory_code</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1141" name="line-1141"></a><span class="w"> </span><span class="n">translated_territory</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_translated_territory</span><span class="w"> </span><span class="p">(</span><span class="n">territory_code</span><span class="p">,</span><span class="w"> </span><span class="n">translation</span><span class="p">);</span>
+<a id="line-1142" name="line-1142"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1143" name="line-1143"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">translated_territory</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1144" name="line-1144"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span><span class="n">full_language</span><span class="p">,</span>
+<a id="line-1145" name="line-1145"></a><span class="w"> </span><span class="s">&quot; (%s)&quot;</span><span class="p">,</span>
+<a id="line-1146" name="line-1146"></a><span class="w"> </span><span class="n">translated_territory</span><span class="p">);</span>
+<a id="line-1147" name="line-1147"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1148" name="line-1148"></a>
+<a id="line-1149" name="line-1149"></a><span class="w"> </span><span class="n">language_name_get_codeset_details</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">langinfo_codeset</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">is_utf8</span><span class="p">);</span>
+<a id="line-1150" name="line-1150"></a>
+<a id="line-1151" name="line-1151"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">codeset_code</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">langinfo_codeset</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1152" name="line-1152"></a><span class="w"> </span><span class="n">codeset_code</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">langinfo_codeset</span><span class="p">);</span>
+<a id="line-1153" name="line-1153"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1154" name="line-1154"></a>
+<a id="line-1155" name="line-1155"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">is_utf8</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">codeset_code</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1156" name="line-1156"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span><span class="n">full_language</span><span class="p">,</span>
+<a id="line-1157" name="line-1157"></a><span class="w"> </span><span class="s">&quot; [%s]&quot;</span><span class="p">,</span>
+<a id="line-1158" name="line-1158"></a><span class="w"> </span><span class="n">codeset_code</span><span class="p">);</span>
+<a id="line-1159" name="line-1159"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1160" name="line-1160"></a>
+<a id="line-1161" name="line-1161"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span>
+<a id="line-1162" name="line-1162"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">full_language</span><span class="o">-&gt;</span><span class="n">len</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1163" name="line-1163"></a><span class="w"> </span><span class="n">g_string_free</span><span class="w"> </span><span class="p">(</span><span class="n">full_language</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-1164" name="line-1164"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1165" name="line-1165"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1166" name="line-1166"></a>
+<a id="line-1167" name="line-1167"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_string_free</span><span class="w"> </span><span class="p">(</span><span class="n">full_language</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1168" name="line-1168"></a><span class="p">}</span>
+<a id="line-1169" name="line-1169"></a>
+<a id="line-1170" name="line-1170"></a><span class="cm">/**</span>
+<a id="line-1171" name="line-1171"></a><span class="cm"> * mate_get_country_from_locale:</span>
+<a id="line-1172" name="line-1172"></a><span class="cm"> * @locale: a locale string</span>
+<a id="line-1173" name="line-1173"></a><span class="cm"> * @translation: (allow-none): a locale string</span>
+<a id="line-1174" name="line-1174"></a><span class="cm"> *</span>
+<a id="line-1175" name="line-1175"></a><span class="cm"> * Gets the country description for @locale. If @translation is</span>
+<a id="line-1176" name="line-1176"></a><span class="cm"> * provided the returned string is translated accordingly.</span>
+<a id="line-1177" name="line-1177"></a><span class="cm"> *</span>
+<a id="line-1178" name="line-1178"></a><span class="cm"> * Return value: (transfer full): the country description. Caller</span>
+<a id="line-1179" name="line-1179"></a><span class="cm"> * takes ownership.</span>
+<a id="line-1180" name="line-1180"></a><span class="cm"> *</span>
+<a id="line-1181" name="line-1181"></a><span class="cm"> * Since: 1.22</span>
+<a id="line-1182" name="line-1182"></a><span class="cm"> */</span>
+<a id="line-1183" name="line-1183"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1184" name="line-1184"></a><span class="nf">mate_get_country_from_locale</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">locale</span><span class="p">,</span>
+<a id="line-1185" name="line-1185"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">translation</span><span class="p">)</span>
+<a id="line-1186" name="line-1186"></a><span class="p">{</span>
+<a id="line-1187" name="line-1187"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">full_name</span><span class="p">;</span>
+<a id="line-1188" name="line-1188"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">language_code</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1189" name="line-1189"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">territory_code</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1190" name="line-1190"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">codeset_code</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1191" name="line-1191"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">langinfo_codeset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1192" name="line-1192"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">translated_language</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1193" name="line-1193"></a><span class="w"> </span><span class="n">g_autofree</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">translated_territory</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1194" name="line-1194"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_utf8</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1195" name="line-1195"></a>
+<a id="line-1196" name="line-1196"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1197" name="line-1197"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">locale</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1198" name="line-1198"></a>
+<a id="line-1199" name="line-1199"></a><span class="w"> </span><span class="n">full_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_new</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1200" name="line-1200"></a>
+<a id="line-1201" name="line-1201"></a><span class="w"> </span><span class="n">languages_init</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1202" name="line-1202"></a><span class="w"> </span><span class="n">territories_init</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1203" name="line-1203"></a>
+<a id="line-1204" name="line-1204"></a><span class="w"> </span><span class="n">mate_parse_locale</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="p">,</span>
+<a id="line-1205" name="line-1205"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">language_code</span><span class="p">,</span>
+<a id="line-1206" name="line-1206"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">territory_code</span><span class="p">,</span>
+<a id="line-1207" name="line-1207"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">codeset_code</span><span class="p">,</span>
+<a id="line-1208" name="line-1208"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1209" name="line-1209"></a>
+<a id="line-1210" name="line-1210"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">territory_code</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1211" name="line-1211"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span>
+<a id="line-1212" name="line-1212"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1213" name="line-1213"></a>
+<a id="line-1214" name="line-1214"></a><span class="w"> </span><span class="n">translated_territory</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_translated_territory</span><span class="w"> </span><span class="p">(</span><span class="n">territory_code</span><span class="p">,</span><span class="w"> </span><span class="n">translation</span><span class="p">);</span>
+<a id="line-1215" name="line-1215"></a><span class="w"> </span><span class="n">g_string_append</span><span class="w"> </span><span class="p">(</span><span class="n">full_name</span><span class="p">,</span><span class="w"> </span><span class="n">translated_territory</span><span class="p">);</span>
+<a id="line-1216" name="line-1216"></a>
+<a id="line-1217" name="line-1217"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">is_unique_territory</span><span class="w"> </span><span class="p">(</span><span class="n">territory_code</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1218" name="line-1218"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span>
+<a id="line-1219" name="line-1219"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1220" name="line-1220"></a>
+<a id="line-1221" name="line-1221"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">language_code</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1222" name="line-1222"></a><span class="w"> </span><span class="n">translated_language</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_translated_language</span><span class="w"> </span><span class="p">(</span><span class="n">language_code</span><span class="p">,</span><span class="w"> </span><span class="n">translation</span><span class="p">);</span>
+<a id="line-1223" name="line-1223"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1224" name="line-1224"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">translated_language</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1225" name="line-1225"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span><span class="n">full_name</span><span class="p">,</span>
+<a id="line-1226" name="line-1226"></a><span class="w"> </span><span class="s">&quot; (%s)&quot;</span><span class="p">,</span>
+<a id="line-1227" name="line-1227"></a><span class="w"> </span><span class="n">translated_language</span><span class="p">);</span>
+<a id="line-1228" name="line-1228"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1229" name="line-1229"></a>
+<a id="line-1230" name="line-1230"></a><span class="w"> </span><span class="n">language_name_get_codeset_details</span><span class="w"> </span><span class="p">(</span><span class="n">translation</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">langinfo_codeset</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">is_utf8</span><span class="p">);</span>
+<a id="line-1231" name="line-1231"></a>
+<a id="line-1232" name="line-1232"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">codeset_code</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">langinfo_codeset</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1233" name="line-1233"></a><span class="w"> </span><span class="n">codeset_code</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">langinfo_codeset</span><span class="p">);</span>
+<a id="line-1234" name="line-1234"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1235" name="line-1235"></a>
+<a id="line-1236" name="line-1236"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">is_utf8</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">codeset_code</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1237" name="line-1237"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span><span class="n">full_name</span><span class="p">,</span>
+<a id="line-1238" name="line-1238"></a><span class="w"> </span><span class="s">&quot; [%s]&quot;</span><span class="p">,</span>
+<a id="line-1239" name="line-1239"></a><span class="w"> </span><span class="n">codeset_code</span><span class="p">);</span>
+<a id="line-1240" name="line-1240"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1241" name="line-1241"></a>
+<a id="line-1242" name="line-1242"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span>
+<a id="line-1243" name="line-1243"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">full_name</span><span class="o">-&gt;</span><span class="n">len</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1244" name="line-1244"></a><span class="w"> </span><span class="n">g_string_free</span><span class="w"> </span><span class="p">(</span><span class="n">full_name</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-1245" name="line-1245"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1246" name="line-1246"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1247" name="line-1247"></a>
+<a id="line-1248" name="line-1248"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_string_free</span><span class="w"> </span><span class="p">(</span><span class="n">full_name</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1249" name="line-1249"></a><span class="p">}</span>
+<a id="line-1250" name="line-1250"></a>
+<a id="line-1251" name="line-1251"></a><span class="cm">/**</span>
+<a id="line-1252" name="line-1252"></a><span class="cm"> * mate_get_all_locales:</span>
+<a id="line-1253" name="line-1253"></a><span class="cm"> *</span>
+<a id="line-1254" name="line-1254"></a><span class="cm"> * Gets all locales.</span>
+<a id="line-1255" name="line-1255"></a><span class="cm"> *</span>
+<a id="line-1256" name="line-1256"></a><span class="cm"> * Return value: (array zero-terminated=1) (element-type utf8) (transfer full):</span>
+<a id="line-1257" name="line-1257"></a><span class="cm"> * a newly allocated %NULL-terminated string array containing the</span>
+<a id="line-1258" name="line-1258"></a><span class="cm"> * all locales. Free with g_strfreev().</span>
+<a id="line-1259" name="line-1259"></a><span class="cm"> *</span>
+<a id="line-1260" name="line-1260"></a><span class="cm"> * Since: 1.22</span>
+<a id="line-1261" name="line-1261"></a><span class="cm"> */</span>
+<a id="line-1262" name="line-1262"></a><span class="kt">char</span><span class="w"> </span><span class="o">**</span>
+<a id="line-1263" name="line-1263"></a><span class="nf">mate_get_all_locales</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-1264" name="line-1264"></a><span class="p">{</span>
+<a id="line-1265" name="line-1265"></a><span class="w"> </span><span class="n">GHashTableIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span>
+<a id="line-1266" name="line-1266"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">;</span>
+<a id="line-1267" name="line-1267"></a><span class="w"> </span><span class="n">GPtrArray</span><span class="w"> </span><span class="o">*</span><span class="n">array</span><span class="p">;</span>
+<a id="line-1268" name="line-1268"></a>
+<a id="line-1269" name="line-1269"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mate_available_locales_map</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1270" name="line-1270"></a><span class="w"> </span><span class="n">collect_locales</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1271" name="line-1271"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1272" name="line-1272"></a>
+<a id="line-1273" name="line-1273"></a><span class="w"> </span><span class="n">array</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1274" name="line-1274"></a><span class="w"> </span><span class="n">g_hash_table_iter_init</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">mate_available_locales_map</span><span class="p">);</span>
+<a id="line-1275" name="line-1275"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">g_hash_table_iter_next</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">value</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1276" name="line-1276"></a><span class="w"> </span><span class="n">MateLocale</span><span class="w"> </span><span class="o">*</span><span class="n">locale</span><span class="p">;</span>
+<a id="line-1277" name="line-1277"></a>
+<a id="line-1278" name="line-1278"></a><span class="w"> </span><span class="n">locale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MateLocale</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">value</span><span class="p">;</span>
+<a id="line-1279" name="line-1279"></a>
+<a id="line-1280" name="line-1280"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">array</span><span class="p">,</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">));</span>
+<a id="line-1281" name="line-1281"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1282" name="line-1282"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">array</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1283" name="line-1283"></a>
+<a id="line-1284" name="line-1284"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="p">)</span><span class="w"> </span><span class="n">g_ptr_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">array</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1285" name="line-1285"></a><span class="p">}</span>
+<a id="line-1286" name="line-1286"></a>
+<a id="line-1287" name="line-1287"></a><span class="cm">/**</span>
+<a id="line-1288" name="line-1288"></a><span class="cm"> * mate_get_language_from_code:</span>
+<a id="line-1289" name="line-1289"></a><span class="cm"> * @code: an ISO 639 code string</span>
+<a id="line-1290" name="line-1290"></a><span class="cm"> * @translation: (allow-none): a locale string</span>
+<a id="line-1291" name="line-1291"></a><span class="cm"> *</span>
+<a id="line-1292" name="line-1292"></a><span class="cm"> * Gets the language name for @code. If @locale is provided the</span>
+<a id="line-1293" name="line-1293"></a><span class="cm"> * returned string is translated accordingly.</span>
+<a id="line-1294" name="line-1294"></a><span class="cm"> *</span>
+<a id="line-1295" name="line-1295"></a><span class="cm"> * Return value: (transfer full): the language name. Caller takes</span>
+<a id="line-1296" name="line-1296"></a><span class="cm"> * ownership.</span>
+<a id="line-1297" name="line-1297"></a><span class="cm"> *</span>
+<a id="line-1298" name="line-1298"></a><span class="cm"> * Since: 1.22</span>
+<a id="line-1299" name="line-1299"></a><span class="cm"> */</span>
+<a id="line-1300" name="line-1300"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1301" name="line-1301"></a><span class="nf">mate_get_language_from_code</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">code</span><span class="p">,</span>
+<a id="line-1302" name="line-1302"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">translation</span><span class="p">)</span>
+<a id="line-1303" name="line-1303"></a><span class="p">{</span>
+<a id="line-1304" name="line-1304"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">code</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1305" name="line-1305"></a>
+<a id="line-1306" name="line-1306"></a><span class="w"> </span><span class="n">languages_init</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1307" name="line-1307"></a>
+<a id="line-1308" name="line-1308"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">get_translated_language</span><span class="w"> </span><span class="p">(</span><span class="n">code</span><span class="p">,</span><span class="w"> </span><span class="n">translation</span><span class="p">);</span>
+<a id="line-1309" name="line-1309"></a><span class="p">}</span>
+<a id="line-1310" name="line-1310"></a>
+<a id="line-1311" name="line-1311"></a><span class="cm">/**</span>
+<a id="line-1312" name="line-1312"></a><span class="cm"> * mate_get_country_from_code:</span>
+<a id="line-1313" name="line-1313"></a><span class="cm"> * @code: an ISO 3166 code string</span>
+<a id="line-1314" name="line-1314"></a><span class="cm"> * @translation: (allow-none): a locale string</span>
+<a id="line-1315" name="line-1315"></a><span class="cm"> *</span>
+<a id="line-1316" name="line-1316"></a><span class="cm"> * Gets the country name for @code. If @locale is provided the</span>
+<a id="line-1317" name="line-1317"></a><span class="cm"> * returned string is translated accordingly.</span>
+<a id="line-1318" name="line-1318"></a><span class="cm"> *</span>
+<a id="line-1319" name="line-1319"></a><span class="cm"> * Return value: (transfer full): the country name. Caller takes</span>
+<a id="line-1320" name="line-1320"></a><span class="cm"> * ownership.</span>
+<a id="line-1321" name="line-1321"></a><span class="cm"> *</span>
+<a id="line-1322" name="line-1322"></a><span class="cm"> * Since: 1.22</span>
+<a id="line-1323" name="line-1323"></a><span class="cm"> */</span>
+<a id="line-1324" name="line-1324"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1325" name="line-1325"></a><span class="nf">mate_get_country_from_code</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">code</span><span class="p">,</span>
+<a id="line-1326" name="line-1326"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">translation</span><span class="p">)</span>
+<a id="line-1327" name="line-1327"></a><span class="p">{</span>
+<a id="line-1328" name="line-1328"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">code</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1329" name="line-1329"></a>
+<a id="line-1330" name="line-1330"></a><span class="w"> </span><span class="n">territories_init</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1331" name="line-1331"></a>
+<a id="line-1332" name="line-1332"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">get_translated_territory</span><span class="w"> </span><span class="p">(</span><span class="n">code</span><span class="p">,</span><span class="w"> </span><span class="n">translation</span><span class="p">);</span>
+<a id="line-1333" name="line-1333"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/22.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/22.html
new file mode 100644
index 0000000..e739194
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/22.html
@@ -0,0 +1,343 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/mate-languages.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-languages.h</p>
+<a href="22.html#line-30"> missingIncludeSystem 30</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal">10</span>
+<span class="normal">11</span>
+<span class="normal">12</span>
+<span class="normal">13</span>
+<span class="normal">14</span>
+<span class="normal">15</span>
+<span class="normal">16</span>
+<span class="normal">17</span>
+<span class="normal">18</span>
+<span class="normal">19</span>
+<span class="normal">20</span>
+<span class="normal">21</span>
+<span class="normal">22</span>
+<span class="normal">23</span>
+<span class="normal">24</span>
+<span class="normal">25</span>
+<span class="normal">26</span>
+<span class="normal">27</span>
+<span class="normal">28</span>
+<span class="normal">29</span>
+<span class="normal">30</span>
+<span class="normal">31</span>
+<span class="normal">32</span>
+<span class="normal">33</span>
+<span class="normal">34</span>
+<span class="normal">35</span>
+<span class="normal">36</span>
+<span class="normal">37</span>
+<span class="normal">38</span>
+<span class="normal">39</span>
+<span class="normal">40</span>
+<span class="normal">41</span>
+<span class="normal">42</span>
+<span class="normal">43</span>
+<span class="normal">44</span>
+<span class="normal">45</span>
+<span class="normal">46</span>
+<span class="normal">47</span>
+<span class="normal">48</span>
+<span class="normal">49</span>
+<span class="normal">50</span>
+<span class="normal">51</span>
+<span class="normal">52</span>
+<span class="normal">53</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-</span>
+<a id="line-2" name="line-2"></a><span class="cm"> *</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright 2008 Red Hat, Inc.</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * Copyright 2007 William Jon McCann &lt;[email protected]&gt;</span>
+<a id="line-5" name="line-5"></a><span class="cm"> *</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * This program is free software; you can redistribute it and/or modify</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * (at your option) any later version.</span>
+<a id="line-10" name="line-10"></a><span class="cm"> *</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * GNU General Public License for more details.</span>
+<a id="line-15" name="line-15"></a><span class="cm"> *</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * along with this program; if not, see &lt;http://www.gnu.org/licenses/&gt;.</span>
+<a id="line-18" name="line-18"></a><span class="cm"> *</span>
+<a id="line-19" name="line-19"></a><span class="cm"> * Written by: Ray Strode</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * William Jon McCann</span>
+<a id="line-21" name="line-21"></a><span class="cm"> */</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="cp">#ifndef __MATE_LANGUAGES_H</span>
+<a id="line-24" name="line-24"></a><span class="cp">#define __MATE_LANGUAGES_H</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="cp">#ifndef MATE_DESKTOP_USE_UNSTABLE_API</span>
+<a id="line-27" name="line-27"></a><span class="cp">#error This is unstable API. You must define MATE_DESKTOP_USE_UNSTABLE_API before including mate-languages.h</span>
+<a id="line-28" name="line-28"></a><span class="cp">#endif</span>
+<a id="line-29" name="line-29"></a>
+<a id="line-30" name="line-30"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib.h&gt;</span><span class="error2">&lt;--- Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="n">G_BEGIN_DECLS</span>
+<a id="line-33" name="line-33"></a>
+<a id="line-34" name="line-34"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">mate_get_language_from_locale</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">locale</span><span class="p">,</span>
+<a id="line-35" name="line-35"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">translation</span><span class="p">);</span>
+<a id="line-36" name="line-36"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nf">mate_get_country_from_locale</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">locale</span><span class="p">,</span>
+<a id="line-37" name="line-37"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">translation</span><span class="p">);</span>
+<a id="line-38" name="line-38"></a><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="w"> </span><span class="nf">mate_get_all_locales</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-39" name="line-39"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_parse_locale</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">locale</span><span class="p">,</span>
+<a id="line-40" name="line-40"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">language_codep</span><span class="p">,</span>
+<a id="line-41" name="line-41"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">country_codep</span><span class="p">,</span>
+<a id="line-42" name="line-42"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">codesetp</span><span class="p">,</span>
+<a id="line-43" name="line-43"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">modifierp</span><span class="p">);</span>
+<a id="line-44" name="line-44"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nf">mate_normalize_locale</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">locale</span><span class="p">);</span>
+<a id="line-45" name="line-45"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_language_has_translations</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">code</span><span class="p">);</span>
+<a id="line-46" name="line-46"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nf">mate_get_language_from_code</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">code</span><span class="p">,</span>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">translation</span><span class="p">);</span>
+<a id="line-48" name="line-48"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nf">mate_get_country_from_code</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">code</span><span class="p">,</span>
+<a id="line-49" name="line-49"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">translation</span><span class="p">);</span>
+<a id="line-50" name="line-50"></a>
+<a id="line-51" name="line-51"></a><span class="n">G_END_DECLS</span>
+<a id="line-52" name="line-52"></a>
+<a id="line-53" name="line-53"></a><span class="cp">#endif </span><span class="cm">/* __MATE_LANGUAGES_H */</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/23.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/23.html
new file mode 100644
index 0000000..a602558
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/23.html
@@ -0,0 +1,4187 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/mate-rr-config.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-rr-config.c</p>
+<a href="23.html#line-29"> missingIncludeSystem 29</a><a href="23.html#line-30"> missingIncludeSystem 30</a><a href="23.html#line-31"> missingIncludeSystem 31</a><a href="23.html#line-32"> missingIncludeSystem 32</a><a href="23.html#line-33"> missingIncludeSystem 33</a><a href="23.html#line-34"> missingIncludeSystem 34</a><a href="23.html#line-36"> missingIncludeSystem 36</a><a href="23.html#line-37"> missingIncludeSystem 37</a><a href="23.html#line-94"> unknownMacro 94</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal"> 10</span>
+<span class="normal"> 11</span>
+<span class="normal"> 12</span>
+<span class="normal"> 13</span>
+<span class="normal"> 14</span>
+<span class="normal"> 15</span>
+<span class="normal"> 16</span>
+<span class="normal"> 17</span>
+<span class="normal"> 18</span>
+<span class="normal"> 19</span>
+<span class="normal"> 20</span>
+<span class="normal"> 21</span>
+<span class="normal"> 22</span>
+<span class="normal"> 23</span>
+<span class="normal"> 24</span>
+<span class="normal"> 25</span>
+<span class="normal"> 26</span>
+<span class="normal"> 27</span>
+<span class="normal"> 28</span>
+<span class="normal"> 29</span>
+<span class="normal"> 30</span>
+<span class="normal"> 31</span>
+<span class="normal"> 32</span>
+<span class="normal"> 33</span>
+<span class="normal"> 34</span>
+<span class="normal"> 35</span>
+<span class="normal"> 36</span>
+<span class="normal"> 37</span>
+<span class="normal"> 38</span>
+<span class="normal"> 39</span>
+<span class="normal"> 40</span>
+<span class="normal"> 41</span>
+<span class="normal"> 42</span>
+<span class="normal"> 43</span>
+<span class="normal"> 44</span>
+<span class="normal"> 45</span>
+<span class="normal"> 46</span>
+<span class="normal"> 47</span>
+<span class="normal"> 48</span>
+<span class="normal"> 49</span>
+<span class="normal"> 50</span>
+<span class="normal"> 51</span>
+<span class="normal"> 52</span>
+<span class="normal"> 53</span>
+<span class="normal"> 54</span>
+<span class="normal"> 55</span>
+<span class="normal"> 56</span>
+<span class="normal"> 57</span>
+<span class="normal"> 58</span>
+<span class="normal"> 59</span>
+<span class="normal"> 60</span>
+<span class="normal"> 61</span>
+<span class="normal"> 62</span>
+<span class="normal"> 63</span>
+<span class="normal"> 64</span>
+<span class="normal"> 65</span>
+<span class="normal"> 66</span>
+<span class="normal"> 67</span>
+<span class="normal"> 68</span>
+<span class="normal"> 69</span>
+<span class="normal"> 70</span>
+<span class="normal"> 71</span>
+<span class="normal"> 72</span>
+<span class="normal"> 73</span>
+<span class="normal"> 74</span>
+<span class="normal"> 75</span>
+<span class="normal"> 76</span>
+<span class="normal"> 77</span>
+<span class="normal"> 78</span>
+<span class="normal"> 79</span>
+<span class="normal"> 80</span>
+<span class="normal"> 81</span>
+<span class="normal"> 82</span>
+<span class="normal"> 83</span>
+<span class="normal"> 84</span>
+<span class="normal"> 85</span>
+<span class="normal"> 86</span>
+<span class="normal"> 87</span>
+<span class="normal"> 88</span>
+<span class="normal"> 89</span>
+<span class="normal"> 90</span>
+<span class="normal"> 91</span>
+<span class="normal"> 92</span>
+<span class="normal"> 93</span>
+<span class="normal"> 94</span>
+<span class="normal"> 95</span>
+<span class="normal"> 96</span>
+<span class="normal"> 97</span>
+<span class="normal"> 98</span>
+<span class="normal"> 99</span>
+<span class="normal"> 100</span>
+<span class="normal"> 101</span>
+<span class="normal"> 102</span>
+<span class="normal"> 103</span>
+<span class="normal"> 104</span>
+<span class="normal"> 105</span>
+<span class="normal"> 106</span>
+<span class="normal"> 107</span>
+<span class="normal"> 108</span>
+<span class="normal"> 109</span>
+<span class="normal"> 110</span>
+<span class="normal"> 111</span>
+<span class="normal"> 112</span>
+<span class="normal"> 113</span>
+<span class="normal"> 114</span>
+<span class="normal"> 115</span>
+<span class="normal"> 116</span>
+<span class="normal"> 117</span>
+<span class="normal"> 118</span>
+<span class="normal"> 119</span>
+<span class="normal"> 120</span>
+<span class="normal"> 121</span>
+<span class="normal"> 122</span>
+<span class="normal"> 123</span>
+<span class="normal"> 124</span>
+<span class="normal"> 125</span>
+<span class="normal"> 126</span>
+<span class="normal"> 127</span>
+<span class="normal"> 128</span>
+<span class="normal"> 129</span>
+<span class="normal"> 130</span>
+<span class="normal"> 131</span>
+<span class="normal"> 132</span>
+<span class="normal"> 133</span>
+<span class="normal"> 134</span>
+<span class="normal"> 135</span>
+<span class="normal"> 136</span>
+<span class="normal"> 137</span>
+<span class="normal"> 138</span>
+<span class="normal"> 139</span>
+<span class="normal"> 140</span>
+<span class="normal"> 141</span>
+<span class="normal"> 142</span>
+<span class="normal"> 143</span>
+<span class="normal"> 144</span>
+<span class="normal"> 145</span>
+<span class="normal"> 146</span>
+<span class="normal"> 147</span>
+<span class="normal"> 148</span>
+<span class="normal"> 149</span>
+<span class="normal"> 150</span>
+<span class="normal"> 151</span>
+<span class="normal"> 152</span>
+<span class="normal"> 153</span>
+<span class="normal"> 154</span>
+<span class="normal"> 155</span>
+<span class="normal"> 156</span>
+<span class="normal"> 157</span>
+<span class="normal"> 158</span>
+<span class="normal"> 159</span>
+<span class="normal"> 160</span>
+<span class="normal"> 161</span>
+<span class="normal"> 162</span>
+<span class="normal"> 163</span>
+<span class="normal"> 164</span>
+<span class="normal"> 165</span>
+<span class="normal"> 166</span>
+<span class="normal"> 167</span>
+<span class="normal"> 168</span>
+<span class="normal"> 169</span>
+<span class="normal"> 170</span>
+<span class="normal"> 171</span>
+<span class="normal"> 172</span>
+<span class="normal"> 173</span>
+<span class="normal"> 174</span>
+<span class="normal"> 175</span>
+<span class="normal"> 176</span>
+<span class="normal"> 177</span>
+<span class="normal"> 178</span>
+<span class="normal"> 179</span>
+<span class="normal"> 180</span>
+<span class="normal"> 181</span>
+<span class="normal"> 182</span>
+<span class="normal"> 183</span>
+<span class="normal"> 184</span>
+<span class="normal"> 185</span>
+<span class="normal"> 186</span>
+<span class="normal"> 187</span>
+<span class="normal"> 188</span>
+<span class="normal"> 189</span>
+<span class="normal"> 190</span>
+<span class="normal"> 191</span>
+<span class="normal"> 192</span>
+<span class="normal"> 193</span>
+<span class="normal"> 194</span>
+<span class="normal"> 195</span>
+<span class="normal"> 196</span>
+<span class="normal"> 197</span>
+<span class="normal"> 198</span>
+<span class="normal"> 199</span>
+<span class="normal"> 200</span>
+<span class="normal"> 201</span>
+<span class="normal"> 202</span>
+<span class="normal"> 203</span>
+<span class="normal"> 204</span>
+<span class="normal"> 205</span>
+<span class="normal"> 206</span>
+<span class="normal"> 207</span>
+<span class="normal"> 208</span>
+<span class="normal"> 209</span>
+<span class="normal"> 210</span>
+<span class="normal"> 211</span>
+<span class="normal"> 212</span>
+<span class="normal"> 213</span>
+<span class="normal"> 214</span>
+<span class="normal"> 215</span>
+<span class="normal"> 216</span>
+<span class="normal"> 217</span>
+<span class="normal"> 218</span>
+<span class="normal"> 219</span>
+<span class="normal"> 220</span>
+<span class="normal"> 221</span>
+<span class="normal"> 222</span>
+<span class="normal"> 223</span>
+<span class="normal"> 224</span>
+<span class="normal"> 225</span>
+<span class="normal"> 226</span>
+<span class="normal"> 227</span>
+<span class="normal"> 228</span>
+<span class="normal"> 229</span>
+<span class="normal"> 230</span>
+<span class="normal"> 231</span>
+<span class="normal"> 232</span>
+<span class="normal"> 233</span>
+<span class="normal"> 234</span>
+<span class="normal"> 235</span>
+<span class="normal"> 236</span>
+<span class="normal"> 237</span>
+<span class="normal"> 238</span>
+<span class="normal"> 239</span>
+<span class="normal"> 240</span>
+<span class="normal"> 241</span>
+<span class="normal"> 242</span>
+<span class="normal"> 243</span>
+<span class="normal"> 244</span>
+<span class="normal"> 245</span>
+<span class="normal"> 246</span>
+<span class="normal"> 247</span>
+<span class="normal"> 248</span>
+<span class="normal"> 249</span>
+<span class="normal"> 250</span>
+<span class="normal"> 251</span>
+<span class="normal"> 252</span>
+<span class="normal"> 253</span>
+<span class="normal"> 254</span>
+<span class="normal"> 255</span>
+<span class="normal"> 256</span>
+<span class="normal"> 257</span>
+<span class="normal"> 258</span>
+<span class="normal"> 259</span>
+<span class="normal"> 260</span>
+<span class="normal"> 261</span>
+<span class="normal"> 262</span>
+<span class="normal"> 263</span>
+<span class="normal"> 264</span>
+<span class="normal"> 265</span>
+<span class="normal"> 266</span>
+<span class="normal"> 267</span>
+<span class="normal"> 268</span>
+<span class="normal"> 269</span>
+<span class="normal"> 270</span>
+<span class="normal"> 271</span>
+<span class="normal"> 272</span>
+<span class="normal"> 273</span>
+<span class="normal"> 274</span>
+<span class="normal"> 275</span>
+<span class="normal"> 276</span>
+<span class="normal"> 277</span>
+<span class="normal"> 278</span>
+<span class="normal"> 279</span>
+<span class="normal"> 280</span>
+<span class="normal"> 281</span>
+<span class="normal"> 282</span>
+<span class="normal"> 283</span>
+<span class="normal"> 284</span>
+<span class="normal"> 285</span>
+<span class="normal"> 286</span>
+<span class="normal"> 287</span>
+<span class="normal"> 288</span>
+<span class="normal"> 289</span>
+<span class="normal"> 290</span>
+<span class="normal"> 291</span>
+<span class="normal"> 292</span>
+<span class="normal"> 293</span>
+<span class="normal"> 294</span>
+<span class="normal"> 295</span>
+<span class="normal"> 296</span>
+<span class="normal"> 297</span>
+<span class="normal"> 298</span>
+<span class="normal"> 299</span>
+<span class="normal"> 300</span>
+<span class="normal"> 301</span>
+<span class="normal"> 302</span>
+<span class="normal"> 303</span>
+<span class="normal"> 304</span>
+<span class="normal"> 305</span>
+<span class="normal"> 306</span>
+<span class="normal"> 307</span>
+<span class="normal"> 308</span>
+<span class="normal"> 309</span>
+<span class="normal"> 310</span>
+<span class="normal"> 311</span>
+<span class="normal"> 312</span>
+<span class="normal"> 313</span>
+<span class="normal"> 314</span>
+<span class="normal"> 315</span>
+<span class="normal"> 316</span>
+<span class="normal"> 317</span>
+<span class="normal"> 318</span>
+<span class="normal"> 319</span>
+<span class="normal"> 320</span>
+<span class="normal"> 321</span>
+<span class="normal"> 322</span>
+<span class="normal"> 323</span>
+<span class="normal"> 324</span>
+<span class="normal"> 325</span>
+<span class="normal"> 326</span>
+<span class="normal"> 327</span>
+<span class="normal"> 328</span>
+<span class="normal"> 329</span>
+<span class="normal"> 330</span>
+<span class="normal"> 331</span>
+<span class="normal"> 332</span>
+<span class="normal"> 333</span>
+<span class="normal"> 334</span>
+<span class="normal"> 335</span>
+<span class="normal"> 336</span>
+<span class="normal"> 337</span>
+<span class="normal"> 338</span>
+<span class="normal"> 339</span>
+<span class="normal"> 340</span>
+<span class="normal"> 341</span>
+<span class="normal"> 342</span>
+<span class="normal"> 343</span>
+<span class="normal"> 344</span>
+<span class="normal"> 345</span>
+<span class="normal"> 346</span>
+<span class="normal"> 347</span>
+<span class="normal"> 348</span>
+<span class="normal"> 349</span>
+<span class="normal"> 350</span>
+<span class="normal"> 351</span>
+<span class="normal"> 352</span>
+<span class="normal"> 353</span>
+<span class="normal"> 354</span>
+<span class="normal"> 355</span>
+<span class="normal"> 356</span>
+<span class="normal"> 357</span>
+<span class="normal"> 358</span>
+<span class="normal"> 359</span>
+<span class="normal"> 360</span>
+<span class="normal"> 361</span>
+<span class="normal"> 362</span>
+<span class="normal"> 363</span>
+<span class="normal"> 364</span>
+<span class="normal"> 365</span>
+<span class="normal"> 366</span>
+<span class="normal"> 367</span>
+<span class="normal"> 368</span>
+<span class="normal"> 369</span>
+<span class="normal"> 370</span>
+<span class="normal"> 371</span>
+<span class="normal"> 372</span>
+<span class="normal"> 373</span>
+<span class="normal"> 374</span>
+<span class="normal"> 375</span>
+<span class="normal"> 376</span>
+<span class="normal"> 377</span>
+<span class="normal"> 378</span>
+<span class="normal"> 379</span>
+<span class="normal"> 380</span>
+<span class="normal"> 381</span>
+<span class="normal"> 382</span>
+<span class="normal"> 383</span>
+<span class="normal"> 384</span>
+<span class="normal"> 385</span>
+<span class="normal"> 386</span>
+<span class="normal"> 387</span>
+<span class="normal"> 388</span>
+<span class="normal"> 389</span>
+<span class="normal"> 390</span>
+<span class="normal"> 391</span>
+<span class="normal"> 392</span>
+<span class="normal"> 393</span>
+<span class="normal"> 394</span>
+<span class="normal"> 395</span>
+<span class="normal"> 396</span>
+<span class="normal"> 397</span>
+<span class="normal"> 398</span>
+<span class="normal"> 399</span>
+<span class="normal"> 400</span>
+<span class="normal"> 401</span>
+<span class="normal"> 402</span>
+<span class="normal"> 403</span>
+<span class="normal"> 404</span>
+<span class="normal"> 405</span>
+<span class="normal"> 406</span>
+<span class="normal"> 407</span>
+<span class="normal"> 408</span>
+<span class="normal"> 409</span>
+<span class="normal"> 410</span>
+<span class="normal"> 411</span>
+<span class="normal"> 412</span>
+<span class="normal"> 413</span>
+<span class="normal"> 414</span>
+<span class="normal"> 415</span>
+<span class="normal"> 416</span>
+<span class="normal"> 417</span>
+<span class="normal"> 418</span>
+<span class="normal"> 419</span>
+<span class="normal"> 420</span>
+<span class="normal"> 421</span>
+<span class="normal"> 422</span>
+<span class="normal"> 423</span>
+<span class="normal"> 424</span>
+<span class="normal"> 425</span>
+<span class="normal"> 426</span>
+<span class="normal"> 427</span>
+<span class="normal"> 428</span>
+<span class="normal"> 429</span>
+<span class="normal"> 430</span>
+<span class="normal"> 431</span>
+<span class="normal"> 432</span>
+<span class="normal"> 433</span>
+<span class="normal"> 434</span>
+<span class="normal"> 435</span>
+<span class="normal"> 436</span>
+<span class="normal"> 437</span>
+<span class="normal"> 438</span>
+<span class="normal"> 439</span>
+<span class="normal"> 440</span>
+<span class="normal"> 441</span>
+<span class="normal"> 442</span>
+<span class="normal"> 443</span>
+<span class="normal"> 444</span>
+<span class="normal"> 445</span>
+<span class="normal"> 446</span>
+<span class="normal"> 447</span>
+<span class="normal"> 448</span>
+<span class="normal"> 449</span>
+<span class="normal"> 450</span>
+<span class="normal"> 451</span>
+<span class="normal"> 452</span>
+<span class="normal"> 453</span>
+<span class="normal"> 454</span>
+<span class="normal"> 455</span>
+<span class="normal"> 456</span>
+<span class="normal"> 457</span>
+<span class="normal"> 458</span>
+<span class="normal"> 459</span>
+<span class="normal"> 460</span>
+<span class="normal"> 461</span>
+<span class="normal"> 462</span>
+<span class="normal"> 463</span>
+<span class="normal"> 464</span>
+<span class="normal"> 465</span>
+<span class="normal"> 466</span>
+<span class="normal"> 467</span>
+<span class="normal"> 468</span>
+<span class="normal"> 469</span>
+<span class="normal"> 470</span>
+<span class="normal"> 471</span>
+<span class="normal"> 472</span>
+<span class="normal"> 473</span>
+<span class="normal"> 474</span>
+<span class="normal"> 475</span>
+<span class="normal"> 476</span>
+<span class="normal"> 477</span>
+<span class="normal"> 478</span>
+<span class="normal"> 479</span>
+<span class="normal"> 480</span>
+<span class="normal"> 481</span>
+<span class="normal"> 482</span>
+<span class="normal"> 483</span>
+<span class="normal"> 484</span>
+<span class="normal"> 485</span>
+<span class="normal"> 486</span>
+<span class="normal"> 487</span>
+<span class="normal"> 488</span>
+<span class="normal"> 489</span>
+<span class="normal"> 490</span>
+<span class="normal"> 491</span>
+<span class="normal"> 492</span>
+<span class="normal"> 493</span>
+<span class="normal"> 494</span>
+<span class="normal"> 495</span>
+<span class="normal"> 496</span>
+<span class="normal"> 497</span>
+<span class="normal"> 498</span>
+<span class="normal"> 499</span>
+<span class="normal"> 500</span>
+<span class="normal"> 501</span>
+<span class="normal"> 502</span>
+<span class="normal"> 503</span>
+<span class="normal"> 504</span>
+<span class="normal"> 505</span>
+<span class="normal"> 506</span>
+<span class="normal"> 507</span>
+<span class="normal"> 508</span>
+<span class="normal"> 509</span>
+<span class="normal"> 510</span>
+<span class="normal"> 511</span>
+<span class="normal"> 512</span>
+<span class="normal"> 513</span>
+<span class="normal"> 514</span>
+<span class="normal"> 515</span>
+<span class="normal"> 516</span>
+<span class="normal"> 517</span>
+<span class="normal"> 518</span>
+<span class="normal"> 519</span>
+<span class="normal"> 520</span>
+<span class="normal"> 521</span>
+<span class="normal"> 522</span>
+<span class="normal"> 523</span>
+<span class="normal"> 524</span>
+<span class="normal"> 525</span>
+<span class="normal"> 526</span>
+<span class="normal"> 527</span>
+<span class="normal"> 528</span>
+<span class="normal"> 529</span>
+<span class="normal"> 530</span>
+<span class="normal"> 531</span>
+<span class="normal"> 532</span>
+<span class="normal"> 533</span>
+<span class="normal"> 534</span>
+<span class="normal"> 535</span>
+<span class="normal"> 536</span>
+<span class="normal"> 537</span>
+<span class="normal"> 538</span>
+<span class="normal"> 539</span>
+<span class="normal"> 540</span>
+<span class="normal"> 541</span>
+<span class="normal"> 542</span>
+<span class="normal"> 543</span>
+<span class="normal"> 544</span>
+<span class="normal"> 545</span>
+<span class="normal"> 546</span>
+<span class="normal"> 547</span>
+<span class="normal"> 548</span>
+<span class="normal"> 549</span>
+<span class="normal"> 550</span>
+<span class="normal"> 551</span>
+<span class="normal"> 552</span>
+<span class="normal"> 553</span>
+<span class="normal"> 554</span>
+<span class="normal"> 555</span>
+<span class="normal"> 556</span>
+<span class="normal"> 557</span>
+<span class="normal"> 558</span>
+<span class="normal"> 559</span>
+<span class="normal"> 560</span>
+<span class="normal"> 561</span>
+<span class="normal"> 562</span>
+<span class="normal"> 563</span>
+<span class="normal"> 564</span>
+<span class="normal"> 565</span>
+<span class="normal"> 566</span>
+<span class="normal"> 567</span>
+<span class="normal"> 568</span>
+<span class="normal"> 569</span>
+<span class="normal"> 570</span>
+<span class="normal"> 571</span>
+<span class="normal"> 572</span>
+<span class="normal"> 573</span>
+<span class="normal"> 574</span>
+<span class="normal"> 575</span>
+<span class="normal"> 576</span>
+<span class="normal"> 577</span>
+<span class="normal"> 578</span>
+<span class="normal"> 579</span>
+<span class="normal"> 580</span>
+<span class="normal"> 581</span>
+<span class="normal"> 582</span>
+<span class="normal"> 583</span>
+<span class="normal"> 584</span>
+<span class="normal"> 585</span>
+<span class="normal"> 586</span>
+<span class="normal"> 587</span>
+<span class="normal"> 588</span>
+<span class="normal"> 589</span>
+<span class="normal"> 590</span>
+<span class="normal"> 591</span>
+<span class="normal"> 592</span>
+<span class="normal"> 593</span>
+<span class="normal"> 594</span>
+<span class="normal"> 595</span>
+<span class="normal"> 596</span>
+<span class="normal"> 597</span>
+<span class="normal"> 598</span>
+<span class="normal"> 599</span>
+<span class="normal"> 600</span>
+<span class="normal"> 601</span>
+<span class="normal"> 602</span>
+<span class="normal"> 603</span>
+<span class="normal"> 604</span>
+<span class="normal"> 605</span>
+<span class="normal"> 606</span>
+<span class="normal"> 607</span>
+<span class="normal"> 608</span>
+<span class="normal"> 609</span>
+<span class="normal"> 610</span>
+<span class="normal"> 611</span>
+<span class="normal"> 612</span>
+<span class="normal"> 613</span>
+<span class="normal"> 614</span>
+<span class="normal"> 615</span>
+<span class="normal"> 616</span>
+<span class="normal"> 617</span>
+<span class="normal"> 618</span>
+<span class="normal"> 619</span>
+<span class="normal"> 620</span>
+<span class="normal"> 621</span>
+<span class="normal"> 622</span>
+<span class="normal"> 623</span>
+<span class="normal"> 624</span>
+<span class="normal"> 625</span>
+<span class="normal"> 626</span>
+<span class="normal"> 627</span>
+<span class="normal"> 628</span>
+<span class="normal"> 629</span>
+<span class="normal"> 630</span>
+<span class="normal"> 631</span>
+<span class="normal"> 632</span>
+<span class="normal"> 633</span>
+<span class="normal"> 634</span>
+<span class="normal"> 635</span>
+<span class="normal"> 636</span>
+<span class="normal"> 637</span>
+<span class="normal"> 638</span>
+<span class="normal"> 639</span>
+<span class="normal"> 640</span>
+<span class="normal"> 641</span>
+<span class="normal"> 642</span>
+<span class="normal"> 643</span>
+<span class="normal"> 644</span>
+<span class="normal"> 645</span>
+<span class="normal"> 646</span>
+<span class="normal"> 647</span>
+<span class="normal"> 648</span>
+<span class="normal"> 649</span>
+<span class="normal"> 650</span>
+<span class="normal"> 651</span>
+<span class="normal"> 652</span>
+<span class="normal"> 653</span>
+<span class="normal"> 654</span>
+<span class="normal"> 655</span>
+<span class="normal"> 656</span>
+<span class="normal"> 657</span>
+<span class="normal"> 658</span>
+<span class="normal"> 659</span>
+<span class="normal"> 660</span>
+<span class="normal"> 661</span>
+<span class="normal"> 662</span>
+<span class="normal"> 663</span>
+<span class="normal"> 664</span>
+<span class="normal"> 665</span>
+<span class="normal"> 666</span>
+<span class="normal"> 667</span>
+<span class="normal"> 668</span>
+<span class="normal"> 669</span>
+<span class="normal"> 670</span>
+<span class="normal"> 671</span>
+<span class="normal"> 672</span>
+<span class="normal"> 673</span>
+<span class="normal"> 674</span>
+<span class="normal"> 675</span>
+<span class="normal"> 676</span>
+<span class="normal"> 677</span>
+<span class="normal"> 678</span>
+<span class="normal"> 679</span>
+<span class="normal"> 680</span>
+<span class="normal"> 681</span>
+<span class="normal"> 682</span>
+<span class="normal"> 683</span>
+<span class="normal"> 684</span>
+<span class="normal"> 685</span>
+<span class="normal"> 686</span>
+<span class="normal"> 687</span>
+<span class="normal"> 688</span>
+<span class="normal"> 689</span>
+<span class="normal"> 690</span>
+<span class="normal"> 691</span>
+<span class="normal"> 692</span>
+<span class="normal"> 693</span>
+<span class="normal"> 694</span>
+<span class="normal"> 695</span>
+<span class="normal"> 696</span>
+<span class="normal"> 697</span>
+<span class="normal"> 698</span>
+<span class="normal"> 699</span>
+<span class="normal"> 700</span>
+<span class="normal"> 701</span>
+<span class="normal"> 702</span>
+<span class="normal"> 703</span>
+<span class="normal"> 704</span>
+<span class="normal"> 705</span>
+<span class="normal"> 706</span>
+<span class="normal"> 707</span>
+<span class="normal"> 708</span>
+<span class="normal"> 709</span>
+<span class="normal"> 710</span>
+<span class="normal"> 711</span>
+<span class="normal"> 712</span>
+<span class="normal"> 713</span>
+<span class="normal"> 714</span>
+<span class="normal"> 715</span>
+<span class="normal"> 716</span>
+<span class="normal"> 717</span>
+<span class="normal"> 718</span>
+<span class="normal"> 719</span>
+<span class="normal"> 720</span>
+<span class="normal"> 721</span>
+<span class="normal"> 722</span>
+<span class="normal"> 723</span>
+<span class="normal"> 724</span>
+<span class="normal"> 725</span>
+<span class="normal"> 726</span>
+<span class="normal"> 727</span>
+<span class="normal"> 728</span>
+<span class="normal"> 729</span>
+<span class="normal"> 730</span>
+<span class="normal"> 731</span>
+<span class="normal"> 732</span>
+<span class="normal"> 733</span>
+<span class="normal"> 734</span>
+<span class="normal"> 735</span>
+<span class="normal"> 736</span>
+<span class="normal"> 737</span>
+<span class="normal"> 738</span>
+<span class="normal"> 739</span>
+<span class="normal"> 740</span>
+<span class="normal"> 741</span>
+<span class="normal"> 742</span>
+<span class="normal"> 743</span>
+<span class="normal"> 744</span>
+<span class="normal"> 745</span>
+<span class="normal"> 746</span>
+<span class="normal"> 747</span>
+<span class="normal"> 748</span>
+<span class="normal"> 749</span>
+<span class="normal"> 750</span>
+<span class="normal"> 751</span>
+<span class="normal"> 752</span>
+<span class="normal"> 753</span>
+<span class="normal"> 754</span>
+<span class="normal"> 755</span>
+<span class="normal"> 756</span>
+<span class="normal"> 757</span>
+<span class="normal"> 758</span>
+<span class="normal"> 759</span>
+<span class="normal"> 760</span>
+<span class="normal"> 761</span>
+<span class="normal"> 762</span>
+<span class="normal"> 763</span>
+<span class="normal"> 764</span>
+<span class="normal"> 765</span>
+<span class="normal"> 766</span>
+<span class="normal"> 767</span>
+<span class="normal"> 768</span>
+<span class="normal"> 769</span>
+<span class="normal"> 770</span>
+<span class="normal"> 771</span>
+<span class="normal"> 772</span>
+<span class="normal"> 773</span>
+<span class="normal"> 774</span>
+<span class="normal"> 775</span>
+<span class="normal"> 776</span>
+<span class="normal"> 777</span>
+<span class="normal"> 778</span>
+<span class="normal"> 779</span>
+<span class="normal"> 780</span>
+<span class="normal"> 781</span>
+<span class="normal"> 782</span>
+<span class="normal"> 783</span>
+<span class="normal"> 784</span>
+<span class="normal"> 785</span>
+<span class="normal"> 786</span>
+<span class="normal"> 787</span>
+<span class="normal"> 788</span>
+<span class="normal"> 789</span>
+<span class="normal"> 790</span>
+<span class="normal"> 791</span>
+<span class="normal"> 792</span>
+<span class="normal"> 793</span>
+<span class="normal"> 794</span>
+<span class="normal"> 795</span>
+<span class="normal"> 796</span>
+<span class="normal"> 797</span>
+<span class="normal"> 798</span>
+<span class="normal"> 799</span>
+<span class="normal"> 800</span>
+<span class="normal"> 801</span>
+<span class="normal"> 802</span>
+<span class="normal"> 803</span>
+<span class="normal"> 804</span>
+<span class="normal"> 805</span>
+<span class="normal"> 806</span>
+<span class="normal"> 807</span>
+<span class="normal"> 808</span>
+<span class="normal"> 809</span>
+<span class="normal"> 810</span>
+<span class="normal"> 811</span>
+<span class="normal"> 812</span>
+<span class="normal"> 813</span>
+<span class="normal"> 814</span>
+<span class="normal"> 815</span>
+<span class="normal"> 816</span>
+<span class="normal"> 817</span>
+<span class="normal"> 818</span>
+<span class="normal"> 819</span>
+<span class="normal"> 820</span>
+<span class="normal"> 821</span>
+<span class="normal"> 822</span>
+<span class="normal"> 823</span>
+<span class="normal"> 824</span>
+<span class="normal"> 825</span>
+<span class="normal"> 826</span>
+<span class="normal"> 827</span>
+<span class="normal"> 828</span>
+<span class="normal"> 829</span>
+<span class="normal"> 830</span>
+<span class="normal"> 831</span>
+<span class="normal"> 832</span>
+<span class="normal"> 833</span>
+<span class="normal"> 834</span>
+<span class="normal"> 835</span>
+<span class="normal"> 836</span>
+<span class="normal"> 837</span>
+<span class="normal"> 838</span>
+<span class="normal"> 839</span>
+<span class="normal"> 840</span>
+<span class="normal"> 841</span>
+<span class="normal"> 842</span>
+<span class="normal"> 843</span>
+<span class="normal"> 844</span>
+<span class="normal"> 845</span>
+<span class="normal"> 846</span>
+<span class="normal"> 847</span>
+<span class="normal"> 848</span>
+<span class="normal"> 849</span>
+<span class="normal"> 850</span>
+<span class="normal"> 851</span>
+<span class="normal"> 852</span>
+<span class="normal"> 853</span>
+<span class="normal"> 854</span>
+<span class="normal"> 855</span>
+<span class="normal"> 856</span>
+<span class="normal"> 857</span>
+<span class="normal"> 858</span>
+<span class="normal"> 859</span>
+<span class="normal"> 860</span>
+<span class="normal"> 861</span>
+<span class="normal"> 862</span>
+<span class="normal"> 863</span>
+<span class="normal"> 864</span>
+<span class="normal"> 865</span>
+<span class="normal"> 866</span>
+<span class="normal"> 867</span>
+<span class="normal"> 868</span>
+<span class="normal"> 869</span>
+<span class="normal"> 870</span>
+<span class="normal"> 871</span>
+<span class="normal"> 872</span>
+<span class="normal"> 873</span>
+<span class="normal"> 874</span>
+<span class="normal"> 875</span>
+<span class="normal"> 876</span>
+<span class="normal"> 877</span>
+<span class="normal"> 878</span>
+<span class="normal"> 879</span>
+<span class="normal"> 880</span>
+<span class="normal"> 881</span>
+<span class="normal"> 882</span>
+<span class="normal"> 883</span>
+<span class="normal"> 884</span>
+<span class="normal"> 885</span>
+<span class="normal"> 886</span>
+<span class="normal"> 887</span>
+<span class="normal"> 888</span>
+<span class="normal"> 889</span>
+<span class="normal"> 890</span>
+<span class="normal"> 891</span>
+<span class="normal"> 892</span>
+<span class="normal"> 893</span>
+<span class="normal"> 894</span>
+<span class="normal"> 895</span>
+<span class="normal"> 896</span>
+<span class="normal"> 897</span>
+<span class="normal"> 898</span>
+<span class="normal"> 899</span>
+<span class="normal"> 900</span>
+<span class="normal"> 901</span>
+<span class="normal"> 902</span>
+<span class="normal"> 903</span>
+<span class="normal"> 904</span>
+<span class="normal"> 905</span>
+<span class="normal"> 906</span>
+<span class="normal"> 907</span>
+<span class="normal"> 908</span>
+<span class="normal"> 909</span>
+<span class="normal"> 910</span>
+<span class="normal"> 911</span>
+<span class="normal"> 912</span>
+<span class="normal"> 913</span>
+<span class="normal"> 914</span>
+<span class="normal"> 915</span>
+<span class="normal"> 916</span>
+<span class="normal"> 917</span>
+<span class="normal"> 918</span>
+<span class="normal"> 919</span>
+<span class="normal"> 920</span>
+<span class="normal"> 921</span>
+<span class="normal"> 922</span>
+<span class="normal"> 923</span>
+<span class="normal"> 924</span>
+<span class="normal"> 925</span>
+<span class="normal"> 926</span>
+<span class="normal"> 927</span>
+<span class="normal"> 928</span>
+<span class="normal"> 929</span>
+<span class="normal"> 930</span>
+<span class="normal"> 931</span>
+<span class="normal"> 932</span>
+<span class="normal"> 933</span>
+<span class="normal"> 934</span>
+<span class="normal"> 935</span>
+<span class="normal"> 936</span>
+<span class="normal"> 937</span>
+<span class="normal"> 938</span>
+<span class="normal"> 939</span>
+<span class="normal"> 940</span>
+<span class="normal"> 941</span>
+<span class="normal"> 942</span>
+<span class="normal"> 943</span>
+<span class="normal"> 944</span>
+<span class="normal"> 945</span>
+<span class="normal"> 946</span>
+<span class="normal"> 947</span>
+<span class="normal"> 948</span>
+<span class="normal"> 949</span>
+<span class="normal"> 950</span>
+<span class="normal"> 951</span>
+<span class="normal"> 952</span>
+<span class="normal"> 953</span>
+<span class="normal"> 954</span>
+<span class="normal"> 955</span>
+<span class="normal"> 956</span>
+<span class="normal"> 957</span>
+<span class="normal"> 958</span>
+<span class="normal"> 959</span>
+<span class="normal"> 960</span>
+<span class="normal"> 961</span>
+<span class="normal"> 962</span>
+<span class="normal"> 963</span>
+<span class="normal"> 964</span>
+<span class="normal"> 965</span>
+<span class="normal"> 966</span>
+<span class="normal"> 967</span>
+<span class="normal"> 968</span>
+<span class="normal"> 969</span>
+<span class="normal"> 970</span>
+<span class="normal"> 971</span>
+<span class="normal"> 972</span>
+<span class="normal"> 973</span>
+<span class="normal"> 974</span>
+<span class="normal"> 975</span>
+<span class="normal"> 976</span>
+<span class="normal"> 977</span>
+<span class="normal"> 978</span>
+<span class="normal"> 979</span>
+<span class="normal"> 980</span>
+<span class="normal"> 981</span>
+<span class="normal"> 982</span>
+<span class="normal"> 983</span>
+<span class="normal"> 984</span>
+<span class="normal"> 985</span>
+<span class="normal"> 986</span>
+<span class="normal"> 987</span>
+<span class="normal"> 988</span>
+<span class="normal"> 989</span>
+<span class="normal"> 990</span>
+<span class="normal"> 991</span>
+<span class="normal"> 992</span>
+<span class="normal"> 993</span>
+<span class="normal"> 994</span>
+<span class="normal"> 995</span>
+<span class="normal"> 996</span>
+<span class="normal"> 997</span>
+<span class="normal"> 998</span>
+<span class="normal"> 999</span>
+<span class="normal">1000</span>
+<span class="normal">1001</span>
+<span class="normal">1002</span>
+<span class="normal">1003</span>
+<span class="normal">1004</span>
+<span class="normal">1005</span>
+<span class="normal">1006</span>
+<span class="normal">1007</span>
+<span class="normal">1008</span>
+<span class="normal">1009</span>
+<span class="normal">1010</span>
+<span class="normal">1011</span>
+<span class="normal">1012</span>
+<span class="normal">1013</span>
+<span class="normal">1014</span>
+<span class="normal">1015</span>
+<span class="normal">1016</span>
+<span class="normal">1017</span>
+<span class="normal">1018</span>
+<span class="normal">1019</span>
+<span class="normal">1020</span>
+<span class="normal">1021</span>
+<span class="normal">1022</span>
+<span class="normal">1023</span>
+<span class="normal">1024</span>
+<span class="normal">1025</span>
+<span class="normal">1026</span>
+<span class="normal">1027</span>
+<span class="normal">1028</span>
+<span class="normal">1029</span>
+<span class="normal">1030</span>
+<span class="normal">1031</span>
+<span class="normal">1032</span>
+<span class="normal">1033</span>
+<span class="normal">1034</span>
+<span class="normal">1035</span>
+<span class="normal">1036</span>
+<span class="normal">1037</span>
+<span class="normal">1038</span>
+<span class="normal">1039</span>
+<span class="normal">1040</span>
+<span class="normal">1041</span>
+<span class="normal">1042</span>
+<span class="normal">1043</span>
+<span class="normal">1044</span>
+<span class="normal">1045</span>
+<span class="normal">1046</span>
+<span class="normal">1047</span>
+<span class="normal">1048</span>
+<span class="normal">1049</span>
+<span class="normal">1050</span>
+<span class="normal">1051</span>
+<span class="normal">1052</span>
+<span class="normal">1053</span>
+<span class="normal">1054</span>
+<span class="normal">1055</span>
+<span class="normal">1056</span>
+<span class="normal">1057</span>
+<span class="normal">1058</span>
+<span class="normal">1059</span>
+<span class="normal">1060</span>
+<span class="normal">1061</span>
+<span class="normal">1062</span>
+<span class="normal">1063</span>
+<span class="normal">1064</span>
+<span class="normal">1065</span>
+<span class="normal">1066</span>
+<span class="normal">1067</span>
+<span class="normal">1068</span>
+<span class="normal">1069</span>
+<span class="normal">1070</span>
+<span class="normal">1071</span>
+<span class="normal">1072</span>
+<span class="normal">1073</span>
+<span class="normal">1074</span>
+<span class="normal">1075</span>
+<span class="normal">1076</span>
+<span class="normal">1077</span>
+<span class="normal">1078</span>
+<span class="normal">1079</span>
+<span class="normal">1080</span>
+<span class="normal">1081</span>
+<span class="normal">1082</span>
+<span class="normal">1083</span>
+<span class="normal">1084</span>
+<span class="normal">1085</span>
+<span class="normal">1086</span>
+<span class="normal">1087</span>
+<span class="normal">1088</span>
+<span class="normal">1089</span>
+<span class="normal">1090</span>
+<span class="normal">1091</span>
+<span class="normal">1092</span>
+<span class="normal">1093</span>
+<span class="normal">1094</span>
+<span class="normal">1095</span>
+<span class="normal">1096</span>
+<span class="normal">1097</span>
+<span class="normal">1098</span>
+<span class="normal">1099</span>
+<span class="normal">1100</span>
+<span class="normal">1101</span>
+<span class="normal">1102</span>
+<span class="normal">1103</span>
+<span class="normal">1104</span>
+<span class="normal">1105</span>
+<span class="normal">1106</span>
+<span class="normal">1107</span>
+<span class="normal">1108</span>
+<span class="normal">1109</span>
+<span class="normal">1110</span>
+<span class="normal">1111</span>
+<span class="normal">1112</span>
+<span class="normal">1113</span>
+<span class="normal">1114</span>
+<span class="normal">1115</span>
+<span class="normal">1116</span>
+<span class="normal">1117</span>
+<span class="normal">1118</span>
+<span class="normal">1119</span>
+<span class="normal">1120</span>
+<span class="normal">1121</span>
+<span class="normal">1122</span>
+<span class="normal">1123</span>
+<span class="normal">1124</span>
+<span class="normal">1125</span>
+<span class="normal">1126</span>
+<span class="normal">1127</span>
+<span class="normal">1128</span>
+<span class="normal">1129</span>
+<span class="normal">1130</span>
+<span class="normal">1131</span>
+<span class="normal">1132</span>
+<span class="normal">1133</span>
+<span class="normal">1134</span>
+<span class="normal">1135</span>
+<span class="normal">1136</span>
+<span class="normal">1137</span>
+<span class="normal">1138</span>
+<span class="normal">1139</span>
+<span class="normal">1140</span>
+<span class="normal">1141</span>
+<span class="normal">1142</span>
+<span class="normal">1143</span>
+<span class="normal">1144</span>
+<span class="normal">1145</span>
+<span class="normal">1146</span>
+<span class="normal">1147</span>
+<span class="normal">1148</span>
+<span class="normal">1149</span>
+<span class="normal">1150</span>
+<span class="normal">1151</span>
+<span class="normal">1152</span>
+<span class="normal">1153</span>
+<span class="normal">1154</span>
+<span class="normal">1155</span>
+<span class="normal">1156</span>
+<span class="normal">1157</span>
+<span class="normal">1158</span>
+<span class="normal">1159</span>
+<span class="normal">1160</span>
+<span class="normal">1161</span>
+<span class="normal">1162</span>
+<span class="normal">1163</span>
+<span class="normal">1164</span>
+<span class="normal">1165</span>
+<span class="normal">1166</span>
+<span class="normal">1167</span>
+<span class="normal">1168</span>
+<span class="normal">1169</span>
+<span class="normal">1170</span>
+<span class="normal">1171</span>
+<span class="normal">1172</span>
+<span class="normal">1173</span>
+<span class="normal">1174</span>
+<span class="normal">1175</span>
+<span class="normal">1176</span>
+<span class="normal">1177</span>
+<span class="normal">1178</span>
+<span class="normal">1179</span>
+<span class="normal">1180</span>
+<span class="normal">1181</span>
+<span class="normal">1182</span>
+<span class="normal">1183</span>
+<span class="normal">1184</span>
+<span class="normal">1185</span>
+<span class="normal">1186</span>
+<span class="normal">1187</span>
+<span class="normal">1188</span>
+<span class="normal">1189</span>
+<span class="normal">1190</span>
+<span class="normal">1191</span>
+<span class="normal">1192</span>
+<span class="normal">1193</span>
+<span class="normal">1194</span>
+<span class="normal">1195</span>
+<span class="normal">1196</span>
+<span class="normal">1197</span>
+<span class="normal">1198</span>
+<span class="normal">1199</span>
+<span class="normal">1200</span>
+<span class="normal">1201</span>
+<span class="normal">1202</span>
+<span class="normal">1203</span>
+<span class="normal">1204</span>
+<span class="normal">1205</span>
+<span class="normal">1206</span>
+<span class="normal">1207</span>
+<span class="normal">1208</span>
+<span class="normal">1209</span>
+<span class="normal">1210</span>
+<span class="normal">1211</span>
+<span class="normal">1212</span>
+<span class="normal">1213</span>
+<span class="normal">1214</span>
+<span class="normal">1215</span>
+<span class="normal">1216</span>
+<span class="normal">1217</span>
+<span class="normal">1218</span>
+<span class="normal">1219</span>
+<span class="normal">1220</span>
+<span class="normal">1221</span>
+<span class="normal">1222</span>
+<span class="normal">1223</span>
+<span class="normal">1224</span>
+<span class="normal">1225</span>
+<span class="normal">1226</span>
+<span class="normal">1227</span>
+<span class="normal">1228</span>
+<span class="normal">1229</span>
+<span class="normal">1230</span>
+<span class="normal">1231</span>
+<span class="normal">1232</span>
+<span class="normal">1233</span>
+<span class="normal">1234</span>
+<span class="normal">1235</span>
+<span class="normal">1236</span>
+<span class="normal">1237</span>
+<span class="normal">1238</span>
+<span class="normal">1239</span>
+<span class="normal">1240</span>
+<span class="normal">1241</span>
+<span class="normal">1242</span>
+<span class="normal">1243</span>
+<span class="normal">1244</span>
+<span class="normal">1245</span>
+<span class="normal">1246</span>
+<span class="normal">1247</span>
+<span class="normal">1248</span>
+<span class="normal">1249</span>
+<span class="normal">1250</span>
+<span class="normal">1251</span>
+<span class="normal">1252</span>
+<span class="normal">1253</span>
+<span class="normal">1254</span>
+<span class="normal">1255</span>
+<span class="normal">1256</span>
+<span class="normal">1257</span>
+<span class="normal">1258</span>
+<span class="normal">1259</span>
+<span class="normal">1260</span>
+<span class="normal">1261</span>
+<span class="normal">1262</span>
+<span class="normal">1263</span>
+<span class="normal">1264</span>
+<span class="normal">1265</span>
+<span class="normal">1266</span>
+<span class="normal">1267</span>
+<span class="normal">1268</span>
+<span class="normal">1269</span>
+<span class="normal">1270</span>
+<span class="normal">1271</span>
+<span class="normal">1272</span>
+<span class="normal">1273</span>
+<span class="normal">1274</span>
+<span class="normal">1275</span>
+<span class="normal">1276</span>
+<span class="normal">1277</span>
+<span class="normal">1278</span>
+<span class="normal">1279</span>
+<span class="normal">1280</span>
+<span class="normal">1281</span>
+<span class="normal">1282</span>
+<span class="normal">1283</span>
+<span class="normal">1284</span>
+<span class="normal">1285</span>
+<span class="normal">1286</span>
+<span class="normal">1287</span>
+<span class="normal">1288</span>
+<span class="normal">1289</span>
+<span class="normal">1290</span>
+<span class="normal">1291</span>
+<span class="normal">1292</span>
+<span class="normal">1293</span>
+<span class="normal">1294</span>
+<span class="normal">1295</span>
+<span class="normal">1296</span>
+<span class="normal">1297</span>
+<span class="normal">1298</span>
+<span class="normal">1299</span>
+<span class="normal">1300</span>
+<span class="normal">1301</span>
+<span class="normal">1302</span>
+<span class="normal">1303</span>
+<span class="normal">1304</span>
+<span class="normal">1305</span>
+<span class="normal">1306</span>
+<span class="normal">1307</span>
+<span class="normal">1308</span>
+<span class="normal">1309</span>
+<span class="normal">1310</span>
+<span class="normal">1311</span>
+<span class="normal">1312</span>
+<span class="normal">1313</span>
+<span class="normal">1314</span>
+<span class="normal">1315</span>
+<span class="normal">1316</span>
+<span class="normal">1317</span>
+<span class="normal">1318</span>
+<span class="normal">1319</span>
+<span class="normal">1320</span>
+<span class="normal">1321</span>
+<span class="normal">1322</span>
+<span class="normal">1323</span>
+<span class="normal">1324</span>
+<span class="normal">1325</span>
+<span class="normal">1326</span>
+<span class="normal">1327</span>
+<span class="normal">1328</span>
+<span class="normal">1329</span>
+<span class="normal">1330</span>
+<span class="normal">1331</span>
+<span class="normal">1332</span>
+<span class="normal">1333</span>
+<span class="normal">1334</span>
+<span class="normal">1335</span>
+<span class="normal">1336</span>
+<span class="normal">1337</span>
+<span class="normal">1338</span>
+<span class="normal">1339</span>
+<span class="normal">1340</span>
+<span class="normal">1341</span>
+<span class="normal">1342</span>
+<span class="normal">1343</span>
+<span class="normal">1344</span>
+<span class="normal">1345</span>
+<span class="normal">1346</span>
+<span class="normal">1347</span>
+<span class="normal">1348</span>
+<span class="normal">1349</span>
+<span class="normal">1350</span>
+<span class="normal">1351</span>
+<span class="normal">1352</span>
+<span class="normal">1353</span>
+<span class="normal">1354</span>
+<span class="normal">1355</span>
+<span class="normal">1356</span>
+<span class="normal">1357</span>
+<span class="normal">1358</span>
+<span class="normal">1359</span>
+<span class="normal">1360</span>
+<span class="normal">1361</span>
+<span class="normal">1362</span>
+<span class="normal">1363</span>
+<span class="normal">1364</span>
+<span class="normal">1365</span>
+<span class="normal">1366</span>
+<span class="normal">1367</span>
+<span class="normal">1368</span>
+<span class="normal">1369</span>
+<span class="normal">1370</span>
+<span class="normal">1371</span>
+<span class="normal">1372</span>
+<span class="normal">1373</span>
+<span class="normal">1374</span>
+<span class="normal">1375</span>
+<span class="normal">1376</span>
+<span class="normal">1377</span>
+<span class="normal">1378</span>
+<span class="normal">1379</span>
+<span class="normal">1380</span>
+<span class="normal">1381</span>
+<span class="normal">1382</span>
+<span class="normal">1383</span>
+<span class="normal">1384</span>
+<span class="normal">1385</span>
+<span class="normal">1386</span>
+<span class="normal">1387</span>
+<span class="normal">1388</span>
+<span class="normal">1389</span>
+<span class="normal">1390</span>
+<span class="normal">1391</span>
+<span class="normal">1392</span>
+<span class="normal">1393</span>
+<span class="normal">1394</span>
+<span class="normal">1395</span>
+<span class="normal">1396</span>
+<span class="normal">1397</span>
+<span class="normal">1398</span>
+<span class="normal">1399</span>
+<span class="normal">1400</span>
+<span class="normal">1401</span>
+<span class="normal">1402</span>
+<span class="normal">1403</span>
+<span class="normal">1404</span>
+<span class="normal">1405</span>
+<span class="normal">1406</span>
+<span class="normal">1407</span>
+<span class="normal">1408</span>
+<span class="normal">1409</span>
+<span class="normal">1410</span>
+<span class="normal">1411</span>
+<span class="normal">1412</span>
+<span class="normal">1413</span>
+<span class="normal">1414</span>
+<span class="normal">1415</span>
+<span class="normal">1416</span>
+<span class="normal">1417</span>
+<span class="normal">1418</span>
+<span class="normal">1419</span>
+<span class="normal">1420</span>
+<span class="normal">1421</span>
+<span class="normal">1422</span>
+<span class="normal">1423</span>
+<span class="normal">1424</span>
+<span class="normal">1425</span>
+<span class="normal">1426</span>
+<span class="normal">1427</span>
+<span class="normal">1428</span>
+<span class="normal">1429</span>
+<span class="normal">1430</span>
+<span class="normal">1431</span>
+<span class="normal">1432</span>
+<span class="normal">1433</span>
+<span class="normal">1434</span>
+<span class="normal">1435</span>
+<span class="normal">1436</span>
+<span class="normal">1437</span>
+<span class="normal">1438</span>
+<span class="normal">1439</span>
+<span class="normal">1440</span>
+<span class="normal">1441</span>
+<span class="normal">1442</span>
+<span class="normal">1443</span>
+<span class="normal">1444</span>
+<span class="normal">1445</span>
+<span class="normal">1446</span>
+<span class="normal">1447</span>
+<span class="normal">1448</span>
+<span class="normal">1449</span>
+<span class="normal">1450</span>
+<span class="normal">1451</span>
+<span class="normal">1452</span>
+<span class="normal">1453</span>
+<span class="normal">1454</span>
+<span class="normal">1455</span>
+<span class="normal">1456</span>
+<span class="normal">1457</span>
+<span class="normal">1458</span>
+<span class="normal">1459</span>
+<span class="normal">1460</span>
+<span class="normal">1461</span>
+<span class="normal">1462</span>
+<span class="normal">1463</span>
+<span class="normal">1464</span>
+<span class="normal">1465</span>
+<span class="normal">1466</span>
+<span class="normal">1467</span>
+<span class="normal">1468</span>
+<span class="normal">1469</span>
+<span class="normal">1470</span>
+<span class="normal">1471</span>
+<span class="normal">1472</span>
+<span class="normal">1473</span>
+<span class="normal">1474</span>
+<span class="normal">1475</span>
+<span class="normal">1476</span>
+<span class="normal">1477</span>
+<span class="normal">1478</span>
+<span class="normal">1479</span>
+<span class="normal">1480</span>
+<span class="normal">1481</span>
+<span class="normal">1482</span>
+<span class="normal">1483</span>
+<span class="normal">1484</span>
+<span class="normal">1485</span>
+<span class="normal">1486</span>
+<span class="normal">1487</span>
+<span class="normal">1488</span>
+<span class="normal">1489</span>
+<span class="normal">1490</span>
+<span class="normal">1491</span>
+<span class="normal">1492</span>
+<span class="normal">1493</span>
+<span class="normal">1494</span>
+<span class="normal">1495</span>
+<span class="normal">1496</span>
+<span class="normal">1497</span>
+<span class="normal">1498</span>
+<span class="normal">1499</span>
+<span class="normal">1500</span>
+<span class="normal">1501</span>
+<span class="normal">1502</span>
+<span class="normal">1503</span>
+<span class="normal">1504</span>
+<span class="normal">1505</span>
+<span class="normal">1506</span>
+<span class="normal">1507</span>
+<span class="normal">1508</span>
+<span class="normal">1509</span>
+<span class="normal">1510</span>
+<span class="normal">1511</span>
+<span class="normal">1512</span>
+<span class="normal">1513</span>
+<span class="normal">1514</span>
+<span class="normal">1515</span>
+<span class="normal">1516</span>
+<span class="normal">1517</span>
+<span class="normal">1518</span>
+<span class="normal">1519</span>
+<span class="normal">1520</span>
+<span class="normal">1521</span>
+<span class="normal">1522</span>
+<span class="normal">1523</span>
+<span class="normal">1524</span>
+<span class="normal">1525</span>
+<span class="normal">1526</span>
+<span class="normal">1527</span>
+<span class="normal">1528</span>
+<span class="normal">1529</span>
+<span class="normal">1530</span>
+<span class="normal">1531</span>
+<span class="normal">1532</span>
+<span class="normal">1533</span>
+<span class="normal">1534</span>
+<span class="normal">1535</span>
+<span class="normal">1536</span>
+<span class="normal">1537</span>
+<span class="normal">1538</span>
+<span class="normal">1539</span>
+<span class="normal">1540</span>
+<span class="normal">1541</span>
+<span class="normal">1542</span>
+<span class="normal">1543</span>
+<span class="normal">1544</span>
+<span class="normal">1545</span>
+<span class="normal">1546</span>
+<span class="normal">1547</span>
+<span class="normal">1548</span>
+<span class="normal">1549</span>
+<span class="normal">1550</span>
+<span class="normal">1551</span>
+<span class="normal">1552</span>
+<span class="normal">1553</span>
+<span class="normal">1554</span>
+<span class="normal">1555</span>
+<span class="normal">1556</span>
+<span class="normal">1557</span>
+<span class="normal">1558</span>
+<span class="normal">1559</span>
+<span class="normal">1560</span>
+<span class="normal">1561</span>
+<span class="normal">1562</span>
+<span class="normal">1563</span>
+<span class="normal">1564</span>
+<span class="normal">1565</span>
+<span class="normal">1566</span>
+<span class="normal">1567</span>
+<span class="normal">1568</span>
+<span class="normal">1569</span>
+<span class="normal">1570</span>
+<span class="normal">1571</span>
+<span class="normal">1572</span>
+<span class="normal">1573</span>
+<span class="normal">1574</span>
+<span class="normal">1575</span>
+<span class="normal">1576</span>
+<span class="normal">1577</span>
+<span class="normal">1578</span>
+<span class="normal">1579</span>
+<span class="normal">1580</span>
+<span class="normal">1581</span>
+<span class="normal">1582</span>
+<span class="normal">1583</span>
+<span class="normal">1584</span>
+<span class="normal">1585</span>
+<span class="normal">1586</span>
+<span class="normal">1587</span>
+<span class="normal">1588</span>
+<span class="normal">1589</span>
+<span class="normal">1590</span>
+<span class="normal">1591</span>
+<span class="normal">1592</span>
+<span class="normal">1593</span>
+<span class="normal">1594</span>
+<span class="normal">1595</span>
+<span class="normal">1596</span>
+<span class="normal">1597</span>
+<span class="normal">1598</span>
+<span class="normal">1599</span>
+<span class="normal">1600</span>
+<span class="normal">1601</span>
+<span class="normal">1602</span>
+<span class="normal">1603</span>
+<span class="normal">1604</span>
+<span class="normal">1605</span>
+<span class="normal">1606</span>
+<span class="normal">1607</span>
+<span class="normal">1608</span>
+<span class="normal">1609</span>
+<span class="normal">1610</span>
+<span class="normal">1611</span>
+<span class="normal">1612</span>
+<span class="normal">1613</span>
+<span class="normal">1614</span>
+<span class="normal">1615</span>
+<span class="normal">1616</span>
+<span class="normal">1617</span>
+<span class="normal">1618</span>
+<span class="normal">1619</span>
+<span class="normal">1620</span>
+<span class="normal">1621</span>
+<span class="normal">1622</span>
+<span class="normal">1623</span>
+<span class="normal">1624</span>
+<span class="normal">1625</span>
+<span class="normal">1626</span>
+<span class="normal">1627</span>
+<span class="normal">1628</span>
+<span class="normal">1629</span>
+<span class="normal">1630</span>
+<span class="normal">1631</span>
+<span class="normal">1632</span>
+<span class="normal">1633</span>
+<span class="normal">1634</span>
+<span class="normal">1635</span>
+<span class="normal">1636</span>
+<span class="normal">1637</span>
+<span class="normal">1638</span>
+<span class="normal">1639</span>
+<span class="normal">1640</span>
+<span class="normal">1641</span>
+<span class="normal">1642</span>
+<span class="normal">1643</span>
+<span class="normal">1644</span>
+<span class="normal">1645</span>
+<span class="normal">1646</span>
+<span class="normal">1647</span>
+<span class="normal">1648</span>
+<span class="normal">1649</span>
+<span class="normal">1650</span>
+<span class="normal">1651</span>
+<span class="normal">1652</span>
+<span class="normal">1653</span>
+<span class="normal">1654</span>
+<span class="normal">1655</span>
+<span class="normal">1656</span>
+<span class="normal">1657</span>
+<span class="normal">1658</span>
+<span class="normal">1659</span>
+<span class="normal">1660</span>
+<span class="normal">1661</span>
+<span class="normal">1662</span>
+<span class="normal">1663</span>
+<span class="normal">1664</span>
+<span class="normal">1665</span>
+<span class="normal">1666</span>
+<span class="normal">1667</span>
+<span class="normal">1668</span>
+<span class="normal">1669</span>
+<span class="normal">1670</span>
+<span class="normal">1671</span>
+<span class="normal">1672</span>
+<span class="normal">1673</span>
+<span class="normal">1674</span>
+<span class="normal">1675</span>
+<span class="normal">1676</span>
+<span class="normal">1677</span>
+<span class="normal">1678</span>
+<span class="normal">1679</span>
+<span class="normal">1680</span>
+<span class="normal">1681</span>
+<span class="normal">1682</span>
+<span class="normal">1683</span>
+<span class="normal">1684</span>
+<span class="normal">1685</span>
+<span class="normal">1686</span>
+<span class="normal">1687</span>
+<span class="normal">1688</span>
+<span class="normal">1689</span>
+<span class="normal">1690</span>
+<span class="normal">1691</span>
+<span class="normal">1692</span>
+<span class="normal">1693</span>
+<span class="normal">1694</span>
+<span class="normal">1695</span>
+<span class="normal">1696</span>
+<span class="normal">1697</span>
+<span class="normal">1698</span>
+<span class="normal">1699</span>
+<span class="normal">1700</span>
+<span class="normal">1701</span>
+<span class="normal">1702</span>
+<span class="normal">1703</span>
+<span class="normal">1704</span>
+<span class="normal">1705</span>
+<span class="normal">1706</span>
+<span class="normal">1707</span>
+<span class="normal">1708</span>
+<span class="normal">1709</span>
+<span class="normal">1710</span>
+<span class="normal">1711</span>
+<span class="normal">1712</span>
+<span class="normal">1713</span>
+<span class="normal">1714</span>
+<span class="normal">1715</span>
+<span class="normal">1716</span>
+<span class="normal">1717</span>
+<span class="normal">1718</span>
+<span class="normal">1719</span>
+<span class="normal">1720</span>
+<span class="normal">1721</span>
+<span class="normal">1722</span>
+<span class="normal">1723</span>
+<span class="normal">1724</span>
+<span class="normal">1725</span>
+<span class="normal">1726</span>
+<span class="normal">1727</span>
+<span class="normal">1728</span>
+<span class="normal">1729</span>
+<span class="normal">1730</span>
+<span class="normal">1731</span>
+<span class="normal">1732</span>
+<span class="normal">1733</span>
+<span class="normal">1734</span>
+<span class="normal">1735</span>
+<span class="normal">1736</span>
+<span class="normal">1737</span>
+<span class="normal">1738</span>
+<span class="normal">1739</span>
+<span class="normal">1740</span>
+<span class="normal">1741</span>
+<span class="normal">1742</span>
+<span class="normal">1743</span>
+<span class="normal">1744</span>
+<span class="normal">1745</span>
+<span class="normal">1746</span>
+<span class="normal">1747</span>
+<span class="normal">1748</span>
+<span class="normal">1749</span>
+<span class="normal">1750</span>
+<span class="normal">1751</span>
+<span class="normal">1752</span>
+<span class="normal">1753</span>
+<span class="normal">1754</span>
+<span class="normal">1755</span>
+<span class="normal">1756</span>
+<span class="normal">1757</span>
+<span class="normal">1758</span>
+<span class="normal">1759</span>
+<span class="normal">1760</span>
+<span class="normal">1761</span>
+<span class="normal">1762</span>
+<span class="normal">1763</span>
+<span class="normal">1764</span>
+<span class="normal">1765</span>
+<span class="normal">1766</span>
+<span class="normal">1767</span>
+<span class="normal">1768</span>
+<span class="normal">1769</span>
+<span class="normal">1770</span>
+<span class="normal">1771</span>
+<span class="normal">1772</span>
+<span class="normal">1773</span>
+<span class="normal">1774</span>
+<span class="normal">1775</span>
+<span class="normal">1776</span>
+<span class="normal">1777</span>
+<span class="normal">1778</span>
+<span class="normal">1779</span>
+<span class="normal">1780</span>
+<span class="normal">1781</span>
+<span class="normal">1782</span>
+<span class="normal">1783</span>
+<span class="normal">1784</span>
+<span class="normal">1785</span>
+<span class="normal">1786</span>
+<span class="normal">1787</span>
+<span class="normal">1788</span>
+<span class="normal">1789</span>
+<span class="normal">1790</span>
+<span class="normal">1791</span>
+<span class="normal">1792</span>
+<span class="normal">1793</span>
+<span class="normal">1794</span>
+<span class="normal">1795</span>
+<span class="normal">1796</span>
+<span class="normal">1797</span>
+<span class="normal">1798</span>
+<span class="normal">1799</span>
+<span class="normal">1800</span>
+<span class="normal">1801</span>
+<span class="normal">1802</span>
+<span class="normal">1803</span>
+<span class="normal">1804</span>
+<span class="normal">1805</span>
+<span class="normal">1806</span>
+<span class="normal">1807</span>
+<span class="normal">1808</span>
+<span class="normal">1809</span>
+<span class="normal">1810</span>
+<span class="normal">1811</span>
+<span class="normal">1812</span>
+<span class="normal">1813</span>
+<span class="normal">1814</span>
+<span class="normal">1815</span>
+<span class="normal">1816</span>
+<span class="normal">1817</span>
+<span class="normal">1818</span>
+<span class="normal">1819</span>
+<span class="normal">1820</span>
+<span class="normal">1821</span>
+<span class="normal">1822</span>
+<span class="normal">1823</span>
+<span class="normal">1824</span>
+<span class="normal">1825</span>
+<span class="normal">1826</span>
+<span class="normal">1827</span>
+<span class="normal">1828</span>
+<span class="normal">1829</span>
+<span class="normal">1830</span>
+<span class="normal">1831</span>
+<span class="normal">1832</span>
+<span class="normal">1833</span>
+<span class="normal">1834</span>
+<span class="normal">1835</span>
+<span class="normal">1836</span>
+<span class="normal">1837</span>
+<span class="normal">1838</span>
+<span class="normal">1839</span>
+<span class="normal">1840</span>
+<span class="normal">1841</span>
+<span class="normal">1842</span>
+<span class="normal">1843</span>
+<span class="normal">1844</span>
+<span class="normal">1845</span>
+<span class="normal">1846</span>
+<span class="normal">1847</span>
+<span class="normal">1848</span>
+<span class="normal">1849</span>
+<span class="normal">1850</span>
+<span class="normal">1851</span>
+<span class="normal">1852</span>
+<span class="normal">1853</span>
+<span class="normal">1854</span>
+<span class="normal">1855</span>
+<span class="normal">1856</span>
+<span class="normal">1857</span>
+<span class="normal">1858</span>
+<span class="normal">1859</span>
+<span class="normal">1860</span>
+<span class="normal">1861</span>
+<span class="normal">1862</span>
+<span class="normal">1863</span>
+<span class="normal">1864</span>
+<span class="normal">1865</span>
+<span class="normal">1866</span>
+<span class="normal">1867</span>
+<span class="normal">1868</span>
+<span class="normal">1869</span>
+<span class="normal">1870</span>
+<span class="normal">1871</span>
+<span class="normal">1872</span>
+<span class="normal">1873</span>
+<span class="normal">1874</span>
+<span class="normal">1875</span>
+<span class="normal">1876</span>
+<span class="normal">1877</span>
+<span class="normal">1878</span>
+<span class="normal">1879</span>
+<span class="normal">1880</span>
+<span class="normal">1881</span>
+<span class="normal">1882</span>
+<span class="normal">1883</span>
+<span class="normal">1884</span>
+<span class="normal">1885</span>
+<span class="normal">1886</span>
+<span class="normal">1887</span>
+<span class="normal">1888</span>
+<span class="normal">1889</span>
+<span class="normal">1890</span>
+<span class="normal">1891</span>
+<span class="normal">1892</span>
+<span class="normal">1893</span>
+<span class="normal">1894</span>
+<span class="normal">1895</span>
+<span class="normal">1896</span>
+<span class="normal">1897</span>
+<span class="normal">1898</span>
+<span class="normal">1899</span>
+<span class="normal">1900</span>
+<span class="normal">1901</span>
+<span class="normal">1902</span>
+<span class="normal">1903</span>
+<span class="normal">1904</span>
+<span class="normal">1905</span>
+<span class="normal">1906</span>
+<span class="normal">1907</span>
+<span class="normal">1908</span>
+<span class="normal">1909</span>
+<span class="normal">1910</span>
+<span class="normal">1911</span>
+<span class="normal">1912</span>
+<span class="normal">1913</span>
+<span class="normal">1914</span>
+<span class="normal">1915</span>
+<span class="normal">1916</span>
+<span class="normal">1917</span>
+<span class="normal">1918</span>
+<span class="normal">1919</span>
+<span class="normal">1920</span>
+<span class="normal">1921</span>
+<span class="normal">1922</span>
+<span class="normal">1923</span>
+<span class="normal">1924</span>
+<span class="normal">1925</span>
+<span class="normal">1926</span>
+<span class="normal">1927</span>
+<span class="normal">1928</span>
+<span class="normal">1929</span>
+<span class="normal">1930</span>
+<span class="normal">1931</span>
+<span class="normal">1932</span>
+<span class="normal">1933</span>
+<span class="normal">1934</span>
+<span class="normal">1935</span>
+<span class="normal">1936</span>
+<span class="normal">1937</span>
+<span class="normal">1938</span>
+<span class="normal">1939</span>
+<span class="normal">1940</span>
+<span class="normal">1941</span>
+<span class="normal">1942</span>
+<span class="normal">1943</span>
+<span class="normal">1944</span>
+<span class="normal">1945</span>
+<span class="normal">1946</span>
+<span class="normal">1947</span>
+<span class="normal">1948</span>
+<span class="normal">1949</span>
+<span class="normal">1950</span>
+<span class="normal">1951</span>
+<span class="normal">1952</span>
+<span class="normal">1953</span>
+<span class="normal">1954</span>
+<span class="normal">1955</span>
+<span class="normal">1956</span>
+<span class="normal">1957</span>
+<span class="normal">1958</span>
+<span class="normal">1959</span>
+<span class="normal">1960</span>
+<span class="normal">1961</span>
+<span class="normal">1962</span>
+<span class="normal">1963</span>
+<span class="normal">1964</span>
+<span class="normal">1965</span>
+<span class="normal">1966</span>
+<span class="normal">1967</span>
+<span class="normal">1968</span>
+<span class="normal">1969</span>
+<span class="normal">1970</span>
+<span class="normal">1971</span>
+<span class="normal">1972</span>
+<span class="normal">1973</span>
+<span class="normal">1974</span>
+<span class="normal">1975</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* mate-rr-config.c</span>
+<a id="line-2" name="line-2"></a><span class="cm"> * -*- c-basic-offset: 4 -*-</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * Copyright 2007, 2008, Red Hat, Inc.</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * Copyright 2010 Giovanni Campagna</span>
+<a id="line-6" name="line-6"></a><span class="cm"> *</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * This file is part of the Mate Library.</span>
+<a id="line-8" name="line-8"></a><span class="cm"> *</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * The Mate Library is free software; you can redistribute it and/or</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * modify it under the terms of the GNU Library General Public License as</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * published by the Free Software Foundation; either version 2 of the</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * License, or (at your option) any later version.</span>
+<a id="line-13" name="line-13"></a><span class="cm"> *</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * The Mate Library is distributed in the hope that it will be useful,</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Library General Public License for more details.</span>
+<a id="line-18" name="line-18"></a><span class="cm"> *</span>
+<a id="line-19" name="line-19"></a><span class="cm"> * You should have received a copy of the GNU Library General Public</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * License along with the Mate Library; see the file COPYING.LIB. If not,</span>
+<a id="line-21" name="line-21"></a><span class="cm"> * write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,</span>
+<a id="line-22" name="line-22"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-23" name="line-23"></a><span class="cm"> *</span>
+<a id="line-24" name="line-24"></a><span class="cm"> * Author: Soren Sandmann &lt;[email protected]&gt;</span>
+<a id="line-25" name="line-25"></a><span class="cm"> */</span>
+<a id="line-26" name="line-26"></a>
+<a id="line-27" name="line-27"></a><span class="cp">#define MATE_DESKTOP_USE_UNSTABLE_API</span>
+<a id="line-28" name="line-28"></a>
+<a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;config.h&gt;</span><span class="error2">&lt;--- Include file: <config.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n-lib.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n-lib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-31" name="line-31"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdlib.h&gt;</span><span class="error2">&lt;--- Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-32" name="line-32"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-33" name="line-33"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib.h&gt;</span><span class="error2">&lt;--- Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-34" name="line-34"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gstdio.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gstdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-35" name="line-35"></a>
+<a id="line-36" name="line-36"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;X11/Xlib.h&gt;</span><span class="error2">&lt;--- Include file: <X11/Xlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-37" name="line-37"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdkx.h&gt;</span><span class="error2">&lt;--- Include file: <gdk/gdkx.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-38" name="line-38"></a>
+<a id="line-39" name="line-39"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;mate-rr-config.h&quot;</span>
+<a id="line-40" name="line-40"></a>
+<a id="line-41" name="line-41"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;edid.h&quot;</span>
+<a id="line-42" name="line-42"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;mate-rr-private.h&quot;</span>
+<a id="line-43" name="line-43"></a>
+<a id="line-44" name="line-44"></a><span class="cp">#define CONFIG_INTENDED_BASENAME &quot;monitors.xml&quot;</span>
+<a id="line-45" name="line-45"></a><span class="cp">#define CONFIG_BACKUP_BASENAME &quot;monitors.xml.backup&quot;</span>
+<a id="line-46" name="line-46"></a>
+<a id="line-47" name="line-47"></a><span class="cm">/* In version 0 of the config file format, we had several &lt;configuration&gt;</span>
+<a id="line-48" name="line-48"></a><span class="cm"> * toplevel elements and no explicit version number. So, the filed looked</span>
+<a id="line-49" name="line-49"></a><span class="cm"> * like</span>
+<a id="line-50" name="line-50"></a><span class="cm"> *</span>
+<a id="line-51" name="line-51"></a><span class="cm"> * &lt;configuration&gt;</span>
+<a id="line-52" name="line-52"></a><span class="cm"> * ...</span>
+<a id="line-53" name="line-53"></a><span class="cm"> * &lt;/configuration&gt;</span>
+<a id="line-54" name="line-54"></a><span class="cm"> * &lt;configuration&gt;</span>
+<a id="line-55" name="line-55"></a><span class="cm"> * ...</span>
+<a id="line-56" name="line-56"></a><span class="cm"> * &lt;/configuration&gt;</span>
+<a id="line-57" name="line-57"></a><span class="cm"> *</span>
+<a id="line-58" name="line-58"></a><span class="cm"> * Since version 1 of the config file, the file has a toplevel &lt;monitors&gt;</span>
+<a id="line-59" name="line-59"></a><span class="cm"> * element to group all the configurations. That element has a &quot;version&quot;</span>
+<a id="line-60" name="line-60"></a><span class="cm"> * attribute which is an integer. So, the file looks like this:</span>
+<a id="line-61" name="line-61"></a><span class="cm"> *</span>
+<a id="line-62" name="line-62"></a><span class="cm"> * &lt;monitors version=&quot;1&quot;&gt;</span>
+<a id="line-63" name="line-63"></a><span class="cm"> * &lt;configuration&gt;</span>
+<a id="line-64" name="line-64"></a><span class="cm"> * ...</span>
+<a id="line-65" name="line-65"></a><span class="cm"> * &lt;/configuration&gt;</span>
+<a id="line-66" name="line-66"></a><span class="cm"> * &lt;configuration&gt;</span>
+<a id="line-67" name="line-67"></a><span class="cm"> * ...</span>
+<a id="line-68" name="line-68"></a><span class="cm"> * &lt;/configuration&gt;</span>
+<a id="line-69" name="line-69"></a><span class="cm"> * &lt;/monitors&gt;</span>
+<a id="line-70" name="line-70"></a><span class="cm"> */</span>
+<a id="line-71" name="line-71"></a>
+<a id="line-72" name="line-72"></a><span class="cm">/* A helper wrapper around the GMarkup parser stuff */</span>
+<a id="line-73" name="line-73"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">parse_file_gmarkup</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">,</span>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GMarkupParser</span><span class="w"> </span><span class="o">*</span><span class="n">parser</span><span class="p">,</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">,</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">err</span><span class="p">);</span>
+<a id="line-77" name="line-77"></a>
+<a id="line-78" name="line-78"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">CrtcAssignment</span><span class="w"> </span><span class="n">CrtcAssignment</span><span class="p">;</span>
+<a id="line-79" name="line-79"></a>
+<a id="line-80" name="line-80"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">crtc_assignment_apply</span><span class="w"> </span><span class="p">(</span><span class="n">CrtcAssignment</span><span class="w"> </span><span class="o">*</span><span class="n">assign</span><span class="p">,</span>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">timestamp</span><span class="p">,</span>
+<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">);</span>
+<a id="line-83" name="line-83"></a><span class="k">static</span><span class="w"> </span><span class="n">CrtcAssignment</span><span class="w"> </span><span class="o">*</span><span class="nf">crtc_assignment_new</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">**</span><span class="n">outputs</span><span class="p">,</span>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">);</span>
+<a id="line-86" name="line-86"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">crtc_assignment_free</span><span class="w"> </span><span class="p">(</span><span class="n">CrtcAssignment</span><span class="w"> </span><span class="o">*</span><span class="n">assign</span><span class="p">);</span>
+<a id="line-87" name="line-87"></a>
+<a id="line-88" name="line-88"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="n">PROP_0</span><span class="p">,</span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">PROP_SCREEN</span><span class="p">,</span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">PROP_LAST</span>
+<a id="line-92" name="line-92"></a><span class="p">};</span>
+<a id="line-93" name="line-93"></a>
+<a id="line-94" name="line-94"></a><span class="hll"><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="p">,</span><span class="w"> </span><span class="n">mate_rr_config</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">)</span><span class="error2">&lt;--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</span>
+</span><a id="line-95" name="line-95"></a>
+<a id="line-96" name="line-96"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">Parser</span><span class="w"> </span><span class="n">Parser</span><span class="p">;</span>
+<a id="line-97" name="line-97"></a>
+<a id="line-98" name="line-98"></a><span class="cm">/* Parser for monitor configurations */</span>
+<a id="line-99" name="line-99"></a><span class="k">struct</span><span class="w"> </span><span class="nc">Parser</span>
+<a id="line-100" name="line-100"></a><span class="p">{</span>
+<a id="line-101" name="line-101"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">config_file_version</span><span class="p">;</span>
+<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">output</span><span class="p">;</span>
+<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">configuration</span><span class="p">;</span>
+<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">GPtrArray</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">outputs</span><span class="p">;</span>
+<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">GPtrArray</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">configurations</span><span class="p">;</span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">GQueue</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">stack</span><span class="p">;</span>
+<a id="line-107" name="line-107"></a><span class="p">};</span>
+<a id="line-108" name="line-108"></a>
+<a id="line-109" name="line-109"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span>
+<a id="line-110" name="line-110"></a><span class="nf">parse_int</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">)</span>
+<a id="line-111" name="line-111"></a><span class="p">{</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">strtol</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-113" name="line-113"></a><span class="p">}</span>
+<a id="line-114" name="line-114"></a>
+<a id="line-115" name="line-115"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span>
+<a id="line-116" name="line-116"></a><span class="nf">parse_uint</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">)</span>
+<a id="line-117" name="line-117"></a><span class="p">{</span>
+<a id="line-118" name="line-118"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">strtoul</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-119" name="line-119"></a><span class="p">}</span>
+<a id="line-120" name="line-120"></a>
+<a id="line-121" name="line-121"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-122" name="line-122"></a><span class="nf">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">Parser</span><span class="w"> </span><span class="o">*</span><span class="n">parser</span><span class="p">,</span>
+<a id="line-123" name="line-123"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">s1</span><span class="p">,</span>
+<a id="line-124" name="line-124"></a><span class="w"> </span><span class="p">...)</span>
+<a id="line-125" name="line-125"></a><span class="p">{</span>
+<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">stack</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-127" name="line-127"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span>
+<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">l1</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">l2</span><span class="p">;</span>
+<a id="line-129" name="line-129"></a><span class="w"> </span><span class="kt">va_list</span><span class="w"> </span><span class="n">args</span><span class="p">;</span>
+<a id="line-130" name="line-130"></a>
+<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">stack</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">stack</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="p">)</span><span class="n">s1</span><span class="p">);</span>
+<a id="line-132" name="line-132"></a>
+<a id="line-133" name="line-133"></a><span class="w"> </span><span class="n">va_start</span><span class="w"> </span><span class="p">(</span><span class="n">args</span><span class="p">,</span><span class="w"> </span><span class="n">s1</span><span class="p">);</span>
+<a id="line-134" name="line-134"></a>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">va_arg</span><span class="w"> </span><span class="p">(</span><span class="n">args</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">);</span>
+<a id="line-136" name="line-136"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">)</span>
+<a id="line-137" name="line-137"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-138" name="line-138"></a><span class="w"> </span><span class="n">stack</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">stack</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="p">)</span><span class="n">s</span><span class="p">);</span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">va_arg</span><span class="w"> </span><span class="p">(</span><span class="n">args</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">);</span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-141" name="line-141"></a>
+<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">va_end</span><span class="w"> </span><span class="p">(</span><span class="n">args</span><span class="p">);</span>
+<a id="line-143" name="line-143"></a>
+<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">l1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">stack</span><span class="p">;</span>
+<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">l2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">stack</span><span class="o">-&gt;</span><span class="n">head</span><span class="p">;</span>
+<a id="line-146" name="line-146"></a>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">l1</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">l2</span><span class="p">)</span>
+<a id="line-148" name="line-148"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-149" name="line-149"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">l1</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">l2</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-150" name="line-150"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">stack</span><span class="p">);</span>
+<a id="line-152" name="line-152"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-153" name="line-153"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-154" name="line-154"></a>
+<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">l1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l1</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">;</span>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">l2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l2</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">;</span>
+<a id="line-157" name="line-157"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-158" name="line-158"></a>
+<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">stack</span><span class="p">);</span>
+<a id="line-160" name="line-160"></a>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">l1</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">!</span><span class="n">l2</span><span class="p">);</span>
+<a id="line-162" name="line-162"></a><span class="p">}</span>
+<a id="line-163" name="line-163"></a>
+<a id="line-164" name="line-164"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-165" name="line-165"></a><span class="nf">handle_start_element</span><span class="w"> </span><span class="p">(</span><span class="n">GMarkupParseContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">,</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">attr_names</span><span class="p">,</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">attr_values</span><span class="p">,</span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">,</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">err</span><span class="p">)</span>
+<a id="line-171" name="line-171"></a><span class="p">{</span>
+<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">Parser</span><span class="w"> </span><span class="o">*</span><span class="n">parser</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">user_data</span><span class="p">;</span>
+<a id="line-173" name="line-173"></a>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;output&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-178" name="line-178"></a>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_TYPE_RR_OUTPUT_INFO</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-181" name="line-181"></a>
+<a id="line-182" name="line-182"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">attr_names</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-183" name="line-183"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">attr_names</span><span class="p">[</span><span class="n">i</span><span class="p">],</span><span class="w"> </span><span class="s">&quot;name&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-185" name="line-185"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">attr_values</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-189" name="line-189"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-190" name="line-190"></a>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">)</span>
+<a id="line-192" name="line-192"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="cm">/* This really shouldn&#39;t happen, but it&#39;s better to make</span>
+<a id="line-194" name="line-194"></a><span class="cm"> * something up than to crash later.</span>
+<a id="line-195" name="line-195"></a><span class="cm"> */</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Malformed monitor configuration file&quot;</span><span class="p">);</span>
+<a id="line-197" name="line-197"></a>
+<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;default&quot;</span><span class="p">);</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">connected</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">on</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-202" name="line-202"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">primary</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-203" name="line-203"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-204" name="line-204"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;configuration&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">configuration</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-207" name="line-207"></a>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">configuration</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_TYPE_RR_CONFIG</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">configuration</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">clone</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">configuration</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-211" name="line-211"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;monitors&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-215" name="line-215"></a>
+<a id="line-216" name="line-216"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">attr_names</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-218" name="line-218"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">attr_names</span><span class="p">[</span><span class="n">i</span><span class="p">],</span><span class="w"> </span><span class="s">&quot;version&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-219" name="line-219"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">config_file_version</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">parse_int</span><span class="w"> </span><span class="p">(</span><span class="n">attr_values</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span>
+<a id="line-221" name="line-221"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-222" name="line-222"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-223" name="line-223"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-224" name="line-224"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-225" name="line-225"></a>
+<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">g_queue_push_tail</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">stack</span><span class="p">,</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">));</span>
+<a id="line-227" name="line-227"></a><span class="p">}</span>
+<a id="line-228" name="line-228"></a>
+<a id="line-229" name="line-229"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-230" name="line-230"></a><span class="nf">handle_end_element</span><span class="w"> </span><span class="p">(</span><span class="n">GMarkupParseContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">,</span>
+<a id="line-231" name="line-231"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span>
+<a id="line-232" name="line-232"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">,</span>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">err</span><span class="p">)</span>
+<a id="line-234" name="line-234"></a><span class="p">{</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">Parser</span><span class="w"> </span><span class="o">*</span><span class="n">parser</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">user_data</span><span class="p">;</span>
+<a id="line-236" name="line-236"></a>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;output&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-238" name="line-238"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-239" name="line-239"></a><span class="w"> </span><span class="cm">/* If no rotation properties were set, just use MATE_RR_ROTATION_0 */</span>
+<a id="line-240" name="line-240"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-241" name="line-241"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_RR_ROTATION_0</span><span class="p">;</span>
+<a id="line-242" name="line-242"></a>
+<a id="line-243" name="line-243"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">,</span><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="p">);</span>
+<a id="line-244" name="line-244"></a>
+<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-246" name="line-246"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-247" name="line-247"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;configuration&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-248" name="line-248"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">configuration</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="w"> </span><span class="o">=</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">**</span><span class="p">)</span><span class="n">g_ptr_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-252" name="line-252"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-253" name="line-253"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">configurations</span><span class="p">,</span><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">configuration</span><span class="p">);</span>
+<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">configuration</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-255" name="line-255"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-256" name="line-256"></a>
+<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">g_queue_pop_tail</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">stack</span><span class="p">));</span>
+<a id="line-258" name="line-258"></a><span class="p">}</span>
+<a id="line-259" name="line-259"></a>
+<a id="line-260" name="line-260"></a><span class="cp">#define TOPLEVEL_ELEMENT (parser-&gt;config_file_version &gt; 0 ? &quot;monitors&quot; : NULL)</span>
+<a id="line-261" name="line-261"></a>
+<a id="line-262" name="line-262"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-263" name="line-263"></a><span class="nf">handle_text</span><span class="w"> </span><span class="p">(</span><span class="n">GMarkupParseContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">,</span>
+<a id="line-264" name="line-264"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">,</span>
+<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">text_len</span><span class="p">,</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">,</span>
+<a id="line-267" name="line-267"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">err</span><span class="p">)</span>
+<a id="line-268" name="line-268"></a><span class="p">{</span>
+<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">Parser</span><span class="w"> </span><span class="o">*</span><span class="n">parser</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">user_data</span><span class="p">;</span>
+<a id="line-270" name="line-270"></a>
+<a id="line-271" name="line-271"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;vendor&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;output&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;configuration&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">TOPLEVEL_ELEMENT</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span>
+<a id="line-272" name="line-272"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">connected</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-274" name="line-274"></a>
+<a id="line-275" name="line-275"></a><span class="w"> </span><span class="n">strncpy</span><span class="w"> </span><span class="p">((</span><span class="n">gchar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="p">,</span><span class="w"> </span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">);</span>
+<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-277" name="line-277"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-278" name="line-278"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;clone&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;configuration&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">TOPLEVEL_ELEMENT</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span>
+<a id="line-279" name="line-279"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-280" name="line-280"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;yes&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">configuration</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">clone</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-282" name="line-282"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;product&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;output&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;configuration&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">TOPLEVEL_ELEMENT</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">connected</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-286" name="line-286"></a>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">product</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">parse_int</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">);</span>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;serial&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;output&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;configuration&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">TOPLEVEL_ELEMENT</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">connected</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-292" name="line-292"></a>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">serial</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">parse_uint</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">);</span>
+<a id="line-294" name="line-294"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;width&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;output&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;configuration&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">TOPLEVEL_ELEMENT</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span>
+<a id="line-296" name="line-296"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">on</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-298" name="line-298"></a>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">parse_int</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">);</span>
+<a id="line-300" name="line-300"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-301" name="line-301"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;x&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;output&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;configuration&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">TOPLEVEL_ELEMENT</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span>
+<a id="line-302" name="line-302"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-303" name="line-303"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">on</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-304" name="line-304"></a>
+<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">parse_int</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">);</span>
+<a id="line-306" name="line-306"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-307" name="line-307"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;y&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;output&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;configuration&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">TOPLEVEL_ELEMENT</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span>
+<a id="line-308" name="line-308"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-309" name="line-309"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">on</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-310" name="line-310"></a>
+<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">parse_int</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">);</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-313" name="line-313"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;height&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;output&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;configuration&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">TOPLEVEL_ELEMENT</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span>
+<a id="line-314" name="line-314"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-315" name="line-315"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">on</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-316" name="line-316"></a>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">parse_int</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">);</span>
+<a id="line-318" name="line-318"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-319" name="line-319"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;rate&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;output&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;configuration&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">TOPLEVEL_ELEMENT</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">on</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-322" name="line-322"></a>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rate</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">parse_int</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">);</span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-325" name="line-325"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;rotation&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;output&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;configuration&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">TOPLEVEL_ELEMENT</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span>
+<a id="line-326" name="line-326"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-327" name="line-327"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;normal&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-328" name="line-328"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-329" name="line-329"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">MATE_RR_ROTATION_0</span><span class="p">;</span>
+<a id="line-330" name="line-330"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;left&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-332" name="line-332"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-333" name="line-333"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">MATE_RR_ROTATION_90</span><span class="p">;</span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;upside_down&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-336" name="line-336"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">MATE_RR_ROTATION_180</span><span class="p">;</span>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-339" name="line-339"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;right&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-340" name="line-340"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-341" name="line-341"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">MATE_RR_ROTATION_270</span><span class="p">;</span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;reflect_x&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;output&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;configuration&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">TOPLEVEL_ELEMENT</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;yes&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-348" name="line-348"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">MATE_RR_REFLECT_X</span><span class="p">;</span>
+<a id="line-349" name="line-349"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-350" name="line-350"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-351" name="line-351"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;reflect_y&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;output&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;configuration&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">TOPLEVEL_ELEMENT</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span>
+<a id="line-352" name="line-352"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-353" name="line-353"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;yes&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">MATE_RR_REFLECT_Y</span><span class="p">;</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;primary&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;output&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;configuration&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">TOPLEVEL_ELEMENT</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span>
+<a id="line-359" name="line-359"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;yes&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">primary</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-363" name="line-363"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-365" name="line-365"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-366" name="line-366"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-367" name="line-367"></a><span class="w"> </span><span class="cm">/* Ignore other properties so we can expand the format in the future */</span>
+<a id="line-368" name="line-368"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-369" name="line-369"></a><span class="p">}</span>
+<a id="line-370" name="line-370"></a>
+<a id="line-371" name="line-371"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-372" name="line-372"></a><span class="nf">parser_free</span><span class="w"> </span><span class="p">(</span><span class="n">Parser</span><span class="w"> </span><span class="o">*</span><span class="n">parser</span><span class="p">)</span>
+<a id="line-373" name="line-373"></a><span class="p">{</span>
+<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-375" name="line-375"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="p">;</span>
+<a id="line-376" name="line-376"></a>
+<a id="line-377" name="line-377"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-378" name="line-378"></a>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="p">)</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">output</span><span class="p">);</span>
+<a id="line-381" name="line-381"></a>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">configuration</span><span class="p">)</span>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">configuration</span><span class="p">);</span>
+<a id="line-384" name="line-384"></a>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="o">-&gt;</span><span class="n">len</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-387" name="line-387"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="o">-&gt;</span><span class="n">pdata</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-388" name="line-388"></a>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="p">);</span>
+<a id="line-390" name="line-390"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-391" name="line-391"></a>
+<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">g_ptr_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-393" name="line-393"></a>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">configurations</span><span class="o">-&gt;</span><span class="n">len</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-395" name="line-395"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">config</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">configurations</span><span class="o">-&gt;</span><span class="n">pdata</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-397" name="line-397"></a>
+<a id="line-398" name="line-398"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">config</span><span class="p">);</span>
+<a id="line-399" name="line-399"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-400" name="line-400"></a>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">g_ptr_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">configurations</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-402" name="line-402"></a>
+<a id="line-403" name="line-403"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">stack</span><span class="o">-&gt;</span><span class="n">head</span><span class="p">;</span><span class="w"> </span><span class="n">list</span><span class="p">;</span><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">list</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">);</span>
+<a id="line-405" name="line-405"></a><span class="w"> </span><span class="n">g_queue_free</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">stack</span><span class="p">);</span>
+<a id="line-406" name="line-406"></a>
+<a id="line-407" name="line-407"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">);</span>
+<a id="line-408" name="line-408"></a><span class="p">}</span>
+<a id="line-409" name="line-409"></a>
+<a id="line-410" name="line-410"></a><span class="k">static</span><span class="w"> </span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">**</span>
+<a id="line-411" name="line-411"></a><span class="nf">configurations_read_from_file</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-412" name="line-412"></a><span class="p">{</span>
+<a id="line-413" name="line-413"></a><span class="w"> </span><span class="n">Parser</span><span class="w"> </span><span class="o">*</span><span class="n">parser</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new0</span><span class="w"> </span><span class="p">(</span><span class="n">Parser</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">**</span><span class="n">result</span><span class="p">;</span>
+<a id="line-415" name="line-415"></a><span class="w"> </span><span class="n">GMarkupParser</span><span class="w"> </span><span class="n">callbacks</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">handle_start_element</span><span class="p">,</span>
+<a id="line-417" name="line-417"></a><span class="w"> </span><span class="n">handle_end_element</span><span class="p">,</span>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">handle_text</span><span class="p">,</span>
+<a id="line-419" name="line-419"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* passthrough */</span>
+<a id="line-420" name="line-420"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* error */</span>
+<a id="line-421" name="line-421"></a><span class="w"> </span><span class="p">};</span>
+<a id="line-422" name="line-422"></a>
+<a id="line-423" name="line-423"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">config_file_version</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">configurations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-425" name="line-425"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">stack</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_queue_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-427" name="line-427"></a>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">parse_file_gmarkup</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">callbacks</span><span class="p">,</span><span class="w"> </span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">))</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-431" name="line-431"></a>
+<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">);</span>
+<a id="line-433" name="line-433"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span>
+<a id="line-434" name="line-434"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-435" name="line-435"></a>
+<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">);</span>
+<a id="line-437" name="line-437"></a>
+<a id="line-438" name="line-438"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">configurations</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">**</span><span class="p">)</span><span class="n">g_ptr_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">configurations</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-440" name="line-440"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">configurations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-441" name="line-441"></a>
+<a id="line-442" name="line-442"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">);</span>
+<a id="line-443" name="line-443"></a><span class="nl">out</span><span class="p">:</span>
+<a id="line-444" name="line-444"></a><span class="w"> </span><span class="n">parser_free</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">);</span>
+<a id="line-445" name="line-445"></a>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-447" name="line-447"></a><span class="p">}</span>
+<a id="line-448" name="line-448"></a>
+<a id="line-449" name="line-449"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-450" name="line-450"></a><span class="nf">mate_rr_config_init</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">)</span>
+<a id="line-451" name="line-451"></a><span class="p">{</span>
+<a id="line-452" name="line-452"></a><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_config_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">);</span>
+<a id="line-453" name="line-453"></a>
+<a id="line-454" name="line-454"></a><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">clone</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-455" name="line-455"></a><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">screen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-456" name="line-456"></a><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-457" name="line-457"></a><span class="p">}</span>
+<a id="line-458" name="line-458"></a>
+<a id="line-459" name="line-459"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-460" name="line-460"></a><span class="nf">mate_rr_config_set_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">gobject</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">property</span><span class="p">)</span>
+<a id="line-461" name="line-461"></a><span class="p">{</span>
+<a id="line-462" name="line-462"></a><span class="w"> </span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_RR_CONFIG</span><span class="w"> </span><span class="p">(</span><span class="n">gobject</span><span class="p">);</span>
+<a id="line-463" name="line-463"></a>
+<a id="line-464" name="line-464"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">property_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_SCREEN</span><span class="p">:</span>
+<a id="line-466" name="line-466"></a><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">screen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_dup_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-467" name="line-467"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">gobject</span><span class="p">,</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span><span class="w"> </span><span class="n">property</span><span class="p">);</span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-471" name="line-471"></a><span class="p">}</span>
+<a id="line-472" name="line-472"></a>
+<a id="line-473" name="line-473"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-474" name="line-474"></a><span class="nf">mate_rr_config_finalize</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">gobject</span><span class="p">)</span>
+<a id="line-475" name="line-475"></a><span class="p">{</span>
+<a id="line-476" name="line-476"></a><span class="w"> </span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_RR_CONFIG</span><span class="w"> </span><span class="p">(</span><span class="n">gobject</span><span class="p">);</span>
+<a id="line-477" name="line-477"></a>
+<a id="line-478" name="line-478"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">screen</span><span class="p">)</span>
+<a id="line-479" name="line-479"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">screen</span><span class="p">);</span>
+<a id="line-480" name="line-480"></a>
+<a id="line-481" name="line-481"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-482" name="line-482"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-483" name="line-483"></a>
+<a id="line-484" name="line-484"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-485" name="line-485"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-486" name="line-486"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="p">);</span>
+<a id="line-487" name="line-487"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-488" name="line-488"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">);</span>
+<a id="line-489" name="line-489"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-490" name="line-490"></a>
+<a id="line-491" name="line-491"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">mate_rr_config_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">gobject</span><span class="p">);</span>
+<a id="line-492" name="line-492"></a><span class="p">}</span>
+<a id="line-493" name="line-493"></a>
+<a id="line-494" name="line-494"></a><span class="n">gboolean</span>
+<a id="line-495" name="line-495"></a><span class="nf">mate_rr_config_load_current</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">config</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-496" name="line-496"></a><span class="p">{</span>
+<a id="line-497" name="line-497"></a><span class="w"> </span><span class="n">GPtrArray</span><span class="w"> </span><span class="o">*</span><span class="n">a</span><span class="p">;</span>
+<a id="line-498" name="line-498"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">**</span><span class="n">rr_outputs</span><span class="p">;</span>
+<a id="line-499" name="line-499"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-500" name="line-500"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">clone_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-501" name="line-501"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">clone_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-502" name="line-502"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">last_x</span><span class="p">;</span>
+<a id="line-503" name="line-503"></a>
+<a id="line-504" name="line-504"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_CONFIG</span><span class="w"> </span><span class="p">(</span><span class="n">config</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-505" name="line-505"></a>
+<a id="line-506" name="line-506"></a><span class="w"> </span><span class="n">a</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-507" name="line-507"></a><span class="w"> </span><span class="n">rr_outputs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_screen_list_outputs</span><span class="w"> </span><span class="p">(</span><span class="n">config</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">screen</span><span class="p">);</span>
+<a id="line-508" name="line-508"></a>
+<a id="line-509" name="line-509"></a><span class="w"> </span><span class="n">config</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">clone</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-510" name="line-510"></a>
+<a id="line-511" name="line-511"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">rr_outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-512" name="line-512"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-513" name="line-513"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">rr_output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">rr_outputs</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-514" name="line-514"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_TYPE_RR_OUTPUT_INFO</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-515" name="line-515"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-516" name="line-516"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">guint8</span><span class="w"> </span><span class="o">*</span><span class="n">edid_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_output_get_edid_data</span><span class="w"> </span><span class="p">(</span><span class="n">rr_output</span><span class="p">);</span>
+<a id="line-517" name="line-517"></a><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">;</span>
+<a id="line-518" name="line-518"></a>
+<a id="line-519" name="line-519"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">mate_rr_output_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">rr_output</span><span class="p">));</span>
+<a id="line-520" name="line-520"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">connected</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_output_is_connected</span><span class="w"> </span><span class="p">(</span><span class="n">rr_output</span><span class="p">);</span>
+<a id="line-521" name="line-521"></a>
+<a id="line-522" name="line-522"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">connected</span><span class="p">)</span>
+<a id="line-523" name="line-523"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-524" name="line-524"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-525" name="line-525"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-526" name="line-526"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-527" name="line-527"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-528" name="line-528"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rate</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-529" name="line-529"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_RR_ROTATION_0</span><span class="p">;</span>
+<a id="line-530" name="line-530"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-531" name="line-531"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-532" name="line-532"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-533" name="line-533"></a><span class="w"> </span><span class="n">MonitorInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-534" name="line-534"></a>
+<a id="line-535" name="line-535"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">edid_data</span><span class="p">)</span>
+<a id="line-536" name="line-536"></a><span class="w"> </span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">decode_edid</span><span class="w"> </span><span class="p">(</span><span class="n">edid_data</span><span class="p">);</span>
+<a id="line-537" name="line-537"></a>
+<a id="line-538" name="line-538"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">)</span>
+<a id="line-539" name="line-539"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-540" name="line-540"></a><span class="w"> </span><span class="n">memcpy</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="p">,</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">manufacturer_code</span><span class="p">,</span>
+<a id="line-541" name="line-541"></a><span class="w"> </span><span class="k">sizeof</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="p">));</span>
+<a id="line-542" name="line-542"></a>
+<a id="line-543" name="line-543"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">product</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">product_code</span><span class="p">;</span>
+<a id="line-544" name="line-544"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">serial</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">serial_number</span><span class="p">;</span>
+<a id="line-545" name="line-545"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">aspect</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">aspect_ratio</span><span class="p">;</span>
+<a id="line-546" name="line-546"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-547" name="line-547"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-548" name="line-548"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-549" name="line-549"></a><span class="w"> </span><span class="n">g_strlcpy</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;???&quot;</span><span class="p">,</span><span class="w"> </span><span class="k">sizeof</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="p">));</span>
+<a id="line-550" name="line-550"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">product</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-551" name="line-551"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">serial</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-552" name="line-552"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-553" name="line-553"></a>
+<a id="line-554" name="line-554"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mate_rr_output_is_laptop</span><span class="w"> </span><span class="p">(</span><span class="n">rr_output</span><span class="p">))</span>
+<a id="line-555" name="line-555"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">display_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Laptop&quot;</span><span class="p">));</span>
+<a id="line-556" name="line-556"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-557" name="line-557"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">display_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">make_display_name</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">);</span>
+<a id="line-558" name="line-558"></a>
+<a id="line-559" name="line-559"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">);</span>
+<a id="line-560" name="line-560"></a>
+<a id="line-561" name="line-561"></a><span class="w"> </span><span class="n">crtc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_output_get_crtc</span><span class="w"> </span><span class="p">(</span><span class="n">rr_output</span><span class="p">);</span>
+<a id="line-562" name="line-562"></a><span class="w"> </span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">crtc</span><span class="o">?</span><span class="w"> </span><span class="n">mate_rr_crtc_get_current_mode</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="p">)</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-563" name="line-563"></a>
+<a id="line-564" name="line-564"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">mode</span><span class="p">)</span>
+<a id="line-565" name="line-565"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-566" name="line-566"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">on</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-567" name="line-567"></a>
+<a id="line-568" name="line-568"></a><span class="w"> </span><span class="n">mate_rr_crtc_get_position</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">y</span><span class="p">);</span>
+<a id="line-569" name="line-569"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_mode_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="p">);</span>
+<a id="line-570" name="line-570"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_mode_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="p">);</span>
+<a id="line-571" name="line-571"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rate</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_mode_get_freq</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="p">);</span>
+<a id="line-572" name="line-572"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_crtc_get_current_rotation</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="p">);</span>
+<a id="line-573" name="line-573"></a>
+<a id="line-574" name="line-574"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">x</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">y</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-575" name="line-575"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">clone_width</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">-1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-576" name="line-576"></a><span class="w"> </span><span class="n">clone_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">width</span><span class="p">;</span>
+<a id="line-577" name="line-577"></a><span class="w"> </span><span class="n">clone_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">height</span><span class="p">;</span>
+<a id="line-578" name="line-578"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">clone_width</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">width</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-579" name="line-579"></a><span class="w"> </span><span class="n">clone_height</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">height</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-580" name="line-580"></a><span class="w"> </span><span class="n">config</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">clone</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-581" name="line-581"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-582" name="line-582"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-583" name="line-583"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-584" name="line-584"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-585" name="line-585"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-586" name="line-586"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">on</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-587" name="line-587"></a><span class="w"> </span><span class="n">config</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">clone</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-588" name="line-588"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-589" name="line-589"></a>
+<a id="line-590" name="line-590"></a><span class="w"> </span><span class="cm">/* Get preferred size for the monitor */</span>
+<a id="line-591" name="line-591"></a><span class="w"> </span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_output_get_preferred_mode</span><span class="w"> </span><span class="p">(</span><span class="n">rr_output</span><span class="p">);</span>
+<a id="line-592" name="line-592"></a>
+<a id="line-593" name="line-593"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mode</span><span class="p">)</span>
+<a id="line-594" name="line-594"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-595" name="line-595"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">**</span><span class="n">modes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_output_list_modes</span><span class="w"> </span><span class="p">(</span><span class="n">rr_output</span><span class="p">);</span>
+<a id="line-596" name="line-596"></a>
+<a id="line-597" name="line-597"></a><span class="w"> </span><span class="cm">/* FIXME: we should pick the &quot;best&quot; mode here, where best is</span>
+<a id="line-598" name="line-598"></a><span class="cm"> * sorted wrt</span>
+<a id="line-599" name="line-599"></a><span class="cm"> *</span>
+<a id="line-600" name="line-600"></a><span class="cm"> * - closest aspect ratio</span>
+<a id="line-601" name="line-601"></a><span class="cm"> * - mode area</span>
+<a id="line-602" name="line-602"></a><span class="cm"> * - refresh rate</span>
+<a id="line-603" name="line-603"></a><span class="cm"> * - We may want to extend randrwrap so that get_preferred</span>
+<a id="line-604" name="line-604"></a><span class="cm"> * returns that - although that could also depend on</span>
+<a id="line-605" name="line-605"></a><span class="cm"> * the crtc.</span>
+<a id="line-606" name="line-606"></a><span class="cm"> */</span>
+<a id="line-607" name="line-607"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">modes</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span>
+<a id="line-608" name="line-608"></a><span class="w"> </span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">modes</span><span class="p">[</span><span class="mi">0</span><span class="p">];</span>
+<a id="line-609" name="line-609"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-610" name="line-610"></a>
+<a id="line-611" name="line-611"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="p">)</span>
+<a id="line-612" name="line-612"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-613" name="line-613"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">pref_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_mode_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="p">);</span>
+<a id="line-614" name="line-614"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">pref_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_mode_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="p">);</span>
+<a id="line-615" name="line-615"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-616" name="line-616"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-617" name="line-617"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-618" name="line-618"></a><span class="w"> </span><span class="cm">/* Pick some random numbers. This should basically never happen */</span>
+<a id="line-619" name="line-619"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">pref_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1024</span><span class="p">;</span>
+<a id="line-620" name="line-620"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">pref_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">768</span><span class="p">;</span>
+<a id="line-621" name="line-621"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-622" name="line-622"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-623" name="line-623"></a>
+<a id="line-624" name="line-624"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">primary</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_output_get_is_primary</span><span class="w"> </span><span class="p">(</span><span class="n">rr_output</span><span class="p">);</span>
+<a id="line-625" name="line-625"></a>
+<a id="line-626" name="line-626"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="p">);</span>
+<a id="line-627" name="line-627"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-628" name="line-628"></a>
+<a id="line-629" name="line-629"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-630" name="line-630"></a>
+<a id="line-631" name="line-631"></a><span class="w"> </span><span class="n">config</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">**</span><span class="p">)</span><span class="n">g_ptr_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-632" name="line-632"></a>
+<a id="line-633" name="line-633"></a><span class="w"> </span><span class="cm">/* Walk the outputs computing the right-most edge of all</span>
+<a id="line-634" name="line-634"></a><span class="cm"> * lit-up displays</span>
+<a id="line-635" name="line-635"></a><span class="cm"> */</span>
+<a id="line-636" name="line-636"></a><span class="w"> </span><span class="n">last_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-637" name="line-637"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">config</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-638" name="line-638"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-639" name="line-639"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">config</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-640" name="line-640"></a>
+<a id="line-641" name="line-641"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">on</span><span class="p">)</span>
+<a id="line-642" name="line-642"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-643" name="line-643"></a><span class="w"> </span><span class="n">last_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MAX</span><span class="w"> </span><span class="p">(</span><span class="n">last_x</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">x</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">width</span><span class="p">);</span>
+<a id="line-644" name="line-644"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-645" name="line-645"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-646" name="line-646"></a>
+<a id="line-647" name="line-647"></a><span class="w"> </span><span class="cm">/* Now position all off displays to the right of the</span>
+<a id="line-648" name="line-648"></a><span class="cm"> * on displays</span>
+<a id="line-649" name="line-649"></a><span class="cm"> */</span>
+<a id="line-650" name="line-650"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">config</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-651" name="line-651"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-652" name="line-652"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">config</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-653" name="line-653"></a>
+<a id="line-654" name="line-654"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">connected</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">!</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">on</span><span class="p">)</span>
+<a id="line-655" name="line-655"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-656" name="line-656"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">last_x</span><span class="p">;</span>
+<a id="line-657" name="line-657"></a><span class="w"> </span><span class="n">last_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">x</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">width</span><span class="p">;</span>
+<a id="line-658" name="line-658"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-659" name="line-659"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-660" name="line-660"></a>
+<a id="line-661" name="line-661"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">mate_rr_config_match</span><span class="w"> </span><span class="p">(</span><span class="n">config</span><span class="p">,</span><span class="w"> </span><span class="n">config</span><span class="p">));</span>
+<a id="line-662" name="line-662"></a>
+<a id="line-663" name="line-663"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-664" name="line-664"></a><span class="p">}</span>
+<a id="line-665" name="line-665"></a>
+<a id="line-666" name="line-666"></a><span class="n">gboolean</span>
+<a id="line-667" name="line-667"></a><span class="nf">mate_rr_config_load_filename</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-668" name="line-668"></a><span class="p">{</span>
+<a id="line-669" name="line-669"></a><span class="w"> </span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">current</span><span class="p">;</span>
+<a id="line-670" name="line-670"></a><span class="w"> </span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">**</span><span class="n">configs</span><span class="p">;</span>
+<a id="line-671" name="line-671"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">found</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-672" name="line-672"></a>
+<a id="line-673" name="line-673"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_CONFIG</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-674" name="line-674"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-675" name="line-675"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-676" name="line-676"></a>
+<a id="line-677" name="line-677"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-678" name="line-678"></a><span class="w"> </span><span class="n">filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_config_get_intended_filename</span><span class="w"> </span><span class="p">();</span>
+<a id="line-679" name="line-679"></a>
+<a id="line-680" name="line-680"></a><span class="w"> </span><span class="n">current</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_config_new_current</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-681" name="line-681"></a>
+<a id="line-682" name="line-682"></a><span class="w"> </span><span class="n">configs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">configurations_read_from_file</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-683" name="line-683"></a>
+<a id="line-684" name="line-684"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">configs</span><span class="p">)</span>
+<a id="line-685" name="line-685"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-686" name="line-686"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-687" name="line-687"></a>
+<a id="line-688" name="line-688"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">configs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-689" name="line-689"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-690" name="line-690"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mate_rr_config_match</span><span class="w"> </span><span class="p">(</span><span class="n">configs</span><span class="p">[</span><span class="n">i</span><span class="p">],</span><span class="w"> </span><span class="n">current</span><span class="p">))</span>
+<a id="line-691" name="line-691"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-692" name="line-692"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">j</span><span class="p">;</span>
+<a id="line-693" name="line-693"></a><span class="w"> </span><span class="n">GPtrArray</span><span class="w"> </span><span class="o">*</span><span class="n">array</span><span class="p">;</span>
+<a id="line-694" name="line-694"></a><span class="w"> </span><span class="n">result</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">clone</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">configs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">clone</span><span class="p">;</span>
+<a id="line-695" name="line-695"></a>
+<a id="line-696" name="line-696"></a><span class="w"> </span><span class="n">array</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-697" name="line-697"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">configs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">j</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-698" name="line-698"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">configs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">j</span><span class="p">]);</span>
+<a id="line-699" name="line-699"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">array</span><span class="p">,</span><span class="w"> </span><span class="n">configs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">j</span><span class="p">]);</span>
+<a id="line-700" name="line-700"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-701" name="line-701"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">array</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-702" name="line-702"></a><span class="w"> </span><span class="n">result</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">**</span><span class="p">)</span><span class="w"> </span><span class="n">g_ptr_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">array</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-703" name="line-703"></a>
+<a id="line-704" name="line-704"></a><span class="w"> </span><span class="n">found</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-705" name="line-705"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-706" name="line-706"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-707" name="line-707"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">configs</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span>
+<a id="line-708" name="line-708"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-709" name="line-709"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">configs</span><span class="p">);</span>
+<a id="line-710" name="line-710"></a>
+<a id="line-711" name="line-711"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">found</span><span class="p">)</span>
+<a id="line-712" name="line-712"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR_NO_MATCHING_CONFIG</span><span class="p">,</span>
+<a id="line-713" name="line-713"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;none of the saved display configurations matched the active configuration&quot;</span><span class="p">));</span>
+<a id="line-714" name="line-714"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-715" name="line-715"></a>
+<a id="line-716" name="line-716"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">current</span><span class="p">);</span>
+<a id="line-717" name="line-717"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">found</span><span class="p">;</span>
+<a id="line-718" name="line-718"></a><span class="p">}</span>
+<a id="line-719" name="line-719"></a>
+<a id="line-720" name="line-720"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-721" name="line-721"></a><span class="nf">mate_rr_config_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfigClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span>
+<a id="line-722" name="line-722"></a><span class="p">{</span>
+<a id="line-723" name="line-723"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">gobject_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">klass</span><span class="p">);</span>
+<a id="line-724" name="line-724"></a>
+<a id="line-725" name="line-725"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_config_set_property</span><span class="p">;</span>
+<a id="line-726" name="line-726"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_config_finalize</span><span class="p">;</span>
+<a id="line-727" name="line-727"></a>
+<a id="line-728" name="line-728"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">,</span><span class="w"> </span><span class="n">PROP_SCREEN</span><span class="p">,</span>
+<a id="line-729" name="line-729"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;screen&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Screen&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;The MateRRScreen this config applies to&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_TYPE_RR_SCREEN</span><span class="p">,</span>
+<a id="line-730" name="line-730"></a><span class="w"> </span><span class="n">G_PARAM_WRITABLE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span>
+<a id="line-731" name="line-731"></a><span class="p">}</span>
+<a id="line-732" name="line-732"></a>
+<a id="line-733" name="line-733"></a><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span>
+<a id="line-734" name="line-734"></a><span class="nf">mate_rr_config_new_current</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-735" name="line-735"></a><span class="p">{</span>
+<a id="line-736" name="line-736"></a><span class="w"> </span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_TYPE_RR_CONFIG</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;screen&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-737" name="line-737"></a>
+<a id="line-738" name="line-738"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mate_rr_config_load_current</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">))</span>
+<a id="line-739" name="line-739"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">self</span><span class="p">;</span>
+<a id="line-740" name="line-740"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-741" name="line-741"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-742" name="line-742"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">);</span>
+<a id="line-743" name="line-743"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-744" name="line-744"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-745" name="line-745"></a><span class="p">}</span>
+<a id="line-746" name="line-746"></a>
+<a id="line-747" name="line-747"></a><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span>
+<a id="line-748" name="line-748"></a><span class="nf">mate_rr_config_new_stored</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-749" name="line-749"></a><span class="p">{</span>
+<a id="line-750" name="line-750"></a><span class="w"> </span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_TYPE_RR_CONFIG</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;screen&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-751" name="line-751"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">;</span>
+<a id="line-752" name="line-752"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">success</span><span class="p">;</span>
+<a id="line-753" name="line-753"></a>
+<a id="line-754" name="line-754"></a><span class="w"> </span><span class="n">filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_config_get_intended_filename</span><span class="w"> </span><span class="p">();</span>
+<a id="line-755" name="line-755"></a>
+<a id="line-756" name="line-756"></a><span class="w"> </span><span class="n">success</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_config_load_filename</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-757" name="line-757"></a>
+<a id="line-758" name="line-758"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-759" name="line-759"></a>
+<a id="line-760" name="line-760"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">success</span><span class="p">)</span>
+<a id="line-761" name="line-761"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">self</span><span class="p">;</span>
+<a id="line-762" name="line-762"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-763" name="line-763"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-764" name="line-764"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">);</span>
+<a id="line-765" name="line-765"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-766" name="line-766"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-767" name="line-767"></a><span class="p">}</span>
+<a id="line-768" name="line-768"></a>
+<a id="line-769" name="line-769"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-770" name="line-770"></a><span class="nf">parse_file_gmarkup</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">,</span>
+<a id="line-771" name="line-771"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GMarkupParser</span><span class="w"> </span><span class="o">*</span><span class="n">parser</span><span class="p">,</span>
+<a id="line-772" name="line-772"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">,</span>
+<a id="line-773" name="line-773"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">err</span><span class="p">)</span>
+<a id="line-774" name="line-774"></a><span class="p">{</span>
+<a id="line-775" name="line-775"></a><span class="w"> </span><span class="n">GMarkupParseContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-776" name="line-776"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">contents</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-777" name="line-777"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-778" name="line-778"></a><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">len</span><span class="p">;</span>
+<a id="line-779" name="line-779"></a>
+<a id="line-780" name="line-780"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_file_get_contents</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">contents</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">len</span><span class="p">,</span><span class="w"> </span><span class="n">err</span><span class="p">))</span>
+<a id="line-781" name="line-781"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-782" name="line-782"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-783" name="line-783"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span>
+<a id="line-784" name="line-784"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-785" name="line-785"></a>
+<a id="line-786" name="line-786"></a><span class="w"> </span><span class="n">context</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_markup_parse_context_new</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-787" name="line-787"></a>
+<a id="line-788" name="line-788"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_markup_parse_context_parse</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">,</span><span class="w"> </span><span class="n">contents</span><span class="p">,</span><span class="w"> </span><span class="n">len</span><span class="p">,</span><span class="w"> </span><span class="n">err</span><span class="p">))</span>
+<a id="line-789" name="line-789"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-790" name="line-790"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-791" name="line-791"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span>
+<a id="line-792" name="line-792"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-793" name="line-793"></a>
+<a id="line-794" name="line-794"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_markup_parse_context_end_parse</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">,</span><span class="w"> </span><span class="n">err</span><span class="p">))</span>
+<a id="line-795" name="line-795"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-796" name="line-796"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-797" name="line-797"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span>
+<a id="line-798" name="line-798"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-799" name="line-799"></a>
+<a id="line-800" name="line-800"></a><span class="nl">out</span><span class="p">:</span>
+<a id="line-801" name="line-801"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">contents</span><span class="p">)</span>
+<a id="line-802" name="line-802"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">contents</span><span class="p">);</span>
+<a id="line-803" name="line-803"></a>
+<a id="line-804" name="line-804"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">)</span>
+<a id="line-805" name="line-805"></a><span class="w"> </span><span class="n">g_markup_parse_context_free</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">);</span>
+<a id="line-806" name="line-806"></a>
+<a id="line-807" name="line-807"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-808" name="line-808"></a><span class="p">}</span>
+<a id="line-809" name="line-809"></a>
+<a id="line-810" name="line-810"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-811" name="line-811"></a><span class="nf">output_match</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">output1</span><span class="p">,</span><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">output2</span><span class="p">)</span>
+<a id="line-812" name="line-812"></a><span class="p">{</span>
+<a id="line-813" name="line-813"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_OUTPUT_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">output1</span><span class="p">));</span>
+<a id="line-814" name="line-814"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_OUTPUT_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">output2</span><span class="p">));</span>
+<a id="line-815" name="line-815"></a>
+<a id="line-816" name="line-816"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">output1</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">output2</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-817" name="line-817"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-818" name="line-818"></a>
+<a id="line-819" name="line-819"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">output1</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="p">,</span><span class="w"> </span><span class="n">output2</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-820" name="line-820"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-821" name="line-821"></a>
+<a id="line-822" name="line-822"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">output1</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">product</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">output2</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">product</span><span class="p">)</span>
+<a id="line-823" name="line-823"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-824" name="line-824"></a>
+<a id="line-825" name="line-825"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">output1</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">serial</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">output2</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">serial</span><span class="p">)</span>
+<a id="line-826" name="line-826"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-827" name="line-827"></a>
+<a id="line-828" name="line-828"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">output1</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">connected</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">output2</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">connected</span><span class="p">)</span>
+<a id="line-829" name="line-829"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-830" name="line-830"></a>
+<a id="line-831" name="line-831"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-832" name="line-832"></a><span class="p">}</span>
+<a id="line-833" name="line-833"></a>
+<a id="line-834" name="line-834"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-835" name="line-835"></a><span class="nf">output_equal</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">output1</span><span class="p">,</span><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">output2</span><span class="p">)</span>
+<a id="line-836" name="line-836"></a><span class="p">{</span>
+<a id="line-837" name="line-837"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_OUTPUT_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">output1</span><span class="p">));</span>
+<a id="line-838" name="line-838"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_OUTPUT_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">output2</span><span class="p">));</span>
+<a id="line-839" name="line-839"></a>
+<a id="line-840" name="line-840"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">output_match</span><span class="w"> </span><span class="p">(</span><span class="n">output1</span><span class="p">,</span><span class="w"> </span><span class="n">output2</span><span class="p">))</span>
+<a id="line-841" name="line-841"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-842" name="line-842"></a>
+<a id="line-843" name="line-843"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">output1</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">on</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">output2</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">on</span><span class="p">)</span>
+<a id="line-844" name="line-844"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-845" name="line-845"></a>
+<a id="line-846" name="line-846"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">output1</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">on</span><span class="p">)</span>
+<a id="line-847" name="line-847"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-848" name="line-848"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">output1</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">width</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">output2</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">width</span><span class="p">)</span>
+<a id="line-849" name="line-849"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-850" name="line-850"></a>
+<a id="line-851" name="line-851"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">output1</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">height</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">output2</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">height</span><span class="p">)</span>
+<a id="line-852" name="line-852"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-853" name="line-853"></a>
+<a id="line-854" name="line-854"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">output1</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rate</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">output2</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rate</span><span class="p">)</span>
+<a id="line-855" name="line-855"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-856" name="line-856"></a>
+<a id="line-857" name="line-857"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">output1</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">x</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">output2</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">x</span><span class="p">)</span>
+<a id="line-858" name="line-858"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-859" name="line-859"></a>
+<a id="line-860" name="line-860"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">output1</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">y</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">output2</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">y</span><span class="p">)</span>
+<a id="line-861" name="line-861"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-862" name="line-862"></a>
+<a id="line-863" name="line-863"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">output1</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">output2</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="p">)</span>
+<a id="line-864" name="line-864"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-865" name="line-865"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-866" name="line-866"></a>
+<a id="line-867" name="line-867"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-868" name="line-868"></a><span class="p">}</span>
+<a id="line-869" name="line-869"></a>
+<a id="line-870" name="line-870"></a><span class="k">static</span><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span>
+<a id="line-871" name="line-871"></a><span class="nf">find_output</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">config</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">)</span>
+<a id="line-872" name="line-872"></a><span class="p">{</span>
+<a id="line-873" name="line-873"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-874" name="line-874"></a>
+<a id="line-875" name="line-875"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">config</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-876" name="line-876"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-877" name="line-877"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">config</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-878" name="line-878"></a>
+<a id="line-879" name="line-879"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-880" name="line-880"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">output</span><span class="p">;</span>
+<a id="line-881" name="line-881"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-882" name="line-882"></a>
+<a id="line-883" name="line-883"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-884" name="line-884"></a><span class="p">}</span>
+<a id="line-885" name="line-885"></a>
+<a id="line-886" name="line-886"></a><span class="cm">/* Match means &quot;these configurations apply to the same hardware</span>
+<a id="line-887" name="line-887"></a><span class="cm"> * setups&quot;</span>
+<a id="line-888" name="line-888"></a><span class="cm"> */</span>
+<a id="line-889" name="line-889"></a><span class="n">gboolean</span>
+<a id="line-890" name="line-890"></a><span class="nf">mate_rr_config_match</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">c1</span><span class="p">,</span><span class="w"> </span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">c2</span><span class="p">)</span>
+<a id="line-891" name="line-891"></a><span class="p">{</span>
+<a id="line-892" name="line-892"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-893" name="line-893"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_CONFIG</span><span class="w"> </span><span class="p">(</span><span class="n">c1</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-894" name="line-894"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_CONFIG</span><span class="w"> </span><span class="p">(</span><span class="n">c2</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-895" name="line-895"></a>
+<a id="line-896" name="line-896"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">c1</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-897" name="line-897"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-898" name="line-898"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">output1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">c1</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-899" name="line-899"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">output2</span><span class="p">;</span>
+<a id="line-900" name="line-900"></a>
+<a id="line-901" name="line-901"></a><span class="w"> </span><span class="n">output2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">find_output</span><span class="w"> </span><span class="p">(</span><span class="n">c2</span><span class="p">,</span><span class="w"> </span><span class="n">output1</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">);</span>
+<a id="line-902" name="line-902"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">output2</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">output_match</span><span class="w"> </span><span class="p">(</span><span class="n">output1</span><span class="p">,</span><span class="w"> </span><span class="n">output2</span><span class="p">))</span>
+<a id="line-903" name="line-903"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-904" name="line-904"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-905" name="line-905"></a>
+<a id="line-906" name="line-906"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-907" name="line-907"></a><span class="p">}</span>
+<a id="line-908" name="line-908"></a>
+<a id="line-909" name="line-909"></a><span class="cm">/* Equal means &quot;the configurations will result in the same</span>
+<a id="line-910" name="line-910"></a><span class="cm"> * modes being set on the outputs&quot;</span>
+<a id="line-911" name="line-911"></a><span class="cm"> */</span>
+<a id="line-912" name="line-912"></a><span class="n">gboolean</span>
+<a id="line-913" name="line-913"></a><span class="nf">mate_rr_config_equal</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">c1</span><span class="p">,</span>
+<a id="line-914" name="line-914"></a><span class="w"> </span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">c2</span><span class="p">)</span>
+<a id="line-915" name="line-915"></a><span class="p">{</span>
+<a id="line-916" name="line-916"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-917" name="line-917"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_CONFIG</span><span class="w"> </span><span class="p">(</span><span class="n">c1</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-918" name="line-918"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_CONFIG</span><span class="w"> </span><span class="p">(</span><span class="n">c2</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-919" name="line-919"></a>
+<a id="line-920" name="line-920"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">c1</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-921" name="line-921"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-922" name="line-922"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">output1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">c1</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-923" name="line-923"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">output2</span><span class="p">;</span>
+<a id="line-924" name="line-924"></a>
+<a id="line-925" name="line-925"></a><span class="w"> </span><span class="n">output2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">find_output</span><span class="w"> </span><span class="p">(</span><span class="n">c2</span><span class="p">,</span><span class="w"> </span><span class="n">output1</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">);</span>
+<a id="line-926" name="line-926"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">output2</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">output_equal</span><span class="w"> </span><span class="p">(</span><span class="n">output1</span><span class="p">,</span><span class="w"> </span><span class="n">output2</span><span class="p">))</span>
+<a id="line-927" name="line-927"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-928" name="line-928"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-929" name="line-929"></a>
+<a id="line-930" name="line-930"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-931" name="line-931"></a><span class="p">}</span>
+<a id="line-932" name="line-932"></a>
+<a id="line-933" name="line-933"></a><span class="k">static</span><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">**</span>
+<a id="line-934" name="line-934"></a><span class="nf">make_outputs</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">config</span><span class="p">)</span>
+<a id="line-935" name="line-935"></a><span class="p">{</span>
+<a id="line-936" name="line-936"></a><span class="w"> </span><span class="n">GPtrArray</span><span class="w"> </span><span class="o">*</span><span class="n">outputs</span><span class="p">;</span>
+<a id="line-937" name="line-937"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">first_on</span><span class="p">;</span>
+<a id="line-938" name="line-938"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-939" name="line-939"></a>
+<a id="line-940" name="line-940"></a><span class="w"> </span><span class="n">outputs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-941" name="line-941"></a>
+<a id="line-942" name="line-942"></a><span class="w"> </span><span class="n">first_on</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-943" name="line-943"></a>
+<a id="line-944" name="line-944"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">config</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-945" name="line-945"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-946" name="line-946"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">old</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">config</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-947" name="line-947"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">new</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_TYPE_RR_OUTPUT_INFO</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-948" name="line-948"></a><span class="w"> </span><span class="o">*</span><span class="p">(</span><span class="n">new</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">)</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="p">(</span><span class="n">old</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">);</span>
+<a id="line-949" name="line-949"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">old</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">)</span>
+<a id="line-950" name="line-950"></a><span class="w"> </span><span class="n">new</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">old</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">);</span>
+<a id="line-951" name="line-951"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">old</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">display_name</span><span class="p">)</span>
+<a id="line-952" name="line-952"></a><span class="w"> </span><span class="n">new</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">display_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">old</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">display_name</span><span class="p">);</span>
+<a id="line-953" name="line-953"></a>
+<a id="line-954" name="line-954"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">old</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">on</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">!</span><span class="n">first_on</span><span class="p">)</span>
+<a id="line-955" name="line-955"></a><span class="w"> </span><span class="n">first_on</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">old</span><span class="p">;</span>
+<a id="line-956" name="line-956"></a>
+<a id="line-957" name="line-957"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">config</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">clone</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">new</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">on</span><span class="p">)</span>
+<a id="line-958" name="line-958"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-959" name="line-959"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">first_on</span><span class="p">);</span>
+<a id="line-960" name="line-960"></a>
+<a id="line-961" name="line-961"></a><span class="w"> </span><span class="n">new</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">first_on</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">width</span><span class="p">;</span>
+<a id="line-962" name="line-962"></a><span class="w"> </span><span class="n">new</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">first_on</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">height</span><span class="p">;</span>
+<a id="line-963" name="line-963"></a><span class="w"> </span><span class="n">new</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">first_on</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="p">;</span>
+<a id="line-964" name="line-964"></a><span class="w"> </span><span class="n">new</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-965" name="line-965"></a><span class="w"> </span><span class="n">new</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-966" name="line-966"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-967" name="line-967"></a>
+<a id="line-968" name="line-968"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">outputs</span><span class="p">,</span><span class="w"> </span><span class="n">new</span><span class="p">);</span>
+<a id="line-969" name="line-969"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-970" name="line-970"></a>
+<a id="line-971" name="line-971"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">outputs</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-972" name="line-972"></a>
+<a id="line-973" name="line-973"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">**</span><span class="p">)</span><span class="n">g_ptr_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">outputs</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-974" name="line-974"></a><span class="p">}</span>
+<a id="line-975" name="line-975"></a>
+<a id="line-976" name="line-976"></a><span class="n">gboolean</span>
+<a id="line-977" name="line-977"></a><span class="nf">mate_rr_config_applicable</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">configuration</span><span class="p">,</span>
+<a id="line-978" name="line-978"></a><span class="w"> </span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-979" name="line-979"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-980" name="line-980"></a><span class="p">{</span>
+<a id="line-981" name="line-981"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">**</span><span class="n">outputs</span><span class="p">;</span>
+<a id="line-982" name="line-982"></a><span class="w"> </span><span class="n">CrtcAssignment</span><span class="w"> </span><span class="o">*</span><span class="n">assign</span><span class="p">;</span>
+<a id="line-983" name="line-983"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-984" name="line-984"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-985" name="line-985"></a>
+<a id="line-986" name="line-986"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_CONFIG</span><span class="w"> </span><span class="p">(</span><span class="n">configuration</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-987" name="line-987"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_SCREEN</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-988" name="line-988"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-989" name="line-989"></a>
+<a id="line-990" name="line-990"></a><span class="w"> </span><span class="n">outputs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">make_outputs</span><span class="w"> </span><span class="p">(</span><span class="n">configuration</span><span class="p">);</span>
+<a id="line-991" name="line-991"></a><span class="w"> </span><span class="n">assign</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">crtc_assignment_new</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">outputs</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-992" name="line-992"></a>
+<a id="line-993" name="line-993"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">assign</span><span class="p">)</span>
+<a id="line-994" name="line-994"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-995" name="line-995"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-996" name="line-996"></a><span class="w"> </span><span class="n">crtc_assignment_free</span><span class="w"> </span><span class="p">(</span><span class="n">assign</span><span class="p">);</span>
+<a id="line-997" name="line-997"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-998" name="line-998"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-999" name="line-999"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1000" name="line-1000"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1001" name="line-1001"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1002" name="line-1002"></a>
+<a id="line-1003" name="line-1003"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1004" name="line-1004"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span>
+<a id="line-1005" name="line-1005"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1006" name="line-1006"></a>
+<a id="line-1007" name="line-1007"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-1008" name="line-1008"></a><span class="p">}</span>
+<a id="line-1009" name="line-1009"></a>
+<a id="line-1010" name="line-1010"></a><span class="cm">/* Database management */</span>
+<a id="line-1011" name="line-1011"></a>
+<a id="line-1012" name="line-1012"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1013" name="line-1013"></a><span class="nf">ensure_config_directory</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-1014" name="line-1014"></a><span class="p">{</span>
+<a id="line-1015" name="line-1015"></a><span class="w"> </span><span class="n">g_mkdir_with_parents</span><span class="w"> </span><span class="p">(</span><span class="n">g_get_user_config_dir</span><span class="w"> </span><span class="p">(),</span><span class="w"> </span><span class="mo">0700</span><span class="p">);</span>
+<a id="line-1016" name="line-1016"></a><span class="p">}</span>
+<a id="line-1017" name="line-1017"></a>
+<a id="line-1018" name="line-1018"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1019" name="line-1019"></a><span class="nf">mate_rr_config_get_backup_filename</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-1020" name="line-1020"></a><span class="p">{</span>
+<a id="line-1021" name="line-1021"></a><span class="w"> </span><span class="n">ensure_config_directory</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1022" name="line-1022"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_build_filename</span><span class="w"> </span><span class="p">(</span><span class="n">g_get_user_config_dir</span><span class="w"> </span><span class="p">(),</span><span class="w"> </span><span class="n">CONFIG_BACKUP_BASENAME</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1023" name="line-1023"></a><span class="p">}</span>
+<a id="line-1024" name="line-1024"></a>
+<a id="line-1025" name="line-1025"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1026" name="line-1026"></a><span class="nf">mate_rr_config_get_intended_filename</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-1027" name="line-1027"></a><span class="p">{</span>
+<a id="line-1028" name="line-1028"></a><span class="w"> </span><span class="n">ensure_config_directory</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1029" name="line-1029"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_build_filename</span><span class="w"> </span><span class="p">(</span><span class="n">g_get_user_config_dir</span><span class="w"> </span><span class="p">(),</span><span class="w"> </span><span class="n">CONFIG_INTENDED_BASENAME</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1030" name="line-1030"></a><span class="p">}</span>
+<a id="line-1031" name="line-1031"></a>
+<a id="line-1032" name="line-1032"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1033" name="line-1033"></a><span class="nf">get_rotation_name</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRRotation</span><span class="w"> </span><span class="n">r</span><span class="p">)</span>
+<a id="line-1034" name="line-1034"></a><span class="p">{</span>
+<a id="line-1035" name="line-1035"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">r</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">MATE_RR_ROTATION_0</span><span class="p">)</span>
+<a id="line-1036" name="line-1036"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="s">&quot;normal&quot;</span><span class="p">;</span>
+<a id="line-1037" name="line-1037"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">r</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">MATE_RR_ROTATION_90</span><span class="p">)</span>
+<a id="line-1038" name="line-1038"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="s">&quot;left&quot;</span><span class="p">;</span>
+<a id="line-1039" name="line-1039"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">r</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">MATE_RR_ROTATION_180</span><span class="p">)</span>
+<a id="line-1040" name="line-1040"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="s">&quot;upside_down&quot;</span><span class="p">;</span>
+<a id="line-1041" name="line-1041"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">r</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">MATE_RR_ROTATION_270</span><span class="p">)</span>
+<a id="line-1042" name="line-1042"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="s">&quot;right&quot;</span><span class="p">;</span>
+<a id="line-1043" name="line-1043"></a>
+<a id="line-1044" name="line-1044"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="s">&quot;normal&quot;</span><span class="p">;</span>
+<a id="line-1045" name="line-1045"></a><span class="p">}</span>
+<a id="line-1046" name="line-1046"></a>
+<a id="line-1047" name="line-1047"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1048" name="line-1048"></a><span class="nf">yes_no</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">x</span><span class="p">)</span>
+<a id="line-1049" name="line-1049"></a><span class="p">{</span>
+<a id="line-1050" name="line-1050"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">x</span><span class="o">?</span><span class="w"> </span><span class="s">&quot;yes&quot;</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="s">&quot;no&quot;</span><span class="p">;</span>
+<a id="line-1051" name="line-1051"></a><span class="p">}</span>
+<a id="line-1052" name="line-1052"></a>
+<a id="line-1053" name="line-1053"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1054" name="line-1054"></a><span class="nf">get_reflect_x</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRRotation</span><span class="w"> </span><span class="n">r</span><span class="p">)</span>
+<a id="line-1055" name="line-1055"></a><span class="p">{</span>
+<a id="line-1056" name="line-1056"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">yes_no</span><span class="w"> </span><span class="p">(</span><span class="n">r</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">MATE_RR_REFLECT_X</span><span class="p">);</span>
+<a id="line-1057" name="line-1057"></a><span class="p">}</span>
+<a id="line-1058" name="line-1058"></a>
+<a id="line-1059" name="line-1059"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1060" name="line-1060"></a><span class="nf">get_reflect_y</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRRotation</span><span class="w"> </span><span class="n">r</span><span class="p">)</span>
+<a id="line-1061" name="line-1061"></a><span class="p">{</span>
+<a id="line-1062" name="line-1062"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">yes_no</span><span class="w"> </span><span class="p">(</span><span class="n">r</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">MATE_RR_REFLECT_Y</span><span class="p">);</span>
+<a id="line-1063" name="line-1063"></a><span class="p">}</span>
+<a id="line-1064" name="line-1064"></a>
+<a id="line-1065" name="line-1065"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1066" name="line-1066"></a><span class="nf">emit_configuration</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">config</span><span class="p">,</span>
+<a id="line-1067" name="line-1067"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">string</span><span class="p">)</span>
+<a id="line-1068" name="line-1068"></a><span class="p">{</span>
+<a id="line-1069" name="line-1069"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">j</span><span class="p">;</span>
+<a id="line-1070" name="line-1070"></a>
+<a id="line-1071" name="line-1071"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">&quot; &lt;configuration&gt;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">);</span>
+<a id="line-1072" name="line-1072"></a>
+<a id="line-1073" name="line-1073"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">&quot; &lt;clone&gt;%s&lt;/clone&gt;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">yes_no</span><span class="w"> </span><span class="p">(</span><span class="n">config</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">clone</span><span class="p">));</span>
+<a id="line-1074" name="line-1074"></a>
+<a id="line-1075" name="line-1075"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">config</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">j</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">j</span><span class="p">)</span>
+<a id="line-1076" name="line-1076"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1077" name="line-1077"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">config</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">j</span><span class="p">];</span>
+<a id="line-1078" name="line-1078"></a>
+<a id="line-1079" name="line-1079"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span>
+<a id="line-1080" name="line-1080"></a><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">&quot; &lt;output name=</span><span class="se">\&quot;</span><span class="s">%s</span><span class="se">\&quot;</span><span class="s">&gt;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">);</span>
+<a id="line-1081" name="line-1081"></a>
+<a id="line-1082" name="line-1082"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">connected</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">)</span>
+<a id="line-1083" name="line-1083"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1084" name="line-1084"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span>
+<a id="line-1085" name="line-1085"></a><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">&quot; &lt;vendor&gt;%s&lt;/vendor&gt;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="p">);</span>
+<a id="line-1086" name="line-1086"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span>
+<a id="line-1087" name="line-1087"></a><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">&quot; &lt;product&gt;0x%04x&lt;/product&gt;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">product</span><span class="p">);</span>
+<a id="line-1088" name="line-1088"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span>
+<a id="line-1089" name="line-1089"></a><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">&quot; &lt;serial&gt;0x%08x&lt;/serial&gt;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">serial</span><span class="p">);</span>
+<a id="line-1090" name="line-1090"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1091" name="line-1091"></a>
+<a id="line-1092" name="line-1092"></a><span class="w"> </span><span class="cm">/* An unconnected output which is on does not make sense */</span>
+<a id="line-1093" name="line-1093"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">connected</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">on</span><span class="p">)</span>
+<a id="line-1094" name="line-1094"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1095" name="line-1095"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span>
+<a id="line-1096" name="line-1096"></a><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">&quot; &lt;width&gt;%d&lt;/width&gt;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">width</span><span class="p">);</span>
+<a id="line-1097" name="line-1097"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span>
+<a id="line-1098" name="line-1098"></a><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">&quot; &lt;height&gt;%d&lt;/height&gt;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">height</span><span class="p">);</span>
+<a id="line-1099" name="line-1099"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span>
+<a id="line-1100" name="line-1100"></a><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">&quot; &lt;rate&gt;%d&lt;/rate&gt;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rate</span><span class="p">);</span>
+<a id="line-1101" name="line-1101"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span>
+<a id="line-1102" name="line-1102"></a><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">&quot; &lt;x&gt;%d&lt;/x&gt;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">x</span><span class="p">);</span>
+<a id="line-1103" name="line-1103"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span>
+<a id="line-1104" name="line-1104"></a><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">&quot; &lt;y&gt;%d&lt;/y&gt;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">y</span><span class="p">);</span>
+<a id="line-1105" name="line-1105"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span>
+<a id="line-1106" name="line-1106"></a><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">&quot; &lt;rotation&gt;%s&lt;/rotation&gt;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">get_rotation_name</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="p">));</span>
+<a id="line-1107" name="line-1107"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span>
+<a id="line-1108" name="line-1108"></a><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">&quot; &lt;reflect_x&gt;%s&lt;/reflect_x&gt;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">get_reflect_x</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="p">));</span>
+<a id="line-1109" name="line-1109"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span>
+<a id="line-1110" name="line-1110"></a><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">&quot; &lt;reflect_y&gt;%s&lt;/reflect_y&gt;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">get_reflect_y</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="p">));</span>
+<a id="line-1111" name="line-1111"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span>
+<a id="line-1112" name="line-1112"></a><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">&quot; &lt;primary&gt;%s&lt;/primary&gt;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">yes_no</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">primary</span><span class="p">));</span>
+<a id="line-1113" name="line-1113"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1114" name="line-1114"></a>
+<a id="line-1115" name="line-1115"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">&quot; &lt;/output&gt;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">);</span>
+<a id="line-1116" name="line-1116"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1117" name="line-1117"></a>
+<a id="line-1118" name="line-1118"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">&quot; &lt;/configuration&gt;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">);</span>
+<a id="line-1119" name="line-1119"></a><span class="p">}</span>
+<a id="line-1120" name="line-1120"></a>
+<a id="line-1121" name="line-1121"></a><span class="kt">void</span>
+<a id="line-1122" name="line-1122"></a><span class="nf">mate_rr_config_sanitize</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">config</span><span class="p">)</span>
+<a id="line-1123" name="line-1123"></a><span class="p">{</span>
+<a id="line-1124" name="line-1124"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-1125" name="line-1125"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x_offset</span><span class="p">,</span><span class="w"> </span><span class="n">y_offset</span><span class="p">;</span>
+<a id="line-1126" name="line-1126"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">found</span><span class="p">;</span>
+<a id="line-1127" name="line-1127"></a>
+<a id="line-1128" name="line-1128"></a><span class="w"> </span><span class="cm">/* Offset everything by the top/left-most coordinate to</span>
+<a id="line-1129" name="line-1129"></a><span class="cm"> * make sure the configuration starts at (0, 0)</span>
+<a id="line-1130" name="line-1130"></a><span class="cm"> */</span>
+<a id="line-1131" name="line-1131"></a><span class="w"> </span><span class="n">x_offset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">y_offset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_MAXINT</span><span class="p">;</span>
+<a id="line-1132" name="line-1132"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">config</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">];</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-1133" name="line-1133"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1134" name="line-1134"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">config</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-1135" name="line-1135"></a>
+<a id="line-1136" name="line-1136"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">on</span><span class="p">)</span>
+<a id="line-1137" name="line-1137"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1138" name="line-1138"></a><span class="w"> </span><span class="n">x_offset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MIN</span><span class="w"> </span><span class="p">(</span><span class="n">x_offset</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">x</span><span class="p">);</span>
+<a id="line-1139" name="line-1139"></a><span class="w"> </span><span class="n">y_offset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MIN</span><span class="w"> </span><span class="p">(</span><span class="n">y_offset</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">y</span><span class="p">);</span>
+<a id="line-1140" name="line-1140"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1141" name="line-1141"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1142" name="line-1142"></a>
+<a id="line-1143" name="line-1143"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">config</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">];</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-1144" name="line-1144"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1145" name="line-1145"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">config</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-1146" name="line-1146"></a>
+<a id="line-1147" name="line-1147"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">on</span><span class="p">)</span>
+<a id="line-1148" name="line-1148"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1149" name="line-1149"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">x</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="n">x_offset</span><span class="p">;</span>
+<a id="line-1150" name="line-1150"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">y</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="n">y_offset</span><span class="p">;</span>
+<a id="line-1151" name="line-1151"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1152" name="line-1152"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1153" name="line-1153"></a>
+<a id="line-1154" name="line-1154"></a><span class="w"> </span><span class="cm">/* Only one primary, please */</span>
+<a id="line-1155" name="line-1155"></a><span class="w"> </span><span class="n">found</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1156" name="line-1156"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">config</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">];</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-1157" name="line-1157"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1158" name="line-1158"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">config</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">primary</span><span class="p">)</span>
+<a id="line-1159" name="line-1159"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1160" name="line-1160"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">found</span><span class="p">)</span>
+<a id="line-1161" name="line-1161"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1162" name="line-1162"></a><span class="w"> </span><span class="n">config</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">primary</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1163" name="line-1163"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1164" name="line-1164"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1165" name="line-1165"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1166" name="line-1166"></a><span class="w"> </span><span class="n">found</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1167" name="line-1167"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1168" name="line-1168"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1169" name="line-1169"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1170" name="line-1170"></a><span class="p">}</span>
+<a id="line-1171" name="line-1171"></a>
+<a id="line-1172" name="line-1172"></a><span class="n">gboolean</span>
+<a id="line-1173" name="line-1173"></a><span class="nf">mate_rr_config_ensure_primary</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">configuration</span><span class="p">)</span>
+<a id="line-1174" name="line-1174"></a><span class="p">{</span>
+<a id="line-1175" name="line-1175"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-1176" name="line-1176"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">laptop</span><span class="p">;</span>
+<a id="line-1177" name="line-1177"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">top_left</span><span class="p">;</span>
+<a id="line-1178" name="line-1178"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">found</span><span class="p">;</span>
+<a id="line-1179" name="line-1179"></a><span class="w"> </span><span class="n">MateRRConfigPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-1180" name="line-1180"></a>
+<a id="line-1181" name="line-1181"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_CONFIG</span><span class="w"> </span><span class="p">(</span><span class="n">configuration</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1182" name="line-1182"></a>
+<a id="line-1183" name="line-1183"></a><span class="w"> </span><span class="n">laptop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1184" name="line-1184"></a><span class="w"> </span><span class="n">top_left</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1185" name="line-1185"></a><span class="w"> </span><span class="n">found</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1186" name="line-1186"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">configuration</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-1187" name="line-1187"></a>
+<a id="line-1188" name="line-1188"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1189" name="line-1189"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-1190" name="line-1190"></a>
+<a id="line-1191" name="line-1191"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">on</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1192" name="line-1192"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">primary</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1193" name="line-1193"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span>
+<a id="line-1194" name="line-1194"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1195" name="line-1195"></a>
+<a id="line-1196" name="line-1196"></a><span class="w"> </span><span class="cm">/* ensure only one */</span>
+<a id="line-1197" name="line-1197"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">primary</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1198" name="line-1198"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">found</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1199" name="line-1199"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">primary</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1200" name="line-1200"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1201" name="line-1201"></a><span class="w"> </span><span class="n">found</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1202" name="line-1202"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1203" name="line-1203"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1204" name="line-1204"></a>
+<a id="line-1205" name="line-1205"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">top_left</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span>
+<a id="line-1206" name="line-1206"></a><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">x</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">top_left</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">x</span>
+<a id="line-1207" name="line-1207"></a><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">y</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">top_left</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">y</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1208" name="line-1208"></a><span class="w"> </span><span class="n">top_left</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="p">;</span>
+<a id="line-1209" name="line-1209"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1210" name="line-1210"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">laptop</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span>
+<a id="line-1211" name="line-1211"></a><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">_mate_rr_output_name_is_laptop</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1212" name="line-1212"></a><span class="w"> </span><span class="n">laptop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="p">;</span>
+<a id="line-1213" name="line-1213"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1214" name="line-1214"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1215" name="line-1215"></a>
+<a id="line-1216" name="line-1216"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">found</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1217" name="line-1217"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">laptop</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1218" name="line-1218"></a><span class="w"> </span><span class="n">laptop</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">primary</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1219" name="line-1219"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">top_left</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1220" name="line-1220"></a><span class="w"> </span><span class="cm">/* Note: top_left can be NULL if all outputs are off */</span>
+<a id="line-1221" name="line-1221"></a><span class="w"> </span><span class="n">top_left</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">primary</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1222" name="line-1222"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1223" name="line-1223"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1224" name="line-1224"></a>
+<a id="line-1225" name="line-1225"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="o">!</span><span class="n">found</span><span class="p">;</span>
+<a id="line-1226" name="line-1226"></a><span class="p">}</span>
+<a id="line-1227" name="line-1227"></a>
+<a id="line-1228" name="line-1228"></a><span class="n">gboolean</span>
+<a id="line-1229" name="line-1229"></a><span class="nf">mate_rr_config_save</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">configuration</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-1230" name="line-1230"></a><span class="p">{</span>
+<a id="line-1231" name="line-1231"></a><span class="w"> </span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">**</span><span class="n">configurations</span><span class="p">;</span>
+<a id="line-1232" name="line-1232"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">;</span>
+<a id="line-1233" name="line-1233"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-1234" name="line-1234"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">intended_filename</span><span class="p">;</span>
+<a id="line-1235" name="line-1235"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">backup_filename</span><span class="p">;</span>
+<a id="line-1236" name="line-1236"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-1237" name="line-1237"></a>
+<a id="line-1238" name="line-1238"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_CONFIG</span><span class="w"> </span><span class="p">(</span><span class="n">configuration</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1239" name="line-1239"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1240" name="line-1240"></a>
+<a id="line-1241" name="line-1241"></a><span class="w"> </span><span class="n">output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&quot;</span><span class="p">);</span>
+<a id="line-1242" name="line-1242"></a>
+<a id="line-1243" name="line-1243"></a><span class="w"> </span><span class="n">backup_filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_config_get_backup_filename</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1244" name="line-1244"></a><span class="w"> </span><span class="n">intended_filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_config_get_intended_filename</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1245" name="line-1245"></a>
+<a id="line-1246" name="line-1246"></a><span class="w"> </span><span class="n">configurations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">configurations_read_from_file</span><span class="w"> </span><span class="p">(</span><span class="n">intended_filename</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"> </span><span class="cm">/* NULL-GError */</span>
+<a id="line-1247" name="line-1247"></a>
+<a id="line-1248" name="line-1248"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&lt;monitors version=</span><span class="se">\&quot;</span><span class="s">1</span><span class="se">\&quot;</span><span class="s">&gt;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">);</span>
+<a id="line-1249" name="line-1249"></a>
+<a id="line-1250" name="line-1250"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">configurations</span><span class="p">)</span>
+<a id="line-1251" name="line-1251"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1252" name="line-1252"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">configurations</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-1253" name="line-1253"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1254" name="line-1254"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mate_rr_config_match</span><span class="w"> </span><span class="p">(</span><span class="n">configurations</span><span class="p">[</span><span class="n">i</span><span class="p">],</span><span class="w"> </span><span class="n">configuration</span><span class="p">))</span>
+<a id="line-1255" name="line-1255"></a><span class="w"> </span><span class="n">emit_configuration</span><span class="w"> </span><span class="p">(</span><span class="n">configurations</span><span class="p">[</span><span class="n">i</span><span class="p">],</span><span class="w"> </span><span class="n">output</span><span class="p">);</span>
+<a id="line-1256" name="line-1256"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">configurations</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span>
+<a id="line-1257" name="line-1257"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1258" name="line-1258"></a>
+<a id="line-1259" name="line-1259"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">configurations</span><span class="p">);</span>
+<a id="line-1260" name="line-1260"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1261" name="line-1261"></a>
+<a id="line-1262" name="line-1262"></a><span class="w"> </span><span class="n">emit_configuration</span><span class="w"> </span><span class="p">(</span><span class="n">configuration</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="p">);</span>
+<a id="line-1263" name="line-1263"></a>
+<a id="line-1264" name="line-1264"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;&lt;/monitors&gt;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">);</span>
+<a id="line-1265" name="line-1265"></a>
+<a id="line-1266" name="line-1266"></a><span class="w"> </span><span class="cm">/* backup the file first */</span>
+<a id="line-1267" name="line-1267"></a><span class="w"> </span><span class="n">rename</span><span class="w"> </span><span class="p">(</span><span class="n">intended_filename</span><span class="p">,</span><span class="w"> </span><span class="n">backup_filename</span><span class="p">);</span><span class="w"> </span><span class="cm">/* no error checking because the intended file may not even exist */</span>
+<a id="line-1268" name="line-1268"></a>
+<a id="line-1269" name="line-1269"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_set_contents</span><span class="w"> </span><span class="p">(</span><span class="n">intended_filename</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-1270" name="line-1270"></a>
+<a id="line-1271" name="line-1271"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">result</span><span class="p">)</span>
+<a id="line-1272" name="line-1272"></a><span class="w"> </span><span class="n">rename</span><span class="w"> </span><span class="p">(</span><span class="n">backup_filename</span><span class="p">,</span><span class="w"> </span><span class="n">intended_filename</span><span class="p">);</span><span class="w"> </span><span class="cm">/* no error checking because the backup may not even exist */</span>
+<a id="line-1273" name="line-1273"></a>
+<a id="line-1274" name="line-1274"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">backup_filename</span><span class="p">);</span>
+<a id="line-1275" name="line-1275"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">intended_filename</span><span class="p">);</span>
+<a id="line-1276" name="line-1276"></a><span class="w"> </span><span class="n">g_string_free</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-1277" name="line-1277"></a>
+<a id="line-1278" name="line-1278"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-1279" name="line-1279"></a><span class="p">}</span>
+<a id="line-1280" name="line-1280"></a>
+<a id="line-1281" name="line-1281"></a><span class="n">gboolean</span>
+<a id="line-1282" name="line-1282"></a><span class="nf">mate_rr_config_apply_with_time</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">config</span><span class="p">,</span>
+<a id="line-1283" name="line-1283"></a><span class="w"> </span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-1284" name="line-1284"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">timestamp</span><span class="p">,</span>
+<a id="line-1285" name="line-1285"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-1286" name="line-1286"></a><span class="p">{</span>
+<a id="line-1287" name="line-1287"></a><span class="w"> </span><span class="n">CrtcAssignment</span><span class="w"> </span><span class="o">*</span><span class="n">assignment</span><span class="p">;</span>
+<a id="line-1288" name="line-1288"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">**</span><span class="n">outputs</span><span class="p">;</span>
+<a id="line-1289" name="line-1289"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1290" name="line-1290"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-1291" name="line-1291"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">;</span>
+<a id="line-1292" name="line-1292"></a>
+<a id="line-1293" name="line-1293"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_CONFIG</span><span class="w"> </span><span class="p">(</span><span class="n">config</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1294" name="line-1294"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_SCREEN</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1295" name="line-1295"></a>
+<a id="line-1296" name="line-1296"></a><span class="w"> </span><span class="n">outputs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">make_outputs</span><span class="w"> </span><span class="p">(</span><span class="n">config</span><span class="p">);</span>
+<a id="line-1297" name="line-1297"></a>
+<a id="line-1298" name="line-1298"></a><span class="w"> </span><span class="n">assignment</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">crtc_assignment_new</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">outputs</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-1299" name="line-1299"></a>
+<a id="line-1300" name="line-1300"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span>
+<a id="line-1301" name="line-1301"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span>
+<a id="line-1302" name="line-1302"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">outputs</span><span class="p">);</span>
+<a id="line-1303" name="line-1303"></a>
+<a id="line-1304" name="line-1304"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">assignment</span><span class="p">)</span>
+<a id="line-1305" name="line-1305"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1306" name="line-1306"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">crtc_assignment_apply</span><span class="w"> </span><span class="p">(</span><span class="n">assignment</span><span class="p">,</span><span class="w"> </span><span class="n">timestamp</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">))</span>
+<a id="line-1307" name="line-1307"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1308" name="line-1308"></a>
+<a id="line-1309" name="line-1309"></a><span class="w"> </span><span class="n">crtc_assignment_free</span><span class="w"> </span><span class="p">(</span><span class="n">assignment</span><span class="p">);</span>
+<a id="line-1310" name="line-1310"></a>
+<a id="line-1311" name="line-1311"></a><span class="w"> </span><span class="n">display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_display_get_default</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1312" name="line-1312"></a><span class="w"> </span><span class="n">gdk_display_flush</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-1313" name="line-1313"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1314" name="line-1314"></a>
+<a id="line-1315" name="line-1315"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-1316" name="line-1316"></a><span class="p">}</span>
+<a id="line-1317" name="line-1317"></a>
+<a id="line-1318" name="line-1318"></a><span class="cm">/* mate_rr_config_apply_from_filename_with_time:</span>
+<a id="line-1319" name="line-1319"></a><span class="cm"> * @screen: A #MateRRScreen</span>
+<a id="line-1320" name="line-1320"></a><span class="cm"> * @filename: Path of the file to look in for stored RANDR configurations.</span>
+<a id="line-1321" name="line-1321"></a><span class="cm"> * @timestamp: X server timestamp from the event that causes the screen configuration to change (a user&#39;s button press, for example)</span>
+<a id="line-1322" name="line-1322"></a><span class="cm"> * @error: Location to store error, or %NULL</span>
+<a id="line-1323" name="line-1323"></a><span class="cm"> *</span>
+<a id="line-1324" name="line-1324"></a><span class="cm"> * First, this function refreshes the @screen to match the current RANDR</span>
+<a id="line-1325" name="line-1325"></a><span class="cm"> * configuration from the X server. Then, it tries to load the file in</span>
+<a id="line-1326" name="line-1326"></a><span class="cm"> * @filename and looks for suitable matching RANDR configurations in the file;</span>
+<a id="line-1327" name="line-1327"></a><span class="cm"> * if one is found, that configuration will be applied to the current set of</span>
+<a id="line-1328" name="line-1328"></a><span class="cm"> * RANDR outputs.</span>
+<a id="line-1329" name="line-1329"></a><span class="cm"> *</span>
+<a id="line-1330" name="line-1330"></a><span class="cm"> * Typically, @filename is the result of mate_rr_config_get_intended_filename() or</span>
+<a id="line-1331" name="line-1331"></a><span class="cm"> * mate_rr_config_get_backup_filename().</span>
+<a id="line-1332" name="line-1332"></a><span class="cm"> *</span>
+<a id="line-1333" name="line-1333"></a><span class="cm"> * Returns: TRUE if the RANDR configuration was loaded and applied from</span>
+<a id="line-1334" name="line-1334"></a><span class="cm"> * $(XDG_CONFIG_HOME)/monitors.xml, or FALSE otherwise:</span>
+<a id="line-1335" name="line-1335"></a><span class="cm"> *</span>
+<a id="line-1336" name="line-1336"></a><span class="cm"> * If the current RANDR configuration could not be refreshed, the @error will</span>
+<a id="line-1337" name="line-1337"></a><span class="cm"> * have a domain of #MATE_RR_ERROR and a corresponding error code.</span>
+<a id="line-1338" name="line-1338"></a><span class="cm"> *</span>
+<a id="line-1339" name="line-1339"></a><span class="cm"> * If the file in question is loaded successfully but the configuration cannot</span>
+<a id="line-1340" name="line-1340"></a><span class="cm"> * be applied, the @error will have a domain of #MATE_RR_ERROR. Note that an</span>
+<a id="line-1341" name="line-1341"></a><span class="cm"> * error code of #MATE_RR_ERROR_NO_MATCHING_CONFIG is not a real error; it</span>
+<a id="line-1342" name="line-1342"></a><span class="cm"> * simply means that there were no stored configurations that match the current</span>
+<a id="line-1343" name="line-1343"></a><span class="cm"> * set of RANDR outputs.</span>
+<a id="line-1344" name="line-1344"></a><span class="cm"> *</span>
+<a id="line-1345" name="line-1345"></a><span class="cm"> * If the file in question cannot be loaded, the @error will have a domain of</span>
+<a id="line-1346" name="line-1346"></a><span class="cm"> * #G_FILE_ERROR. Note that an error code of G_FILE_ERROR_NOENT is not really</span>
+<a id="line-1347" name="line-1347"></a><span class="cm"> * an error, either; it means that there was no stored configuration file and so</span>
+<a id="line-1348" name="line-1348"></a><span class="cm"> * nothing is changed.</span>
+<a id="line-1349" name="line-1349"></a><span class="cm"> */</span>
+<a id="line-1350" name="line-1350"></a><span class="n">gboolean</span>
+<a id="line-1351" name="line-1351"></a><span class="nf">mate_rr_config_apply_from_filename_with_time</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">timestamp</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-1352" name="line-1352"></a><span class="p">{</span>
+<a id="line-1353" name="line-1353"></a><span class="w"> </span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">stored</span><span class="p">;</span>
+<a id="line-1354" name="line-1354"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">my_error</span><span class="p">;</span>
+<a id="line-1355" name="line-1355"></a>
+<a id="line-1356" name="line-1356"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_SCREEN</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1357" name="line-1357"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1358" name="line-1358"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1359" name="line-1359"></a>
+<a id="line-1360" name="line-1360"></a><span class="w"> </span><span class="n">my_error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1361" name="line-1361"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mate_rr_screen_refresh</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">my_error</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1362" name="line-1362"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">my_error</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1363" name="line-1363"></a><span class="w"> </span><span class="n">g_propagate_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">my_error</span><span class="p">);</span>
+<a id="line-1364" name="line-1364"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span><span class="w"> </span><span class="cm">/* This is a genuine error */</span>
+<a id="line-1365" name="line-1365"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1366" name="line-1366"></a>
+<a id="line-1367" name="line-1367"></a><span class="w"> </span><span class="cm">/* This means the screen didn&#39;t change, so just proceed */</span>
+<a id="line-1368" name="line-1368"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1369" name="line-1369"></a>
+<a id="line-1370" name="line-1370"></a><span class="w"> </span><span class="n">stored</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_TYPE_RR_CONFIG</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;screen&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1371" name="line-1371"></a>
+<a id="line-1372" name="line-1372"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mate_rr_config_load_filename</span><span class="w"> </span><span class="p">(</span><span class="n">stored</span><span class="p">,</span><span class="w"> </span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">))</span>
+<a id="line-1373" name="line-1373"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1374" name="line-1374"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-1375" name="line-1375"></a>
+<a id="line-1376" name="line-1376"></a><span class="w"> </span><span class="n">mate_rr_config_ensure_primary</span><span class="w"> </span><span class="p">(</span><span class="n">stored</span><span class="p">);</span>
+<a id="line-1377" name="line-1377"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_config_apply_with_time</span><span class="w"> </span><span class="p">(</span><span class="n">stored</span><span class="p">,</span><span class="w"> </span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">timestamp</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-1378" name="line-1378"></a>
+<a id="line-1379" name="line-1379"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">stored</span><span class="p">);</span>
+<a id="line-1380" name="line-1380"></a>
+<a id="line-1381" name="line-1381"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-1382" name="line-1382"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1383" name="line-1383"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1384" name="line-1384"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1385" name="line-1385"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">stored</span><span class="p">);</span>
+<a id="line-1386" name="line-1386"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1387" name="line-1387"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1388" name="line-1388"></a><span class="p">}</span>
+<a id="line-1389" name="line-1389"></a>
+<a id="line-1390" name="line-1390"></a><span class="cm">/**</span>
+<a id="line-1391" name="line-1391"></a><span class="cm"> * mate_rr_config_get_outputs:</span>
+<a id="line-1392" name="line-1392"></a><span class="cm"> *</span>
+<a id="line-1393" name="line-1393"></a><span class="cm"> * Returns: (array zero-terminated=1) (element-type MateDesktop.RROutputInfo) (transfer none): the output configuration for this #MateRRConfig</span>
+<a id="line-1394" name="line-1394"></a><span class="cm"> */</span>
+<a id="line-1395" name="line-1395"></a><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">**</span>
+<a id="line-1396" name="line-1396"></a><span class="nf">mate_rr_config_get_outputs</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">)</span>
+<a id="line-1397" name="line-1397"></a><span class="p">{</span>
+<a id="line-1398" name="line-1398"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_CONFIG</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1399" name="line-1399"></a>
+<a id="line-1400" name="line-1400"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">;</span>
+<a id="line-1401" name="line-1401"></a><span class="p">}</span>
+<a id="line-1402" name="line-1402"></a>
+<a id="line-1403" name="line-1403"></a><span class="cm">/**</span>
+<a id="line-1404" name="line-1404"></a><span class="cm"> * mate_rr_config_get_clone:</span>
+<a id="line-1405" name="line-1405"></a><span class="cm"> *</span>
+<a id="line-1406" name="line-1406"></a><span class="cm"> * Returns: whether at least two outputs are at (0, 0) offset and they</span>
+<a id="line-1407" name="line-1407"></a><span class="cm"> * have the same width/height. Those outputs are of course connected and on</span>
+<a id="line-1408" name="line-1408"></a><span class="cm"> * (i.e. they have a CRTC assigned).</span>
+<a id="line-1409" name="line-1409"></a><span class="cm"> */</span>
+<a id="line-1410" name="line-1410"></a><span class="n">gboolean</span>
+<a id="line-1411" name="line-1411"></a><span class="nf">mate_rr_config_get_clone</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">)</span>
+<a id="line-1412" name="line-1412"></a><span class="p">{</span>
+<a id="line-1413" name="line-1413"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_CONFIG</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1414" name="line-1414"></a>
+<a id="line-1415" name="line-1415"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">clone</span><span class="p">;</span>
+<a id="line-1416" name="line-1416"></a><span class="p">}</span>
+<a id="line-1417" name="line-1417"></a>
+<a id="line-1418" name="line-1418"></a><span class="kt">void</span>
+<a id="line-1419" name="line-1419"></a><span class="nf">mate_rr_config_set_clone</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">clone</span><span class="p">)</span>
+<a id="line-1420" name="line-1420"></a><span class="p">{</span>
+<a id="line-1421" name="line-1421"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_CONFIG</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">));</span>
+<a id="line-1422" name="line-1422"></a>
+<a id="line-1423" name="line-1423"></a><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">clone</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">clone</span><span class="p">;</span>
+<a id="line-1424" name="line-1424"></a><span class="p">}</span>
+<a id="line-1425" name="line-1425"></a>
+<a id="line-1426" name="line-1426"></a><span class="cm">/*</span>
+<a id="line-1427" name="line-1427"></a><span class="cm"> * CRTC assignment</span>
+<a id="line-1428" name="line-1428"></a><span class="cm"> */</span>
+<a id="line-1429" name="line-1429"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">CrtcInfo</span><span class="w"> </span><span class="n">CrtcInfo</span><span class="p">;</span>
+<a id="line-1430" name="line-1430"></a>
+<a id="line-1431" name="line-1431"></a><span class="k">struct</span><span class="w"> </span><span class="nc">CrtcInfo</span>
+<a id="line-1432" name="line-1432"></a><span class="p">{</span>
+<a id="line-1433" name="line-1433"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="p">;</span>
+<a id="line-1434" name="line-1434"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x</span><span class="p">;</span>
+<a id="line-1435" name="line-1435"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">y</span><span class="p">;</span>
+<a id="line-1436" name="line-1436"></a><span class="w"> </span><span class="n">MateRRRotation</span><span class="w"> </span><span class="n">rotation</span><span class="p">;</span>
+<a id="line-1437" name="line-1437"></a><span class="w"> </span><span class="n">GPtrArray</span><span class="w"> </span><span class="o">*</span><span class="n">outputs</span><span class="p">;</span>
+<a id="line-1438" name="line-1438"></a><span class="p">};</span>
+<a id="line-1439" name="line-1439"></a>
+<a id="line-1440" name="line-1440"></a><span class="k">struct</span><span class="w"> </span><span class="nc">CrtcAssignment</span>
+<a id="line-1441" name="line-1441"></a><span class="p">{</span>
+<a id="line-1442" name="line-1442"></a><span class="w"> </span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">;</span>
+<a id="line-1443" name="line-1443"></a><span class="w"> </span><span class="n">GHashTable</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">;</span>
+<a id="line-1444" name="line-1444"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">primary</span><span class="p">;</span>
+<a id="line-1445" name="line-1445"></a><span class="p">};</span>
+<a id="line-1446" name="line-1446"></a>
+<a id="line-1447" name="line-1447"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-1448" name="line-1448"></a><span class="nf">can_clone</span><span class="w"> </span><span class="p">(</span><span class="n">CrtcInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">,</span>
+<a id="line-1449" name="line-1449"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">)</span>
+<a id="line-1450" name="line-1450"></a><span class="p">{</span>
+<a id="line-1451" name="line-1451"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-1452" name="line-1452"></a>
+<a id="line-1453" name="line-1453"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="o">-&gt;</span><span class="n">len</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-1454" name="line-1454"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1455" name="line-1455"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">clone</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="o">-&gt;</span><span class="n">pdata</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-1456" name="line-1456"></a>
+<a id="line-1457" name="line-1457"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mate_rr_output_can_clone</span><span class="w"> </span><span class="p">(</span><span class="n">clone</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="p">))</span>
+<a id="line-1458" name="line-1458"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1459" name="line-1459"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1460" name="line-1460"></a>
+<a id="line-1461" name="line-1461"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1462" name="line-1462"></a><span class="p">}</span>
+<a id="line-1463" name="line-1463"></a>
+<a id="line-1464" name="line-1464"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-1465" name="line-1465"></a><span class="nf">crtc_assignment_assign</span><span class="w"> </span><span class="p">(</span><span class="n">CrtcAssignment</span><span class="w"> </span><span class="o">*</span><span class="n">assign</span><span class="p">,</span>
+<a id="line-1466" name="line-1466"></a><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">,</span>
+<a id="line-1467" name="line-1467"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="p">,</span>
+<a id="line-1468" name="line-1468"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x</span><span class="p">,</span>
+<a id="line-1469" name="line-1469"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">y</span><span class="p">,</span>
+<a id="line-1470" name="line-1470"></a><span class="w"> </span><span class="n">MateRRRotation</span><span class="w"> </span><span class="n">rotation</span><span class="p">,</span>
+<a id="line-1471" name="line-1471"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">primary</span><span class="p">,</span>
+<a id="line-1472" name="line-1472"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">,</span>
+<a id="line-1473" name="line-1473"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-1474" name="line-1474"></a><span class="p">{</span>
+<a id="line-1475" name="line-1475"></a><span class="w"> </span><span class="n">CrtcInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">assign</span><span class="o">-&gt;</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">crtc</span><span class="p">);</span>
+<a id="line-1476" name="line-1476"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">crtc_id</span><span class="p">;</span>
+<a id="line-1477" name="line-1477"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">output_name</span><span class="p">;</span>
+<a id="line-1478" name="line-1478"></a>
+<a id="line-1479" name="line-1479"></a><span class="w"> </span><span class="n">crtc_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_crtc_get_id</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="p">);</span>
+<a id="line-1480" name="line-1480"></a><span class="w"> </span><span class="n">output_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_output_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="p">);</span>
+<a id="line-1481" name="line-1481"></a>
+<a id="line-1482" name="line-1482"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mate_rr_crtc_can_drive_output</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="p">))</span>
+<a id="line-1483" name="line-1483"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1484" name="line-1484"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR_CRTC_ASSIGNMENT</span><span class="p">,</span>
+<a id="line-1485" name="line-1485"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;CRTC %d cannot drive output %s&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">crtc_id</span><span class="p">,</span><span class="w"> </span><span class="n">output_name</span><span class="p">);</span>
+<a id="line-1486" name="line-1486"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1487" name="line-1487"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1488" name="line-1488"></a>
+<a id="line-1489" name="line-1489"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mate_rr_output_supports_mode</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="p">,</span><span class="w"> </span><span class="n">mode</span><span class="p">))</span>
+<a id="line-1490" name="line-1490"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1491" name="line-1491"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR_CRTC_ASSIGNMENT</span><span class="p">,</span>
+<a id="line-1492" name="line-1492"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;output %s does not support mode %dx%d@%dHz&quot;</span><span class="p">),</span>
+<a id="line-1493" name="line-1493"></a><span class="w"> </span><span class="n">output_name</span><span class="p">,</span>
+<a id="line-1494" name="line-1494"></a><span class="w"> </span><span class="n">mate_rr_mode_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="p">),</span>
+<a id="line-1495" name="line-1495"></a><span class="w"> </span><span class="n">mate_rr_mode_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="p">),</span>
+<a id="line-1496" name="line-1496"></a><span class="w"> </span><span class="n">mate_rr_mode_get_freq</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="p">));</span>
+<a id="line-1497" name="line-1497"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1498" name="line-1498"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1499" name="line-1499"></a>
+<a id="line-1500" name="line-1500"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mate_rr_crtc_supports_rotation</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="p">,</span><span class="w"> </span><span class="n">rotation</span><span class="p">))</span>
+<a id="line-1501" name="line-1501"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1502" name="line-1502"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR_CRTC_ASSIGNMENT</span><span class="p">,</span>
+<a id="line-1503" name="line-1503"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;CRTC %d does not support rotation=%s&quot;</span><span class="p">),</span>
+<a id="line-1504" name="line-1504"></a><span class="w"> </span><span class="n">crtc_id</span><span class="p">,</span>
+<a id="line-1505" name="line-1505"></a><span class="w"> </span><span class="n">get_rotation_name</span><span class="w"> </span><span class="p">(</span><span class="n">rotation</span><span class="p">));</span>
+<a id="line-1506" name="line-1506"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1507" name="line-1507"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1508" name="line-1508"></a>
+<a id="line-1509" name="line-1509"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">)</span>
+<a id="line-1510" name="line-1510"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1511" name="line-1511"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">mode</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-1512" name="line-1512"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">x</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-1513" name="line-1513"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">y</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-1514" name="line-1514"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">rotation</span><span class="p">))</span>
+<a id="line-1515" name="line-1515"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1516" name="line-1516"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR_CRTC_ASSIGNMENT</span><span class="p">,</span>
+<a id="line-1517" name="line-1517"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;output %s does not have the same parameters as another cloned output:</span><span class="se">\n</span><span class="s">&quot;</span>
+<a id="line-1518" name="line-1518"></a><span class="w"> </span><span class="s">&quot;existing mode = %d, new mode = %d</span><span class="se">\n</span><span class="s">&quot;</span>
+<a id="line-1519" name="line-1519"></a><span class="w"> </span><span class="s">&quot;existing coordinates = (%d, %d), new coordinates = (%d, %d)</span><span class="se">\n</span><span class="s">&quot;</span>
+<a id="line-1520" name="line-1520"></a><span class="w"> </span><span class="s">&quot;existing rotation = %s, new rotation = %s&quot;</span><span class="p">),</span>
+<a id="line-1521" name="line-1521"></a><span class="w"> </span><span class="n">output_name</span><span class="p">,</span>
+<a id="line-1522" name="line-1522"></a><span class="w"> </span><span class="n">mate_rr_mode_get_id</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">mode</span><span class="p">),</span><span class="w"> </span><span class="n">mate_rr_mode_get_id</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="p">),</span>
+<a id="line-1523" name="line-1523"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">y</span><span class="p">,</span>
+<a id="line-1524" name="line-1524"></a><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span>
+<a id="line-1525" name="line-1525"></a><span class="w"> </span><span class="n">get_rotation_name</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="p">),</span><span class="w"> </span><span class="n">get_rotation_name</span><span class="w"> </span><span class="p">(</span><span class="n">rotation</span><span class="p">));</span>
+<a id="line-1526" name="line-1526"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1527" name="line-1527"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1528" name="line-1528"></a>
+<a id="line-1529" name="line-1529"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">can_clone</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="p">))</span>
+<a id="line-1530" name="line-1530"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1531" name="line-1531"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR_CRTC_ASSIGNMENT</span><span class="p">,</span>
+<a id="line-1532" name="line-1532"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;cannot clone to output %s&quot;</span><span class="p">),</span>
+<a id="line-1533" name="line-1533"></a><span class="w"> </span><span class="n">output_name</span><span class="p">);</span>
+<a id="line-1534" name="line-1534"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1535" name="line-1535"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1536" name="line-1536"></a>
+<a id="line-1537" name="line-1537"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="p">);</span>
+<a id="line-1538" name="line-1538"></a>
+<a id="line-1539" name="line-1539"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">primary</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">!</span><span class="n">assign</span><span class="o">-&gt;</span><span class="n">primary</span><span class="p">)</span>
+<a id="line-1540" name="line-1540"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1541" name="line-1541"></a><span class="w"> </span><span class="n">assign</span><span class="o">-&gt;</span><span class="n">primary</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">output</span><span class="p">;</span>
+<a id="line-1542" name="line-1542"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1543" name="line-1543"></a>
+<a id="line-1544" name="line-1544"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1545" name="line-1545"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1546" name="line-1546"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1547" name="line-1547"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1548" name="line-1548"></a><span class="w"> </span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new0</span><span class="w"> </span><span class="p">(</span><span class="n">CrtcInfo</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-1549" name="line-1549"></a>
+<a id="line-1550" name="line-1550"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mode</span><span class="p">;</span>
+<a id="line-1551" name="line-1551"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">x</span><span class="p">;</span>
+<a id="line-1552" name="line-1552"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">y</span><span class="p">;</span>
+<a id="line-1553" name="line-1553"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">rotation</span><span class="p">;</span>
+<a id="line-1554" name="line-1554"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1555" name="line-1555"></a>
+<a id="line-1556" name="line-1556"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="p">);</span>
+<a id="line-1557" name="line-1557"></a>
+<a id="line-1558" name="line-1558"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="w"> </span><span class="p">(</span><span class="n">assign</span><span class="o">-&gt;</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">crtc</span><span class="p">,</span><span class="w"> </span><span class="n">info</span><span class="p">);</span>
+<a id="line-1559" name="line-1559"></a>
+<a id="line-1560" name="line-1560"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">primary</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">!</span><span class="n">assign</span><span class="o">-&gt;</span><span class="n">primary</span><span class="p">)</span>
+<a id="line-1561" name="line-1561"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1562" name="line-1562"></a><span class="w"> </span><span class="n">assign</span><span class="o">-&gt;</span><span class="n">primary</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">output</span><span class="p">;</span>
+<a id="line-1563" name="line-1563"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1564" name="line-1564"></a>
+<a id="line-1565" name="line-1565"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1566" name="line-1566"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1567" name="line-1567"></a><span class="p">}</span>
+<a id="line-1568" name="line-1568"></a>
+<a id="line-1569" name="line-1569"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1570" name="line-1570"></a><span class="nf">crtc_assignment_unassign</span><span class="w"> </span><span class="p">(</span><span class="n">CrtcAssignment</span><span class="w"> </span><span class="o">*</span><span class="n">assign</span><span class="p">,</span>
+<a id="line-1571" name="line-1571"></a><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">,</span>
+<a id="line-1572" name="line-1572"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">)</span>
+<a id="line-1573" name="line-1573"></a><span class="p">{</span>
+<a id="line-1574" name="line-1574"></a><span class="w"> </span><span class="n">CrtcInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">assign</span><span class="o">-&gt;</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">crtc</span><span class="p">);</span>
+<a id="line-1575" name="line-1575"></a>
+<a id="line-1576" name="line-1576"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">)</span>
+<a id="line-1577" name="line-1577"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1578" name="line-1578"></a><span class="w"> </span><span class="n">g_ptr_array_remove</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="p">);</span>
+<a id="line-1579" name="line-1579"></a>
+<a id="line-1580" name="line-1580"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">assign</span><span class="o">-&gt;</span><span class="n">primary</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">output</span><span class="p">)</span>
+<a id="line-1581" name="line-1581"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1582" name="line-1582"></a><span class="w"> </span><span class="n">assign</span><span class="o">-&gt;</span><span class="n">primary</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1583" name="line-1583"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1584" name="line-1584"></a>
+<a id="line-1585" name="line-1585"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="o">-&gt;</span><span class="n">len</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-1586" name="line-1586"></a><span class="w"> </span><span class="n">g_hash_table_remove</span><span class="w"> </span><span class="p">(</span><span class="n">assign</span><span class="o">-&gt;</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">crtc</span><span class="p">);</span>
+<a id="line-1587" name="line-1587"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1588" name="line-1588"></a><span class="p">}</span>
+<a id="line-1589" name="line-1589"></a>
+<a id="line-1590" name="line-1590"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1591" name="line-1591"></a><span class="nf">crtc_assignment_free</span><span class="w"> </span><span class="p">(</span><span class="n">CrtcAssignment</span><span class="w"> </span><span class="o">*</span><span class="n">assign</span><span class="p">)</span>
+<a id="line-1592" name="line-1592"></a><span class="p">{</span>
+<a id="line-1593" name="line-1593"></a><span class="w"> </span><span class="n">g_hash_table_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">assign</span><span class="o">-&gt;</span><span class="n">info</span><span class="p">);</span>
+<a id="line-1594" name="line-1594"></a>
+<a id="line-1595" name="line-1595"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">assign</span><span class="p">);</span>
+<a id="line-1596" name="line-1596"></a><span class="p">}</span>
+<a id="line-1597" name="line-1597"></a>
+<a id="line-1598" name="line-1598"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1599" name="line-1599"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">timestamp</span><span class="p">;</span>
+<a id="line-1600" name="line-1600"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">has_error</span><span class="p">;</span>
+<a id="line-1601" name="line-1601"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">;</span>
+<a id="line-1602" name="line-1602"></a><span class="p">}</span><span class="w"> </span><span class="n">ConfigureCrtcState</span><span class="p">;</span>
+<a id="line-1603" name="line-1603"></a>
+<a id="line-1604" name="line-1604"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1605" name="line-1605"></a><span class="nf">configure_crtc</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="n">key</span><span class="p">,</span>
+<a id="line-1606" name="line-1606"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">value</span><span class="p">,</span>
+<a id="line-1607" name="line-1607"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-1608" name="line-1608"></a><span class="p">{</span>
+<a id="line-1609" name="line-1609"></a><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">key</span><span class="p">;</span>
+<a id="line-1610" name="line-1610"></a><span class="w"> </span><span class="n">CrtcInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">value</span><span class="p">;</span>
+<a id="line-1611" name="line-1611"></a><span class="w"> </span><span class="n">ConfigureCrtcState</span><span class="w"> </span><span class="o">*</span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">data</span><span class="p">;</span>
+<a id="line-1612" name="line-1612"></a>
+<a id="line-1613" name="line-1613"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="o">-&gt;</span><span class="n">has_error</span><span class="p">)</span>
+<a id="line-1614" name="line-1614"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-1615" name="line-1615"></a>
+<a id="line-1616" name="line-1616"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mate_rr_crtc_set_config_with_time</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="p">,</span>
+<a id="line-1617" name="line-1617"></a><span class="w"> </span><span class="n">state</span><span class="o">-&gt;</span><span class="n">timestamp</span><span class="p">,</span>
+<a id="line-1618" name="line-1618"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">y</span><span class="p">,</span>
+<a id="line-1619" name="line-1619"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">mode</span><span class="p">,</span>
+<a id="line-1620" name="line-1620"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="p">,</span>
+<a id="line-1621" name="line-1621"></a><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">**</span><span class="p">)</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="o">-&gt;</span><span class="n">pdata</span><span class="p">,</span>
+<a id="line-1622" name="line-1622"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="o">-&gt;</span><span class="n">len</span><span class="p">,</span>
+<a id="line-1623" name="line-1623"></a><span class="w"> </span><span class="n">state</span><span class="o">-&gt;</span><span class="n">error</span><span class="p">))</span>
+<a id="line-1624" name="line-1624"></a><span class="w"> </span><span class="n">state</span><span class="o">-&gt;</span><span class="n">has_error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1625" name="line-1625"></a><span class="p">}</span>
+<a id="line-1626" name="line-1626"></a>
+<a id="line-1627" name="line-1627"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-1628" name="line-1628"></a><span class="nf">mode_is_rotated</span><span class="w"> </span><span class="p">(</span><span class="n">CrtcInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">)</span>
+<a id="line-1629" name="line-1629"></a><span class="p">{</span>
+<a id="line-1630" name="line-1630"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">MATE_RR_ROTATION_270</span><span class="p">)</span><span class="w"> </span><span class="o">||</span>
+<a id="line-1631" name="line-1631"></a><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">MATE_RR_ROTATION_90</span><span class="p">))</span>
+<a id="line-1632" name="line-1632"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1633" name="line-1633"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1634" name="line-1634"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1635" name="line-1635"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1636" name="line-1636"></a><span class="p">}</span>
+<a id="line-1637" name="line-1637"></a>
+<a id="line-1638" name="line-1638"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-1639" name="line-1639"></a><span class="nf">crtc_is_rotated</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">)</span>
+<a id="line-1640" name="line-1640"></a><span class="p">{</span>
+<a id="line-1641" name="line-1641"></a><span class="w"> </span><span class="n">MateRRRotation</span><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_crtc_get_current_rotation</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="p">);</span>
+<a id="line-1642" name="line-1642"></a>
+<a id="line-1643" name="line-1643"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">r</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">MATE_RR_ROTATION_270</span><span class="p">)</span><span class="w"> </span><span class="o">||</span>
+<a id="line-1644" name="line-1644"></a><span class="w"> </span><span class="p">(</span><span class="n">r</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">MATE_RR_ROTATION_90</span><span class="p">))</span>
+<a id="line-1645" name="line-1645"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1646" name="line-1646"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1647" name="line-1647"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1648" name="line-1648"></a>
+<a id="line-1649" name="line-1649"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1650" name="line-1650"></a><span class="p">}</span>
+<a id="line-1651" name="line-1651"></a>
+<a id="line-1652" name="line-1652"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1653" name="line-1653"></a><span class="nf">accumulate_error</span><span class="w"> </span><span class="p">(</span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">accumulated_error</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="p">)</span>
+<a id="line-1654" name="line-1654"></a><span class="p">{</span>
+<a id="line-1655" name="line-1655"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span><span class="n">accumulated_error</span><span class="p">,</span><span class="w"> </span><span class="s">&quot; %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-&gt;</span><span class="n">message</span><span class="p">);</span>
+<a id="line-1656" name="line-1656"></a><span class="w"> </span><span class="n">g_error_free</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span>
+<a id="line-1657" name="line-1657"></a><span class="p">}</span>
+<a id="line-1658" name="line-1658"></a>
+<a id="line-1659" name="line-1659"></a><span class="cm">/* Check whether the given set of settings can be used</span>
+<a id="line-1660" name="line-1660"></a><span class="cm"> * at the same time -- ie. whether there is an assignment</span>
+<a id="line-1661" name="line-1661"></a><span class="cm"> * of CRTC&#39;s to outputs.</span>
+<a id="line-1662" name="line-1662"></a><span class="cm"> *</span>
+<a id="line-1663" name="line-1663"></a><span class="cm"> * Brute force - the number of objects involved is small</span>
+<a id="line-1664" name="line-1664"></a><span class="cm"> * enough that it doesn&#39;t matter.</span>
+<a id="line-1665" name="line-1665"></a><span class="cm"> */</span>
+<a id="line-1666" name="line-1666"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-1667" name="line-1667"></a><span class="nf">real_assign_crtcs</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-1668" name="line-1668"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">**</span><span class="n">outputs</span><span class="p">,</span>
+<a id="line-1669" name="line-1669"></a><span class="w"> </span><span class="n">CrtcAssignment</span><span class="w"> </span><span class="o">*</span><span class="n">assignment</span><span class="p">,</span>
+<a id="line-1670" name="line-1670"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-1671" name="line-1671"></a><span class="p">{</span>
+<a id="line-1672" name="line-1672"></a><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">**</span><span class="n">crtcs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_screen_list_crtcs</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">);</span>
+<a id="line-1673" name="line-1673"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">;</span>
+<a id="line-1674" name="line-1674"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-1675" name="line-1675"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">tried_mode</span><span class="p">;</span>
+<a id="line-1676" name="line-1676"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">my_error</span><span class="p">;</span>
+<a id="line-1677" name="line-1677"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">accumulated_error</span><span class="p">;</span>
+<a id="line-1678" name="line-1678"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">success</span><span class="p">;</span>
+<a id="line-1679" name="line-1679"></a>
+<a id="line-1680" name="line-1680"></a><span class="w"> </span><span class="n">output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">outputs</span><span class="p">;</span>
+<a id="line-1681" name="line-1681"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">output</span><span class="p">)</span>
+<a id="line-1682" name="line-1682"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1683" name="line-1683"></a>
+<a id="line-1684" name="line-1684"></a><span class="w"> </span><span class="cm">/* It is always allowed for an output to be turned off */</span>
+<a id="line-1685" name="line-1685"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">on</span><span class="p">)</span>
+<a id="line-1686" name="line-1686"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1687" name="line-1687"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">real_assign_crtcs</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">outputs</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">assignment</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-1688" name="line-1688"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1689" name="line-1689"></a>
+<a id="line-1690" name="line-1690"></a><span class="w"> </span><span class="n">success</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1691" name="line-1691"></a><span class="w"> </span><span class="n">tried_mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1692" name="line-1692"></a><span class="w"> </span><span class="n">accumulated_error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_new</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1693" name="line-1693"></a>
+<a id="line-1694" name="line-1694"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">crtcs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-1695" name="line-1695"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1696" name="line-1696"></a><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">crtcs</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-1697" name="line-1697"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">crtc_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_crtc_get_id</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="p">);</span>
+<a id="line-1698" name="line-1698"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">pass</span><span class="p">;</span>
+<a id="line-1699" name="line-1699"></a>
+<a id="line-1700" name="line-1700"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span><span class="n">accumulated_error</span><span class="p">,</span>
+<a id="line-1701" name="line-1701"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Trying modes for CRTC %d</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">),</span>
+<a id="line-1702" name="line-1702"></a><span class="w"> </span><span class="n">crtc_id</span><span class="p">);</span>
+<a id="line-1703" name="line-1703"></a>
+<a id="line-1704" name="line-1704"></a><span class="w"> </span><span class="cm">/* Make two passes, one where frequencies must match, then</span>
+<a id="line-1705" name="line-1705"></a><span class="cm"> * one where they don&#39;t have to</span>
+<a id="line-1706" name="line-1706"></a><span class="cm"> */</span>
+<a id="line-1707" name="line-1707"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">pass</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">pass</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">pass</span><span class="p">)</span>
+<a id="line-1708" name="line-1708"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1709" name="line-1709"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">mate_rr_output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_screen_get_output_by_name</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">);</span>
+<a id="line-1710" name="line-1710"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">**</span><span class="n">modes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_output_list_modes</span><span class="w"> </span><span class="p">(</span><span class="n">mate_rr_output</span><span class="p">);</span>
+<a id="line-1711" name="line-1711"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">j</span><span class="p">;</span>
+<a id="line-1712" name="line-1712"></a>
+<a id="line-1713" name="line-1713"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">modes</span><span class="p">[</span><span class="n">j</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">j</span><span class="p">)</span>
+<a id="line-1714" name="line-1714"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1715" name="line-1715"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">modes</span><span class="p">[</span><span class="n">j</span><span class="p">];</span>
+<a id="line-1716" name="line-1716"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">mode_width</span><span class="p">;</span>
+<a id="line-1717" name="line-1717"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">mode_height</span><span class="p">;</span>
+<a id="line-1718" name="line-1718"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">mode_freq</span><span class="p">;</span>
+<a id="line-1719" name="line-1719"></a>
+<a id="line-1720" name="line-1720"></a><span class="w"> </span><span class="n">mode_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_mode_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="p">);</span>
+<a id="line-1721" name="line-1721"></a><span class="w"> </span><span class="n">mode_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_mode_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="p">);</span>
+<a id="line-1722" name="line-1722"></a><span class="w"> </span><span class="n">mode_freq</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_mode_get_freq</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="p">);</span>
+<a id="line-1723" name="line-1723"></a>
+<a id="line-1724" name="line-1724"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="w"> </span><span class="p">(</span><span class="n">accumulated_error</span><span class="p">,</span>
+<a id="line-1725" name="line-1725"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;CRTC %d: trying mode %dx%d@%dHz with output at %dx%d@%dHz (pass %d)</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">),</span>
+<a id="line-1726" name="line-1726"></a><span class="w"> </span><span class="n">crtc_id</span><span class="p">,</span>
+<a id="line-1727" name="line-1727"></a><span class="w"> </span><span class="n">mode_width</span><span class="p">,</span><span class="w"> </span><span class="n">mode_height</span><span class="p">,</span><span class="w"> </span><span class="n">mode_freq</span><span class="p">,</span>
+<a id="line-1728" name="line-1728"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">height</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rate</span><span class="p">,</span>
+<a id="line-1729" name="line-1729"></a><span class="w"> </span><span class="n">pass</span><span class="p">);</span>
+<a id="line-1730" name="line-1730"></a>
+<a id="line-1731" name="line-1731"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mode_width</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">width</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-1732" name="line-1732"></a><span class="w"> </span><span class="n">mode_height</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">height</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-1733" name="line-1733"></a><span class="w"> </span><span class="p">(</span><span class="n">pass</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">mode_freq</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rate</span><span class="p">))</span>
+<a id="line-1734" name="line-1734"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1735" name="line-1735"></a><span class="w"> </span><span class="n">tried_mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1736" name="line-1736"></a>
+<a id="line-1737" name="line-1737"></a><span class="w"> </span><span class="n">my_error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1738" name="line-1738"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">crtc_assignment_assign</span><span class="w"> </span><span class="p">(</span>
+<a id="line-1739" name="line-1739"></a><span class="w"> </span><span class="n">assignment</span><span class="p">,</span><span class="w"> </span><span class="n">crtc</span><span class="p">,</span><span class="w"> </span><span class="n">modes</span><span class="p">[</span><span class="n">j</span><span class="p">],</span>
+<a id="line-1740" name="line-1740"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">y</span><span class="p">,</span>
+<a id="line-1741" name="line-1741"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="p">,</span>
+<a id="line-1742" name="line-1742"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">primary</span><span class="p">,</span>
+<a id="line-1743" name="line-1743"></a><span class="w"> </span><span class="n">mate_rr_output</span><span class="p">,</span>
+<a id="line-1744" name="line-1744"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">my_error</span><span class="p">))</span>
+<a id="line-1745" name="line-1745"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1746" name="line-1746"></a><span class="w"> </span><span class="n">my_error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1747" name="line-1747"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">real_assign_crtcs</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">outputs</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">assignment</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">my_error</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1748" name="line-1748"></a><span class="w"> </span><span class="n">success</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1749" name="line-1749"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span>
+<a id="line-1750" name="line-1750"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span>
+<a id="line-1751" name="line-1751"></a><span class="w"> </span><span class="n">accumulate_error</span><span class="w"> </span><span class="p">(</span><span class="n">accumulated_error</span><span class="p">,</span><span class="w"> </span><span class="n">my_error</span><span class="p">);</span>
+<a id="line-1752" name="line-1752"></a>
+<a id="line-1753" name="line-1753"></a><span class="w"> </span><span class="n">crtc_assignment_unassign</span><span class="w"> </span><span class="p">(</span><span class="n">assignment</span><span class="p">,</span><span class="w"> </span><span class="n">crtc</span><span class="p">,</span><span class="w"> </span><span class="n">mate_rr_output</span><span class="p">);</span>
+<a id="line-1754" name="line-1754"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span>
+<a id="line-1755" name="line-1755"></a><span class="w"> </span><span class="n">accumulate_error</span><span class="w"> </span><span class="p">(</span><span class="n">accumulated_error</span><span class="p">,</span><span class="w"> </span><span class="n">my_error</span><span class="p">);</span>
+<a id="line-1756" name="line-1756"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1757" name="line-1757"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1758" name="line-1758"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1759" name="line-1759"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1760" name="line-1760"></a>
+<a id="line-1761" name="line-1761"></a><span class="nl">out</span><span class="p">:</span>
+<a id="line-1762" name="line-1762"></a>
+<a id="line-1763" name="line-1763"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">success</span><span class="p">)</span>
+<a id="line-1764" name="line-1764"></a><span class="w"> </span><span class="n">g_string_free</span><span class="w"> </span><span class="p">(</span><span class="n">accumulated_error</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-1765" name="line-1765"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1766" name="line-1766"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">;</span>
+<a id="line-1767" name="line-1767"></a>
+<a id="line-1768" name="line-1768"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_free</span><span class="w"> </span><span class="p">(</span><span class="n">accumulated_error</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1769" name="line-1769"></a>
+<a id="line-1770" name="line-1770"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">tried_mode</span><span class="p">)</span>
+<a id="line-1771" name="line-1771"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR_CRTC_ASSIGNMENT</span><span class="p">,</span>
+<a id="line-1772" name="line-1772"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;could not assign CRTCs to outputs:</span><span class="se">\n</span><span class="s">%s&quot;</span><span class="p">),</span>
+<a id="line-1773" name="line-1773"></a><span class="w"> </span><span class="n">str</span><span class="p">);</span>
+<a id="line-1774" name="line-1774"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1775" name="line-1775"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR_CRTC_ASSIGNMENT</span><span class="p">,</span>
+<a id="line-1776" name="line-1776"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;none of the selected modes were compatible with the possible modes:</span><span class="se">\n</span><span class="s">%s&quot;</span><span class="p">),</span>
+<a id="line-1777" name="line-1777"></a><span class="w"> </span><span class="n">str</span><span class="p">);</span>
+<a id="line-1778" name="line-1778"></a>
+<a id="line-1779" name="line-1779"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">);</span>
+<a id="line-1780" name="line-1780"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1781" name="line-1781"></a>
+<a id="line-1782" name="line-1782"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">success</span><span class="p">;</span>
+<a id="line-1783" name="line-1783"></a><span class="p">}</span>
+<a id="line-1784" name="line-1784"></a>
+<a id="line-1785" name="line-1785"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1786" name="line-1786"></a><span class="nf">crtc_info_free</span><span class="w"> </span><span class="p">(</span><span class="n">CrtcInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">)</span>
+<a id="line-1787" name="line-1787"></a><span class="p">{</span>
+<a id="line-1788" name="line-1788"></a><span class="w"> </span><span class="n">g_ptr_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-1789" name="line-1789"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">);</span>
+<a id="line-1790" name="line-1790"></a><span class="p">}</span>
+<a id="line-1791" name="line-1791"></a>
+<a id="line-1792" name="line-1792"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1793" name="line-1793"></a><span class="nf">get_required_virtual_size</span><span class="w"> </span><span class="p">(</span><span class="n">CrtcAssignment</span><span class="w"> </span><span class="o">*</span><span class="n">assign</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">height</span><span class="p">)</span>
+<a id="line-1794" name="line-1794"></a><span class="p">{</span>
+<a id="line-1795" name="line-1795"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">active_crtcs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_get_keys</span><span class="w"> </span><span class="p">(</span><span class="n">assign</span><span class="o">-&gt;</span><span class="n">info</span><span class="p">);</span>
+<a id="line-1796" name="line-1796"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="p">;</span>
+<a id="line-1797" name="line-1797"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">d</span><span class="p">;</span>
+<a id="line-1798" name="line-1798"></a>
+<a id="line-1799" name="line-1799"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">width</span><span class="p">)</span>
+<a id="line-1800" name="line-1800"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&amp;</span><span class="n">d</span><span class="p">;</span>
+<a id="line-1801" name="line-1801"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">height</span><span class="p">)</span>
+<a id="line-1802" name="line-1802"></a><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&amp;</span><span class="n">d</span><span class="p">;</span>
+<a id="line-1803" name="line-1803"></a>
+<a id="line-1804" name="line-1804"></a><span class="w"> </span><span class="cm">/* Compute size of the screen */</span>
+<a id="line-1805" name="line-1805"></a><span class="w"> </span><span class="o">*</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-1806" name="line-1806"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">active_crtcs</span><span class="p">;</span><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">list</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span>
+<a id="line-1807" name="line-1807"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1808" name="line-1808"></a><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">list</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-1809" name="line-1809"></a><span class="w"> </span><span class="n">CrtcInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">assign</span><span class="o">-&gt;</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">crtc</span><span class="p">);</span>
+<a id="line-1810" name="line-1810"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">w</span><span class="p">,</span><span class="w"> </span><span class="n">h</span><span class="p">;</span>
+<a id="line-1811" name="line-1811"></a>
+<a id="line-1812" name="line-1812"></a><span class="w"> </span><span class="n">w</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_mode_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">mode</span><span class="p">);</span>
+<a id="line-1813" name="line-1813"></a><span class="w"> </span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_mode_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">mode</span><span class="p">);</span>
+<a id="line-1814" name="line-1814"></a>
+<a id="line-1815" name="line-1815"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mode_is_rotated</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">))</span>
+<a id="line-1816" name="line-1816"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1817" name="line-1817"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">h</span><span class="p">;</span>
+<a id="line-1818" name="line-1818"></a><span class="w"> </span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">w</span><span class="p">;</span>
+<a id="line-1819" name="line-1819"></a><span class="w"> </span><span class="n">w</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tmp</span><span class="p">;</span>
+<a id="line-1820" name="line-1820"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1821" name="line-1821"></a>
+<a id="line-1822" name="line-1822"></a><span class="w"> </span><span class="o">*</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MAX</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">x</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">w</span><span class="p">);</span>
+<a id="line-1823" name="line-1823"></a><span class="w"> </span><span class="o">*</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MAX</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">height</span><span class="p">,</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">y</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">h</span><span class="p">);</span>
+<a id="line-1824" name="line-1824"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1825" name="line-1825"></a>
+<a id="line-1826" name="line-1826"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">active_crtcs</span><span class="p">);</span>
+<a id="line-1827" name="line-1827"></a><span class="p">}</span>
+<a id="line-1828" name="line-1828"></a>
+<a id="line-1829" name="line-1829"></a><span class="k">static</span><span class="w"> </span><span class="n">CrtcAssignment</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1830" name="line-1830"></a><span class="nf">crtc_assignment_new</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">**</span><span class="n">outputs</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-1831" name="line-1831"></a><span class="p">{</span>
+<a id="line-1832" name="line-1832"></a><span class="w"> </span><span class="n">CrtcAssignment</span><span class="w"> </span><span class="o">*</span><span class="n">assignment</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new0</span><span class="w"> </span><span class="p">(</span><span class="n">CrtcAssignment</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-1833" name="line-1833"></a>
+<a id="line-1834" name="line-1834"></a><span class="w"> </span><span class="n">assignment</span><span class="o">-&gt;</span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_new_full</span><span class="w"> </span><span class="p">(</span>
+<a id="line-1835" name="line-1835"></a><span class="w"> </span><span class="n">g_direct_hash</span><span class="p">,</span><span class="w"> </span><span class="n">g_direct_equal</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">GFreeFunc</span><span class="p">)</span><span class="n">crtc_info_free</span><span class="p">);</span>
+<a id="line-1836" name="line-1836"></a>
+<a id="line-1837" name="line-1837"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">real_assign_crtcs</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">outputs</span><span class="p">,</span><span class="w"> </span><span class="n">assignment</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">))</span>
+<a id="line-1838" name="line-1838"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1839" name="line-1839"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">;</span>
+<a id="line-1840" name="line-1840"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">min_width</span><span class="p">,</span><span class="w"> </span><span class="n">max_width</span><span class="p">,</span><span class="w"> </span><span class="n">min_height</span><span class="p">,</span><span class="w"> </span><span class="n">max_height</span><span class="p">;</span>
+<a id="line-1841" name="line-1841"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">required_pixels</span><span class="p">,</span><span class="w"> </span><span class="n">min_pixels</span><span class="p">,</span><span class="w"> </span><span class="n">max_pixels</span><span class="p">;</span>
+<a id="line-1842" name="line-1842"></a>
+<a id="line-1843" name="line-1843"></a><span class="w"> </span><span class="n">get_required_virtual_size</span><span class="w"> </span><span class="p">(</span><span class="n">assignment</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">height</span><span class="p">);</span>
+<a id="line-1844" name="line-1844"></a>
+<a id="line-1845" name="line-1845"></a><span class="w"> </span><span class="n">mate_rr_screen_get_ranges</span><span class="w"> </span><span class="p">(</span>
+<a id="line-1846" name="line-1846"></a><span class="w"> </span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">min_width</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">max_width</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">min_height</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">max_height</span><span class="p">);</span>
+<a id="line-1847" name="line-1847"></a>
+<a id="line-1848" name="line-1848"></a><span class="w"> </span><span class="n">required_pixels</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">height</span><span class="p">;</span>
+<a id="line-1849" name="line-1849"></a><span class="w"> </span><span class="n">min_pixels</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">min_width</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">min_height</span><span class="p">;</span>
+<a id="line-1850" name="line-1850"></a><span class="w"> </span><span class="n">max_pixels</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">max_width</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">max_height</span><span class="p">;</span>
+<a id="line-1851" name="line-1851"></a>
+<a id="line-1852" name="line-1852"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">required_pixels</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">min_pixels</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">required_pixels</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="n">max_pixels</span><span class="p">)</span>
+<a id="line-1853" name="line-1853"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1854" name="line-1854"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR_BOUNDS_ERROR</span><span class="p">,</span>
+<a id="line-1855" name="line-1855"></a><span class="w"> </span><span class="cm">/* Translators: the &quot;requested&quot;, &quot;minimum&quot;, and</span>
+<a id="line-1856" name="line-1856"></a><span class="cm"> * &quot;maximum&quot; words here are not keywords; please</span>
+<a id="line-1857" name="line-1857"></a><span class="cm"> * translate them as usual. */</span>
+<a id="line-1858" name="line-1858"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;required virtual size does not fit available size: &quot;</span>
+<a id="line-1859" name="line-1859"></a><span class="w"> </span><span class="s">&quot;requested=(%d, %d), minimum=(%d, %d), maximum=(%d, %d)&quot;</span><span class="p">),</span>
+<a id="line-1860" name="line-1860"></a><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">,</span>
+<a id="line-1861" name="line-1861"></a><span class="w"> </span><span class="n">min_width</span><span class="p">,</span><span class="w"> </span><span class="n">min_height</span><span class="p">,</span>
+<a id="line-1862" name="line-1862"></a><span class="w"> </span><span class="n">max_width</span><span class="p">,</span><span class="w"> </span><span class="n">max_height</span><span class="p">);</span>
+<a id="line-1863" name="line-1863"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">fail</span><span class="p">;</span>
+<a id="line-1864" name="line-1864"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1865" name="line-1865"></a>
+<a id="line-1866" name="line-1866"></a><span class="w"> </span><span class="n">assignment</span><span class="o">-&gt;</span><span class="n">screen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">screen</span><span class="p">;</span>
+<a id="line-1867" name="line-1867"></a>
+<a id="line-1868" name="line-1868"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">assignment</span><span class="p">;</span>
+<a id="line-1869" name="line-1869"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1870" name="line-1870"></a>
+<a id="line-1871" name="line-1871"></a><span class="nl">fail</span><span class="p">:</span>
+<a id="line-1872" name="line-1872"></a><span class="w"> </span><span class="n">crtc_assignment_free</span><span class="w"> </span><span class="p">(</span><span class="n">assignment</span><span class="p">);</span>
+<a id="line-1873" name="line-1873"></a>
+<a id="line-1874" name="line-1874"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1875" name="line-1875"></a><span class="p">}</span>
+<a id="line-1876" name="line-1876"></a>
+<a id="line-1877" name="line-1877"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-1878" name="line-1878"></a><span class="nf">crtc_assignment_apply</span><span class="w"> </span><span class="p">(</span><span class="n">CrtcAssignment</span><span class="w"> </span><span class="o">*</span><span class="n">assign</span><span class="p">,</span><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">timestamp</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-1879" name="line-1879"></a><span class="p">{</span>
+<a id="line-1880" name="line-1880"></a><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">**</span><span class="n">all_crtcs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_screen_list_crtcs</span><span class="w"> </span><span class="p">(</span><span class="n">assign</span><span class="o">-&gt;</span><span class="n">screen</span><span class="p">);</span>
+<a id="line-1881" name="line-1881"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">;</span>
+<a id="line-1882" name="line-1882"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-1883" name="line-1883"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">min_width</span><span class="p">,</span><span class="w"> </span><span class="n">max_width</span><span class="p">,</span><span class="w"> </span><span class="n">min_height</span><span class="p">,</span><span class="w"> </span><span class="n">max_height</span><span class="p">;</span>
+<a id="line-1884" name="line-1884"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width_mm</span><span class="p">,</span><span class="w"> </span><span class="n">height_mm</span><span class="p">;</span>
+<a id="line-1885" name="line-1885"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">success</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1886" name="line-1886"></a>
+<a id="line-1887" name="line-1887"></a><span class="w"> </span><span class="cm">/* Compute size of the screen */</span>
+<a id="line-1888" name="line-1888"></a><span class="w"> </span><span class="n">get_required_virtual_size</span><span class="w"> </span><span class="p">(</span><span class="n">assign</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">height</span><span class="p">);</span>
+<a id="line-1889" name="line-1889"></a>
+<a id="line-1890" name="line-1890"></a><span class="w"> </span><span class="n">mate_rr_screen_get_ranges</span><span class="w"> </span><span class="p">(</span>
+<a id="line-1891" name="line-1891"></a><span class="w"> </span><span class="n">assign</span><span class="o">-&gt;</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">min_width</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">max_width</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">min_height</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">max_height</span><span class="p">);</span>
+<a id="line-1892" name="line-1892"></a>
+<a id="line-1893" name="line-1893"></a><span class="w"> </span><span class="cm">/* We should never get here if the dimensions don&#39;t fit in the virtual size,</span>
+<a id="line-1894" name="line-1894"></a><span class="cm"> * but just in case we do, fix it up.</span>
+<a id="line-1895" name="line-1895"></a><span class="cm"> */</span>
+<a id="line-1896" name="line-1896"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MAX</span><span class="w"> </span><span class="p">(</span><span class="n">min_width</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">);</span>
+<a id="line-1897" name="line-1897"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MIN</span><span class="w"> </span><span class="p">(</span><span class="n">max_width</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">);</span>
+<a id="line-1898" name="line-1898"></a><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MAX</span><span class="w"> </span><span class="p">(</span><span class="n">min_height</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">);</span>
+<a id="line-1899" name="line-1899"></a><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MIN</span><span class="w"> </span><span class="p">(</span><span class="n">max_height</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">);</span>
+<a id="line-1900" name="line-1900"></a>
+<a id="line-1901" name="line-1901"></a><span class="w"> </span><span class="cm">/* FMQ: do we need to check the sizes instead of clamping them? */</span>
+<a id="line-1902" name="line-1902"></a>
+<a id="line-1903" name="line-1903"></a><span class="w"> </span><span class="cm">/* Grab the server while we fiddle with the CRTCs and the screen, so that</span>
+<a id="line-1904" name="line-1904"></a><span class="cm"> * apps that listen for RANDR notifications will only receive the final</span>
+<a id="line-1905" name="line-1905"></a><span class="cm"> * status.</span>
+<a id="line-1906" name="line-1906"></a><span class="cm"> */</span>
+<a id="line-1907" name="line-1907"></a>
+<a id="line-1908" name="line-1908"></a><span class="w"> </span><span class="n">gdk_x11_display_grab</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_screen_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">assign</span><span class="o">-&gt;</span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">gdk_screen</span><span class="p">));</span>
+<a id="line-1909" name="line-1909"></a>
+<a id="line-1910" name="line-1910"></a><span class="w"> </span><span class="cm">/* Turn off all crtcs that are currently displaying outside the new screen,</span>
+<a id="line-1911" name="line-1911"></a><span class="cm"> * or are not used in the new setup</span>
+<a id="line-1912" name="line-1912"></a><span class="cm"> */</span>
+<a id="line-1913" name="line-1913"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">all_crtcs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-1914" name="line-1914"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1915" name="line-1915"></a><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">all_crtcs</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-1916" name="line-1916"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_crtc_get_current_mode</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="p">);</span>
+<a id="line-1917" name="line-1917"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">;</span>
+<a id="line-1918" name="line-1918"></a>
+<a id="line-1919" name="line-1919"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="p">)</span>
+<a id="line-1920" name="line-1920"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1921" name="line-1921"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">w</span><span class="p">,</span><span class="w"> </span><span class="n">h</span><span class="p">;</span>
+<a id="line-1922" name="line-1922"></a><span class="w"> </span><span class="n">mate_rr_crtc_get_position</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">y</span><span class="p">);</span>
+<a id="line-1923" name="line-1923"></a>
+<a id="line-1924" name="line-1924"></a><span class="w"> </span><span class="n">w</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_mode_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="p">);</span>
+<a id="line-1925" name="line-1925"></a><span class="w"> </span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_mode_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="p">);</span>
+<a id="line-1926" name="line-1926"></a>
+<a id="line-1927" name="line-1927"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">crtc_is_rotated</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="p">))</span>
+<a id="line-1928" name="line-1928"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1929" name="line-1929"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">h</span><span class="p">;</span>
+<a id="line-1930" name="line-1930"></a><span class="w"> </span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">w</span><span class="p">;</span>
+<a id="line-1931" name="line-1931"></a><span class="w"> </span><span class="n">w</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tmp</span><span class="p">;</span>
+<a id="line-1932" name="line-1932"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1933" name="line-1933"></a>
+<a id="line-1934" name="line-1934"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">x</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">w</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">h</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">g_hash_table_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">assign</span><span class="o">-&gt;</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">crtc</span><span class="p">))</span>
+<a id="line-1935" name="line-1935"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1936" name="line-1936"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mate_rr_crtc_set_config_with_time</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="p">,</span><span class="w"> </span><span class="n">timestamp</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ROTATION_0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">))</span>
+<a id="line-1937" name="line-1937"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1938" name="line-1938"></a><span class="w"> </span><span class="n">success</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1939" name="line-1939"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1940" name="line-1940"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1941" name="line-1941"></a>
+<a id="line-1942" name="line-1942"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1943" name="line-1943"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1944" name="line-1944"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1945" name="line-1945"></a>
+<a id="line-1946" name="line-1946"></a><span class="w"> </span><span class="cm">/* The &#39;physical size&#39; of an X screen is meaningless if that screen</span>
+<a id="line-1947" name="line-1947"></a><span class="cm"> * can consist of many monitors. So just pick a size that make the</span>
+<a id="line-1948" name="line-1948"></a><span class="cm"> * dpi 96.</span>
+<a id="line-1949" name="line-1949"></a><span class="cm"> *</span>
+<a id="line-1950" name="line-1950"></a><span class="cm"> * Firefox and Evince apparently believe what X tells them.</span>
+<a id="line-1951" name="line-1951"></a><span class="cm"> */</span>
+<a id="line-1952" name="line-1952"></a><span class="w"> </span><span class="n">width_mm</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">width</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">96.0</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mf">25.4</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">;</span>
+<a id="line-1953" name="line-1953"></a><span class="w"> </span><span class="n">height_mm</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">height</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">96.0</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mf">25.4</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">;</span>
+<a id="line-1954" name="line-1954"></a>
+<a id="line-1955" name="line-1955"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">success</span><span class="p">)</span>
+<a id="line-1956" name="line-1956"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1957" name="line-1957"></a><span class="w"> </span><span class="n">ConfigureCrtcState</span><span class="w"> </span><span class="n">state</span><span class="p">;</span>
+<a id="line-1958" name="line-1958"></a>
+<a id="line-1959" name="line-1959"></a><span class="w"> </span><span class="n">mate_rr_screen_set_size</span><span class="w"> </span><span class="p">(</span><span class="n">assign</span><span class="o">-&gt;</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">,</span><span class="w"> </span><span class="n">width_mm</span><span class="p">,</span><span class="w"> </span><span class="n">height_mm</span><span class="p">);</span>
+<a id="line-1960" name="line-1960"></a>
+<a id="line-1961" name="line-1961"></a><span class="w"> </span><span class="n">state</span><span class="p">.</span><span class="n">timestamp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">timestamp</span><span class="p">;</span>
+<a id="line-1962" name="line-1962"></a><span class="w"> </span><span class="n">state</span><span class="p">.</span><span class="n">has_error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1963" name="line-1963"></a><span class="w"> </span><span class="n">state</span><span class="p">.</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">error</span><span class="p">;</span>
+<a id="line-1964" name="line-1964"></a>
+<a id="line-1965" name="line-1965"></a><span class="w"> </span><span class="n">g_hash_table_foreach</span><span class="w"> </span><span class="p">(</span><span class="n">assign</span><span class="o">-&gt;</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">configure_crtc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">state</span><span class="p">);</span>
+<a id="line-1966" name="line-1966"></a>
+<a id="line-1967" name="line-1967"></a><span class="w"> </span><span class="n">success</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">!</span><span class="n">state</span><span class="p">.</span><span class="n">has_error</span><span class="p">;</span>
+<a id="line-1968" name="line-1968"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1969" name="line-1969"></a>
+<a id="line-1970" name="line-1970"></a><span class="w"> </span><span class="n">mate_rr_screen_set_primary_output</span><span class="w"> </span><span class="p">(</span><span class="n">assign</span><span class="o">-&gt;</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">assign</span><span class="o">-&gt;</span><span class="n">primary</span><span class="p">);</span>
+<a id="line-1971" name="line-1971"></a>
+<a id="line-1972" name="line-1972"></a><span class="w"> </span><span class="n">gdk_x11_display_ungrab</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_screen_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">assign</span><span class="o">-&gt;</span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">gdk_screen</span><span class="p">));</span>
+<a id="line-1973" name="line-1973"></a>
+<a id="line-1974" name="line-1974"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">success</span><span class="p">;</span>
+<a id="line-1975" name="line-1975"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/24.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/24.html
new file mode 100644
index 0000000..5ea1139
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/24.html
@@ -0,0 +1,637 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/mate-rr.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-rr.h</p>
+<a href="24.html#line-31"> missingIncludeSystem 31</a><a href="24.html#line-32"> missingIncludeSystem 32</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal"> 10</span>
+<span class="normal"> 11</span>
+<span class="normal"> 12</span>
+<span class="normal"> 13</span>
+<span class="normal"> 14</span>
+<span class="normal"> 15</span>
+<span class="normal"> 16</span>
+<span class="normal"> 17</span>
+<span class="normal"> 18</span>
+<span class="normal"> 19</span>
+<span class="normal"> 20</span>
+<span class="normal"> 21</span>
+<span class="normal"> 22</span>
+<span class="normal"> 23</span>
+<span class="normal"> 24</span>
+<span class="normal"> 25</span>
+<span class="normal"> 26</span>
+<span class="normal"> 27</span>
+<span class="normal"> 28</span>
+<span class="normal"> 29</span>
+<span class="normal"> 30</span>
+<span class="normal"> 31</span>
+<span class="normal"> 32</span>
+<span class="normal"> 33</span>
+<span class="normal"> 34</span>
+<span class="normal"> 35</span>
+<span class="normal"> 36</span>
+<span class="normal"> 37</span>
+<span class="normal"> 38</span>
+<span class="normal"> 39</span>
+<span class="normal"> 40</span>
+<span class="normal"> 41</span>
+<span class="normal"> 42</span>
+<span class="normal"> 43</span>
+<span class="normal"> 44</span>
+<span class="normal"> 45</span>
+<span class="normal"> 46</span>
+<span class="normal"> 47</span>
+<span class="normal"> 48</span>
+<span class="normal"> 49</span>
+<span class="normal"> 50</span>
+<span class="normal"> 51</span>
+<span class="normal"> 52</span>
+<span class="normal"> 53</span>
+<span class="normal"> 54</span>
+<span class="normal"> 55</span>
+<span class="normal"> 56</span>
+<span class="normal"> 57</span>
+<span class="normal"> 58</span>
+<span class="normal"> 59</span>
+<span class="normal"> 60</span>
+<span class="normal"> 61</span>
+<span class="normal"> 62</span>
+<span class="normal"> 63</span>
+<span class="normal"> 64</span>
+<span class="normal"> 65</span>
+<span class="normal"> 66</span>
+<span class="normal"> 67</span>
+<span class="normal"> 68</span>
+<span class="normal"> 69</span>
+<span class="normal"> 70</span>
+<span class="normal"> 71</span>
+<span class="normal"> 72</span>
+<span class="normal"> 73</span>
+<span class="normal"> 74</span>
+<span class="normal"> 75</span>
+<span class="normal"> 76</span>
+<span class="normal"> 77</span>
+<span class="normal"> 78</span>
+<span class="normal"> 79</span>
+<span class="normal"> 80</span>
+<span class="normal"> 81</span>
+<span class="normal"> 82</span>
+<span class="normal"> 83</span>
+<span class="normal"> 84</span>
+<span class="normal"> 85</span>
+<span class="normal"> 86</span>
+<span class="normal"> 87</span>
+<span class="normal"> 88</span>
+<span class="normal"> 89</span>
+<span class="normal"> 90</span>
+<span class="normal"> 91</span>
+<span class="normal"> 92</span>
+<span class="normal"> 93</span>
+<span class="normal"> 94</span>
+<span class="normal"> 95</span>
+<span class="normal"> 96</span>
+<span class="normal"> 97</span>
+<span class="normal"> 98</span>
+<span class="normal"> 99</span>
+<span class="normal">100</span>
+<span class="normal">101</span>
+<span class="normal">102</span>
+<span class="normal">103</span>
+<span class="normal">104</span>
+<span class="normal">105</span>
+<span class="normal">106</span>
+<span class="normal">107</span>
+<span class="normal">108</span>
+<span class="normal">109</span>
+<span class="normal">110</span>
+<span class="normal">111</span>
+<span class="normal">112</span>
+<span class="normal">113</span>
+<span class="normal">114</span>
+<span class="normal">115</span>
+<span class="normal">116</span>
+<span class="normal">117</span>
+<span class="normal">118</span>
+<span class="normal">119</span>
+<span class="normal">120</span>
+<span class="normal">121</span>
+<span class="normal">122</span>
+<span class="normal">123</span>
+<span class="normal">124</span>
+<span class="normal">125</span>
+<span class="normal">126</span>
+<span class="normal">127</span>
+<span class="normal">128</span>
+<span class="normal">129</span>
+<span class="normal">130</span>
+<span class="normal">131</span>
+<span class="normal">132</span>
+<span class="normal">133</span>
+<span class="normal">134</span>
+<span class="normal">135</span>
+<span class="normal">136</span>
+<span class="normal">137</span>
+<span class="normal">138</span>
+<span class="normal">139</span>
+<span class="normal">140</span>
+<span class="normal">141</span>
+<span class="normal">142</span>
+<span class="normal">143</span>
+<span class="normal">144</span>
+<span class="normal">145</span>
+<span class="normal">146</span>
+<span class="normal">147</span>
+<span class="normal">148</span>
+<span class="normal">149</span>
+<span class="normal">150</span>
+<span class="normal">151</span>
+<span class="normal">152</span>
+<span class="normal">153</span>
+<span class="normal">154</span>
+<span class="normal">155</span>
+<span class="normal">156</span>
+<span class="normal">157</span>
+<span class="normal">158</span>
+<span class="normal">159</span>
+<span class="normal">160</span>
+<span class="normal">161</span>
+<span class="normal">162</span>
+<span class="normal">163</span>
+<span class="normal">164</span>
+<span class="normal">165</span>
+<span class="normal">166</span>
+<span class="normal">167</span>
+<span class="normal">168</span>
+<span class="normal">169</span>
+<span class="normal">170</span>
+<span class="normal">171</span>
+<span class="normal">172</span>
+<span class="normal">173</span>
+<span class="normal">174</span>
+<span class="normal">175</span>
+<span class="normal">176</span>
+<span class="normal">177</span>
+<span class="normal">178</span>
+<span class="normal">179</span>
+<span class="normal">180</span>
+<span class="normal">181</span>
+<span class="normal">182</span>
+<span class="normal">183</span>
+<span class="normal">184</span>
+<span class="normal">185</span>
+<span class="normal">186</span>
+<span class="normal">187</span>
+<span class="normal">188</span>
+<span class="normal">189</span>
+<span class="normal">190</span>
+<span class="normal">191</span>
+<span class="normal">192</span>
+<span class="normal">193</span>
+<span class="normal">194</span>
+<span class="normal">195</span>
+<span class="normal">196</span>
+<span class="normal">197</span>
+<span class="normal">198</span>
+<span class="normal">199</span>
+<span class="normal">200</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* mate-rr.h</span>
+<a id="line-2" name="line-2"></a><span class="cm"> *</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright 2007, 2008, Red Hat, Inc.</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This file is part of the Mate Library.</span>
+<a id="line-6" name="line-6"></a><span class="cm"> *</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * The Mate Library is free software; you can redistribute it and/or</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * modify it under the terms of the GNU Library General Public License as</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * published by the Free Software Foundation; either version 2 of the</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * License, or (at your option) any later version.</span>
+<a id="line-11" name="line-11"></a><span class="cm"> *</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * The Mate Library is distributed in the hope that it will be useful,</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * Library General Public License for more details.</span>
+<a id="line-16" name="line-16"></a><span class="cm"> *</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * You should have received a copy of the GNU Library General Public</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * License along with the Mate Library; see the file COPYING.LIB. If not,</span>
+<a id="line-19" name="line-19"></a><span class="cm"> * write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-21" name="line-21"></a><span class="cm"> *</span>
+<a id="line-22" name="line-22"></a><span class="cm"> * Author: Soren Sandmann &lt;[email protected]&gt;</span>
+<a id="line-23" name="line-23"></a><span class="cm"> */</span>
+<a id="line-24" name="line-24"></a><span class="cp">#ifndef MATE_RR_H</span>
+<a id="line-25" name="line-25"></a><span class="cp">#define MATE_RR_H</span>
+<a id="line-26" name="line-26"></a>
+<a id="line-27" name="line-27"></a><span class="cp">#ifndef MATE_DESKTOP_USE_UNSTABLE_API</span>
+<a id="line-28" name="line-28"></a><span class="cp">#error MateRR is unstable API. You must define MATE_DESKTOP_USE_UNSTABLE_API before including materr.h</span>
+<a id="line-29" name="line-29"></a><span class="cp">#endif</span>
+<a id="line-30" name="line-30"></a>
+<a id="line-31" name="line-31"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib.h&gt;</span><span class="error2">&lt;--- Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-32" name="line-32"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdk.h&gt;</span><span class="error2">&lt;--- Include file: <gdk/gdk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-33" name="line-33"></a>
+<a id="line-34" name="line-34"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">MateRRScreenPrivate</span><span class="w"> </span><span class="n">MateRRScreenPrivate</span><span class="p">;</span>
+<a id="line-35" name="line-35"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">MateRROutput</span><span class="w"> </span><span class="n">MateRROutput</span><span class="p">;</span>
+<a id="line-36" name="line-36"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">MateRRCrtc</span><span class="w"> </span><span class="n">MateRRCrtc</span><span class="p">;</span>
+<a id="line-37" name="line-37"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">MateRRMode</span><span class="w"> </span><span class="n">MateRRMode</span><span class="p">;</span>
+<a id="line-38" name="line-38"></a>
+<a id="line-39" name="line-39"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="p">{</span>
+<a id="line-40" name="line-40"></a><span class="w"> </span><span class="n">GObject</span><span class="w"> </span><span class="n">parent</span><span class="p">;</span>
+<a id="line-41" name="line-41"></a>
+<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">MateRRScreenPrivate</span><span class="o">*</span><span class="w"> </span><span class="n">priv</span><span class="p">;</span>
+<a id="line-43" name="line-43"></a><span class="p">}</span><span class="w"> </span><span class="n">MateRRScreen</span><span class="p">;</span>
+<a id="line-44" name="line-44"></a>
+<a id="line-45" name="line-45"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="p">{</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="n">parent_class</span><span class="p">;</span>
+<a id="line-47" name="line-47"></a>
+<a id="line-48" name="line-48"></a><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="w"> </span><span class="n">changed</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-49" name="line-49"></a><span class="p">}</span><span class="w"> </span><span class="n">MateRRScreenClass</span><span class="p">;</span>
+<a id="line-50" name="line-50"></a>
+<a id="line-51" name="line-51"></a><span class="k">typedef</span><span class="w"> </span><span class="k">enum</span>
+<a id="line-52" name="line-52"></a><span class="p">{</span>
+<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">MATE_RR_ROTATION_0</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">0</span><span class="p">),</span>
+<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">MATE_RR_ROTATION_90</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">1</span><span class="p">),</span>
+<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">MATE_RR_ROTATION_180</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">2</span><span class="p">),</span>
+<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">MATE_RR_ROTATION_270</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">3</span><span class="p">),</span>
+<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">MATE_RR_REFLECT_X</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">4</span><span class="p">),</span>
+<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">MATE_RR_REFLECT_Y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">5</span><span class="p">)</span>
+<a id="line-59" name="line-59"></a><span class="p">}</span><span class="w"> </span><span class="n">MateRRRotation</span><span class="p">;</span>
+<a id="line-60" name="line-60"></a>
+<a id="line-61" name="line-61"></a><span class="cm">/* Error codes */</span>
+<a id="line-62" name="line-62"></a>
+<a id="line-63" name="line-63"></a><span class="cp">#define MATE_RR_ERROR (mate_rr_error_quark ())</span>
+<a id="line-64" name="line-64"></a>
+<a id="line-65" name="line-65"></a><span class="n">GQuark</span><span class="w"> </span><span class="nf">mate_rr_error_quark</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-66" name="line-66"></a>
+<a id="line-67" name="line-67"></a><span class="k">typedef</span><span class="w"> </span><span class="k">enum</span><span class="w"> </span><span class="p">{</span>
+<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">MATE_RR_ERROR_UNKNOWN</span><span class="p">,</span><span class="w"> </span><span class="cm">/* generic &quot;fail&quot; */</span>
+<a id="line-69" name="line-69"></a><span class="w"> </span><span class="n">MATE_RR_ERROR_NO_RANDR_EXTENSION</span><span class="p">,</span><span class="w"> </span><span class="cm">/* RANDR extension is not present */</span>
+<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">MATE_RR_ERROR_RANDR_ERROR</span><span class="p">,</span><span class="w"> </span><span class="cm">/* generic/undescribed error from the underlying XRR API */</span>
+<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">MATE_RR_ERROR_BOUNDS_ERROR</span><span class="p">,</span><span class="w"> </span><span class="cm">/* requested bounds of a CRTC are outside the maximum size */</span>
+<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">MATE_RR_ERROR_CRTC_ASSIGNMENT</span><span class="p">,</span><span class="w"> </span><span class="cm">/* could not assign CRTCs to outputs */</span>
+<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">MATE_RR_ERROR_NO_MATCHING_CONFIG</span><span class="p">,</span><span class="w"> </span><span class="cm">/* none of the saved configurations matched the current configuration */</span>
+<a id="line-74" name="line-74"></a><span class="p">}</span><span class="w"> </span><span class="n">MateRRError</span><span class="p">;</span>
+<a id="line-75" name="line-75"></a>
+<a id="line-76" name="line-76"></a><span class="cp">#define MATE_RR_CONNECTOR_TYPE_PANEL &quot;Panel&quot; </span><span class="cm">/* This is a laptop&#39;s built-in LCD */</span>
+<a id="line-77" name="line-77"></a>
+<a id="line-78" name="line-78"></a><span class="cp">#define MATE_TYPE_RR_SCREEN (mate_rr_screen_get_type())</span>
+<a id="line-79" name="line-79"></a><span class="cp">#define MATE_RR_SCREEN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATE_TYPE_RR_SCREEN, MateRRScreen))</span>
+<a id="line-80" name="line-80"></a><span class="cp">#define MATE_IS_RR_SCREEN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MATE_TYPE_RR_SCREEN))</span>
+<a id="line-81" name="line-81"></a><span class="cp">#define MATE_RR_SCREEN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MATE_TYPE_RR_SCREEN, MateRRScreenClass))</span>
+<a id="line-82" name="line-82"></a><span class="cp">#define MATE_IS_RR_SCREEN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MATE_TYPE_RR_SCREEN))</span>
+<a id="line-83" name="line-83"></a><span class="cp">#define MATE_RR_SCREEN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MATE_TYPE_RR_SCREEN, MateRRScreenClass))</span>
+<a id="line-84" name="line-84"></a>
+<a id="line-85" name="line-85"></a><span class="cp">#define MATE_TYPE_RR_OUTPUT (mate_rr_output_get_type())</span>
+<a id="line-86" name="line-86"></a><span class="cp">#define MATE_TYPE_RR_CRTC (mate_rr_crtc_get_type())</span>
+<a id="line-87" name="line-87"></a><span class="cp">#define MATE_TYPE_RR_MODE (mate_rr_mode_get_type())</span>
+<a id="line-88" name="line-88"></a>
+<a id="line-89" name="line-89"></a><span class="n">GType</span><span class="w"> </span><span class="nf">mate_rr_screen_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-90" name="line-90"></a><span class="n">GType</span><span class="w"> </span><span class="nf">mate_rr_output_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-91" name="line-91"></a><span class="n">GType</span><span class="w"> </span><span class="nf">mate_rr_crtc_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-92" name="line-92"></a><span class="n">GType</span><span class="w"> </span><span class="nf">mate_rr_mode_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-93" name="line-93"></a>
+<a id="line-94" name="line-94"></a><span class="cm">/* MateRRScreen */</span>
+<a id="line-95" name="line-95"></a><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nf">mate_rr_screen_new</span><span class="w"> </span><span class="p">(</span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-96" name="line-96"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">);</span>
+<a id="line-97" name="line-97"></a><span class="n">MateRROutput</span><span class="w"> </span><span class="o">**</span><span class="nf">mate_rr_screen_list_outputs</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">);</span>
+<a id="line-98" name="line-98"></a><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">**</span><span class="w"> </span><span class="nf">mate_rr_screen_list_crtcs</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">);</span>
+<a id="line-99" name="line-99"></a><span class="n">MateRRMode</span><span class="w"> </span><span class="o">**</span><span class="w"> </span><span class="nf">mate_rr_screen_list_modes</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">);</span>
+<a id="line-100" name="line-100"></a><span class="n">MateRRMode</span><span class="w"> </span><span class="o">**</span><span class="w"> </span><span class="nf">mate_rr_screen_list_clone_modes</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">);</span>
+<a id="line-101" name="line-101"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_rr_screen_set_size</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-102" name="line-102"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">,</span>
+<a id="line-103" name="line-103"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">height</span><span class="p">,</span>
+<a id="line-104" name="line-104"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">mm_width</span><span class="p">,</span>
+<a id="line-105" name="line-105"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">mm_height</span><span class="p">);</span>
+<a id="line-106" name="line-106"></a><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nf">mate_rr_screen_get_crtc_by_id</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">id</span><span class="p">);</span>
+<a id="line-108" name="line-108"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_rr_screen_refresh</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">);</span>
+<a id="line-110" name="line-110"></a><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nf">mate_rr_screen_get_output_by_id</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">id</span><span class="p">);</span>
+<a id="line-112" name="line-112"></a><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nf">mate_rr_screen_get_output_by_name</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-113" name="line-113"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">);</span>
+<a id="line-114" name="line-114"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_rr_screen_get_ranges</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-115" name="line-115"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">min_width</span><span class="p">,</span>
+<a id="line-116" name="line-116"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">max_width</span><span class="p">,</span>
+<a id="line-117" name="line-117"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">min_height</span><span class="p">,</span>
+<a id="line-118" name="line-118"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">max_height</span><span class="p">);</span>
+<a id="line-119" name="line-119"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_rr_screen_get_timestamps</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="o">*</span><span class="n">change_timestamp_ret</span><span class="p">,</span>
+<a id="line-121" name="line-121"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="o">*</span><span class="n">config_timestamp_ret</span><span class="p">);</span>
+<a id="line-122" name="line-122"></a>
+<a id="line-123" name="line-123"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_rr_screen_set_primary_output</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">);</span>
+<a id="line-125" name="line-125"></a>
+<a id="line-126" name="line-126"></a><span class="cm">/* MateRROutput */</span>
+<a id="line-127" name="line-127"></a><span class="n">guint32</span><span class="w"> </span><span class="nf">mate_rr_output_get_id</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">);</span>
+<a id="line-128" name="line-128"></a><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nf">mate_rr_output_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">);</span>
+<a id="line-129" name="line-129"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_rr_output_is_connected</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">);</span>
+<a id="line-130" name="line-130"></a><span class="kt">int</span><span class="w"> </span><span class="nf">mate_rr_output_get_size_inches</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">);</span>
+<a id="line-131" name="line-131"></a><span class="kt">int</span><span class="w"> </span><span class="nf">mate_rr_output_get_width_mm</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">outout</span><span class="p">);</span>
+<a id="line-132" name="line-132"></a><span class="kt">int</span><span class="w"> </span><span class="nf">mate_rr_output_get_height_mm</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">);</span>
+<a id="line-133" name="line-133"></a><span class="k">const</span><span class="w"> </span><span class="n">guint8</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nf">mate_rr_output_get_edid_data</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">);</span>
+<a id="line-134" name="line-134"></a><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">**</span><span class="w"> </span><span class="nf">mate_rr_output_get_possible_crtcs</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">);</span>
+<a id="line-135" name="line-135"></a><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nf">mate_rr_output_get_current_mode</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">);</span>
+<a id="line-136" name="line-136"></a><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nf">mate_rr_output_get_crtc</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">);</span>
+<a id="line-137" name="line-137"></a><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nf">mate_rr_output_get_connector_type</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">);</span>
+<a id="line-138" name="line-138"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_rr_output_is_laptop</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">);</span>
+<a id="line-139" name="line-139"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_rr_output_get_position</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">,</span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">);</span>
+<a id="line-142" name="line-142"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_rr_output_can_clone</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">,</span>
+<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">clone</span><span class="p">);</span>
+<a id="line-144" name="line-144"></a><span class="n">MateRRMode</span><span class="w"> </span><span class="o">**</span><span class="w"> </span><span class="nf">mate_rr_output_list_modes</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">);</span>
+<a id="line-145" name="line-145"></a><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nf">mate_rr_output_get_preferred_mode</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">);</span>
+<a id="line-146" name="line-146"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_rr_output_supports_mode</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">,</span>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="p">);</span>
+<a id="line-148" name="line-148"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_rr_output_get_is_primary</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">);</span>
+<a id="line-149" name="line-149"></a>
+<a id="line-150" name="line-150"></a><span class="cm">/* MateRRMode */</span>
+<a id="line-151" name="line-151"></a><span class="n">guint32</span><span class="w"> </span><span class="nf">mate_rr_mode_get_id</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="p">);</span>
+<a id="line-152" name="line-152"></a><span class="n">guint</span><span class="w"> </span><span class="nf">mate_rr_mode_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="p">);</span>
+<a id="line-153" name="line-153"></a><span class="n">guint</span><span class="w"> </span><span class="nf">mate_rr_mode_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="p">);</span>
+<a id="line-154" name="line-154"></a><span class="kt">int</span><span class="w"> </span><span class="nf">mate_rr_mode_get_freq</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="p">);</span>
+<a id="line-155" name="line-155"></a>
+<a id="line-156" name="line-156"></a><span class="cm">/* MateRRCrtc */</span>
+<a id="line-157" name="line-157"></a><span class="n">guint32</span><span class="w"> </span><span class="nf">mate_rr_crtc_get_id</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">);</span>
+<a id="line-158" name="line-158"></a>
+<a id="line-159" name="line-159"></a><span class="cp">#ifndef MATE_DISABLE_DEPRECATED</span>
+<a id="line-160" name="line-160"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_rr_crtc_set_config</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">,</span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x</span><span class="p">,</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">y</span><span class="p">,</span>
+<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="p">,</span>
+<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">MateRRRotation</span><span class="w"> </span><span class="n">rotation</span><span class="p">,</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">**</span><span class="n">outputs</span><span class="p">,</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n_outputs</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">);</span>
+<a id="line-168" name="line-168"></a><span class="cp">#endif</span>
+<a id="line-169" name="line-169"></a>
+<a id="line-170" name="line-170"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_rr_crtc_set_config_with_time</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">,</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">timestamp</span><span class="p">,</span>
+<a id="line-172" name="line-172"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x</span><span class="p">,</span>
+<a id="line-173" name="line-173"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">y</span><span class="p">,</span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="p">,</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">MateRRRotation</span><span class="w"> </span><span class="n">rotation</span><span class="p">,</span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">**</span><span class="n">outputs</span><span class="p">,</span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n_outputs</span><span class="p">,</span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">);</span>
+<a id="line-179" name="line-179"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_rr_crtc_can_drive_output</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">,</span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">);</span>
+<a id="line-181" name="line-181"></a><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nf">mate_rr_crtc_get_current_mode</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">);</span>
+<a id="line-182" name="line-182"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_rr_crtc_get_position</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">,</span>
+<a id="line-183" name="line-183"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">);</span>
+<a id="line-185" name="line-185"></a><span class="n">MateRRRotation</span><span class="w"> </span><span class="nf">mate_rr_crtc_get_current_rotation</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">);</span>
+<a id="line-186" name="line-186"></a><span class="n">MateRRRotation</span><span class="w"> </span><span class="nf">mate_rr_crtc_get_rotations</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">);</span>
+<a id="line-187" name="line-187"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_rr_crtc_supports_rotation</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">,</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">MateRRRotation</span><span class="w"> </span><span class="n">rotation</span><span class="p">);</span>
+<a id="line-189" name="line-189"></a>
+<a id="line-190" name="line-190"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_rr_crtc_get_gamma</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">,</span>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">size</span><span class="p">,</span>
+<a id="line-192" name="line-192"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">short</span><span class="w"> </span><span class="o">**</span><span class="n">red</span><span class="p">,</span>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">short</span><span class="w"> </span><span class="o">**</span><span class="n">green</span><span class="p">,</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">short</span><span class="w"> </span><span class="o">**</span><span class="n">blue</span><span class="p">);</span>
+<a id="line-195" name="line-195"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_rr_crtc_set_gamma</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">,</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">size</span><span class="p">,</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">short</span><span class="w"> </span><span class="o">*</span><span class="n">red</span><span class="p">,</span>
+<a id="line-198" name="line-198"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">short</span><span class="w"> </span><span class="o">*</span><span class="n">green</span><span class="p">,</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">short</span><span class="w"> </span><span class="o">*</span><span class="n">blue</span><span class="p">);</span>
+<a id="line-200" name="line-200"></a><span class="cp">#endif </span><span class="cm">/* MATE_RR_H */</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/25.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/25.html
new file mode 100644
index 0000000..154c66e
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/25.html
@@ -0,0 +1,537 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/mate-rr-config.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-rr-config.h</p>
+<a href="25.html#line-34"> missingIncludeSystem 34</a><a href="25.html#line-35"> missingIncludeSystem 35</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal"> 10</span>
+<span class="normal"> 11</span>
+<span class="normal"> 12</span>
+<span class="normal"> 13</span>
+<span class="normal"> 14</span>
+<span class="normal"> 15</span>
+<span class="normal"> 16</span>
+<span class="normal"> 17</span>
+<span class="normal"> 18</span>
+<span class="normal"> 19</span>
+<span class="normal"> 20</span>
+<span class="normal"> 21</span>
+<span class="normal"> 22</span>
+<span class="normal"> 23</span>
+<span class="normal"> 24</span>
+<span class="normal"> 25</span>
+<span class="normal"> 26</span>
+<span class="normal"> 27</span>
+<span class="normal"> 28</span>
+<span class="normal"> 29</span>
+<span class="normal"> 30</span>
+<span class="normal"> 31</span>
+<span class="normal"> 32</span>
+<span class="normal"> 33</span>
+<span class="normal"> 34</span>
+<span class="normal"> 35</span>
+<span class="normal"> 36</span>
+<span class="normal"> 37</span>
+<span class="normal"> 38</span>
+<span class="normal"> 39</span>
+<span class="normal"> 40</span>
+<span class="normal"> 41</span>
+<span class="normal"> 42</span>
+<span class="normal"> 43</span>
+<span class="normal"> 44</span>
+<span class="normal"> 45</span>
+<span class="normal"> 46</span>
+<span class="normal"> 47</span>
+<span class="normal"> 48</span>
+<span class="normal"> 49</span>
+<span class="normal"> 50</span>
+<span class="normal"> 51</span>
+<span class="normal"> 52</span>
+<span class="normal"> 53</span>
+<span class="normal"> 54</span>
+<span class="normal"> 55</span>
+<span class="normal"> 56</span>
+<span class="normal"> 57</span>
+<span class="normal"> 58</span>
+<span class="normal"> 59</span>
+<span class="normal"> 60</span>
+<span class="normal"> 61</span>
+<span class="normal"> 62</span>
+<span class="normal"> 63</span>
+<span class="normal"> 64</span>
+<span class="normal"> 65</span>
+<span class="normal"> 66</span>
+<span class="normal"> 67</span>
+<span class="normal"> 68</span>
+<span class="normal"> 69</span>
+<span class="normal"> 70</span>
+<span class="normal"> 71</span>
+<span class="normal"> 72</span>
+<span class="normal"> 73</span>
+<span class="normal"> 74</span>
+<span class="normal"> 75</span>
+<span class="normal"> 76</span>
+<span class="normal"> 77</span>
+<span class="normal"> 78</span>
+<span class="normal"> 79</span>
+<span class="normal"> 80</span>
+<span class="normal"> 81</span>
+<span class="normal"> 82</span>
+<span class="normal"> 83</span>
+<span class="normal"> 84</span>
+<span class="normal"> 85</span>
+<span class="normal"> 86</span>
+<span class="normal"> 87</span>
+<span class="normal"> 88</span>
+<span class="normal"> 89</span>
+<span class="normal"> 90</span>
+<span class="normal"> 91</span>
+<span class="normal"> 92</span>
+<span class="normal"> 93</span>
+<span class="normal"> 94</span>
+<span class="normal"> 95</span>
+<span class="normal"> 96</span>
+<span class="normal"> 97</span>
+<span class="normal"> 98</span>
+<span class="normal"> 99</span>
+<span class="normal">100</span>
+<span class="normal">101</span>
+<span class="normal">102</span>
+<span class="normal">103</span>
+<span class="normal">104</span>
+<span class="normal">105</span>
+<span class="normal">106</span>
+<span class="normal">107</span>
+<span class="normal">108</span>
+<span class="normal">109</span>
+<span class="normal">110</span>
+<span class="normal">111</span>
+<span class="normal">112</span>
+<span class="normal">113</span>
+<span class="normal">114</span>
+<span class="normal">115</span>
+<span class="normal">116</span>
+<span class="normal">117</span>
+<span class="normal">118</span>
+<span class="normal">119</span>
+<span class="normal">120</span>
+<span class="normal">121</span>
+<span class="normal">122</span>
+<span class="normal">123</span>
+<span class="normal">124</span>
+<span class="normal">125</span>
+<span class="normal">126</span>
+<span class="normal">127</span>
+<span class="normal">128</span>
+<span class="normal">129</span>
+<span class="normal">130</span>
+<span class="normal">131</span>
+<span class="normal">132</span>
+<span class="normal">133</span>
+<span class="normal">134</span>
+<span class="normal">135</span>
+<span class="normal">136</span>
+<span class="normal">137</span>
+<span class="normal">138</span>
+<span class="normal">139</span>
+<span class="normal">140</span>
+<span class="normal">141</span>
+<span class="normal">142</span>
+<span class="normal">143</span>
+<span class="normal">144</span>
+<span class="normal">145</span>
+<span class="normal">146</span>
+<span class="normal">147</span>
+<span class="normal">148</span>
+<span class="normal">149</span>
+<span class="normal">150</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* mate-rr-config.h</span>
+<a id="line-2" name="line-2"></a><span class="cm"> * -*- c-basic-offset: 4 -*-</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * Copyright 2007, 2008, Red Hat, Inc.</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * Copyright 2010 Giovanni Campagna</span>
+<a id="line-6" name="line-6"></a><span class="cm"> *</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * This file is part of the Mate Library.</span>
+<a id="line-8" name="line-8"></a><span class="cm"> *</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * The Mate Library is free software; you can redistribute it and/or</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * modify it under the terms of the GNU Library General Public License as</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * published by the Free Software Foundation; either version 2 of the</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * License, or (at your option) any later version.</span>
+<a id="line-13" name="line-13"></a><span class="cm"> *</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * The Mate Library is distributed in the hope that it will be useful,</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Library General Public License for more details.</span>
+<a id="line-18" name="line-18"></a><span class="cm"> *</span>
+<a id="line-19" name="line-19"></a><span class="cm"> * You should have received a copy of the GNU Library General Public</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * License along with the Mate Library; see the file COPYING.LIB. If not,</span>
+<a id="line-21" name="line-21"></a><span class="cm"> * write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,</span>
+<a id="line-22" name="line-22"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-23" name="line-23"></a><span class="cm"> *</span>
+<a id="line-24" name="line-24"></a><span class="cm"> * Author: Soren Sandmann &lt;[email protected]&gt;</span>
+<a id="line-25" name="line-25"></a><span class="cm"> */</span>
+<a id="line-26" name="line-26"></a><span class="cp">#ifndef MATE_RR_CONFIG_H</span>
+<a id="line-27" name="line-27"></a><span class="cp">#define MATE_RR_CONFIG_H</span>
+<a id="line-28" name="line-28"></a>
+<a id="line-29" name="line-29"></a><span class="cp">#ifndef MATE_DESKTOP_USE_UNSTABLE_API</span>
+<a id="line-30" name="line-30"></a><span class="cp">#error mate-rr-config.h is unstable API. You must define MATE_DESKTOP_USE_UNSTABLE_API before including mate-rr-config.h</span>
+<a id="line-31" name="line-31"></a><span class="cp">#endif</span>
+<a id="line-32" name="line-32"></a>
+<a id="line-33" name="line-33"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;mate-rr.h&quot;</span>
+<a id="line-34" name="line-34"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib.h&gt;</span><span class="error2">&lt;--- Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-35" name="line-35"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib-object.h&gt;</span><span class="error2">&lt;--- Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-36" name="line-36"></a>
+<a id="line-37" name="line-37"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">MateRROutputInfoPrivate</span><span class="w"> </span><span class="n">MateRROutputInfoPrivate</span><span class="p">;</span>
+<a id="line-38" name="line-38"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">MateRRConfigPrivate</span><span class="w"> </span><span class="n">MateRRConfigPrivate</span><span class="p">;</span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span>
+<a id="line-41" name="line-41"></a><span class="p">{</span>
+<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">GObject</span><span class="w"> </span><span class="n">parent</span><span class="p">;</span>
+<a id="line-43" name="line-43"></a>
+<a id="line-44" name="line-44"></a><span class="w"> </span><span class="cm">/*&lt; private &gt;*/</span>
+<a id="line-45" name="line-45"></a><span class="w"> </span><span class="n">MateRROutputInfoPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-46" name="line-46"></a><span class="p">}</span><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="p">;</span>
+<a id="line-47" name="line-47"></a>
+<a id="line-48" name="line-48"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span>
+<a id="line-49" name="line-49"></a><span class="p">{</span>
+<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="n">parent_class</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a><span class="p">}</span><span class="w"> </span><span class="n">MateRROutputInfoClass</span><span class="p">;</span>
+<a id="line-52" name="line-52"></a>
+<a id="line-53" name="line-53"></a><span class="cp">#define MATE_TYPE_RR_OUTPUT_INFO (mate_rr_output_info_get_type())</span>
+<a id="line-54" name="line-54"></a><span class="cp">#define MATE_RR_OUTPUT_INFO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATE_TYPE_RR_OUTPUT_INFO, MateRROutputInfo))</span>
+<a id="line-55" name="line-55"></a><span class="cp">#define MATE_IS_RR_OUTPUT_INFO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MATE_TYPE_RR_OUTPUT_INFO))</span>
+<a id="line-56" name="line-56"></a><span class="cp">#define MATE_RR_OUTPUT_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MATE_TYPE_RR_OUTPUT_INFO, MateRROutputInfoClass))</span>
+<a id="line-57" name="line-57"></a><span class="cp">#define MATE_IS_RR_OUTPUT_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MATE_TYPE_RR_OUTPUT_INFO))</span>
+<a id="line-58" name="line-58"></a><span class="cp">#define MATE_RR_OUTPUT_INFO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MATE_TYPE_RR_OUTPUT_INFO, MateRROutputInfoClass))</span>
+<a id="line-59" name="line-59"></a>
+<a id="line-60" name="line-60"></a><span class="n">GType</span><span class="w"> </span><span class="nf">mate_rr_output_info_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-61" name="line-61"></a>
+<a id="line-62" name="line-62"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="nf">mate_rr_output_info_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">);</span>
+<a id="line-63" name="line-63"></a>
+<a id="line-64" name="line-64"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_rr_output_info_is_active</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">);</span>
+<a id="line-65" name="line-65"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_rr_output_info_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">active</span><span class="p">);</span>
+<a id="line-66" name="line-66"></a>
+<a id="line-67" name="line-67"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_rr_output_info_get_geometry</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">height</span><span class="p">);</span>
+<a id="line-68" name="line-68"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_rr_output_info_set_geometry</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">height</span><span class="p">);</span>
+<a id="line-69" name="line-69"></a>
+<a id="line-70" name="line-70"></a><span class="kt">int</span><span class="w"> </span><span class="nf">mate_rr_output_info_get_refresh_rate</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">);</span>
+<a id="line-71" name="line-71"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_rr_output_info_set_refresh_rate</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">rate</span><span class="p">);</span>
+<a id="line-72" name="line-72"></a>
+<a id="line-73" name="line-73"></a><span class="n">MateRRRotation</span><span class="w"> </span><span class="nf">mate_rr_output_info_get_rotation</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">);</span>
+<a id="line-74" name="line-74"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_rr_output_info_set_rotation</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">MateRRRotation</span><span class="w"> </span><span class="n">rotation</span><span class="p">);</span>
+<a id="line-75" name="line-75"></a>
+<a id="line-76" name="line-76"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_rr_output_info_is_connected</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">);</span>
+<a id="line-77" name="line-77"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_rr_output_info_get_vendor</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">gchar</span><span class="o">*</span><span class="w"> </span><span class="n">vendor</span><span class="p">);</span>
+<a id="line-78" name="line-78"></a><span class="n">guint</span><span class="w"> </span><span class="nf">mate_rr_output_info_get_product</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">);</span>
+<a id="line-79" name="line-79"></a><span class="n">guint</span><span class="w"> </span><span class="nf">mate_rr_output_info_get_serial</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">);</span>
+<a id="line-80" name="line-80"></a><span class="kt">double</span><span class="w"> </span><span class="nf">mate_rr_output_info_get_aspect_ratio</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">);</span>
+<a id="line-81" name="line-81"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="nf">mate_rr_output_info_get_display_name</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">);</span>
+<a id="line-82" name="line-82"></a>
+<a id="line-83" name="line-83"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_rr_output_info_get_primary</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">);</span>
+<a id="line-84" name="line-84"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_rr_output_info_set_primary</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">primary</span><span class="p">);</span>
+<a id="line-85" name="line-85"></a>
+<a id="line-86" name="line-86"></a><span class="kt">int</span><span class="w"> </span><span class="nf">mate_rr_output_info_get_preferred_width</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">);</span>
+<a id="line-87" name="line-87"></a><span class="kt">int</span><span class="w"> </span><span class="nf">mate_rr_output_info_get_preferred_height</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">);</span>
+<a id="line-88" name="line-88"></a>
+<a id="line-89" name="line-89"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span>
+<a id="line-90" name="line-90"></a><span class="p">{</span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">GObject</span><span class="w"> </span><span class="n">parent</span><span class="p">;</span>
+<a id="line-92" name="line-92"></a>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="cm">/*&lt; private &gt;*/</span>
+<a id="line-94" name="line-94"></a><span class="w"> </span><span class="n">MateRRConfigPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-95" name="line-95"></a><span class="p">}</span><span class="w"> </span><span class="n">MateRRConfig</span><span class="p">;</span>
+<a id="line-96" name="line-96"></a>
+<a id="line-97" name="line-97"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span>
+<a id="line-98" name="line-98"></a><span class="p">{</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="n">parent_class</span><span class="p">;</span>
+<a id="line-100" name="line-100"></a><span class="p">}</span><span class="w"> </span><span class="n">MateRRConfigClass</span><span class="p">;</span>
+<a id="line-101" name="line-101"></a>
+<a id="line-102" name="line-102"></a><span class="cp">#define MATE_TYPE_RR_CONFIG (mate_rr_config_get_type())</span>
+<a id="line-103" name="line-103"></a><span class="cp">#define MATE_RR_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATE_TYPE_RR_CONFIG, MateRRConfig))</span>
+<a id="line-104" name="line-104"></a><span class="cp">#define MATE_IS_RR_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MATE_TYPE_RR_CONFIG))</span>
+<a id="line-105" name="line-105"></a><span class="cp">#define MATE_RR_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MATE_TYPE_RR_CONFIG, MateRRConfigClass))</span>
+<a id="line-106" name="line-106"></a><span class="cp">#define MATE_IS_RR_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MATE_TYPE_RR_CONFIG))</span>
+<a id="line-107" name="line-107"></a><span class="cp">#define MATE_RR_CONFIG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MATE_TYPE_RR_CONFIG, MateRRConfigClass))</span>
+<a id="line-108" name="line-108"></a>
+<a id="line-109" name="line-109"></a><span class="n">GType</span><span class="w"> </span><span class="nf">mate_rr_config_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-110" name="line-110"></a>
+<a id="line-111" name="line-111"></a><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="nf">mate_rr_config_new_current</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">);</span>
+<a id="line-113" name="line-113"></a><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="nf">mate_rr_config_new_stored</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">);</span>
+<a id="line-115" name="line-115"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_rr_config_load_current</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">,</span>
+<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">);</span>
+<a id="line-117" name="line-117"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_rr_config_load_filename</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">,</span>
+<a id="line-118" name="line-118"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">,</span>
+<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">);</span>
+<a id="line-120" name="line-120"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_rr_config_match</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">config1</span><span class="p">,</span>
+<a id="line-121" name="line-121"></a><span class="w"> </span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">config2</span><span class="p">);</span>
+<a id="line-122" name="line-122"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_rr_config_equal</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">config1</span><span class="p">,</span>
+<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">config2</span><span class="p">);</span>
+<a id="line-124" name="line-124"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_rr_config_save</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">configuration</span><span class="p">,</span>
+<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">);</span>
+<a id="line-126" name="line-126"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_rr_config_sanitize</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">configuration</span><span class="p">);</span>
+<a id="line-127" name="line-127"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_rr_config_ensure_primary</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">configuration</span><span class="p">);</span>
+<a id="line-128" name="line-128"></a>
+<a id="line-129" name="line-129"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_rr_config_apply_with_time</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">configuration</span><span class="p">,</span>
+<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">timestamp</span><span class="p">,</span>
+<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">);</span>
+<a id="line-133" name="line-133"></a>
+<a id="line-134" name="line-134"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_rr_config_apply_from_filename_with_time</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">,</span>
+<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">timestamp</span><span class="p">,</span>
+<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">);</span>
+<a id="line-138" name="line-138"></a>
+<a id="line-139" name="line-139"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_rr_config_applicable</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">configuration</span><span class="p">,</span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">);</span>
+<a id="line-142" name="line-142"></a>
+<a id="line-143" name="line-143"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_rr_config_get_clone</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">configuration</span><span class="p">);</span>
+<a id="line-144" name="line-144"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_rr_config_set_clone</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">configuration</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">clone</span><span class="p">);</span>
+<a id="line-145" name="line-145"></a><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">**</span><span class="nf">mate_rr_config_get_outputs</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">configuration</span><span class="p">);</span>
+<a id="line-146" name="line-146"></a>
+<a id="line-147" name="line-147"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="nf">mate_rr_config_get_backup_filename</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-148" name="line-148"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="nf">mate_rr_config_get_intended_filename</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-149" name="line-149"></a>
+<a id="line-150" name="line-150"></a><span class="cp">#endif</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/26.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/26.html
new file mode 100644
index 0000000..260a8fe
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/26.html
@@ -0,0 +1,405 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/mate-rr-private.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-rr-private.h</p>
+<a href="26.html#line-4"> missingIncludeSystem 4</a><a href="26.html#line-7"> missingIncludeSystem 7</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal">10</span>
+<span class="normal">11</span>
+<span class="normal">12</span>
+<span class="normal">13</span>
+<span class="normal">14</span>
+<span class="normal">15</span>
+<span class="normal">16</span>
+<span class="normal">17</span>
+<span class="normal">18</span>
+<span class="normal">19</span>
+<span class="normal">20</span>
+<span class="normal">21</span>
+<span class="normal">22</span>
+<span class="normal">23</span>
+<span class="normal">24</span>
+<span class="normal">25</span>
+<span class="normal">26</span>
+<span class="normal">27</span>
+<span class="normal">28</span>
+<span class="normal">29</span>
+<span class="normal">30</span>
+<span class="normal">31</span>
+<span class="normal">32</span>
+<span class="normal">33</span>
+<span class="normal">34</span>
+<span class="normal">35</span>
+<span class="normal">36</span>
+<span class="normal">37</span>
+<span class="normal">38</span>
+<span class="normal">39</span>
+<span class="normal">40</span>
+<span class="normal">41</span>
+<span class="normal">42</span>
+<span class="normal">43</span>
+<span class="normal">44</span>
+<span class="normal">45</span>
+<span class="normal">46</span>
+<span class="normal">47</span>
+<span class="normal">48</span>
+<span class="normal">49</span>
+<span class="normal">50</span>
+<span class="normal">51</span>
+<span class="normal">52</span>
+<span class="normal">53</span>
+<span class="normal">54</span>
+<span class="normal">55</span>
+<span class="normal">56</span>
+<span class="normal">57</span>
+<span class="normal">58</span>
+<span class="normal">59</span>
+<span class="normal">60</span>
+<span class="normal">61</span>
+<span class="normal">62</span>
+<span class="normal">63</span>
+<span class="normal">64</span>
+<span class="normal">65</span>
+<span class="normal">66</span>
+<span class="normal">67</span>
+<span class="normal">68</span>
+<span class="normal">69</span>
+<span class="normal">70</span>
+<span class="normal">71</span>
+<span class="normal">72</span>
+<span class="normal">73</span>
+<span class="normal">74</span>
+<span class="normal">75</span>
+<span class="normal">76</span>
+<span class="normal">77</span>
+<span class="normal">78</span>
+<span class="normal">79</span>
+<span class="normal">80</span>
+<span class="normal">81</span>
+<span class="normal">82</span>
+<span class="normal">83</span>
+<span class="normal">84</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cp">#ifndef MATE_RR_PRIVATE_H</span>
+<a id="line-2" name="line-2"></a><span class="cp">#define MATE_RR_PRIVATE_H</span>
+<a id="line-3" name="line-3"></a>
+<a id="line-4" name="line-4"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;X11/Xlib.h&gt;</span><span class="error2">&lt;--- Include file: <X11/Xlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-5" name="line-5"></a>
+<a id="line-6" name="line-6"></a><span class="cp">#ifdef HAVE_RANDR</span>
+<a id="line-7" name="line-7"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;X11/extensions/Xrandr.h&gt;</span><span class="error2">&lt;--- Include file: <X11/extensions/Xrandr.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-8" name="line-8"></a><span class="cp">#endif</span>
+<a id="line-9" name="line-9"></a>
+<a id="line-10" name="line-10"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">ScreenInfo</span><span class="w"> </span><span class="n">ScreenInfo</span><span class="p">;</span>
+<a id="line-11" name="line-11"></a>
+<a id="line-12" name="line-12"></a><span class="k">struct</span><span class="w"> </span><span class="nc">ScreenInfo</span>
+<a id="line-13" name="line-13"></a><span class="p">{</span>
+<a id="line-14" name="line-14"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">min_width</span><span class="p">;</span>
+<a id="line-15" name="line-15"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">max_width</span><span class="p">;</span>
+<a id="line-16" name="line-16"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">min_height</span><span class="p">;</span>
+<a id="line-17" name="line-17"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">max_height</span><span class="p">;</span>
+<a id="line-18" name="line-18"></a>
+<a id="line-19" name="line-19"></a><span class="cp">#ifdef HAVE_RANDR</span>
+<a id="line-20" name="line-20"></a><span class="w"> </span><span class="n">XRRScreenResources</span><span class="w"> </span><span class="o">*</span><span class="n">resources</span><span class="p">;</span>
+<a id="line-21" name="line-21"></a><span class="cp">#endif</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">**</span><span class="w"> </span><span class="n">outputs</span><span class="p">;</span>
+<a id="line-24" name="line-24"></a><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">**</span><span class="w"> </span><span class="n">crtcs</span><span class="p">;</span>
+<a id="line-25" name="line-25"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">**</span><span class="w"> </span><span class="n">modes</span><span class="p">;</span>
+<a id="line-26" name="line-26"></a>
+<a id="line-27" name="line-27"></a><span class="w"> </span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">screen</span><span class="p">;</span>
+<a id="line-28" name="line-28"></a>
+<a id="line-29" name="line-29"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">**</span><span class="w"> </span><span class="n">clone_modes</span><span class="p">;</span>
+<a id="line-30" name="line-30"></a>
+<a id="line-31" name="line-31"></a><span class="cp">#ifdef HAVE_RANDR</span>
+<a id="line-32" name="line-32"></a><span class="w"> </span><span class="n">RROutput</span><span class="w"> </span><span class="n">primary</span><span class="p">;</span>
+<a id="line-33" name="line-33"></a><span class="cp">#endif</span>
+<a id="line-34" name="line-34"></a><span class="p">};</span>
+<a id="line-35" name="line-35"></a>
+<a id="line-36" name="line-36"></a><span class="k">struct</span><span class="w"> </span><span class="nc">MateRRScreenPrivate</span>
+<a id="line-37" name="line-37"></a><span class="p">{</span>
+<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">gdk_screen</span><span class="p">;</span>
+<a id="line-39" name="line-39"></a><span class="w"> </span><span class="n">GdkWindow</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">gdk_root</span><span class="p">;</span>
+<a id="line-40" name="line-40"></a><span class="w"> </span><span class="n">Display</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">xdisplay</span><span class="p">;</span>
+<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">Screen</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">xscreen</span><span class="p">;</span>
+<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">Window</span><span class="w"> </span><span class="n">xroot</span><span class="p">;</span>
+<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">ScreenInfo</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">info</span><span class="p">;</span>
+<a id="line-44" name="line-44"></a>
+<a id="line-45" name="line-45"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">randr_event_base</span><span class="p">;</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">rr_major_version</span><span class="p">;</span>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">rr_minor_version</span><span class="p">;</span>
+<a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">Atom</span><span class="w"> </span><span class="n">connector_type_atom</span><span class="p">;</span>
+<a id="line-50" name="line-50"></a><span class="p">};</span>
+<a id="line-51" name="line-51"></a>
+<a id="line-52" name="line-52"></a><span class="k">struct</span><span class="w"> </span><span class="nc">MateRROutputInfoPrivate</span>
+<a id="line-53" name="line-53"></a><span class="p">{</span>
+<a id="line-54" name="line-54"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">name</span><span class="p">;</span>
+<a id="line-55" name="line-55"></a>
+<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">on</span><span class="p">;</span>
+<a id="line-57" name="line-57"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">;</span>
+<a id="line-58" name="line-58"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">height</span><span class="p">;</span>
+<a id="line-59" name="line-59"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">rate</span><span class="p">;</span>
+<a id="line-60" name="line-60"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x</span><span class="p">;</span>
+<a id="line-61" name="line-61"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">y</span><span class="p">;</span>
+<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">MateRRRotation</span><span class="w"> </span><span class="n">rotation</span><span class="p">;</span>
+<a id="line-63" name="line-63"></a>
+<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">connected</span><span class="p">;</span>
+<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="n">vendor</span><span class="p">[</span><span class="mi">4</span><span class="p">];</span>
+<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">product</span><span class="p">;</span>
+<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">serial</span><span class="p">;</span>
+<a id="line-68" name="line-68"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">aspect</span><span class="p">;</span>
+<a id="line-69" name="line-69"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">pref_width</span><span class="p">;</span>
+<a id="line-70" name="line-70"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">pref_height</span><span class="p">;</span>
+<a id="line-71" name="line-71"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">display_name</span><span class="p">;</span>
+<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">primary</span><span class="p">;</span>
+<a id="line-73" name="line-73"></a><span class="p">};</span>
+<a id="line-74" name="line-74"></a>
+<a id="line-75" name="line-75"></a><span class="k">struct</span><span class="w"> </span><span class="nc">MateRRConfigPrivate</span>
+<a id="line-76" name="line-76"></a><span class="p">{</span>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">clone</span><span class="p">;</span>
+<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">;</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">**</span><span class="n">outputs</span><span class="p">;</span>
+<a id="line-80" name="line-80"></a><span class="p">};</span>
+<a id="line-81" name="line-81"></a>
+<a id="line-82" name="line-82"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">_mate_rr_output_name_is_laptop</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">);</span>
+<a id="line-83" name="line-83"></a>
+<a id="line-84" name="line-84"></a><span class="cp">#endif</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/27.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/27.html
new file mode 100644
index 0000000..4fd990b
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/27.html
@@ -0,0 +1,1373 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/mate-rr-labeler.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-rr-labeler.c</p>
+<a href="27.html#line-30"> missingIncludeSystem 30</a><a href="27.html#line-31"> missingIncludeSystem 31</a><a href="27.html#line-32"> missingIncludeSystem 32</a><a href="27.html#line-34"> missingIncludeSystem 34</a><a href="27.html#line-35"> missingIncludeSystem 35</a><a href="27.html#line-36"> missingIncludeSystem 36</a><a href="27.html#line-37"> missingIncludeSystem 37</a><a href="27.html#line-38"> missingIncludeSystem 38</a><a href="27.html#line-110"> constVariablePointer 110</a><a href="27.html#line-170"> constVariablePointer 170</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal"> 10</span>
+<span class="normal"> 11</span>
+<span class="normal"> 12</span>
+<span class="normal"> 13</span>
+<span class="normal"> 14</span>
+<span class="normal"> 15</span>
+<span class="normal"> 16</span>
+<span class="normal"> 17</span>
+<span class="normal"> 18</span>
+<span class="normal"> 19</span>
+<span class="normal"> 20</span>
+<span class="normal"> 21</span>
+<span class="normal"> 22</span>
+<span class="normal"> 23</span>
+<span class="normal"> 24</span>
+<span class="normal"> 25</span>
+<span class="normal"> 26</span>
+<span class="normal"> 27</span>
+<span class="normal"> 28</span>
+<span class="normal"> 29</span>
+<span class="normal"> 30</span>
+<span class="normal"> 31</span>
+<span class="normal"> 32</span>
+<span class="normal"> 33</span>
+<span class="normal"> 34</span>
+<span class="normal"> 35</span>
+<span class="normal"> 36</span>
+<span class="normal"> 37</span>
+<span class="normal"> 38</span>
+<span class="normal"> 39</span>
+<span class="normal"> 40</span>
+<span class="normal"> 41</span>
+<span class="normal"> 42</span>
+<span class="normal"> 43</span>
+<span class="normal"> 44</span>
+<span class="normal"> 45</span>
+<span class="normal"> 46</span>
+<span class="normal"> 47</span>
+<span class="normal"> 48</span>
+<span class="normal"> 49</span>
+<span class="normal"> 50</span>
+<span class="normal"> 51</span>
+<span class="normal"> 52</span>
+<span class="normal"> 53</span>
+<span class="normal"> 54</span>
+<span class="normal"> 55</span>
+<span class="normal"> 56</span>
+<span class="normal"> 57</span>
+<span class="normal"> 58</span>
+<span class="normal"> 59</span>
+<span class="normal"> 60</span>
+<span class="normal"> 61</span>
+<span class="normal"> 62</span>
+<span class="normal"> 63</span>
+<span class="normal"> 64</span>
+<span class="normal"> 65</span>
+<span class="normal"> 66</span>
+<span class="normal"> 67</span>
+<span class="normal"> 68</span>
+<span class="normal"> 69</span>
+<span class="normal"> 70</span>
+<span class="normal"> 71</span>
+<span class="normal"> 72</span>
+<span class="normal"> 73</span>
+<span class="normal"> 74</span>
+<span class="normal"> 75</span>
+<span class="normal"> 76</span>
+<span class="normal"> 77</span>
+<span class="normal"> 78</span>
+<span class="normal"> 79</span>
+<span class="normal"> 80</span>
+<span class="normal"> 81</span>
+<span class="normal"> 82</span>
+<span class="normal"> 83</span>
+<span class="normal"> 84</span>
+<span class="normal"> 85</span>
+<span class="normal"> 86</span>
+<span class="normal"> 87</span>
+<span class="normal"> 88</span>
+<span class="normal"> 89</span>
+<span class="normal"> 90</span>
+<span class="normal"> 91</span>
+<span class="normal"> 92</span>
+<span class="normal"> 93</span>
+<span class="normal"> 94</span>
+<span class="normal"> 95</span>
+<span class="normal"> 96</span>
+<span class="normal"> 97</span>
+<span class="normal"> 98</span>
+<span class="normal"> 99</span>
+<span class="normal">100</span>
+<span class="normal">101</span>
+<span class="normal">102</span>
+<span class="normal">103</span>
+<span class="normal">104</span>
+<span class="normal">105</span>
+<span class="normal">106</span>
+<span class="normal">107</span>
+<span class="normal">108</span>
+<span class="normal">109</span>
+<span class="normal">110</span>
+<span class="normal">111</span>
+<span class="normal">112</span>
+<span class="normal">113</span>
+<span class="normal">114</span>
+<span class="normal">115</span>
+<span class="normal">116</span>
+<span class="normal">117</span>
+<span class="normal">118</span>
+<span class="normal">119</span>
+<span class="normal">120</span>
+<span class="normal">121</span>
+<span class="normal">122</span>
+<span class="normal">123</span>
+<span class="normal">124</span>
+<span class="normal">125</span>
+<span class="normal">126</span>
+<span class="normal">127</span>
+<span class="normal">128</span>
+<span class="normal">129</span>
+<span class="normal">130</span>
+<span class="normal">131</span>
+<span class="normal">132</span>
+<span class="normal">133</span>
+<span class="normal">134</span>
+<span class="normal">135</span>
+<span class="normal">136</span>
+<span class="normal">137</span>
+<span class="normal">138</span>
+<span class="normal">139</span>
+<span class="normal">140</span>
+<span class="normal">141</span>
+<span class="normal">142</span>
+<span class="normal">143</span>
+<span class="normal">144</span>
+<span class="normal">145</span>
+<span class="normal">146</span>
+<span class="normal">147</span>
+<span class="normal">148</span>
+<span class="normal">149</span>
+<span class="normal">150</span>
+<span class="normal">151</span>
+<span class="normal">152</span>
+<span class="normal">153</span>
+<span class="normal">154</span>
+<span class="normal">155</span>
+<span class="normal">156</span>
+<span class="normal">157</span>
+<span class="normal">158</span>
+<span class="normal">159</span>
+<span class="normal">160</span>
+<span class="normal">161</span>
+<span class="normal">162</span>
+<span class="normal">163</span>
+<span class="normal">164</span>
+<span class="normal">165</span>
+<span class="normal">166</span>
+<span class="normal">167</span>
+<span class="normal">168</span>
+<span class="normal">169</span>
+<span class="normal">170</span>
+<span class="normal">171</span>
+<span class="normal">172</span>
+<span class="normal">173</span>
+<span class="normal">174</span>
+<span class="normal">175</span>
+<span class="normal">176</span>
+<span class="normal">177</span>
+<span class="normal">178</span>
+<span class="normal">179</span>
+<span class="normal">180</span>
+<span class="normal">181</span>
+<span class="normal">182</span>
+<span class="normal">183</span>
+<span class="normal">184</span>
+<span class="normal">185</span>
+<span class="normal">186</span>
+<span class="normal">187</span>
+<span class="normal">188</span>
+<span class="normal">189</span>
+<span class="normal">190</span>
+<span class="normal">191</span>
+<span class="normal">192</span>
+<span class="normal">193</span>
+<span class="normal">194</span>
+<span class="normal">195</span>
+<span class="normal">196</span>
+<span class="normal">197</span>
+<span class="normal">198</span>
+<span class="normal">199</span>
+<span class="normal">200</span>
+<span class="normal">201</span>
+<span class="normal">202</span>
+<span class="normal">203</span>
+<span class="normal">204</span>
+<span class="normal">205</span>
+<span class="normal">206</span>
+<span class="normal">207</span>
+<span class="normal">208</span>
+<span class="normal">209</span>
+<span class="normal">210</span>
+<span class="normal">211</span>
+<span class="normal">212</span>
+<span class="normal">213</span>
+<span class="normal">214</span>
+<span class="normal">215</span>
+<span class="normal">216</span>
+<span class="normal">217</span>
+<span class="normal">218</span>
+<span class="normal">219</span>
+<span class="normal">220</span>
+<span class="normal">221</span>
+<span class="normal">222</span>
+<span class="normal">223</span>
+<span class="normal">224</span>
+<span class="normal">225</span>
+<span class="normal">226</span>
+<span class="normal">227</span>
+<span class="normal">228</span>
+<span class="normal">229</span>
+<span class="normal">230</span>
+<span class="normal">231</span>
+<span class="normal">232</span>
+<span class="normal">233</span>
+<span class="normal">234</span>
+<span class="normal">235</span>
+<span class="normal">236</span>
+<span class="normal">237</span>
+<span class="normal">238</span>
+<span class="normal">239</span>
+<span class="normal">240</span>
+<span class="normal">241</span>
+<span class="normal">242</span>
+<span class="normal">243</span>
+<span class="normal">244</span>
+<span class="normal">245</span>
+<span class="normal">246</span>
+<span class="normal">247</span>
+<span class="normal">248</span>
+<span class="normal">249</span>
+<span class="normal">250</span>
+<span class="normal">251</span>
+<span class="normal">252</span>
+<span class="normal">253</span>
+<span class="normal">254</span>
+<span class="normal">255</span>
+<span class="normal">256</span>
+<span class="normal">257</span>
+<span class="normal">258</span>
+<span class="normal">259</span>
+<span class="normal">260</span>
+<span class="normal">261</span>
+<span class="normal">262</span>
+<span class="normal">263</span>
+<span class="normal">264</span>
+<span class="normal">265</span>
+<span class="normal">266</span>
+<span class="normal">267</span>
+<span class="normal">268</span>
+<span class="normal">269</span>
+<span class="normal">270</span>
+<span class="normal">271</span>
+<span class="normal">272</span>
+<span class="normal">273</span>
+<span class="normal">274</span>
+<span class="normal">275</span>
+<span class="normal">276</span>
+<span class="normal">277</span>
+<span class="normal">278</span>
+<span class="normal">279</span>
+<span class="normal">280</span>
+<span class="normal">281</span>
+<span class="normal">282</span>
+<span class="normal">283</span>
+<span class="normal">284</span>
+<span class="normal">285</span>
+<span class="normal">286</span>
+<span class="normal">287</span>
+<span class="normal">288</span>
+<span class="normal">289</span>
+<span class="normal">290</span>
+<span class="normal">291</span>
+<span class="normal">292</span>
+<span class="normal">293</span>
+<span class="normal">294</span>
+<span class="normal">295</span>
+<span class="normal">296</span>
+<span class="normal">297</span>
+<span class="normal">298</span>
+<span class="normal">299</span>
+<span class="normal">300</span>
+<span class="normal">301</span>
+<span class="normal">302</span>
+<span class="normal">303</span>
+<span class="normal">304</span>
+<span class="normal">305</span>
+<span class="normal">306</span>
+<span class="normal">307</span>
+<span class="normal">308</span>
+<span class="normal">309</span>
+<span class="normal">310</span>
+<span class="normal">311</span>
+<span class="normal">312</span>
+<span class="normal">313</span>
+<span class="normal">314</span>
+<span class="normal">315</span>
+<span class="normal">316</span>
+<span class="normal">317</span>
+<span class="normal">318</span>
+<span class="normal">319</span>
+<span class="normal">320</span>
+<span class="normal">321</span>
+<span class="normal">322</span>
+<span class="normal">323</span>
+<span class="normal">324</span>
+<span class="normal">325</span>
+<span class="normal">326</span>
+<span class="normal">327</span>
+<span class="normal">328</span>
+<span class="normal">329</span>
+<span class="normal">330</span>
+<span class="normal">331</span>
+<span class="normal">332</span>
+<span class="normal">333</span>
+<span class="normal">334</span>
+<span class="normal">335</span>
+<span class="normal">336</span>
+<span class="normal">337</span>
+<span class="normal">338</span>
+<span class="normal">339</span>
+<span class="normal">340</span>
+<span class="normal">341</span>
+<span class="normal">342</span>
+<span class="normal">343</span>
+<span class="normal">344</span>
+<span class="normal">345</span>
+<span class="normal">346</span>
+<span class="normal">347</span>
+<span class="normal">348</span>
+<span class="normal">349</span>
+<span class="normal">350</span>
+<span class="normal">351</span>
+<span class="normal">352</span>
+<span class="normal">353</span>
+<span class="normal">354</span>
+<span class="normal">355</span>
+<span class="normal">356</span>
+<span class="normal">357</span>
+<span class="normal">358</span>
+<span class="normal">359</span>
+<span class="normal">360</span>
+<span class="normal">361</span>
+<span class="normal">362</span>
+<span class="normal">363</span>
+<span class="normal">364</span>
+<span class="normal">365</span>
+<span class="normal">366</span>
+<span class="normal">367</span>
+<span class="normal">368</span>
+<span class="normal">369</span>
+<span class="normal">370</span>
+<span class="normal">371</span>
+<span class="normal">372</span>
+<span class="normal">373</span>
+<span class="normal">374</span>
+<span class="normal">375</span>
+<span class="normal">376</span>
+<span class="normal">377</span>
+<span class="normal">378</span>
+<span class="normal">379</span>
+<span class="normal">380</span>
+<span class="normal">381</span>
+<span class="normal">382</span>
+<span class="normal">383</span>
+<span class="normal">384</span>
+<span class="normal">385</span>
+<span class="normal">386</span>
+<span class="normal">387</span>
+<span class="normal">388</span>
+<span class="normal">389</span>
+<span class="normal">390</span>
+<span class="normal">391</span>
+<span class="normal">392</span>
+<span class="normal">393</span>
+<span class="normal">394</span>
+<span class="normal">395</span>
+<span class="normal">396</span>
+<span class="normal">397</span>
+<span class="normal">398</span>
+<span class="normal">399</span>
+<span class="normal">400</span>
+<span class="normal">401</span>
+<span class="normal">402</span>
+<span class="normal">403</span>
+<span class="normal">404</span>
+<span class="normal">405</span>
+<span class="normal">406</span>
+<span class="normal">407</span>
+<span class="normal">408</span>
+<span class="normal">409</span>
+<span class="normal">410</span>
+<span class="normal">411</span>
+<span class="normal">412</span>
+<span class="normal">413</span>
+<span class="normal">414</span>
+<span class="normal">415</span>
+<span class="normal">416</span>
+<span class="normal">417</span>
+<span class="normal">418</span>
+<span class="normal">419</span>
+<span class="normal">420</span>
+<span class="normal">421</span>
+<span class="normal">422</span>
+<span class="normal">423</span>
+<span class="normal">424</span>
+<span class="normal">425</span>
+<span class="normal">426</span>
+<span class="normal">427</span>
+<span class="normal">428</span>
+<span class="normal">429</span>
+<span class="normal">430</span>
+<span class="normal">431</span>
+<span class="normal">432</span>
+<span class="normal">433</span>
+<span class="normal">434</span>
+<span class="normal">435</span>
+<span class="normal">436</span>
+<span class="normal">437</span>
+<span class="normal">438</span>
+<span class="normal">439</span>
+<span class="normal">440</span>
+<span class="normal">441</span>
+<span class="normal">442</span>
+<span class="normal">443</span>
+<span class="normal">444</span>
+<span class="normal">445</span>
+<span class="normal">446</span>
+<span class="normal">447</span>
+<span class="normal">448</span>
+<span class="normal">449</span>
+<span class="normal">450</span>
+<span class="normal">451</span>
+<span class="normal">452</span>
+<span class="normal">453</span>
+<span class="normal">454</span>
+<span class="normal">455</span>
+<span class="normal">456</span>
+<span class="normal">457</span>
+<span class="normal">458</span>
+<span class="normal">459</span>
+<span class="normal">460</span>
+<span class="normal">461</span>
+<span class="normal">462</span>
+<span class="normal">463</span>
+<span class="normal">464</span>
+<span class="normal">465</span>
+<span class="normal">466</span>
+<span class="normal">467</span>
+<span class="normal">468</span>
+<span class="normal">469</span>
+<span class="normal">470</span>
+<span class="normal">471</span>
+<span class="normal">472</span>
+<span class="normal">473</span>
+<span class="normal">474</span>
+<span class="normal">475</span>
+<span class="normal">476</span>
+<span class="normal">477</span>
+<span class="normal">478</span>
+<span class="normal">479</span>
+<span class="normal">480</span>
+<span class="normal">481</span>
+<span class="normal">482</span>
+<span class="normal">483</span>
+<span class="normal">484</span>
+<span class="normal">485</span>
+<span class="normal">486</span>
+<span class="normal">487</span>
+<span class="normal">488</span>
+<span class="normal">489</span>
+<span class="normal">490</span>
+<span class="normal">491</span>
+<span class="normal">492</span>
+<span class="normal">493</span>
+<span class="normal">494</span>
+<span class="normal">495</span>
+<span class="normal">496</span>
+<span class="normal">497</span>
+<span class="normal">498</span>
+<span class="normal">499</span>
+<span class="normal">500</span>
+<span class="normal">501</span>
+<span class="normal">502</span>
+<span class="normal">503</span>
+<span class="normal">504</span>
+<span class="normal">505</span>
+<span class="normal">506</span>
+<span class="normal">507</span>
+<span class="normal">508</span>
+<span class="normal">509</span>
+<span class="normal">510</span>
+<span class="normal">511</span>
+<span class="normal">512</span>
+<span class="normal">513</span>
+<span class="normal">514</span>
+<span class="normal">515</span>
+<span class="normal">516</span>
+<span class="normal">517</span>
+<span class="normal">518</span>
+<span class="normal">519</span>
+<span class="normal">520</span>
+<span class="normal">521</span>
+<span class="normal">522</span>
+<span class="normal">523</span>
+<span class="normal">524</span>
+<span class="normal">525</span>
+<span class="normal">526</span>
+<span class="normal">527</span>
+<span class="normal">528</span>
+<span class="normal">529</span>
+<span class="normal">530</span>
+<span class="normal">531</span>
+<span class="normal">532</span>
+<span class="normal">533</span>
+<span class="normal">534</span>
+<span class="normal">535</span>
+<span class="normal">536</span>
+<span class="normal">537</span>
+<span class="normal">538</span>
+<span class="normal">539</span>
+<span class="normal">540</span>
+<span class="normal">541</span>
+<span class="normal">542</span>
+<span class="normal">543</span>
+<span class="normal">544</span>
+<span class="normal">545</span>
+<span class="normal">546</span>
+<span class="normal">547</span>
+<span class="normal">548</span>
+<span class="normal">549</span>
+<span class="normal">550</span>
+<span class="normal">551</span>
+<span class="normal">552</span>
+<span class="normal">553</span>
+<span class="normal">554</span>
+<span class="normal">555</span>
+<span class="normal">556</span>
+<span class="normal">557</span>
+<span class="normal">558</span>
+<span class="normal">559</span>
+<span class="normal">560</span>
+<span class="normal">561</span>
+<span class="normal">562</span>
+<span class="normal">563</span>
+<span class="normal">564</span>
+<span class="normal">565</span>
+<span class="normal">566</span>
+<span class="normal">567</span>
+<span class="normal">568</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-</span>
+<a id="line-2" name="line-2"></a><span class="cm"> *</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * mate-rr-labeler.c - Utility to label monitors to identify them</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * while they are being configured.</span>
+<a id="line-5" name="line-5"></a><span class="cm"> *</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * Copyright 2008, Novell, Inc.</span>
+<a id="line-7" name="line-7"></a><span class="cm"> *</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * This file is part of the Mate Library.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * The Mate Library is free software; you can redistribute it and/or</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * modify it under the terms of the GNU Library General Public License as</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * published by the Free Software Foundation; either version 2 of the</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * License, or (at your option) any later version.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * The Mate Library is distributed in the hope that it will be useful,</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Library General Public License for more details.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * You should have received a copy of the GNU Library General Public</span>
+<a id="line-21" name="line-21"></a><span class="cm"> * License along with the Mate Library; see the file COPYING.LIB. If not,</span>
+<a id="line-22" name="line-22"></a><span class="cm"> * write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,</span>
+<a id="line-23" name="line-23"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-24" name="line-24"></a><span class="cm"> *</span>
+<a id="line-25" name="line-25"></a><span class="cm"> * Author: Federico Mena-Quintero &lt;[email protected]&gt;</span>
+<a id="line-26" name="line-26"></a><span class="cm"> */</span>
+<a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="cp">#define MATE_DESKTOP_USE_UNSTABLE_API</span>
+<a id="line-29" name="line-29"></a>
+<a id="line-30" name="line-30"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;config.h&gt;</span><span class="error2">&lt;--- Include file: <config.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-31" name="line-31"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n-lib.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n-lib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-32" name="line-32"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-33" name="line-33"></a>
+<a id="line-34" name="line-34"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;X11/Xproto.h&gt;</span><span class="error2">&lt;--- Include file: <X11/Xproto.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-35" name="line-35"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;X11/Xlib.h&gt;</span><span class="error2">&lt;--- Include file: <X11/Xlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-36" name="line-36"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;X11/Xutil.h&gt;</span><span class="error2">&lt;--- Include file: <X11/Xutil.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-37" name="line-37"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;X11/Xatom.h&gt;</span><span class="error2">&lt;--- Include file: <X11/Xatom.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-38" name="line-38"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdkx.h&gt;</span><span class="error2">&lt;--- Include file: <gdk/gdkx.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;mate-rr-labeler.h&quot;</span>
+<a id="line-41" name="line-41"></a>
+<a id="line-42" name="line-42"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_MateRRLabelerPrivate</span><span class="w"> </span><span class="p">{</span>
+<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">config</span><span class="p">;</span>
+<a id="line-44" name="line-44"></a>
+<a id="line-45" name="line-45"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">num_outputs</span><span class="p">;</span>
+<a id="line-46" name="line-46"></a>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">palette</span><span class="p">;</span>
+<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">**</span><span class="n">windows</span><span class="p">;</span>
+<a id="line-49" name="line-49"></a>
+<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">Atom</span><span class="w"> </span><span class="n">workarea_atom</span><span class="p">;</span>
+<a id="line-52" name="line-52"></a><span class="p">};</span>
+<a id="line-53" name="line-53"></a>
+<a id="line-54" name="line-54"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span>
+<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">PROP_0</span><span class="p">,</span>
+<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">PROP_CONFIG</span><span class="p">,</span>
+<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">PROP_LAST</span>
+<a id="line-58" name="line-58"></a><span class="p">};</span>
+<a id="line-59" name="line-59"></a>
+<a id="line-60" name="line-60"></a><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRLabeler</span><span class="p">,</span><span class="w"> </span><span class="n">mate_rr_labeler</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">);</span>
+<a id="line-61" name="line-61"></a>
+<a id="line-62" name="line-62"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">mate_rr_labeler_finalize</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">);</span>
+<a id="line-63" name="line-63"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">create_label_windows</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRLabeler</span><span class="w"> </span><span class="o">*</span><span class="n">labeler</span><span class="p">);</span>
+<a id="line-64" name="line-64"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">setup_from_config</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRLabeler</span><span class="w"> </span><span class="o">*</span><span class="n">labeler</span><span class="p">);</span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span>
+<a id="line-67" name="line-67"></a><span class="nf">get_current_desktop</span><span class="w"> </span><span class="p">(</span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">)</span>
+<a id="line-68" name="line-68"></a><span class="p">{</span>
+<a id="line-69" name="line-69"></a><span class="w"> </span><span class="n">Display</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">;</span>
+<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">Window</span><span class="w"> </span><span class="n">win</span><span class="p">;</span>
+<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">Atom</span><span class="w"> </span><span class="n">current_desktop</span><span class="p">,</span><span class="w"> </span><span class="n">type</span><span class="p">;</span>
+<a id="line-72" name="line-72"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">format</span><span class="p">;</span>
+<a id="line-73" name="line-73"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="n">n_items</span><span class="p">,</span><span class="w"> </span><span class="n">bytes_after</span><span class="p">;</span>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">data_return</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">workspace</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-76" name="line-76"></a>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_DISPLAY_XDISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_screen_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">));</span>
+<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">win</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XRootWindow</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_SCREEN_XNUMBER</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">));</span>
+<a id="line-79" name="line-79"></a>
+<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">current_desktop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XInternAtom</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;_NET_CURRENT_DESKTOP&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">True</span><span class="p">);</span>
+<a id="line-81" name="line-81"></a>
+<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">XGetWindowProperty</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span>
+<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">win</span><span class="p">,</span>
+<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">current_desktop</span><span class="p">,</span>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">G_MAXLONG</span><span class="p">,</span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">False</span><span class="p">,</span><span class="w"> </span><span class="n">XA_CARDINAL</span><span class="p">,</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">type</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">n_items</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">bytes_after</span><span class="p">,</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">data_return</span><span class="p">);</span>
+<a id="line-89" name="line-89"></a>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">XA_CARDINAL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">format</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">32</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">n_items</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">workspace</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="p">)</span><span class="w"> </span><span class="n">data_return</span><span class="p">[</span><span class="mi">0</span><span class="p">];</span>
+<a id="line-92" name="line-92"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">data_return</span><span class="p">)</span>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">XFree</span><span class="w"> </span><span class="p">(</span><span class="n">data_return</span><span class="p">);</span>
+<a id="line-94" name="line-94"></a>
+<a id="line-95" name="line-95"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">workspace</span><span class="p">;</span>
+<a id="line-96" name="line-96"></a><span class="p">}</span>
+<a id="line-97" name="line-97"></a>
+<a id="line-98" name="line-98"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-99" name="line-99"></a><span class="nf">get_work_area</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRLabeler</span><span class="w"> </span><span class="o">*</span><span class="n">labeler</span><span class="p">,</span>
+<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">GdkRectangle</span><span class="w"> </span><span class="o">*</span><span class="n">rect</span><span class="p">)</span>
+<a id="line-101" name="line-101"></a><span class="p">{</span>
+<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">Atom</span><span class="w"> </span><span class="n">workarea</span><span class="p">;</span>
+<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">Atom</span><span class="w"> </span><span class="n">type</span><span class="p">;</span>
+<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">Window</span><span class="w"> </span><span class="n">win</span><span class="p">;</span>
+<a id="line-105" name="line-105"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">format</span><span class="p">;</span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">num</span><span class="p">;</span>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">leftovers</span><span class="p">;</span>
+<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">max_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">4</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">32</span><span class="p">;</span>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">ret_workarea</span><span class="p">;</span>
+<a id="line-110" name="line-110"></a><span class="hll"><span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="o">*</span><span class="n">workareas</span><span class="p">;</span><span class="error2">&lt;--- Variable 'workareas' can be declared as pointer to const</span>
+</span><a id="line-111" name="line-111"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">disp_screen</span><span class="p">;</span>
+<a id="line-113" name="line-113"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">desktop</span><span class="p">;</span>
+<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">Display</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">;</span>
+<a id="line-115" name="line-115"></a>
+<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_DISPLAY_XDISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_screen_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">screen</span><span class="p">));</span>
+<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">workarea</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XInternAtom</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;_NET_WORKAREA&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">True</span><span class="p">);</span>
+<a id="line-118" name="line-118"></a>
+<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">disp_screen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_SCREEN_XNUMBER</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">screen</span><span class="p">);</span>
+<a id="line-120" name="line-120"></a>
+<a id="line-121" name="line-121"></a><span class="w"> </span><span class="cm">/* Defaults in case of error */</span>
+<a id="line-122" name="line-122"></a><span class="w"> </span><span class="n">rect</span><span class="o">-&gt;</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">rect</span><span class="o">-&gt;</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">rect</span><span class="o">-&gt;</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">WidthOfScreen</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_x11_screen_get_xscreen</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">screen</span><span class="p">));</span>
+<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">rect</span><span class="o">-&gt;</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">HeightOfScreen</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_x11_screen_get_xscreen</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">screen</span><span class="p">));</span>
+<a id="line-126" name="line-126"></a>
+<a id="line-127" name="line-127"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">workarea</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">None</span><span class="p">)</span>
+<a id="line-128" name="line-128"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-129" name="line-129"></a>
+<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">win</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XRootWindow</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="n">disp_screen</span><span class="p">);</span>
+<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XGetWindowProperty</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span>
+<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">win</span><span class="p">,</span>
+<a id="line-133" name="line-133"></a><span class="w"> </span><span class="n">workarea</span><span class="p">,</span>
+<a id="line-134" name="line-134"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">max_len</span><span class="p">,</span>
+<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">False</span><span class="p">,</span>
+<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">AnyPropertyType</span><span class="p">,</span>
+<a id="line-138" name="line-138"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">type</span><span class="p">,</span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">format</span><span class="p">,</span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">num</span><span class="p">,</span>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">leftovers</span><span class="p">,</span>
+<a id="line-142" name="line-142"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">ret_workarea</span><span class="p">);</span>
+<a id="line-143" name="line-143"></a>
+<a id="line-144" name="line-144"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">Success</span>
+<a id="line-145" name="line-145"></a><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">None</span>
+<a id="line-146" name="line-146"></a><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">format</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">leftovers</span>
+<a id="line-148" name="line-148"></a><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">num</span><span class="w"> </span><span class="o">%</span><span class="w"> </span><span class="mi">4</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-149" name="line-149"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-150" name="line-150"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-151" name="line-151"></a>
+<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">desktop</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_current_desktop</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">screen</span><span class="p">);</span>
+<a id="line-153" name="line-153"></a>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">workareas</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">long</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">ret_workarea</span><span class="p">;</span>
+<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">rect</span><span class="o">-&gt;</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">workareas</span><span class="p">[</span><span class="n">desktop</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">4</span><span class="p">];</span>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">rect</span><span class="o">-&gt;</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">workareas</span><span class="p">[</span><span class="n">desktop</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">4</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">];</span>
+<a id="line-157" name="line-157"></a><span class="w"> </span><span class="n">rect</span><span class="o">-&gt;</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">workareas</span><span class="p">[</span><span class="n">desktop</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">4</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">2</span><span class="p">];</span>
+<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">rect</span><span class="o">-&gt;</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">workareas</span><span class="p">[</span><span class="n">desktop</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">4</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">3</span><span class="p">];</span>
+<a id="line-159" name="line-159"></a>
+<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">XFree</span><span class="w"> </span><span class="p">(</span><span class="n">ret_workarea</span><span class="p">);</span>
+<a id="line-161" name="line-161"></a>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-163" name="line-163"></a><span class="p">}</span>
+<a id="line-164" name="line-164"></a>
+<a id="line-165" name="line-165"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkFilterReturn</span>
+<a id="line-166" name="line-166"></a><span class="nf">screen_xevent_filter</span><span class="w"> </span><span class="p">(</span><span class="n">GdkXEvent</span><span class="w"> </span><span class="o">*</span><span class="n">xevent</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">MateRRLabeler</span><span class="w"> </span><span class="o">*</span><span class="n">labeler</span><span class="p">)</span>
+<a id="line-169" name="line-169"></a><span class="p">{</span>
+<a id="line-170" name="line-170"></a><span class="hll"><span class="w"> </span><span class="n">XEvent</span><span class="w"> </span><span class="o">*</span><span class="n">xev</span><span class="p">;</span><span class="error2">&lt;--- Variable 'xev' can be declared as pointer to const</span>
+</span><a id="line-171" name="line-171"></a>
+<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">xev</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">XEvent</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">xevent</span><span class="p">;</span>
+<a id="line-173" name="line-173"></a>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">xev</span><span class="o">-&gt;</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PropertyNotify</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">xev</span><span class="o">-&gt;</span><span class="n">xproperty</span><span class="p">.</span><span class="n">atom</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">workarea_atom</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="cm">/* update label positions */</span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">mate_rr_labeler_hide</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="p">);</span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">create_label_windows</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="p">);</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-180" name="line-180"></a>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">GDK_FILTER_CONTINUE</span><span class="p">;</span>
+<a id="line-182" name="line-182"></a><span class="p">}</span>
+<a id="line-183" name="line-183"></a>
+<a id="line-184" name="line-184"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-185" name="line-185"></a><span class="nf">mate_rr_labeler_init</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRLabeler</span><span class="w"> </span><span class="o">*</span><span class="n">labeler</span><span class="p">)</span>
+<a id="line-186" name="line-186"></a><span class="p">{</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">GdkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">gdkwindow</span><span class="p">;</span>
+<a id="line-188" name="line-188"></a>
+<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_labeler_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="p">);</span>
+<a id="line-190" name="line-190"></a>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">workarea_atom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XInternAtom</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_DISPLAY_XDISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_display_get_default</span><span class="w"> </span><span class="p">()),</span>
+<a id="line-192" name="line-192"></a><span class="w"> </span><span class="s">&quot;_NET_WORKAREA&quot;</span><span class="p">,</span>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">True</span><span class="p">);</span>
+<a id="line-194" name="line-194"></a>
+<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">screen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_screen_get_default</span><span class="w"> </span><span class="p">();</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="cm">/* code is not really designed to handle multiple screens so *shrug* */</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">gdkwindow</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_screen_get_root_window</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">screen</span><span class="p">);</span>
+<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">gdk_window_add_filter</span><span class="w"> </span><span class="p">(</span><span class="n">gdkwindow</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">GdkFilterFunc</span><span class="p">)</span><span class="w"> </span><span class="n">screen_xevent_filter</span><span class="p">,</span><span class="w"> </span><span class="n">labeler</span><span class="p">);</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="n">gdk_window_set_events</span><span class="w"> </span><span class="p">(</span><span class="n">gdkwindow</span><span class="p">,</span><span class="w"> </span><span class="n">gdk_window_get_events</span><span class="w"> </span><span class="p">(</span><span class="n">gdkwindow</span><span class="p">)</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_PROPERTY_CHANGE_MASK</span><span class="p">);</span>
+<a id="line-200" name="line-200"></a><span class="p">}</span>
+<a id="line-201" name="line-201"></a>
+<a id="line-202" name="line-202"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-203" name="line-203"></a><span class="nf">mate_rr_labeler_set_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">gobject</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">param_spec</span><span class="p">)</span>
+<a id="line-204" name="line-204"></a><span class="p">{</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">MateRRLabeler</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_RR_LABELER</span><span class="w"> </span><span class="p">(</span><span class="n">gobject</span><span class="p">);</span>
+<a id="line-206" name="line-206"></a>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">property_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_CONFIG</span><span class="p">:</span>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">config</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_RR_CONFIG</span><span class="w"> </span><span class="p">(</span><span class="n">g_value_dup_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span>
+<a id="line-210" name="line-210"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-211" name="line-211"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">gobject</span><span class="p">,</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span><span class="w"> </span><span class="n">param_spec</span><span class="p">);</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-214" name="line-214"></a><span class="p">}</span>
+<a id="line-215" name="line-215"></a>
+<a id="line-216" name="line-216"></a><span class="k">static</span><span class="w"> </span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span>
+<a id="line-217" name="line-217"></a><span class="nf">mate_rr_labeler_constructor</span><span class="w"> </span><span class="p">(</span><span class="n">GType</span><span class="w"> </span><span class="n">type</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">n_construct_properties</span><span class="p">,</span><span class="w"> </span><span class="n">GObjectConstructParam</span><span class="w"> </span><span class="o">*</span><span class="n">construct_properties</span><span class="p">)</span>
+<a id="line-218" name="line-218"></a><span class="p">{</span>
+<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">MateRRLabeler</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRLabeler</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">mate_rr_labeler_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">constructor</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="p">,</span><span class="w"> </span><span class="n">n_construct_properties</span><span class="p">,</span><span class="w"> </span><span class="n">construct_properties</span><span class="p">);</span>
+<a id="line-220" name="line-220"></a>
+<a id="line-221" name="line-221"></a><span class="w"> </span><span class="n">setup_from_config</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">);</span>
+<a id="line-222" name="line-222"></a>
+<a id="line-223" name="line-223"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">self</span><span class="p">;</span>
+<a id="line-224" name="line-224"></a><span class="p">}</span>
+<a id="line-225" name="line-225"></a>
+<a id="line-226" name="line-226"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-227" name="line-227"></a><span class="nf">mate_rr_labeler_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRLabelerClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span>
+<a id="line-228" name="line-228"></a><span class="p">{</span>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">object_class</span><span class="p">;</span>
+<a id="line-230" name="line-230"></a>
+<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">object_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">klass</span><span class="p">;</span>
+<a id="line-232" name="line-232"></a>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-&gt;</span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_labeler_set_property</span><span class="p">;</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_labeler_finalize</span><span class="p">;</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-&gt;</span><span class="n">constructor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_labeler_constructor</span><span class="p">;</span>
+<a id="line-236" name="line-236"></a>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span><span class="w"> </span><span class="n">PROP_CONFIG</span><span class="p">,</span><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;config&quot;</span><span class="p">,</span>
+<a id="line-238" name="line-238"></a><span class="w"> </span><span class="s">&quot;Configuration&quot;</span><span class="p">,</span>
+<a id="line-239" name="line-239"></a><span class="w"> </span><span class="s">&quot;RandR configuration to label&quot;</span><span class="p">,</span>
+<a id="line-240" name="line-240"></a><span class="w"> </span><span class="n">MATE_TYPE_RR_CONFIG</span><span class="p">,</span>
+<a id="line-241" name="line-241"></a><span class="w"> </span><span class="n">G_PARAM_WRITABLE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span>
+<a id="line-242" name="line-242"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span>
+<a id="line-243" name="line-243"></a><span class="p">}</span>
+<a id="line-244" name="line-244"></a>
+<a id="line-245" name="line-245"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-246" name="line-246"></a><span class="nf">mate_rr_labeler_finalize</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span>
+<a id="line-247" name="line-247"></a><span class="p">{</span>
+<a id="line-248" name="line-248"></a><span class="w"> </span><span class="n">MateRRLabeler</span><span class="w"> </span><span class="o">*</span><span class="n">labeler</span><span class="p">;</span>
+<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">GdkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">gdkwindow</span><span class="p">;</span>
+<a id="line-250" name="line-250"></a>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">labeler</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_RR_LABELER</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-252" name="line-252"></a>
+<a id="line-253" name="line-253"></a><span class="w"> </span><span class="n">gdkwindow</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_screen_get_root_window</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">screen</span><span class="p">);</span>
+<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">gdk_window_remove_filter</span><span class="w"> </span><span class="p">(</span><span class="n">gdkwindow</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">GdkFilterFunc</span><span class="p">)</span><span class="w"> </span><span class="n">screen_xevent_filter</span><span class="p">,</span><span class="w"> </span><span class="n">labeler</span><span class="p">);</span>
+<a id="line-255" name="line-255"></a>
+<a id="line-256" name="line-256"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">config</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">config</span><span class="p">);</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-259" name="line-259"></a>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">windows</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">mate_rr_labeler_hide</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="p">);</span>
+<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">windows</span><span class="p">);</span>
+<a id="line-263" name="line-263"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-264" name="line-264"></a>
+<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">palette</span><span class="p">);</span>
+<a id="line-266" name="line-266"></a>
+<a id="line-267" name="line-267"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">mate_rr_labeler_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-268" name="line-268"></a><span class="p">}</span>
+<a id="line-269" name="line-269"></a>
+<a id="line-270" name="line-270"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span>
+<a id="line-271" name="line-271"></a><span class="nf">count_outputs</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">config</span><span class="p">)</span>
+<a id="line-272" name="line-272"></a><span class="p">{</span>
+<a id="line-273" name="line-273"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">**</span><span class="n">outputs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_config_get_outputs</span><span class="w"> </span><span class="p">(</span><span class="n">config</span><span class="p">);</span>
+<a id="line-275" name="line-275"></a>
+<a id="line-276" name="line-276"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span>
+<a id="line-277" name="line-277"></a><span class="w"> </span><span class="p">;</span>
+<a id="line-278" name="line-278"></a>
+<a id="line-279" name="line-279"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-280" name="line-280"></a><span class="p">}</span>
+<a id="line-281" name="line-281"></a>
+<a id="line-282" name="line-282"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-283" name="line-283"></a><span class="nf">make_palette</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRLabeler</span><span class="w"> </span><span class="o">*</span><span class="n">labeler</span><span class="p">)</span>
+<a id="line-284" name="line-284"></a><span class="p">{</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="cm">/* The idea is that we go around an hue color wheel. We want to start</span>
+<a id="line-286" name="line-286"></a><span class="cm"> * at red, go around to green/etc. and stop at blue --- because magenta</span>
+<a id="line-287" name="line-287"></a><span class="cm"> * is evil. Eeeeek, no magenta, please!</span>
+<a id="line-288" name="line-288"></a><span class="cm"> *</span>
+<a id="line-289" name="line-289"></a><span class="cm"> * Purple would be nice, though. Remember that we are watered down</span>
+<a id="line-290" name="line-290"></a><span class="cm"> * (i.e. low saturation), so that would be like Like berries with cream.</span>
+<a id="line-291" name="line-291"></a><span class="cm"> * Mmmmm, berries.</span>
+<a id="line-292" name="line-292"></a><span class="cm"> */</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">start_hue</span><span class="p">;</span>
+<a id="line-294" name="line-294"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">end_hue</span><span class="p">;</span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-296" name="line-296"></a>
+<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">num_outputs</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-298" name="line-298"></a>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">palette</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new</span><span class="w"> </span><span class="p">(</span><span class="n">GdkRGBA</span><span class="p">,</span><span class="w"> </span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">num_outputs</span><span class="p">);</span>
+<a id="line-300" name="line-300"></a>
+<a id="line-301" name="line-301"></a><span class="w"> </span><span class="n">start_hue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.0</span><span class="p">;</span><span class="w"> </span><span class="cm">/* red */</span>
+<a id="line-302" name="line-302"></a><span class="w"> </span><span class="n">end_hue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">2.0</span><span class="o">/</span><span class="mi">3</span><span class="p">;</span><span class="w"> </span><span class="cm">/* blue */</span>
+<a id="line-303" name="line-303"></a>
+<a id="line-304" name="line-304"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">num_outputs</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-305" name="line-305"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">h</span><span class="p">,</span><span class="w"> </span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="n">v</span><span class="p">;</span>
+<a id="line-306" name="line-306"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">r</span><span class="p">,</span><span class="w"> </span><span class="n">g</span><span class="p">,</span><span class="w"> </span><span class="n">b</span><span class="p">;</span>
+<a id="line-307" name="line-307"></a>
+<a id="line-308" name="line-308"></a><span class="w"> </span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">start_hue</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">end_hue</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">start_hue</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">num_outputs</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-309" name="line-309"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">3</span><span class="p">;</span>
+<a id="line-310" name="line-310"></a><span class="w"> </span><span class="n">v</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-311" name="line-311"></a>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">gtk_hsv_to_rgb</span><span class="w"> </span><span class="p">(</span><span class="n">h</span><span class="p">,</span><span class="w"> </span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="n">v</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">r</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">g</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">b</span><span class="p">);</span>
+<a id="line-313" name="line-313"></a>
+<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">palette</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">red</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">r</span><span class="p">;</span>
+<a id="line-315" name="line-315"></a><span class="w"> </span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">palette</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">green</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g</span><span class="p">;</span>
+<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">palette</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">blue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">b</span><span class="p">;</span>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">palette</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">alpha</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-318" name="line-318"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-319" name="line-319"></a><span class="p">}</span>
+<a id="line-320" name="line-320"></a>
+<a id="line-321" name="line-321"></a><span class="cp">#define LABEL_WINDOW_EDGE_THICKNESS 2</span>
+<a id="line-322" name="line-322"></a><span class="cp">#define LABEL_WINDOW_PADDING 12</span>
+<a id="line-323" name="line-323"></a>
+<a id="line-324" name="line-324"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-325" name="line-325"></a><span class="nf">label_window_draw_event_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-326" name="line-326"></a><span class="p">{</span>
+<a id="line-327" name="line-327"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">;</span>
+<a id="line-328" name="line-328"></a><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="n">allocation</span><span class="p">;</span>
+<a id="line-329" name="line-329"></a>
+<a id="line-330" name="line-330"></a><span class="w"> </span><span class="n">color</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_get_data</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;color&quot;</span><span class="p">);</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">gtk_widget_get_allocation</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">allocation</span><span class="p">);</span>
+<a id="line-332" name="line-332"></a>
+<a id="line-333" name="line-333"></a><span class="w"> </span><span class="cm">/* edge outline */</span>
+<a id="line-334" name="line-334"></a>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="n">cairo_set_source_rgb</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-336" name="line-336"></a><span class="w"> </span><span class="n">cairo_rectangle</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span>
+<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">LABEL_WINDOW_EDGE_THICKNESS</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">2.0</span><span class="p">,</span>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">LABEL_WINDOW_EDGE_THICKNESS</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">2.0</span><span class="p">,</span>
+<a id="line-339" name="line-339"></a><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">LABEL_WINDOW_EDGE_THICKNESS</span><span class="p">,</span>
+<a id="line-340" name="line-340"></a><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">height</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">LABEL_WINDOW_EDGE_THICKNESS</span><span class="p">);</span>
+<a id="line-341" name="line-341"></a><span class="w"> </span><span class="n">cairo_set_line_width</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">LABEL_WINDOW_EDGE_THICKNESS</span><span class="p">);</span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="n">cairo_stroke</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-343" name="line-343"></a>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="cm">/* fill */</span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">gdk_cairo_set_source_rgba</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">color</span><span class="p">);</span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">cairo_rectangle</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">LABEL_WINDOW_EDGE_THICKNESS</span><span class="p">,</span>
+<a id="line-348" name="line-348"></a><span class="w"> </span><span class="n">LABEL_WINDOW_EDGE_THICKNESS</span><span class="p">,</span>
+<a id="line-349" name="line-349"></a><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">LABEL_WINDOW_EDGE_THICKNESS</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span>
+<a id="line-350" name="line-350"></a><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">height</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">LABEL_WINDOW_EDGE_THICKNESS</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">2</span><span class="p">);</span>
+<a id="line-351" name="line-351"></a><span class="w"> </span><span class="n">cairo_fill</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-352" name="line-352"></a>
+<a id="line-353" name="line-353"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-354" name="line-354"></a><span class="p">}</span>
+<a id="line-355" name="line-355"></a>
+<a id="line-356" name="line-356"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-357" name="line-357"></a><span class="nf">position_window</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRLabeler</span><span class="w"> </span><span class="o">*</span><span class="n">labeler</span><span class="p">,</span>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span>
+<a id="line-359" name="line-359"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x</span><span class="p">,</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">y</span><span class="p">)</span>
+<a id="line-361" name="line-361"></a><span class="p">{</span>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="n">GdkRectangle</span><span class="w"> </span><span class="n">workarea</span><span class="p">;</span>
+<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">GdkRectangle</span><span class="w"> </span><span class="n">monitor</span><span class="p">;</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">GdkMonitor</span><span class="w"> </span><span class="o">*</span><span class="n">monitor_num</span><span class="p">;</span>
+<a id="line-365" name="line-365"></a>
+<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">get_work_area</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">workarea</span><span class="p">);</span>
+<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">monitor_num</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_display_get_monitor_at_point</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_screen_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">screen</span><span class="p">),</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">);</span>
+<a id="line-368" name="line-368"></a><span class="w"> </span><span class="n">gdk_monitor_get_geometry</span><span class="w"> </span><span class="p">(</span><span class="n">monitor_num</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">monitor</span><span class="p">);</span>
+<a id="line-369" name="line-369"></a><span class="w"> </span><span class="n">gdk_rectangle_intersect</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">monitor</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">workarea</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">workarea</span><span class="p">);</span>
+<a id="line-370" name="line-370"></a>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">gtk_window_move</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="n">workarea</span><span class="p">.</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">workarea</span><span class="p">.</span><span class="n">y</span><span class="p">);</span>
+<a id="line-372" name="line-372"></a><span class="p">}</span>
+<a id="line-373" name="line-373"></a>
+<a id="line-374" name="line-374"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-375" name="line-375"></a><span class="nf">set_override_color</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-376" name="line-376"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">rgba</span><span class="p">)</span>
+<a id="line-377" name="line-377"></a><span class="p">{</span>
+<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">css</span><span class="p">;</span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="n">GtkCssProvider</span><span class="w"> </span><span class="o">*</span><span class="n">provider</span><span class="p">;</span>
+<a id="line-380" name="line-380"></a>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">provider</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_css_provider_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-382" name="line-382"></a>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="n">css</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;* { color: %s;}&quot;</span><span class="p">,</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="n">gdk_rgba_to_string</span><span class="w"> </span><span class="p">(</span><span class="n">rgba</span><span class="p">));</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">gtk_css_provider_load_from_data</span><span class="w"> </span><span class="p">(</span><span class="n">provider</span><span class="p">,</span><span class="w"> </span><span class="n">css</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">css</span><span class="p">);</span>
+<a id="line-387" name="line-387"></a>
+<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">gtk_style_context_add_provider</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_style_context</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">GTK_STYLE_PROVIDER</span><span class="w"> </span><span class="p">(</span><span class="n">provider</span><span class="p">),</span>
+<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">GTK_STYLE_PROVIDER_PRIORITY_APPLICATION</span><span class="p">);</span>
+<a id="line-391" name="line-391"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">provider</span><span class="p">);</span>
+<a id="line-392" name="line-392"></a><span class="p">}</span>
+<a id="line-393" name="line-393"></a>
+<a id="line-394" name="line-394"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span>
+<a id="line-395" name="line-395"></a><span class="nf">create_label_window</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRLabeler</span><span class="w"> </span><span class="o">*</span><span class="n">labeler</span><span class="p">,</span><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">,</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">)</span>
+<a id="line-396" name="line-396"></a><span class="p">{</span>
+<a id="line-397" name="line-397"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span>
+<a id="line-398" name="line-398"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">;</span>
+<a id="line-399" name="line-399"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">;</span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">display_name</span><span class="p">;</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="n">black</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="w"> </span><span class="p">};</span>
+<a id="line-402" name="line-402"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="n">y</span><span class="p">;</span>
+<a id="line-403" name="line-403"></a>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_window_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW_POPUP</span><span class="p">);</span>
+<a id="line-405" name="line-405"></a><span class="w"> </span><span class="n">gtk_widget_set_app_paintable</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-406" name="line-406"></a>
+<a id="line-407" name="line-407"></a><span class="w"> </span><span class="n">gtk_container_set_border_width</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="n">LABEL_WINDOW_PADDING</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">LABEL_WINDOW_EDGE_THICKNESS</span><span class="p">);</span>
+<a id="line-408" name="line-408"></a>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="cm">/* This is semi-dangerous. The color is part of the labeler-&gt;palette</span>
+<a id="line-410" name="line-410"></a><span class="cm"> * array. Note that in mate_rr_labeler_finalize(), we are careful to</span>
+<a id="line-411" name="line-411"></a><span class="cm"> * free the palette only after we free the windows.</span>
+<a id="line-412" name="line-412"></a><span class="cm"> */</span>
+<a id="line-413" name="line-413"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;color&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">color</span><span class="p">);</span>
+<a id="line-414" name="line-414"></a>
+<a id="line-415" name="line-415"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;draw&quot;</span><span class="p">,</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">label_window_draw_event_cb</span><span class="p">),</span><span class="w"> </span><span class="n">labeler</span><span class="p">);</span>
+<a id="line-417" name="line-417"></a>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mate_rr_config_get_clone</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">config</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-419" name="line-419"></a><span class="w"> </span><span class="cm">/* Keep this string in sync with mate-control-center/capplets/display/xrandr-capplet.c:get_display_name() */</span>
+<a id="line-420" name="line-420"></a>
+<a id="line-421" name="line-421"></a><span class="w"> </span><span class="cm">/* Translators: this is the feature where what you see on your laptop&#39;s</span>
+<a id="line-422" name="line-422"></a><span class="cm"> * screen is the same as your external monitor. Here, &quot;Mirror&quot; is being</span>
+<a id="line-423" name="line-423"></a><span class="cm"> * used as an adjective, not as a verb. For example, the Spanish</span>
+<a id="line-424" name="line-424"></a><span class="cm"> * translation could be &quot;Pantallas en Espejo&quot;, *not* &quot;Espejar Pantallas&quot;.</span>
+<a id="line-425" name="line-425"></a><span class="cm"> */</span>
+<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">display_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Mirror Screens&quot;</span><span class="p">));</span>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;b&gt;%s&lt;/b&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">display_name</span><span class="p">);</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">display_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&lt;b&gt;%s&lt;/b&gt;</span><span class="se">\n</span><span class="s">&lt;small&gt;%s&lt;/small&gt;&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">mate_rr_output_info_get_display_name</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="p">),</span><span class="w"> </span><span class="n">mate_rr_output_info_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="p">));</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;%s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">display_name</span><span class="p">);</span>
+<a id="line-431" name="line-431"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">display_name</span><span class="p">);</span>
+<a id="line-433" name="line-433"></a>
+<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">gtk_label_set_markup</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">str</span><span class="p">);</span>
+<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">);</span>
+<a id="line-437" name="line-437"></a>
+<a id="line-438" name="line-438"></a><span class="w"> </span><span class="cm">/* Make the label explicitly black. We don&#39;t want it to follow the</span>
+<a id="line-439" name="line-439"></a><span class="cm"> * theme&#39;s colors, since the label is always shown against a light</span>
+<a id="line-440" name="line-440"></a><span class="cm"> * pastel background. See bgo#556050</span>
+<a id="line-441" name="line-441"></a><span class="cm"> */</span>
+<a id="line-442" name="line-442"></a><span class="w"> </span><span class="n">set_override_color</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">black</span><span class="p">);</span>
+<a id="line-443" name="line-443"></a>
+<a id="line-444" name="line-444"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="n">widget</span><span class="p">);</span>
+<a id="line-445" name="line-445"></a>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="cm">/* Should we center this at the top edge of the monitor, instead of using the upper-left corner? */</span>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">mate_rr_output_info_get_geometry</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="n">position_window</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="p">,</span><span class="w"> </span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">);</span>
+<a id="line-449" name="line-449"></a>
+<a id="line-450" name="line-450"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span>
+<a id="line-451" name="line-451"></a>
+<a id="line-452" name="line-452"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">window</span><span class="p">;</span>
+<a id="line-453" name="line-453"></a><span class="p">}</span>
+<a id="line-454" name="line-454"></a>
+<a id="line-455" name="line-455"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-456" name="line-456"></a><span class="nf">create_label_windows</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRLabeler</span><span class="w"> </span><span class="o">*</span><span class="n">labeler</span><span class="p">)</span>
+<a id="line-457" name="line-457"></a><span class="p">{</span>
+<a id="line-458" name="line-458"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">created_window_for_clone</span><span class="p">;</span>
+<a id="line-460" name="line-460"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">**</span><span class="n">outputs</span><span class="p">;</span>
+<a id="line-461" name="line-461"></a>
+<a id="line-462" name="line-462"></a><span class="w"> </span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">windows</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="p">,</span><span class="w"> </span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">num_outputs</span><span class="p">);</span>
+<a id="line-463" name="line-463"></a>
+<a id="line-464" name="line-464"></a><span class="w"> </span><span class="n">created_window_for_clone</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-465" name="line-465"></a>
+<a id="line-466" name="line-466"></a><span class="w"> </span><span class="n">outputs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_config_get_outputs</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">config</span><span class="p">);</span>
+<a id="line-467" name="line-467"></a>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">num_outputs</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-469" name="line-469"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">created_window_for_clone</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">mate_rr_output_info_is_active</span><span class="w"> </span><span class="p">(</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">windows</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">create_label_window</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="p">,</span><span class="w"> </span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">],</span><span class="w"> </span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">palette</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">i</span><span class="p">);</span>
+<a id="line-471" name="line-471"></a>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mate_rr_config_get_clone</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">config</span><span class="p">))</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">created_window_for_clone</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-474" name="line-474"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span>
+<a id="line-475" name="line-475"></a><span class="w"> </span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">windows</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-476" name="line-476"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-477" name="line-477"></a><span class="p">}</span>
+<a id="line-478" name="line-478"></a>
+<a id="line-479" name="line-479"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-480" name="line-480"></a><span class="nf">setup_from_config</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRLabeler</span><span class="w"> </span><span class="o">*</span><span class="n">labeler</span><span class="p">)</span>
+<a id="line-481" name="line-481"></a><span class="p">{</span>
+<a id="line-482" name="line-482"></a><span class="w"> </span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">num_outputs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">count_outputs</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">config</span><span class="p">);</span>
+<a id="line-483" name="line-483"></a>
+<a id="line-484" name="line-484"></a><span class="w"> </span><span class="n">make_palette</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="p">);</span>
+<a id="line-485" name="line-485"></a>
+<a id="line-486" name="line-486"></a><span class="w"> </span><span class="n">create_label_windows</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="p">);</span>
+<a id="line-487" name="line-487"></a><span class="p">}</span>
+<a id="line-488" name="line-488"></a>
+<a id="line-489" name="line-489"></a><span class="cm">/**</span>
+<a id="line-490" name="line-490"></a><span class="cm"> * mate_rr_labeler_new:</span>
+<a id="line-491" name="line-491"></a><span class="cm"> * @config: Configuration of the screens to label</span>
+<a id="line-492" name="line-492"></a><span class="cm"> *</span>
+<a id="line-493" name="line-493"></a><span class="cm"> * Create a GUI element that will display colored labels on each connected monitor.</span>
+<a id="line-494" name="line-494"></a><span class="cm"> * This is useful when users are required to identify which monitor is which, e.g. for</span>
+<a id="line-495" name="line-495"></a><span class="cm"> * for configuring multiple monitors.</span>
+<a id="line-496" name="line-496"></a><span class="cm"> * The labels will be shown by default, use mate_rr_labeler_hide to hide them.</span>
+<a id="line-497" name="line-497"></a><span class="cm"> *</span>
+<a id="line-498" name="line-498"></a><span class="cm"> * Returns: A new #MateRRLabeler</span>
+<a id="line-499" name="line-499"></a><span class="cm"> */</span>
+<a id="line-500" name="line-500"></a><span class="n">MateRRLabeler</span><span class="w"> </span><span class="o">*</span>
+<a id="line-501" name="line-501"></a><span class="nf">mate_rr_labeler_new</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRConfig</span><span class="w"> </span><span class="o">*</span><span class="n">config</span><span class="p">)</span>
+<a id="line-502" name="line-502"></a><span class="p">{</span>
+<a id="line-503" name="line-503"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_CONFIG</span><span class="w"> </span><span class="p">(</span><span class="n">config</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-504" name="line-504"></a>
+<a id="line-505" name="line-505"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_TYPE_RR_LABELER</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;config&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">config</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-506" name="line-506"></a><span class="p">}</span>
+<a id="line-507" name="line-507"></a>
+<a id="line-508" name="line-508"></a><span class="cm">/**</span>
+<a id="line-509" name="line-509"></a><span class="cm"> * mate_rr_labeler_hide:</span>
+<a id="line-510" name="line-510"></a><span class="cm"> * @labeler: A #MateRRLabeler</span>
+<a id="line-511" name="line-511"></a><span class="cm"> *</span>
+<a id="line-512" name="line-512"></a><span class="cm"> * Hide ouput labels.</span>
+<a id="line-513" name="line-513"></a><span class="cm"> */</span>
+<a id="line-514" name="line-514"></a><span class="kt">void</span>
+<a id="line-515" name="line-515"></a><span class="nf">mate_rr_labeler_hide</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRLabeler</span><span class="w"> </span><span class="o">*</span><span class="n">labeler</span><span class="p">)</span>
+<a id="line-516" name="line-516"></a><span class="p">{</span>
+<a id="line-517" name="line-517"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-518" name="line-518"></a><span class="w"> </span><span class="n">MateRRLabelerPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-519" name="line-519"></a>
+<a id="line-520" name="line-520"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_LABELER</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="p">));</span>
+<a id="line-521" name="line-521"></a>
+<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-523" name="line-523"></a>
+<a id="line-524" name="line-524"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">windows</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-525" name="line-525"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-526" name="line-526"></a>
+<a id="line-527" name="line-527"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">num_outputs</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span>
+<a id="line-528" name="line-528"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">windows</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-529" name="line-529"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">windows</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span>
+<a id="line-530" name="line-530"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">windows</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-531" name="line-531"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-532" name="line-532"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">windows</span><span class="p">);</span>
+<a id="line-533" name="line-533"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">windows</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-534" name="line-534"></a><span class="p">}</span>
+<a id="line-535" name="line-535"></a>
+<a id="line-536" name="line-536"></a><span class="cm">/**</span>
+<a id="line-537" name="line-537"></a><span class="cm"> * mate_rr_labeler_get_rgba_for_output:</span>
+<a id="line-538" name="line-538"></a><span class="cm"> * @labeler: A #MateRRLabeler</span>
+<a id="line-539" name="line-539"></a><span class="cm"> * @output: Output device (i.e. monitor) to query</span>
+<a id="line-540" name="line-540"></a><span class="cm"> * @color_out: (out): Color of selected monitor.</span>
+<a id="line-541" name="line-541"></a><span class="cm"> *</span>
+<a id="line-542" name="line-542"></a><span class="cm"> * Get the color used for the label on a given output (monitor).</span>
+<a id="line-543" name="line-543"></a><span class="cm"> */</span>
+<a id="line-544" name="line-544"></a><span class="kt">void</span>
+<a id="line-545" name="line-545"></a><span class="nf">mate_rr_labeler_get_rgba_for_output</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRLabeler</span><span class="w"> </span><span class="o">*</span><span class="n">labeler</span><span class="p">,</span><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">,</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">color_out</span><span class="p">)</span>
+<a id="line-546" name="line-546"></a><span class="p">{</span>
+<a id="line-547" name="line-547"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-548" name="line-548"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">**</span><span class="n">outputs</span><span class="p">;</span>
+<a id="line-549" name="line-549"></a>
+<a id="line-550" name="line-550"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_LABELER</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="p">));</span>
+<a id="line-551" name="line-551"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_OUTPUT_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="p">));</span>
+<a id="line-552" name="line-552"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">color_out</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-553" name="line-553"></a>
+<a id="line-554" name="line-554"></a><span class="w"> </span><span class="n">outputs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_config_get_outputs</span><span class="w"> </span><span class="p">(</span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">config</span><span class="p">);</span>
+<a id="line-555" name="line-555"></a>
+<a id="line-556" name="line-556"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">num_outputs</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span>
+<a id="line-557" name="line-557"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">output</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-558" name="line-558"></a><span class="w"> </span><span class="o">*</span><span class="n">color_out</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">labeler</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">palette</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-559" name="line-559"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-560" name="line-560"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-561" name="line-561"></a>
+<a id="line-562" name="line-562"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;trying to get the color for unknown MateOutputInfo %p; returning magenta!&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="p">);</span>
+<a id="line-563" name="line-563"></a>
+<a id="line-564" name="line-564"></a><span class="w"> </span><span class="n">color_out</span><span class="o">-&gt;</span><span class="n">red</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-565" name="line-565"></a><span class="w"> </span><span class="n">color_out</span><span class="o">-&gt;</span><span class="n">green</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.0</span><span class="p">;</span>
+<a id="line-566" name="line-566"></a><span class="w"> </span><span class="n">color_out</span><span class="o">-&gt;</span><span class="n">blue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-567" name="line-567"></a><span class="w"> </span><span class="n">color_out</span><span class="o">-&gt;</span><span class="n">alpha</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-568" name="line-568"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/28.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/28.html
new file mode 100644
index 0000000..18d6eef
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/28.html
@@ -0,0 +1,741 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/mate-rr-output-info.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-rr-output-info.c</p>
+<a href="28.html#line-26"> missingIncludeSystem 26</a><a href="28.html#line-33"> unknownMacro 33</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal"> 10</span>
+<span class="normal"> 11</span>
+<span class="normal"> 12</span>
+<span class="normal"> 13</span>
+<span class="normal"> 14</span>
+<span class="normal"> 15</span>
+<span class="normal"> 16</span>
+<span class="normal"> 17</span>
+<span class="normal"> 18</span>
+<span class="normal"> 19</span>
+<span class="normal"> 20</span>
+<span class="normal"> 21</span>
+<span class="normal"> 22</span>
+<span class="normal"> 23</span>
+<span class="normal"> 24</span>
+<span class="normal"> 25</span>
+<span class="normal"> 26</span>
+<span class="normal"> 27</span>
+<span class="normal"> 28</span>
+<span class="normal"> 29</span>
+<span class="normal"> 30</span>
+<span class="normal"> 31</span>
+<span class="normal"> 32</span>
+<span class="normal"> 33</span>
+<span class="normal"> 34</span>
+<span class="normal"> 35</span>
+<span class="normal"> 36</span>
+<span class="normal"> 37</span>
+<span class="normal"> 38</span>
+<span class="normal"> 39</span>
+<span class="normal"> 40</span>
+<span class="normal"> 41</span>
+<span class="normal"> 42</span>
+<span class="normal"> 43</span>
+<span class="normal"> 44</span>
+<span class="normal"> 45</span>
+<span class="normal"> 46</span>
+<span class="normal"> 47</span>
+<span class="normal"> 48</span>
+<span class="normal"> 49</span>
+<span class="normal"> 50</span>
+<span class="normal"> 51</span>
+<span class="normal"> 52</span>
+<span class="normal"> 53</span>
+<span class="normal"> 54</span>
+<span class="normal"> 55</span>
+<span class="normal"> 56</span>
+<span class="normal"> 57</span>
+<span class="normal"> 58</span>
+<span class="normal"> 59</span>
+<span class="normal"> 60</span>
+<span class="normal"> 61</span>
+<span class="normal"> 62</span>
+<span class="normal"> 63</span>
+<span class="normal"> 64</span>
+<span class="normal"> 65</span>
+<span class="normal"> 66</span>
+<span class="normal"> 67</span>
+<span class="normal"> 68</span>
+<span class="normal"> 69</span>
+<span class="normal"> 70</span>
+<span class="normal"> 71</span>
+<span class="normal"> 72</span>
+<span class="normal"> 73</span>
+<span class="normal"> 74</span>
+<span class="normal"> 75</span>
+<span class="normal"> 76</span>
+<span class="normal"> 77</span>
+<span class="normal"> 78</span>
+<span class="normal"> 79</span>
+<span class="normal"> 80</span>
+<span class="normal"> 81</span>
+<span class="normal"> 82</span>
+<span class="normal"> 83</span>
+<span class="normal"> 84</span>
+<span class="normal"> 85</span>
+<span class="normal"> 86</span>
+<span class="normal"> 87</span>
+<span class="normal"> 88</span>
+<span class="normal"> 89</span>
+<span class="normal"> 90</span>
+<span class="normal"> 91</span>
+<span class="normal"> 92</span>
+<span class="normal"> 93</span>
+<span class="normal"> 94</span>
+<span class="normal"> 95</span>
+<span class="normal"> 96</span>
+<span class="normal"> 97</span>
+<span class="normal"> 98</span>
+<span class="normal"> 99</span>
+<span class="normal">100</span>
+<span class="normal">101</span>
+<span class="normal">102</span>
+<span class="normal">103</span>
+<span class="normal">104</span>
+<span class="normal">105</span>
+<span class="normal">106</span>
+<span class="normal">107</span>
+<span class="normal">108</span>
+<span class="normal">109</span>
+<span class="normal">110</span>
+<span class="normal">111</span>
+<span class="normal">112</span>
+<span class="normal">113</span>
+<span class="normal">114</span>
+<span class="normal">115</span>
+<span class="normal">116</span>
+<span class="normal">117</span>
+<span class="normal">118</span>
+<span class="normal">119</span>
+<span class="normal">120</span>
+<span class="normal">121</span>
+<span class="normal">122</span>
+<span class="normal">123</span>
+<span class="normal">124</span>
+<span class="normal">125</span>
+<span class="normal">126</span>
+<span class="normal">127</span>
+<span class="normal">128</span>
+<span class="normal">129</span>
+<span class="normal">130</span>
+<span class="normal">131</span>
+<span class="normal">132</span>
+<span class="normal">133</span>
+<span class="normal">134</span>
+<span class="normal">135</span>
+<span class="normal">136</span>
+<span class="normal">137</span>
+<span class="normal">138</span>
+<span class="normal">139</span>
+<span class="normal">140</span>
+<span class="normal">141</span>
+<span class="normal">142</span>
+<span class="normal">143</span>
+<span class="normal">144</span>
+<span class="normal">145</span>
+<span class="normal">146</span>
+<span class="normal">147</span>
+<span class="normal">148</span>
+<span class="normal">149</span>
+<span class="normal">150</span>
+<span class="normal">151</span>
+<span class="normal">152</span>
+<span class="normal">153</span>
+<span class="normal">154</span>
+<span class="normal">155</span>
+<span class="normal">156</span>
+<span class="normal">157</span>
+<span class="normal">158</span>
+<span class="normal">159</span>
+<span class="normal">160</span>
+<span class="normal">161</span>
+<span class="normal">162</span>
+<span class="normal">163</span>
+<span class="normal">164</span>
+<span class="normal">165</span>
+<span class="normal">166</span>
+<span class="normal">167</span>
+<span class="normal">168</span>
+<span class="normal">169</span>
+<span class="normal">170</span>
+<span class="normal">171</span>
+<span class="normal">172</span>
+<span class="normal">173</span>
+<span class="normal">174</span>
+<span class="normal">175</span>
+<span class="normal">176</span>
+<span class="normal">177</span>
+<span class="normal">178</span>
+<span class="normal">179</span>
+<span class="normal">180</span>
+<span class="normal">181</span>
+<span class="normal">182</span>
+<span class="normal">183</span>
+<span class="normal">184</span>
+<span class="normal">185</span>
+<span class="normal">186</span>
+<span class="normal">187</span>
+<span class="normal">188</span>
+<span class="normal">189</span>
+<span class="normal">190</span>
+<span class="normal">191</span>
+<span class="normal">192</span>
+<span class="normal">193</span>
+<span class="normal">194</span>
+<span class="normal">195</span>
+<span class="normal">196</span>
+<span class="normal">197</span>
+<span class="normal">198</span>
+<span class="normal">199</span>
+<span class="normal">200</span>
+<span class="normal">201</span>
+<span class="normal">202</span>
+<span class="normal">203</span>
+<span class="normal">204</span>
+<span class="normal">205</span>
+<span class="normal">206</span>
+<span class="normal">207</span>
+<span class="normal">208</span>
+<span class="normal">209</span>
+<span class="normal">210</span>
+<span class="normal">211</span>
+<span class="normal">212</span>
+<span class="normal">213</span>
+<span class="normal">214</span>
+<span class="normal">215</span>
+<span class="normal">216</span>
+<span class="normal">217</span>
+<span class="normal">218</span>
+<span class="normal">219</span>
+<span class="normal">220</span>
+<span class="normal">221</span>
+<span class="normal">222</span>
+<span class="normal">223</span>
+<span class="normal">224</span>
+<span class="normal">225</span>
+<span class="normal">226</span>
+<span class="normal">227</span>
+<span class="normal">228</span>
+<span class="normal">229</span>
+<span class="normal">230</span>
+<span class="normal">231</span>
+<span class="normal">232</span>
+<span class="normal">233</span>
+<span class="normal">234</span>
+<span class="normal">235</span>
+<span class="normal">236</span>
+<span class="normal">237</span>
+<span class="normal">238</span>
+<span class="normal">239</span>
+<span class="normal">240</span>
+<span class="normal">241</span>
+<span class="normal">242</span>
+<span class="normal">243</span>
+<span class="normal">244</span>
+<span class="normal">245</span>
+<span class="normal">246</span>
+<span class="normal">247</span>
+<span class="normal">248</span>
+<span class="normal">249</span>
+<span class="normal">250</span>
+<span class="normal">251</span>
+<span class="normal">252</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* mate-rr-output-info.c</span>
+<a id="line-2" name="line-2"></a><span class="cm"> * -*- c-basic-offset: 4 -*-</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * Copyright 2010 Giovanni Campagna</span>
+<a id="line-5" name="line-5"></a><span class="cm"> *</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * This file is part of the Mate Desktop Library.</span>
+<a id="line-7" name="line-7"></a><span class="cm"> *</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * The Mate Desktop Library is free software; you can redistribute it and/or</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * modify it under the terms of the GNU Library General Public License as</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * published by the Free Software Foundation; either version 2 of the</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * License, or (at your option) any later version.</span>
+<a id="line-12" name="line-12"></a><span class="cm"> *</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * The Mate Library is distributed in the hope that it will be useful,</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Library General Public License for more details.</span>
+<a id="line-17" name="line-17"></a><span class="cm"> *</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * You should have received a copy of the GNU Library General Public</span>
+<a id="line-19" name="line-19"></a><span class="cm"> * License along with the Mate Desktop Library; see the file COPYING.LIB. If not,</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,</span>
+<a id="line-21" name="line-21"></a><span class="cm"> * Boston, MA 02111-1307, USA.</span>
+<a id="line-22" name="line-22"></a><span class="cm"> */</span>
+<a id="line-23" name="line-23"></a>
+<a id="line-24" name="line-24"></a><span class="cp">#define MATE_DESKTOP_USE_UNSTABLE_API</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;config.h&gt;</span><span class="error2">&lt;--- Include file: <config.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;mate-rr-config.h&quot;</span>
+<a id="line-29" name="line-29"></a>
+<a id="line-30" name="line-30"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;edid.h&quot;</span>
+<a id="line-31" name="line-31"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;mate-rr-private.h&quot;</span>
+<a id="line-32" name="line-32"></a>
+<a id="line-33" name="line-33"></a><span class="hll"><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="p">,</span><span class="w"> </span><span class="n">mate_rr_output_info</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">)</span><span class="error2">&lt;--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</span>
+</span><a id="line-34" name="line-34"></a>
+<a id="line-35" name="line-35"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-36" name="line-36"></a><span class="n">mate_rr_output_info_init</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">)</span>
+<a id="line-37" name="line-37"></a><span class="p">{</span>
+<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_output_info_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">);</span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">on</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">display_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-43" name="line-43"></a><span class="p">}</span>
+<a id="line-44" name="line-44"></a>
+<a id="line-45" name="line-45"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-46" name="line-46"></a><span class="n">mate_rr_output_info_finalize</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">gobject</span><span class="p">)</span>
+<a id="line-47" name="line-47"></a><span class="p">{</span>
+<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_RR_OUTPUT_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">gobject</span><span class="p">);</span>
+<a id="line-49" name="line-49"></a>
+<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">);</span>
+<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">display_name</span><span class="p">);</span>
+<a id="line-52" name="line-52"></a>
+<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">mate_rr_output_info_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">gobject</span><span class="p">);</span>
+<a id="line-54" name="line-54"></a><span class="p">}</span>
+<a id="line-55" name="line-55"></a>
+<a id="line-56" name="line-56"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-57" name="line-57"></a><span class="n">mate_rr_output_info_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfoClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span>
+<a id="line-58" name="line-58"></a><span class="p">{</span>
+<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">gobject_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">klass</span><span class="p">);</span>
+<a id="line-60" name="line-60"></a>
+<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_output_info_finalize</span><span class="p">;</span>
+<a id="line-62" name="line-62"></a><span class="p">}</span>
+<a id="line-63" name="line-63"></a>
+<a id="line-64" name="line-64"></a><span class="cm">/**</span>
+<a id="line-65" name="line-65"></a><span class="cm"> * mate_rr_output_info_get_name:</span>
+<a id="line-66" name="line-66"></a><span class="cm"> *</span>
+<a id="line-67" name="line-67"></a><span class="cm"> * Returns: (transfer none): the output name</span>
+<a id="line-68" name="line-68"></a><span class="cm"> */</span>
+<a id="line-69" name="line-69"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">mate_rr_output_info_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">)</span>
+<a id="line-70" name="line-70"></a><span class="p">{</span>
+<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_OUTPUT_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-72" name="line-72"></a>
+<a id="line-73" name="line-73"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">;</span>
+<a id="line-74" name="line-74"></a><span class="p">}</span>
+<a id="line-75" name="line-75"></a>
+<a id="line-76" name="line-76"></a><span class="cm">/**</span>
+<a id="line-77" name="line-77"></a><span class="cm"> * mate_rr_output_info_is_active:</span>
+<a id="line-78" name="line-78"></a><span class="cm"> *</span>
+<a id="line-79" name="line-79"></a><span class="cm"> * Returns: whether there is a CRTC assigned to this output (i.e. a signal is being sent to it)</span>
+<a id="line-80" name="line-80"></a><span class="cm"> */</span>
+<a id="line-81" name="line-81"></a><span class="n">gboolean</span><span class="w"> </span><span class="n">mate_rr_output_info_is_active</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">)</span>
+<a id="line-82" name="line-82"></a><span class="p">{</span>
+<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_OUTPUT_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-84" name="line-84"></a>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">on</span><span class="p">;</span>
+<a id="line-86" name="line-86"></a><span class="p">}</span>
+<a id="line-87" name="line-87"></a>
+<a id="line-88" name="line-88"></a><span class="kt">void</span><span class="w"> </span><span class="n">mate_rr_output_info_set_active</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">active</span><span class="p">)</span>
+<a id="line-89" name="line-89"></a><span class="p">{</span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_OUTPUT_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">));</span>
+<a id="line-91" name="line-91"></a>
+<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">on</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">active</span><span class="p">;</span>
+<a id="line-93" name="line-93"></a><span class="p">}</span>
+<a id="line-94" name="line-94"></a>
+<a id="line-95" name="line-95"></a><span class="cm">/**</span>
+<a id="line-96" name="line-96"></a><span class="cm"> * mate_rr_output_info_get_geometry:</span>
+<a id="line-97" name="line-97"></a><span class="cm"> * @self: a #MateRROutputInfo</span>
+<a id="line-98" name="line-98"></a><span class="cm"> * @x: (out) (allow-none):</span>
+<a id="line-99" name="line-99"></a><span class="cm"> * @y: (out) (allow-none):</span>
+<a id="line-100" name="line-100"></a><span class="cm"> * @width: (out) (allow-none):</span>
+<a id="line-101" name="line-101"></a><span class="cm"> * @height: (out) (allow-none):</span>
+<a id="line-102" name="line-102"></a><span class="cm"> */</span>
+<a id="line-103" name="line-103"></a><span class="kt">void</span><span class="w"> </span><span class="n">mate_rr_output_info_get_geometry</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">height</span><span class="p">)</span>
+<a id="line-104" name="line-104"></a><span class="p">{</span>
+<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_OUTPUT_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">));</span>
+<a id="line-106" name="line-106"></a>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">x</span><span class="p">)</span>
+<a id="line-108" name="line-108"></a><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">x</span><span class="p">;</span>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">y</span><span class="p">)</span>
+<a id="line-110" name="line-110"></a><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">y</span><span class="p">;</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">width</span><span class="p">)</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="o">*</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">width</span><span class="p">;</span>
+<a id="line-113" name="line-113"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">height</span><span class="p">)</span>
+<a id="line-114" name="line-114"></a><span class="w"> </span><span class="o">*</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">height</span><span class="p">;</span>
+<a id="line-115" name="line-115"></a><span class="p">}</span>
+<a id="line-116" name="line-116"></a>
+<a id="line-117" name="line-117"></a><span class="cm">/**</span>
+<a id="line-118" name="line-118"></a><span class="cm"> * mate_rr_output_info_set_geometry:</span>
+<a id="line-119" name="line-119"></a><span class="cm"> * @self: a #MateRROutputInfo</span>
+<a id="line-120" name="line-120"></a><span class="cm"> * @x: x offset for monitor</span>
+<a id="line-121" name="line-121"></a><span class="cm"> * @y: y offset for monitor</span>
+<a id="line-122" name="line-122"></a><span class="cm"> * @width: monitor width</span>
+<a id="line-123" name="line-123"></a><span class="cm"> * @height: monitor height</span>
+<a id="line-124" name="line-124"></a><span class="cm"> *</span>
+<a id="line-125" name="line-125"></a><span class="cm"> * Set the geometry for the monitor connected to the specified output.</span>
+<a id="line-126" name="line-126"></a><span class="cm"> */</span>
+<a id="line-127" name="line-127"></a><span class="kt">void</span><span class="w"> </span><span class="n">mate_rr_output_info_set_geometry</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">height</span><span class="p">)</span>
+<a id="line-128" name="line-128"></a><span class="p">{</span>
+<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_OUTPUT_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">));</span>
+<a id="line-130" name="line-130"></a>
+<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">x</span><span class="p">;</span>
+<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">y</span><span class="p">;</span>
+<a id="line-133" name="line-133"></a><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">width</span><span class="p">;</span>
+<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">height</span><span class="p">;</span>
+<a id="line-135" name="line-135"></a><span class="p">}</span>
+<a id="line-136" name="line-136"></a>
+<a id="line-137" name="line-137"></a><span class="kt">int</span><span class="w"> </span><span class="n">mate_rr_output_info_get_refresh_rate</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">)</span>
+<a id="line-138" name="line-138"></a><span class="p">{</span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_OUTPUT_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-140" name="line-140"></a>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rate</span><span class="p">;</span>
+<a id="line-142" name="line-142"></a><span class="p">}</span>
+<a id="line-143" name="line-143"></a>
+<a id="line-144" name="line-144"></a><span class="kt">void</span><span class="w"> </span><span class="n">mate_rr_output_info_set_refresh_rate</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">rate</span><span class="p">)</span>
+<a id="line-145" name="line-145"></a><span class="p">{</span>
+<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_OUTPUT_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">));</span>
+<a id="line-147" name="line-147"></a>
+<a id="line-148" name="line-148"></a><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rate</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">rate</span><span class="p">;</span>
+<a id="line-149" name="line-149"></a><span class="p">}</span>
+<a id="line-150" name="line-150"></a>
+<a id="line-151" name="line-151"></a><span class="n">MateRRRotation</span><span class="w"> </span><span class="n">mate_rr_output_info_get_rotation</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">)</span>
+<a id="line-152" name="line-152"></a><span class="p">{</span>
+<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_OUTPUT_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">),</span><span class="w"> </span><span class="n">MATE_RR_ROTATION_0</span><span class="p">);</span>
+<a id="line-154" name="line-154"></a>
+<a id="line-155" name="line-155"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="p">;</span>
+<a id="line-156" name="line-156"></a><span class="p">}</span>
+<a id="line-157" name="line-157"></a>
+<a id="line-158" name="line-158"></a><span class="kt">void</span><span class="w"> </span><span class="n">mate_rr_output_info_set_rotation</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">MateRRRotation</span><span class="w"> </span><span class="n">rotation</span><span class="p">)</span>
+<a id="line-159" name="line-159"></a><span class="p">{</span>
+<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_OUTPUT_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">));</span>
+<a id="line-161" name="line-161"></a>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">rotation</span><span class="p">;</span>
+<a id="line-163" name="line-163"></a><span class="p">}</span>
+<a id="line-164" name="line-164"></a>
+<a id="line-165" name="line-165"></a><span class="cm">/**</span>
+<a id="line-166" name="line-166"></a><span class="cm"> * mate_rr_output_info_is_connected:</span>
+<a id="line-167" name="line-167"></a><span class="cm"> *</span>
+<a id="line-168" name="line-168"></a><span class="cm"> * Returns: whether the output is physically connected to a monitor</span>
+<a id="line-169" name="line-169"></a><span class="cm"> */</span>
+<a id="line-170" name="line-170"></a><span class="n">gboolean</span><span class="w"> </span><span class="n">mate_rr_output_info_is_connected</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">)</span>
+<a id="line-171" name="line-171"></a><span class="p">{</span>
+<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_OUTPUT_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-173" name="line-173"></a>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">connected</span><span class="p">;</span>
+<a id="line-175" name="line-175"></a><span class="p">}</span>
+<a id="line-176" name="line-176"></a>
+<a id="line-177" name="line-177"></a><span class="cm">/**</span>
+<a id="line-178" name="line-178"></a><span class="cm"> * mate_rr_output_info_get_vendor:</span>
+<a id="line-179" name="line-179"></a><span class="cm"> * @self: a #MateRROutputInfo</span>
+<a id="line-180" name="line-180"></a><span class="cm"> * @vendor: (out caller-allocates) (array fixed-size=4):</span>
+<a id="line-181" name="line-181"></a><span class="cm"> */</span>
+<a id="line-182" name="line-182"></a><span class="kt">void</span><span class="w"> </span><span class="n">mate_rr_output_info_get_vendor</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">gchar</span><span class="o">*</span><span class="w"> </span><span class="n">vendor</span><span class="p">)</span>
+<a id="line-183" name="line-183"></a><span class="p">{</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_OUTPUT_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">));</span>
+<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">vendor</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-186" name="line-186"></a>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">vendor</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="p">[</span><span class="mi">0</span><span class="p">];</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">vendor</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="p">[</span><span class="mi">1</span><span class="p">];</span>
+<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">vendor</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="p">[</span><span class="mi">2</span><span class="p">];</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">vendor</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">vendor</span><span class="p">[</span><span class="mi">3</span><span class="p">];</span>
+<a id="line-191" name="line-191"></a><span class="p">}</span>
+<a id="line-192" name="line-192"></a>
+<a id="line-193" name="line-193"></a><span class="n">guint</span><span class="w"> </span><span class="n">mate_rr_output_info_get_product</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">)</span>
+<a id="line-194" name="line-194"></a><span class="p">{</span>
+<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_OUTPUT_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-196" name="line-196"></a>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">product</span><span class="p">;</span>
+<a id="line-198" name="line-198"></a><span class="p">}</span>
+<a id="line-199" name="line-199"></a>
+<a id="line-200" name="line-200"></a><span class="n">guint</span><span class="w"> </span><span class="n">mate_rr_output_info_get_serial</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">)</span>
+<a id="line-201" name="line-201"></a><span class="p">{</span>
+<a id="line-202" name="line-202"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_OUTPUT_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-203" name="line-203"></a>
+<a id="line-204" name="line-204"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">serial</span><span class="p">;</span>
+<a id="line-205" name="line-205"></a><span class="p">}</span>
+<a id="line-206" name="line-206"></a>
+<a id="line-207" name="line-207"></a><span class="kt">double</span><span class="w"> </span><span class="n">mate_rr_output_info_get_aspect_ratio</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">)</span>
+<a id="line-208" name="line-208"></a><span class="p">{</span>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_OUTPUT_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-210" name="line-210"></a>
+<a id="line-211" name="line-211"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">aspect</span><span class="p">;</span>
+<a id="line-212" name="line-212"></a><span class="p">}</span>
+<a id="line-213" name="line-213"></a>
+<a id="line-214" name="line-214"></a><span class="cm">/**</span>
+<a id="line-215" name="line-215"></a><span class="cm"> * mate_rr_output_info_get_display_name:</span>
+<a id="line-216" name="line-216"></a><span class="cm"> *</span>
+<a id="line-217" name="line-217"></a><span class="cm"> * Returns: (transfer none): the display name of this output</span>
+<a id="line-218" name="line-218"></a><span class="cm"> */</span>
+<a id="line-219" name="line-219"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">mate_rr_output_info_get_display_name</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">)</span>
+<a id="line-220" name="line-220"></a><span class="p">{</span>
+<a id="line-221" name="line-221"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_OUTPUT_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-222" name="line-222"></a>
+<a id="line-223" name="line-223"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">display_name</span><span class="p">;</span>
+<a id="line-224" name="line-224"></a><span class="p">}</span>
+<a id="line-225" name="line-225"></a>
+<a id="line-226" name="line-226"></a><span class="n">gboolean</span><span class="w"> </span><span class="n">mate_rr_output_info_get_primary</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">)</span>
+<a id="line-227" name="line-227"></a><span class="p">{</span>
+<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_OUTPUT_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-229" name="line-229"></a>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">primary</span><span class="p">;</span>
+<a id="line-231" name="line-231"></a><span class="p">}</span>
+<a id="line-232" name="line-232"></a>
+<a id="line-233" name="line-233"></a><span class="kt">void</span><span class="w"> </span><span class="n">mate_rr_output_info_set_primary</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">primary</span><span class="p">)</span>
+<a id="line-234" name="line-234"></a><span class="p">{</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_OUTPUT_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">));</span>
+<a id="line-236" name="line-236"></a>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">primary</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">primary</span><span class="p">;</span>
+<a id="line-238" name="line-238"></a><span class="p">}</span>
+<a id="line-239" name="line-239"></a>
+<a id="line-240" name="line-240"></a><span class="kt">int</span><span class="w"> </span><span class="n">mate_rr_output_info_get_preferred_width</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">)</span>
+<a id="line-241" name="line-241"></a><span class="p">{</span>
+<a id="line-242" name="line-242"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_OUTPUT_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-243" name="line-243"></a>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">pref_width</span><span class="p">;</span>
+<a id="line-245" name="line-245"></a><span class="p">}</span>
+<a id="line-246" name="line-246"></a>
+<a id="line-247" name="line-247"></a><span class="kt">int</span><span class="w"> </span><span class="n">mate_rr_output_info_get_preferred_height</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">)</span>
+<a id="line-248" name="line-248"></a><span class="p">{</span>
+<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_OUTPUT_INFO</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-250" name="line-250"></a>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">pref_height</span><span class="p">;</span>
+<a id="line-252" name="line-252"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/29.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/29.html
new file mode 100644
index 0000000..cb778e7
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/29.html
@@ -0,0 +1,4569 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/mate-rr.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-rr.c</p>
+<a href="29.html#line-27"> missingIncludeSystem 27</a><a href="29.html#line-28"> missingIncludeSystem 28</a><a href="29.html#line-29"> missingIncludeSystem 29</a><a href="29.html#line-30"> missingIncludeSystem 30</a><a href="29.html#line-33"> missingIncludeSystem 33</a><a href="29.html#line-36"> missingIncludeSystem 36</a><a href="29.html#line-37"> missingIncludeSystem 37</a><a href="29.html#line-38"> missingIncludeSystem 38</a><a href="29.html#line-168"> unknownMacro 168</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal"> 10</span>
+<span class="normal"> 11</span>
+<span class="normal"> 12</span>
+<span class="normal"> 13</span>
+<span class="normal"> 14</span>
+<span class="normal"> 15</span>
+<span class="normal"> 16</span>
+<span class="normal"> 17</span>
+<span class="normal"> 18</span>
+<span class="normal"> 19</span>
+<span class="normal"> 20</span>
+<span class="normal"> 21</span>
+<span class="normal"> 22</span>
+<span class="normal"> 23</span>
+<span class="normal"> 24</span>
+<span class="normal"> 25</span>
+<span class="normal"> 26</span>
+<span class="normal"> 27</span>
+<span class="normal"> 28</span>
+<span class="normal"> 29</span>
+<span class="normal"> 30</span>
+<span class="normal"> 31</span>
+<span class="normal"> 32</span>
+<span class="normal"> 33</span>
+<span class="normal"> 34</span>
+<span class="normal"> 35</span>
+<span class="normal"> 36</span>
+<span class="normal"> 37</span>
+<span class="normal"> 38</span>
+<span class="normal"> 39</span>
+<span class="normal"> 40</span>
+<span class="normal"> 41</span>
+<span class="normal"> 42</span>
+<span class="normal"> 43</span>
+<span class="normal"> 44</span>
+<span class="normal"> 45</span>
+<span class="normal"> 46</span>
+<span class="normal"> 47</span>
+<span class="normal"> 48</span>
+<span class="normal"> 49</span>
+<span class="normal"> 50</span>
+<span class="normal"> 51</span>
+<span class="normal"> 52</span>
+<span class="normal"> 53</span>
+<span class="normal"> 54</span>
+<span class="normal"> 55</span>
+<span class="normal"> 56</span>
+<span class="normal"> 57</span>
+<span class="normal"> 58</span>
+<span class="normal"> 59</span>
+<span class="normal"> 60</span>
+<span class="normal"> 61</span>
+<span class="normal"> 62</span>
+<span class="normal"> 63</span>
+<span class="normal"> 64</span>
+<span class="normal"> 65</span>
+<span class="normal"> 66</span>
+<span class="normal"> 67</span>
+<span class="normal"> 68</span>
+<span class="normal"> 69</span>
+<span class="normal"> 70</span>
+<span class="normal"> 71</span>
+<span class="normal"> 72</span>
+<span class="normal"> 73</span>
+<span class="normal"> 74</span>
+<span class="normal"> 75</span>
+<span class="normal"> 76</span>
+<span class="normal"> 77</span>
+<span class="normal"> 78</span>
+<span class="normal"> 79</span>
+<span class="normal"> 80</span>
+<span class="normal"> 81</span>
+<span class="normal"> 82</span>
+<span class="normal"> 83</span>
+<span class="normal"> 84</span>
+<span class="normal"> 85</span>
+<span class="normal"> 86</span>
+<span class="normal"> 87</span>
+<span class="normal"> 88</span>
+<span class="normal"> 89</span>
+<span class="normal"> 90</span>
+<span class="normal"> 91</span>
+<span class="normal"> 92</span>
+<span class="normal"> 93</span>
+<span class="normal"> 94</span>
+<span class="normal"> 95</span>
+<span class="normal"> 96</span>
+<span class="normal"> 97</span>
+<span class="normal"> 98</span>
+<span class="normal"> 99</span>
+<span class="normal"> 100</span>
+<span class="normal"> 101</span>
+<span class="normal"> 102</span>
+<span class="normal"> 103</span>
+<span class="normal"> 104</span>
+<span class="normal"> 105</span>
+<span class="normal"> 106</span>
+<span class="normal"> 107</span>
+<span class="normal"> 108</span>
+<span class="normal"> 109</span>
+<span class="normal"> 110</span>
+<span class="normal"> 111</span>
+<span class="normal"> 112</span>
+<span class="normal"> 113</span>
+<span class="normal"> 114</span>
+<span class="normal"> 115</span>
+<span class="normal"> 116</span>
+<span class="normal"> 117</span>
+<span class="normal"> 118</span>
+<span class="normal"> 119</span>
+<span class="normal"> 120</span>
+<span class="normal"> 121</span>
+<span class="normal"> 122</span>
+<span class="normal"> 123</span>
+<span class="normal"> 124</span>
+<span class="normal"> 125</span>
+<span class="normal"> 126</span>
+<span class="normal"> 127</span>
+<span class="normal"> 128</span>
+<span class="normal"> 129</span>
+<span class="normal"> 130</span>
+<span class="normal"> 131</span>
+<span class="normal"> 132</span>
+<span class="normal"> 133</span>
+<span class="normal"> 134</span>
+<span class="normal"> 135</span>
+<span class="normal"> 136</span>
+<span class="normal"> 137</span>
+<span class="normal"> 138</span>
+<span class="normal"> 139</span>
+<span class="normal"> 140</span>
+<span class="normal"> 141</span>
+<span class="normal"> 142</span>
+<span class="normal"> 143</span>
+<span class="normal"> 144</span>
+<span class="normal"> 145</span>
+<span class="normal"> 146</span>
+<span class="normal"> 147</span>
+<span class="normal"> 148</span>
+<span class="normal"> 149</span>
+<span class="normal"> 150</span>
+<span class="normal"> 151</span>
+<span class="normal"> 152</span>
+<span class="normal"> 153</span>
+<span class="normal"> 154</span>
+<span class="normal"> 155</span>
+<span class="normal"> 156</span>
+<span class="normal"> 157</span>
+<span class="normal"> 158</span>
+<span class="normal"> 159</span>
+<span class="normal"> 160</span>
+<span class="normal"> 161</span>
+<span class="normal"> 162</span>
+<span class="normal"> 163</span>
+<span class="normal"> 164</span>
+<span class="normal"> 165</span>
+<span class="normal"> 166</span>
+<span class="normal"> 167</span>
+<span class="normal"> 168</span>
+<span class="normal"> 169</span>
+<span class="normal"> 170</span>
+<span class="normal"> 171</span>
+<span class="normal"> 172</span>
+<span class="normal"> 173</span>
+<span class="normal"> 174</span>
+<span class="normal"> 175</span>
+<span class="normal"> 176</span>
+<span class="normal"> 177</span>
+<span class="normal"> 178</span>
+<span class="normal"> 179</span>
+<span class="normal"> 180</span>
+<span class="normal"> 181</span>
+<span class="normal"> 182</span>
+<span class="normal"> 183</span>
+<span class="normal"> 184</span>
+<span class="normal"> 185</span>
+<span class="normal"> 186</span>
+<span class="normal"> 187</span>
+<span class="normal"> 188</span>
+<span class="normal"> 189</span>
+<span class="normal"> 190</span>
+<span class="normal"> 191</span>
+<span class="normal"> 192</span>
+<span class="normal"> 193</span>
+<span class="normal"> 194</span>
+<span class="normal"> 195</span>
+<span class="normal"> 196</span>
+<span class="normal"> 197</span>
+<span class="normal"> 198</span>
+<span class="normal"> 199</span>
+<span class="normal"> 200</span>
+<span class="normal"> 201</span>
+<span class="normal"> 202</span>
+<span class="normal"> 203</span>
+<span class="normal"> 204</span>
+<span class="normal"> 205</span>
+<span class="normal"> 206</span>
+<span class="normal"> 207</span>
+<span class="normal"> 208</span>
+<span class="normal"> 209</span>
+<span class="normal"> 210</span>
+<span class="normal"> 211</span>
+<span class="normal"> 212</span>
+<span class="normal"> 213</span>
+<span class="normal"> 214</span>
+<span class="normal"> 215</span>
+<span class="normal"> 216</span>
+<span class="normal"> 217</span>
+<span class="normal"> 218</span>
+<span class="normal"> 219</span>
+<span class="normal"> 220</span>
+<span class="normal"> 221</span>
+<span class="normal"> 222</span>
+<span class="normal"> 223</span>
+<span class="normal"> 224</span>
+<span class="normal"> 225</span>
+<span class="normal"> 226</span>
+<span class="normal"> 227</span>
+<span class="normal"> 228</span>
+<span class="normal"> 229</span>
+<span class="normal"> 230</span>
+<span class="normal"> 231</span>
+<span class="normal"> 232</span>
+<span class="normal"> 233</span>
+<span class="normal"> 234</span>
+<span class="normal"> 235</span>
+<span class="normal"> 236</span>
+<span class="normal"> 237</span>
+<span class="normal"> 238</span>
+<span class="normal"> 239</span>
+<span class="normal"> 240</span>
+<span class="normal"> 241</span>
+<span class="normal"> 242</span>
+<span class="normal"> 243</span>
+<span class="normal"> 244</span>
+<span class="normal"> 245</span>
+<span class="normal"> 246</span>
+<span class="normal"> 247</span>
+<span class="normal"> 248</span>
+<span class="normal"> 249</span>
+<span class="normal"> 250</span>
+<span class="normal"> 251</span>
+<span class="normal"> 252</span>
+<span class="normal"> 253</span>
+<span class="normal"> 254</span>
+<span class="normal"> 255</span>
+<span class="normal"> 256</span>
+<span class="normal"> 257</span>
+<span class="normal"> 258</span>
+<span class="normal"> 259</span>
+<span class="normal"> 260</span>
+<span class="normal"> 261</span>
+<span class="normal"> 262</span>
+<span class="normal"> 263</span>
+<span class="normal"> 264</span>
+<span class="normal"> 265</span>
+<span class="normal"> 266</span>
+<span class="normal"> 267</span>
+<span class="normal"> 268</span>
+<span class="normal"> 269</span>
+<span class="normal"> 270</span>
+<span class="normal"> 271</span>
+<span class="normal"> 272</span>
+<span class="normal"> 273</span>
+<span class="normal"> 274</span>
+<span class="normal"> 275</span>
+<span class="normal"> 276</span>
+<span class="normal"> 277</span>
+<span class="normal"> 278</span>
+<span class="normal"> 279</span>
+<span class="normal"> 280</span>
+<span class="normal"> 281</span>
+<span class="normal"> 282</span>
+<span class="normal"> 283</span>
+<span class="normal"> 284</span>
+<span class="normal"> 285</span>
+<span class="normal"> 286</span>
+<span class="normal"> 287</span>
+<span class="normal"> 288</span>
+<span class="normal"> 289</span>
+<span class="normal"> 290</span>
+<span class="normal"> 291</span>
+<span class="normal"> 292</span>
+<span class="normal"> 293</span>
+<span class="normal"> 294</span>
+<span class="normal"> 295</span>
+<span class="normal"> 296</span>
+<span class="normal"> 297</span>
+<span class="normal"> 298</span>
+<span class="normal"> 299</span>
+<span class="normal"> 300</span>
+<span class="normal"> 301</span>
+<span class="normal"> 302</span>
+<span class="normal"> 303</span>
+<span class="normal"> 304</span>
+<span class="normal"> 305</span>
+<span class="normal"> 306</span>
+<span class="normal"> 307</span>
+<span class="normal"> 308</span>
+<span class="normal"> 309</span>
+<span class="normal"> 310</span>
+<span class="normal"> 311</span>
+<span class="normal"> 312</span>
+<span class="normal"> 313</span>
+<span class="normal"> 314</span>
+<span class="normal"> 315</span>
+<span class="normal"> 316</span>
+<span class="normal"> 317</span>
+<span class="normal"> 318</span>
+<span class="normal"> 319</span>
+<span class="normal"> 320</span>
+<span class="normal"> 321</span>
+<span class="normal"> 322</span>
+<span class="normal"> 323</span>
+<span class="normal"> 324</span>
+<span class="normal"> 325</span>
+<span class="normal"> 326</span>
+<span class="normal"> 327</span>
+<span class="normal"> 328</span>
+<span class="normal"> 329</span>
+<span class="normal"> 330</span>
+<span class="normal"> 331</span>
+<span class="normal"> 332</span>
+<span class="normal"> 333</span>
+<span class="normal"> 334</span>
+<span class="normal"> 335</span>
+<span class="normal"> 336</span>
+<span class="normal"> 337</span>
+<span class="normal"> 338</span>
+<span class="normal"> 339</span>
+<span class="normal"> 340</span>
+<span class="normal"> 341</span>
+<span class="normal"> 342</span>
+<span class="normal"> 343</span>
+<span class="normal"> 344</span>
+<span class="normal"> 345</span>
+<span class="normal"> 346</span>
+<span class="normal"> 347</span>
+<span class="normal"> 348</span>
+<span class="normal"> 349</span>
+<span class="normal"> 350</span>
+<span class="normal"> 351</span>
+<span class="normal"> 352</span>
+<span class="normal"> 353</span>
+<span class="normal"> 354</span>
+<span class="normal"> 355</span>
+<span class="normal"> 356</span>
+<span class="normal"> 357</span>
+<span class="normal"> 358</span>
+<span class="normal"> 359</span>
+<span class="normal"> 360</span>
+<span class="normal"> 361</span>
+<span class="normal"> 362</span>
+<span class="normal"> 363</span>
+<span class="normal"> 364</span>
+<span class="normal"> 365</span>
+<span class="normal"> 366</span>
+<span class="normal"> 367</span>
+<span class="normal"> 368</span>
+<span class="normal"> 369</span>
+<span class="normal"> 370</span>
+<span class="normal"> 371</span>
+<span class="normal"> 372</span>
+<span class="normal"> 373</span>
+<span class="normal"> 374</span>
+<span class="normal"> 375</span>
+<span class="normal"> 376</span>
+<span class="normal"> 377</span>
+<span class="normal"> 378</span>
+<span class="normal"> 379</span>
+<span class="normal"> 380</span>
+<span class="normal"> 381</span>
+<span class="normal"> 382</span>
+<span class="normal"> 383</span>
+<span class="normal"> 384</span>
+<span class="normal"> 385</span>
+<span class="normal"> 386</span>
+<span class="normal"> 387</span>
+<span class="normal"> 388</span>
+<span class="normal"> 389</span>
+<span class="normal"> 390</span>
+<span class="normal"> 391</span>
+<span class="normal"> 392</span>
+<span class="normal"> 393</span>
+<span class="normal"> 394</span>
+<span class="normal"> 395</span>
+<span class="normal"> 396</span>
+<span class="normal"> 397</span>
+<span class="normal"> 398</span>
+<span class="normal"> 399</span>
+<span class="normal"> 400</span>
+<span class="normal"> 401</span>
+<span class="normal"> 402</span>
+<span class="normal"> 403</span>
+<span class="normal"> 404</span>
+<span class="normal"> 405</span>
+<span class="normal"> 406</span>
+<span class="normal"> 407</span>
+<span class="normal"> 408</span>
+<span class="normal"> 409</span>
+<span class="normal"> 410</span>
+<span class="normal"> 411</span>
+<span class="normal"> 412</span>
+<span class="normal"> 413</span>
+<span class="normal"> 414</span>
+<span class="normal"> 415</span>
+<span class="normal"> 416</span>
+<span class="normal"> 417</span>
+<span class="normal"> 418</span>
+<span class="normal"> 419</span>
+<span class="normal"> 420</span>
+<span class="normal"> 421</span>
+<span class="normal"> 422</span>
+<span class="normal"> 423</span>
+<span class="normal"> 424</span>
+<span class="normal"> 425</span>
+<span class="normal"> 426</span>
+<span class="normal"> 427</span>
+<span class="normal"> 428</span>
+<span class="normal"> 429</span>
+<span class="normal"> 430</span>
+<span class="normal"> 431</span>
+<span class="normal"> 432</span>
+<span class="normal"> 433</span>
+<span class="normal"> 434</span>
+<span class="normal"> 435</span>
+<span class="normal"> 436</span>
+<span class="normal"> 437</span>
+<span class="normal"> 438</span>
+<span class="normal"> 439</span>
+<span class="normal"> 440</span>
+<span class="normal"> 441</span>
+<span class="normal"> 442</span>
+<span class="normal"> 443</span>
+<span class="normal"> 444</span>
+<span class="normal"> 445</span>
+<span class="normal"> 446</span>
+<span class="normal"> 447</span>
+<span class="normal"> 448</span>
+<span class="normal"> 449</span>
+<span class="normal"> 450</span>
+<span class="normal"> 451</span>
+<span class="normal"> 452</span>
+<span class="normal"> 453</span>
+<span class="normal"> 454</span>
+<span class="normal"> 455</span>
+<span class="normal"> 456</span>
+<span class="normal"> 457</span>
+<span class="normal"> 458</span>
+<span class="normal"> 459</span>
+<span class="normal"> 460</span>
+<span class="normal"> 461</span>
+<span class="normal"> 462</span>
+<span class="normal"> 463</span>
+<span class="normal"> 464</span>
+<span class="normal"> 465</span>
+<span class="normal"> 466</span>
+<span class="normal"> 467</span>
+<span class="normal"> 468</span>
+<span class="normal"> 469</span>
+<span class="normal"> 470</span>
+<span class="normal"> 471</span>
+<span class="normal"> 472</span>
+<span class="normal"> 473</span>
+<span class="normal"> 474</span>
+<span class="normal"> 475</span>
+<span class="normal"> 476</span>
+<span class="normal"> 477</span>
+<span class="normal"> 478</span>
+<span class="normal"> 479</span>
+<span class="normal"> 480</span>
+<span class="normal"> 481</span>
+<span class="normal"> 482</span>
+<span class="normal"> 483</span>
+<span class="normal"> 484</span>
+<span class="normal"> 485</span>
+<span class="normal"> 486</span>
+<span class="normal"> 487</span>
+<span class="normal"> 488</span>
+<span class="normal"> 489</span>
+<span class="normal"> 490</span>
+<span class="normal"> 491</span>
+<span class="normal"> 492</span>
+<span class="normal"> 493</span>
+<span class="normal"> 494</span>
+<span class="normal"> 495</span>
+<span class="normal"> 496</span>
+<span class="normal"> 497</span>
+<span class="normal"> 498</span>
+<span class="normal"> 499</span>
+<span class="normal"> 500</span>
+<span class="normal"> 501</span>
+<span class="normal"> 502</span>
+<span class="normal"> 503</span>
+<span class="normal"> 504</span>
+<span class="normal"> 505</span>
+<span class="normal"> 506</span>
+<span class="normal"> 507</span>
+<span class="normal"> 508</span>
+<span class="normal"> 509</span>
+<span class="normal"> 510</span>
+<span class="normal"> 511</span>
+<span class="normal"> 512</span>
+<span class="normal"> 513</span>
+<span class="normal"> 514</span>
+<span class="normal"> 515</span>
+<span class="normal"> 516</span>
+<span class="normal"> 517</span>
+<span class="normal"> 518</span>
+<span class="normal"> 519</span>
+<span class="normal"> 520</span>
+<span class="normal"> 521</span>
+<span class="normal"> 522</span>
+<span class="normal"> 523</span>
+<span class="normal"> 524</span>
+<span class="normal"> 525</span>
+<span class="normal"> 526</span>
+<span class="normal"> 527</span>
+<span class="normal"> 528</span>
+<span class="normal"> 529</span>
+<span class="normal"> 530</span>
+<span class="normal"> 531</span>
+<span class="normal"> 532</span>
+<span class="normal"> 533</span>
+<span class="normal"> 534</span>
+<span class="normal"> 535</span>
+<span class="normal"> 536</span>
+<span class="normal"> 537</span>
+<span class="normal"> 538</span>
+<span class="normal"> 539</span>
+<span class="normal"> 540</span>
+<span class="normal"> 541</span>
+<span class="normal"> 542</span>
+<span class="normal"> 543</span>
+<span class="normal"> 544</span>
+<span class="normal"> 545</span>
+<span class="normal"> 546</span>
+<span class="normal"> 547</span>
+<span class="normal"> 548</span>
+<span class="normal"> 549</span>
+<span class="normal"> 550</span>
+<span class="normal"> 551</span>
+<span class="normal"> 552</span>
+<span class="normal"> 553</span>
+<span class="normal"> 554</span>
+<span class="normal"> 555</span>
+<span class="normal"> 556</span>
+<span class="normal"> 557</span>
+<span class="normal"> 558</span>
+<span class="normal"> 559</span>
+<span class="normal"> 560</span>
+<span class="normal"> 561</span>
+<span class="normal"> 562</span>
+<span class="normal"> 563</span>
+<span class="normal"> 564</span>
+<span class="normal"> 565</span>
+<span class="normal"> 566</span>
+<span class="normal"> 567</span>
+<span class="normal"> 568</span>
+<span class="normal"> 569</span>
+<span class="normal"> 570</span>
+<span class="normal"> 571</span>
+<span class="normal"> 572</span>
+<span class="normal"> 573</span>
+<span class="normal"> 574</span>
+<span class="normal"> 575</span>
+<span class="normal"> 576</span>
+<span class="normal"> 577</span>
+<span class="normal"> 578</span>
+<span class="normal"> 579</span>
+<span class="normal"> 580</span>
+<span class="normal"> 581</span>
+<span class="normal"> 582</span>
+<span class="normal"> 583</span>
+<span class="normal"> 584</span>
+<span class="normal"> 585</span>
+<span class="normal"> 586</span>
+<span class="normal"> 587</span>
+<span class="normal"> 588</span>
+<span class="normal"> 589</span>
+<span class="normal"> 590</span>
+<span class="normal"> 591</span>
+<span class="normal"> 592</span>
+<span class="normal"> 593</span>
+<span class="normal"> 594</span>
+<span class="normal"> 595</span>
+<span class="normal"> 596</span>
+<span class="normal"> 597</span>
+<span class="normal"> 598</span>
+<span class="normal"> 599</span>
+<span class="normal"> 600</span>
+<span class="normal"> 601</span>
+<span class="normal"> 602</span>
+<span class="normal"> 603</span>
+<span class="normal"> 604</span>
+<span class="normal"> 605</span>
+<span class="normal"> 606</span>
+<span class="normal"> 607</span>
+<span class="normal"> 608</span>
+<span class="normal"> 609</span>
+<span class="normal"> 610</span>
+<span class="normal"> 611</span>
+<span class="normal"> 612</span>
+<span class="normal"> 613</span>
+<span class="normal"> 614</span>
+<span class="normal"> 615</span>
+<span class="normal"> 616</span>
+<span class="normal"> 617</span>
+<span class="normal"> 618</span>
+<span class="normal"> 619</span>
+<span class="normal"> 620</span>
+<span class="normal"> 621</span>
+<span class="normal"> 622</span>
+<span class="normal"> 623</span>
+<span class="normal"> 624</span>
+<span class="normal"> 625</span>
+<span class="normal"> 626</span>
+<span class="normal"> 627</span>
+<span class="normal"> 628</span>
+<span class="normal"> 629</span>
+<span class="normal"> 630</span>
+<span class="normal"> 631</span>
+<span class="normal"> 632</span>
+<span class="normal"> 633</span>
+<span class="normal"> 634</span>
+<span class="normal"> 635</span>
+<span class="normal"> 636</span>
+<span class="normal"> 637</span>
+<span class="normal"> 638</span>
+<span class="normal"> 639</span>
+<span class="normal"> 640</span>
+<span class="normal"> 641</span>
+<span class="normal"> 642</span>
+<span class="normal"> 643</span>
+<span class="normal"> 644</span>
+<span class="normal"> 645</span>
+<span class="normal"> 646</span>
+<span class="normal"> 647</span>
+<span class="normal"> 648</span>
+<span class="normal"> 649</span>
+<span class="normal"> 650</span>
+<span class="normal"> 651</span>
+<span class="normal"> 652</span>
+<span class="normal"> 653</span>
+<span class="normal"> 654</span>
+<span class="normal"> 655</span>
+<span class="normal"> 656</span>
+<span class="normal"> 657</span>
+<span class="normal"> 658</span>
+<span class="normal"> 659</span>
+<span class="normal"> 660</span>
+<span class="normal"> 661</span>
+<span class="normal"> 662</span>
+<span class="normal"> 663</span>
+<span class="normal"> 664</span>
+<span class="normal"> 665</span>
+<span class="normal"> 666</span>
+<span class="normal"> 667</span>
+<span class="normal"> 668</span>
+<span class="normal"> 669</span>
+<span class="normal"> 670</span>
+<span class="normal"> 671</span>
+<span class="normal"> 672</span>
+<span class="normal"> 673</span>
+<span class="normal"> 674</span>
+<span class="normal"> 675</span>
+<span class="normal"> 676</span>
+<span class="normal"> 677</span>
+<span class="normal"> 678</span>
+<span class="normal"> 679</span>
+<span class="normal"> 680</span>
+<span class="normal"> 681</span>
+<span class="normal"> 682</span>
+<span class="normal"> 683</span>
+<span class="normal"> 684</span>
+<span class="normal"> 685</span>
+<span class="normal"> 686</span>
+<span class="normal"> 687</span>
+<span class="normal"> 688</span>
+<span class="normal"> 689</span>
+<span class="normal"> 690</span>
+<span class="normal"> 691</span>
+<span class="normal"> 692</span>
+<span class="normal"> 693</span>
+<span class="normal"> 694</span>
+<span class="normal"> 695</span>
+<span class="normal"> 696</span>
+<span class="normal"> 697</span>
+<span class="normal"> 698</span>
+<span class="normal"> 699</span>
+<span class="normal"> 700</span>
+<span class="normal"> 701</span>
+<span class="normal"> 702</span>
+<span class="normal"> 703</span>
+<span class="normal"> 704</span>
+<span class="normal"> 705</span>
+<span class="normal"> 706</span>
+<span class="normal"> 707</span>
+<span class="normal"> 708</span>
+<span class="normal"> 709</span>
+<span class="normal"> 710</span>
+<span class="normal"> 711</span>
+<span class="normal"> 712</span>
+<span class="normal"> 713</span>
+<span class="normal"> 714</span>
+<span class="normal"> 715</span>
+<span class="normal"> 716</span>
+<span class="normal"> 717</span>
+<span class="normal"> 718</span>
+<span class="normal"> 719</span>
+<span class="normal"> 720</span>
+<span class="normal"> 721</span>
+<span class="normal"> 722</span>
+<span class="normal"> 723</span>
+<span class="normal"> 724</span>
+<span class="normal"> 725</span>
+<span class="normal"> 726</span>
+<span class="normal"> 727</span>
+<span class="normal"> 728</span>
+<span class="normal"> 729</span>
+<span class="normal"> 730</span>
+<span class="normal"> 731</span>
+<span class="normal"> 732</span>
+<span class="normal"> 733</span>
+<span class="normal"> 734</span>
+<span class="normal"> 735</span>
+<span class="normal"> 736</span>
+<span class="normal"> 737</span>
+<span class="normal"> 738</span>
+<span class="normal"> 739</span>
+<span class="normal"> 740</span>
+<span class="normal"> 741</span>
+<span class="normal"> 742</span>
+<span class="normal"> 743</span>
+<span class="normal"> 744</span>
+<span class="normal"> 745</span>
+<span class="normal"> 746</span>
+<span class="normal"> 747</span>
+<span class="normal"> 748</span>
+<span class="normal"> 749</span>
+<span class="normal"> 750</span>
+<span class="normal"> 751</span>
+<span class="normal"> 752</span>
+<span class="normal"> 753</span>
+<span class="normal"> 754</span>
+<span class="normal"> 755</span>
+<span class="normal"> 756</span>
+<span class="normal"> 757</span>
+<span class="normal"> 758</span>
+<span class="normal"> 759</span>
+<span class="normal"> 760</span>
+<span class="normal"> 761</span>
+<span class="normal"> 762</span>
+<span class="normal"> 763</span>
+<span class="normal"> 764</span>
+<span class="normal"> 765</span>
+<span class="normal"> 766</span>
+<span class="normal"> 767</span>
+<span class="normal"> 768</span>
+<span class="normal"> 769</span>
+<span class="normal"> 770</span>
+<span class="normal"> 771</span>
+<span class="normal"> 772</span>
+<span class="normal"> 773</span>
+<span class="normal"> 774</span>
+<span class="normal"> 775</span>
+<span class="normal"> 776</span>
+<span class="normal"> 777</span>
+<span class="normal"> 778</span>
+<span class="normal"> 779</span>
+<span class="normal"> 780</span>
+<span class="normal"> 781</span>
+<span class="normal"> 782</span>
+<span class="normal"> 783</span>
+<span class="normal"> 784</span>
+<span class="normal"> 785</span>
+<span class="normal"> 786</span>
+<span class="normal"> 787</span>
+<span class="normal"> 788</span>
+<span class="normal"> 789</span>
+<span class="normal"> 790</span>
+<span class="normal"> 791</span>
+<span class="normal"> 792</span>
+<span class="normal"> 793</span>
+<span class="normal"> 794</span>
+<span class="normal"> 795</span>
+<span class="normal"> 796</span>
+<span class="normal"> 797</span>
+<span class="normal"> 798</span>
+<span class="normal"> 799</span>
+<span class="normal"> 800</span>
+<span class="normal"> 801</span>
+<span class="normal"> 802</span>
+<span class="normal"> 803</span>
+<span class="normal"> 804</span>
+<span class="normal"> 805</span>
+<span class="normal"> 806</span>
+<span class="normal"> 807</span>
+<span class="normal"> 808</span>
+<span class="normal"> 809</span>
+<span class="normal"> 810</span>
+<span class="normal"> 811</span>
+<span class="normal"> 812</span>
+<span class="normal"> 813</span>
+<span class="normal"> 814</span>
+<span class="normal"> 815</span>
+<span class="normal"> 816</span>
+<span class="normal"> 817</span>
+<span class="normal"> 818</span>
+<span class="normal"> 819</span>
+<span class="normal"> 820</span>
+<span class="normal"> 821</span>
+<span class="normal"> 822</span>
+<span class="normal"> 823</span>
+<span class="normal"> 824</span>
+<span class="normal"> 825</span>
+<span class="normal"> 826</span>
+<span class="normal"> 827</span>
+<span class="normal"> 828</span>
+<span class="normal"> 829</span>
+<span class="normal"> 830</span>
+<span class="normal"> 831</span>
+<span class="normal"> 832</span>
+<span class="normal"> 833</span>
+<span class="normal"> 834</span>
+<span class="normal"> 835</span>
+<span class="normal"> 836</span>
+<span class="normal"> 837</span>
+<span class="normal"> 838</span>
+<span class="normal"> 839</span>
+<span class="normal"> 840</span>
+<span class="normal"> 841</span>
+<span class="normal"> 842</span>
+<span class="normal"> 843</span>
+<span class="normal"> 844</span>
+<span class="normal"> 845</span>
+<span class="normal"> 846</span>
+<span class="normal"> 847</span>
+<span class="normal"> 848</span>
+<span class="normal"> 849</span>
+<span class="normal"> 850</span>
+<span class="normal"> 851</span>
+<span class="normal"> 852</span>
+<span class="normal"> 853</span>
+<span class="normal"> 854</span>
+<span class="normal"> 855</span>
+<span class="normal"> 856</span>
+<span class="normal"> 857</span>
+<span class="normal"> 858</span>
+<span class="normal"> 859</span>
+<span class="normal"> 860</span>
+<span class="normal"> 861</span>
+<span class="normal"> 862</span>
+<span class="normal"> 863</span>
+<span class="normal"> 864</span>
+<span class="normal"> 865</span>
+<span class="normal"> 866</span>
+<span class="normal"> 867</span>
+<span class="normal"> 868</span>
+<span class="normal"> 869</span>
+<span class="normal"> 870</span>
+<span class="normal"> 871</span>
+<span class="normal"> 872</span>
+<span class="normal"> 873</span>
+<span class="normal"> 874</span>
+<span class="normal"> 875</span>
+<span class="normal"> 876</span>
+<span class="normal"> 877</span>
+<span class="normal"> 878</span>
+<span class="normal"> 879</span>
+<span class="normal"> 880</span>
+<span class="normal"> 881</span>
+<span class="normal"> 882</span>
+<span class="normal"> 883</span>
+<span class="normal"> 884</span>
+<span class="normal"> 885</span>
+<span class="normal"> 886</span>
+<span class="normal"> 887</span>
+<span class="normal"> 888</span>
+<span class="normal"> 889</span>
+<span class="normal"> 890</span>
+<span class="normal"> 891</span>
+<span class="normal"> 892</span>
+<span class="normal"> 893</span>
+<span class="normal"> 894</span>
+<span class="normal"> 895</span>
+<span class="normal"> 896</span>
+<span class="normal"> 897</span>
+<span class="normal"> 898</span>
+<span class="normal"> 899</span>
+<span class="normal"> 900</span>
+<span class="normal"> 901</span>
+<span class="normal"> 902</span>
+<span class="normal"> 903</span>
+<span class="normal"> 904</span>
+<span class="normal"> 905</span>
+<span class="normal"> 906</span>
+<span class="normal"> 907</span>
+<span class="normal"> 908</span>
+<span class="normal"> 909</span>
+<span class="normal"> 910</span>
+<span class="normal"> 911</span>
+<span class="normal"> 912</span>
+<span class="normal"> 913</span>
+<span class="normal"> 914</span>
+<span class="normal"> 915</span>
+<span class="normal"> 916</span>
+<span class="normal"> 917</span>
+<span class="normal"> 918</span>
+<span class="normal"> 919</span>
+<span class="normal"> 920</span>
+<span class="normal"> 921</span>
+<span class="normal"> 922</span>
+<span class="normal"> 923</span>
+<span class="normal"> 924</span>
+<span class="normal"> 925</span>
+<span class="normal"> 926</span>
+<span class="normal"> 927</span>
+<span class="normal"> 928</span>
+<span class="normal"> 929</span>
+<span class="normal"> 930</span>
+<span class="normal"> 931</span>
+<span class="normal"> 932</span>
+<span class="normal"> 933</span>
+<span class="normal"> 934</span>
+<span class="normal"> 935</span>
+<span class="normal"> 936</span>
+<span class="normal"> 937</span>
+<span class="normal"> 938</span>
+<span class="normal"> 939</span>
+<span class="normal"> 940</span>
+<span class="normal"> 941</span>
+<span class="normal"> 942</span>
+<span class="normal"> 943</span>
+<span class="normal"> 944</span>
+<span class="normal"> 945</span>
+<span class="normal"> 946</span>
+<span class="normal"> 947</span>
+<span class="normal"> 948</span>
+<span class="normal"> 949</span>
+<span class="normal"> 950</span>
+<span class="normal"> 951</span>
+<span class="normal"> 952</span>
+<span class="normal"> 953</span>
+<span class="normal"> 954</span>
+<span class="normal"> 955</span>
+<span class="normal"> 956</span>
+<span class="normal"> 957</span>
+<span class="normal"> 958</span>
+<span class="normal"> 959</span>
+<span class="normal"> 960</span>
+<span class="normal"> 961</span>
+<span class="normal"> 962</span>
+<span class="normal"> 963</span>
+<span class="normal"> 964</span>
+<span class="normal"> 965</span>
+<span class="normal"> 966</span>
+<span class="normal"> 967</span>
+<span class="normal"> 968</span>
+<span class="normal"> 969</span>
+<span class="normal"> 970</span>
+<span class="normal"> 971</span>
+<span class="normal"> 972</span>
+<span class="normal"> 973</span>
+<span class="normal"> 974</span>
+<span class="normal"> 975</span>
+<span class="normal"> 976</span>
+<span class="normal"> 977</span>
+<span class="normal"> 978</span>
+<span class="normal"> 979</span>
+<span class="normal"> 980</span>
+<span class="normal"> 981</span>
+<span class="normal"> 982</span>
+<span class="normal"> 983</span>
+<span class="normal"> 984</span>
+<span class="normal"> 985</span>
+<span class="normal"> 986</span>
+<span class="normal"> 987</span>
+<span class="normal"> 988</span>
+<span class="normal"> 989</span>
+<span class="normal"> 990</span>
+<span class="normal"> 991</span>
+<span class="normal"> 992</span>
+<span class="normal"> 993</span>
+<span class="normal"> 994</span>
+<span class="normal"> 995</span>
+<span class="normal"> 996</span>
+<span class="normal"> 997</span>
+<span class="normal"> 998</span>
+<span class="normal"> 999</span>
+<span class="normal">1000</span>
+<span class="normal">1001</span>
+<span class="normal">1002</span>
+<span class="normal">1003</span>
+<span class="normal">1004</span>
+<span class="normal">1005</span>
+<span class="normal">1006</span>
+<span class="normal">1007</span>
+<span class="normal">1008</span>
+<span class="normal">1009</span>
+<span class="normal">1010</span>
+<span class="normal">1011</span>
+<span class="normal">1012</span>
+<span class="normal">1013</span>
+<span class="normal">1014</span>
+<span class="normal">1015</span>
+<span class="normal">1016</span>
+<span class="normal">1017</span>
+<span class="normal">1018</span>
+<span class="normal">1019</span>
+<span class="normal">1020</span>
+<span class="normal">1021</span>
+<span class="normal">1022</span>
+<span class="normal">1023</span>
+<span class="normal">1024</span>
+<span class="normal">1025</span>
+<span class="normal">1026</span>
+<span class="normal">1027</span>
+<span class="normal">1028</span>
+<span class="normal">1029</span>
+<span class="normal">1030</span>
+<span class="normal">1031</span>
+<span class="normal">1032</span>
+<span class="normal">1033</span>
+<span class="normal">1034</span>
+<span class="normal">1035</span>
+<span class="normal">1036</span>
+<span class="normal">1037</span>
+<span class="normal">1038</span>
+<span class="normal">1039</span>
+<span class="normal">1040</span>
+<span class="normal">1041</span>
+<span class="normal">1042</span>
+<span class="normal">1043</span>
+<span class="normal">1044</span>
+<span class="normal">1045</span>
+<span class="normal">1046</span>
+<span class="normal">1047</span>
+<span class="normal">1048</span>
+<span class="normal">1049</span>
+<span class="normal">1050</span>
+<span class="normal">1051</span>
+<span class="normal">1052</span>
+<span class="normal">1053</span>
+<span class="normal">1054</span>
+<span class="normal">1055</span>
+<span class="normal">1056</span>
+<span class="normal">1057</span>
+<span class="normal">1058</span>
+<span class="normal">1059</span>
+<span class="normal">1060</span>
+<span class="normal">1061</span>
+<span class="normal">1062</span>
+<span class="normal">1063</span>
+<span class="normal">1064</span>
+<span class="normal">1065</span>
+<span class="normal">1066</span>
+<span class="normal">1067</span>
+<span class="normal">1068</span>
+<span class="normal">1069</span>
+<span class="normal">1070</span>
+<span class="normal">1071</span>
+<span class="normal">1072</span>
+<span class="normal">1073</span>
+<span class="normal">1074</span>
+<span class="normal">1075</span>
+<span class="normal">1076</span>
+<span class="normal">1077</span>
+<span class="normal">1078</span>
+<span class="normal">1079</span>
+<span class="normal">1080</span>
+<span class="normal">1081</span>
+<span class="normal">1082</span>
+<span class="normal">1083</span>
+<span class="normal">1084</span>
+<span class="normal">1085</span>
+<span class="normal">1086</span>
+<span class="normal">1087</span>
+<span class="normal">1088</span>
+<span class="normal">1089</span>
+<span class="normal">1090</span>
+<span class="normal">1091</span>
+<span class="normal">1092</span>
+<span class="normal">1093</span>
+<span class="normal">1094</span>
+<span class="normal">1095</span>
+<span class="normal">1096</span>
+<span class="normal">1097</span>
+<span class="normal">1098</span>
+<span class="normal">1099</span>
+<span class="normal">1100</span>
+<span class="normal">1101</span>
+<span class="normal">1102</span>
+<span class="normal">1103</span>
+<span class="normal">1104</span>
+<span class="normal">1105</span>
+<span class="normal">1106</span>
+<span class="normal">1107</span>
+<span class="normal">1108</span>
+<span class="normal">1109</span>
+<span class="normal">1110</span>
+<span class="normal">1111</span>
+<span class="normal">1112</span>
+<span class="normal">1113</span>
+<span class="normal">1114</span>
+<span class="normal">1115</span>
+<span class="normal">1116</span>
+<span class="normal">1117</span>
+<span class="normal">1118</span>
+<span class="normal">1119</span>
+<span class="normal">1120</span>
+<span class="normal">1121</span>
+<span class="normal">1122</span>
+<span class="normal">1123</span>
+<span class="normal">1124</span>
+<span class="normal">1125</span>
+<span class="normal">1126</span>
+<span class="normal">1127</span>
+<span class="normal">1128</span>
+<span class="normal">1129</span>
+<span class="normal">1130</span>
+<span class="normal">1131</span>
+<span class="normal">1132</span>
+<span class="normal">1133</span>
+<span class="normal">1134</span>
+<span class="normal">1135</span>
+<span class="normal">1136</span>
+<span class="normal">1137</span>
+<span class="normal">1138</span>
+<span class="normal">1139</span>
+<span class="normal">1140</span>
+<span class="normal">1141</span>
+<span class="normal">1142</span>
+<span class="normal">1143</span>
+<span class="normal">1144</span>
+<span class="normal">1145</span>
+<span class="normal">1146</span>
+<span class="normal">1147</span>
+<span class="normal">1148</span>
+<span class="normal">1149</span>
+<span class="normal">1150</span>
+<span class="normal">1151</span>
+<span class="normal">1152</span>
+<span class="normal">1153</span>
+<span class="normal">1154</span>
+<span class="normal">1155</span>
+<span class="normal">1156</span>
+<span class="normal">1157</span>
+<span class="normal">1158</span>
+<span class="normal">1159</span>
+<span class="normal">1160</span>
+<span class="normal">1161</span>
+<span class="normal">1162</span>
+<span class="normal">1163</span>
+<span class="normal">1164</span>
+<span class="normal">1165</span>
+<span class="normal">1166</span>
+<span class="normal">1167</span>
+<span class="normal">1168</span>
+<span class="normal">1169</span>
+<span class="normal">1170</span>
+<span class="normal">1171</span>
+<span class="normal">1172</span>
+<span class="normal">1173</span>
+<span class="normal">1174</span>
+<span class="normal">1175</span>
+<span class="normal">1176</span>
+<span class="normal">1177</span>
+<span class="normal">1178</span>
+<span class="normal">1179</span>
+<span class="normal">1180</span>
+<span class="normal">1181</span>
+<span class="normal">1182</span>
+<span class="normal">1183</span>
+<span class="normal">1184</span>
+<span class="normal">1185</span>
+<span class="normal">1186</span>
+<span class="normal">1187</span>
+<span class="normal">1188</span>
+<span class="normal">1189</span>
+<span class="normal">1190</span>
+<span class="normal">1191</span>
+<span class="normal">1192</span>
+<span class="normal">1193</span>
+<span class="normal">1194</span>
+<span class="normal">1195</span>
+<span class="normal">1196</span>
+<span class="normal">1197</span>
+<span class="normal">1198</span>
+<span class="normal">1199</span>
+<span class="normal">1200</span>
+<span class="normal">1201</span>
+<span class="normal">1202</span>
+<span class="normal">1203</span>
+<span class="normal">1204</span>
+<span class="normal">1205</span>
+<span class="normal">1206</span>
+<span class="normal">1207</span>
+<span class="normal">1208</span>
+<span class="normal">1209</span>
+<span class="normal">1210</span>
+<span class="normal">1211</span>
+<span class="normal">1212</span>
+<span class="normal">1213</span>
+<span class="normal">1214</span>
+<span class="normal">1215</span>
+<span class="normal">1216</span>
+<span class="normal">1217</span>
+<span class="normal">1218</span>
+<span class="normal">1219</span>
+<span class="normal">1220</span>
+<span class="normal">1221</span>
+<span class="normal">1222</span>
+<span class="normal">1223</span>
+<span class="normal">1224</span>
+<span class="normal">1225</span>
+<span class="normal">1226</span>
+<span class="normal">1227</span>
+<span class="normal">1228</span>
+<span class="normal">1229</span>
+<span class="normal">1230</span>
+<span class="normal">1231</span>
+<span class="normal">1232</span>
+<span class="normal">1233</span>
+<span class="normal">1234</span>
+<span class="normal">1235</span>
+<span class="normal">1236</span>
+<span class="normal">1237</span>
+<span class="normal">1238</span>
+<span class="normal">1239</span>
+<span class="normal">1240</span>
+<span class="normal">1241</span>
+<span class="normal">1242</span>
+<span class="normal">1243</span>
+<span class="normal">1244</span>
+<span class="normal">1245</span>
+<span class="normal">1246</span>
+<span class="normal">1247</span>
+<span class="normal">1248</span>
+<span class="normal">1249</span>
+<span class="normal">1250</span>
+<span class="normal">1251</span>
+<span class="normal">1252</span>
+<span class="normal">1253</span>
+<span class="normal">1254</span>
+<span class="normal">1255</span>
+<span class="normal">1256</span>
+<span class="normal">1257</span>
+<span class="normal">1258</span>
+<span class="normal">1259</span>
+<span class="normal">1260</span>
+<span class="normal">1261</span>
+<span class="normal">1262</span>
+<span class="normal">1263</span>
+<span class="normal">1264</span>
+<span class="normal">1265</span>
+<span class="normal">1266</span>
+<span class="normal">1267</span>
+<span class="normal">1268</span>
+<span class="normal">1269</span>
+<span class="normal">1270</span>
+<span class="normal">1271</span>
+<span class="normal">1272</span>
+<span class="normal">1273</span>
+<span class="normal">1274</span>
+<span class="normal">1275</span>
+<span class="normal">1276</span>
+<span class="normal">1277</span>
+<span class="normal">1278</span>
+<span class="normal">1279</span>
+<span class="normal">1280</span>
+<span class="normal">1281</span>
+<span class="normal">1282</span>
+<span class="normal">1283</span>
+<span class="normal">1284</span>
+<span class="normal">1285</span>
+<span class="normal">1286</span>
+<span class="normal">1287</span>
+<span class="normal">1288</span>
+<span class="normal">1289</span>
+<span class="normal">1290</span>
+<span class="normal">1291</span>
+<span class="normal">1292</span>
+<span class="normal">1293</span>
+<span class="normal">1294</span>
+<span class="normal">1295</span>
+<span class="normal">1296</span>
+<span class="normal">1297</span>
+<span class="normal">1298</span>
+<span class="normal">1299</span>
+<span class="normal">1300</span>
+<span class="normal">1301</span>
+<span class="normal">1302</span>
+<span class="normal">1303</span>
+<span class="normal">1304</span>
+<span class="normal">1305</span>
+<span class="normal">1306</span>
+<span class="normal">1307</span>
+<span class="normal">1308</span>
+<span class="normal">1309</span>
+<span class="normal">1310</span>
+<span class="normal">1311</span>
+<span class="normal">1312</span>
+<span class="normal">1313</span>
+<span class="normal">1314</span>
+<span class="normal">1315</span>
+<span class="normal">1316</span>
+<span class="normal">1317</span>
+<span class="normal">1318</span>
+<span class="normal">1319</span>
+<span class="normal">1320</span>
+<span class="normal">1321</span>
+<span class="normal">1322</span>
+<span class="normal">1323</span>
+<span class="normal">1324</span>
+<span class="normal">1325</span>
+<span class="normal">1326</span>
+<span class="normal">1327</span>
+<span class="normal">1328</span>
+<span class="normal">1329</span>
+<span class="normal">1330</span>
+<span class="normal">1331</span>
+<span class="normal">1332</span>
+<span class="normal">1333</span>
+<span class="normal">1334</span>
+<span class="normal">1335</span>
+<span class="normal">1336</span>
+<span class="normal">1337</span>
+<span class="normal">1338</span>
+<span class="normal">1339</span>
+<span class="normal">1340</span>
+<span class="normal">1341</span>
+<span class="normal">1342</span>
+<span class="normal">1343</span>
+<span class="normal">1344</span>
+<span class="normal">1345</span>
+<span class="normal">1346</span>
+<span class="normal">1347</span>
+<span class="normal">1348</span>
+<span class="normal">1349</span>
+<span class="normal">1350</span>
+<span class="normal">1351</span>
+<span class="normal">1352</span>
+<span class="normal">1353</span>
+<span class="normal">1354</span>
+<span class="normal">1355</span>
+<span class="normal">1356</span>
+<span class="normal">1357</span>
+<span class="normal">1358</span>
+<span class="normal">1359</span>
+<span class="normal">1360</span>
+<span class="normal">1361</span>
+<span class="normal">1362</span>
+<span class="normal">1363</span>
+<span class="normal">1364</span>
+<span class="normal">1365</span>
+<span class="normal">1366</span>
+<span class="normal">1367</span>
+<span class="normal">1368</span>
+<span class="normal">1369</span>
+<span class="normal">1370</span>
+<span class="normal">1371</span>
+<span class="normal">1372</span>
+<span class="normal">1373</span>
+<span class="normal">1374</span>
+<span class="normal">1375</span>
+<span class="normal">1376</span>
+<span class="normal">1377</span>
+<span class="normal">1378</span>
+<span class="normal">1379</span>
+<span class="normal">1380</span>
+<span class="normal">1381</span>
+<span class="normal">1382</span>
+<span class="normal">1383</span>
+<span class="normal">1384</span>
+<span class="normal">1385</span>
+<span class="normal">1386</span>
+<span class="normal">1387</span>
+<span class="normal">1388</span>
+<span class="normal">1389</span>
+<span class="normal">1390</span>
+<span class="normal">1391</span>
+<span class="normal">1392</span>
+<span class="normal">1393</span>
+<span class="normal">1394</span>
+<span class="normal">1395</span>
+<span class="normal">1396</span>
+<span class="normal">1397</span>
+<span class="normal">1398</span>
+<span class="normal">1399</span>
+<span class="normal">1400</span>
+<span class="normal">1401</span>
+<span class="normal">1402</span>
+<span class="normal">1403</span>
+<span class="normal">1404</span>
+<span class="normal">1405</span>
+<span class="normal">1406</span>
+<span class="normal">1407</span>
+<span class="normal">1408</span>
+<span class="normal">1409</span>
+<span class="normal">1410</span>
+<span class="normal">1411</span>
+<span class="normal">1412</span>
+<span class="normal">1413</span>
+<span class="normal">1414</span>
+<span class="normal">1415</span>
+<span class="normal">1416</span>
+<span class="normal">1417</span>
+<span class="normal">1418</span>
+<span class="normal">1419</span>
+<span class="normal">1420</span>
+<span class="normal">1421</span>
+<span class="normal">1422</span>
+<span class="normal">1423</span>
+<span class="normal">1424</span>
+<span class="normal">1425</span>
+<span class="normal">1426</span>
+<span class="normal">1427</span>
+<span class="normal">1428</span>
+<span class="normal">1429</span>
+<span class="normal">1430</span>
+<span class="normal">1431</span>
+<span class="normal">1432</span>
+<span class="normal">1433</span>
+<span class="normal">1434</span>
+<span class="normal">1435</span>
+<span class="normal">1436</span>
+<span class="normal">1437</span>
+<span class="normal">1438</span>
+<span class="normal">1439</span>
+<span class="normal">1440</span>
+<span class="normal">1441</span>
+<span class="normal">1442</span>
+<span class="normal">1443</span>
+<span class="normal">1444</span>
+<span class="normal">1445</span>
+<span class="normal">1446</span>
+<span class="normal">1447</span>
+<span class="normal">1448</span>
+<span class="normal">1449</span>
+<span class="normal">1450</span>
+<span class="normal">1451</span>
+<span class="normal">1452</span>
+<span class="normal">1453</span>
+<span class="normal">1454</span>
+<span class="normal">1455</span>
+<span class="normal">1456</span>
+<span class="normal">1457</span>
+<span class="normal">1458</span>
+<span class="normal">1459</span>
+<span class="normal">1460</span>
+<span class="normal">1461</span>
+<span class="normal">1462</span>
+<span class="normal">1463</span>
+<span class="normal">1464</span>
+<span class="normal">1465</span>
+<span class="normal">1466</span>
+<span class="normal">1467</span>
+<span class="normal">1468</span>
+<span class="normal">1469</span>
+<span class="normal">1470</span>
+<span class="normal">1471</span>
+<span class="normal">1472</span>
+<span class="normal">1473</span>
+<span class="normal">1474</span>
+<span class="normal">1475</span>
+<span class="normal">1476</span>
+<span class="normal">1477</span>
+<span class="normal">1478</span>
+<span class="normal">1479</span>
+<span class="normal">1480</span>
+<span class="normal">1481</span>
+<span class="normal">1482</span>
+<span class="normal">1483</span>
+<span class="normal">1484</span>
+<span class="normal">1485</span>
+<span class="normal">1486</span>
+<span class="normal">1487</span>
+<span class="normal">1488</span>
+<span class="normal">1489</span>
+<span class="normal">1490</span>
+<span class="normal">1491</span>
+<span class="normal">1492</span>
+<span class="normal">1493</span>
+<span class="normal">1494</span>
+<span class="normal">1495</span>
+<span class="normal">1496</span>
+<span class="normal">1497</span>
+<span class="normal">1498</span>
+<span class="normal">1499</span>
+<span class="normal">1500</span>
+<span class="normal">1501</span>
+<span class="normal">1502</span>
+<span class="normal">1503</span>
+<span class="normal">1504</span>
+<span class="normal">1505</span>
+<span class="normal">1506</span>
+<span class="normal">1507</span>
+<span class="normal">1508</span>
+<span class="normal">1509</span>
+<span class="normal">1510</span>
+<span class="normal">1511</span>
+<span class="normal">1512</span>
+<span class="normal">1513</span>
+<span class="normal">1514</span>
+<span class="normal">1515</span>
+<span class="normal">1516</span>
+<span class="normal">1517</span>
+<span class="normal">1518</span>
+<span class="normal">1519</span>
+<span class="normal">1520</span>
+<span class="normal">1521</span>
+<span class="normal">1522</span>
+<span class="normal">1523</span>
+<span class="normal">1524</span>
+<span class="normal">1525</span>
+<span class="normal">1526</span>
+<span class="normal">1527</span>
+<span class="normal">1528</span>
+<span class="normal">1529</span>
+<span class="normal">1530</span>
+<span class="normal">1531</span>
+<span class="normal">1532</span>
+<span class="normal">1533</span>
+<span class="normal">1534</span>
+<span class="normal">1535</span>
+<span class="normal">1536</span>
+<span class="normal">1537</span>
+<span class="normal">1538</span>
+<span class="normal">1539</span>
+<span class="normal">1540</span>
+<span class="normal">1541</span>
+<span class="normal">1542</span>
+<span class="normal">1543</span>
+<span class="normal">1544</span>
+<span class="normal">1545</span>
+<span class="normal">1546</span>
+<span class="normal">1547</span>
+<span class="normal">1548</span>
+<span class="normal">1549</span>
+<span class="normal">1550</span>
+<span class="normal">1551</span>
+<span class="normal">1552</span>
+<span class="normal">1553</span>
+<span class="normal">1554</span>
+<span class="normal">1555</span>
+<span class="normal">1556</span>
+<span class="normal">1557</span>
+<span class="normal">1558</span>
+<span class="normal">1559</span>
+<span class="normal">1560</span>
+<span class="normal">1561</span>
+<span class="normal">1562</span>
+<span class="normal">1563</span>
+<span class="normal">1564</span>
+<span class="normal">1565</span>
+<span class="normal">1566</span>
+<span class="normal">1567</span>
+<span class="normal">1568</span>
+<span class="normal">1569</span>
+<span class="normal">1570</span>
+<span class="normal">1571</span>
+<span class="normal">1572</span>
+<span class="normal">1573</span>
+<span class="normal">1574</span>
+<span class="normal">1575</span>
+<span class="normal">1576</span>
+<span class="normal">1577</span>
+<span class="normal">1578</span>
+<span class="normal">1579</span>
+<span class="normal">1580</span>
+<span class="normal">1581</span>
+<span class="normal">1582</span>
+<span class="normal">1583</span>
+<span class="normal">1584</span>
+<span class="normal">1585</span>
+<span class="normal">1586</span>
+<span class="normal">1587</span>
+<span class="normal">1588</span>
+<span class="normal">1589</span>
+<span class="normal">1590</span>
+<span class="normal">1591</span>
+<span class="normal">1592</span>
+<span class="normal">1593</span>
+<span class="normal">1594</span>
+<span class="normal">1595</span>
+<span class="normal">1596</span>
+<span class="normal">1597</span>
+<span class="normal">1598</span>
+<span class="normal">1599</span>
+<span class="normal">1600</span>
+<span class="normal">1601</span>
+<span class="normal">1602</span>
+<span class="normal">1603</span>
+<span class="normal">1604</span>
+<span class="normal">1605</span>
+<span class="normal">1606</span>
+<span class="normal">1607</span>
+<span class="normal">1608</span>
+<span class="normal">1609</span>
+<span class="normal">1610</span>
+<span class="normal">1611</span>
+<span class="normal">1612</span>
+<span class="normal">1613</span>
+<span class="normal">1614</span>
+<span class="normal">1615</span>
+<span class="normal">1616</span>
+<span class="normal">1617</span>
+<span class="normal">1618</span>
+<span class="normal">1619</span>
+<span class="normal">1620</span>
+<span class="normal">1621</span>
+<span class="normal">1622</span>
+<span class="normal">1623</span>
+<span class="normal">1624</span>
+<span class="normal">1625</span>
+<span class="normal">1626</span>
+<span class="normal">1627</span>
+<span class="normal">1628</span>
+<span class="normal">1629</span>
+<span class="normal">1630</span>
+<span class="normal">1631</span>
+<span class="normal">1632</span>
+<span class="normal">1633</span>
+<span class="normal">1634</span>
+<span class="normal">1635</span>
+<span class="normal">1636</span>
+<span class="normal">1637</span>
+<span class="normal">1638</span>
+<span class="normal">1639</span>
+<span class="normal">1640</span>
+<span class="normal">1641</span>
+<span class="normal">1642</span>
+<span class="normal">1643</span>
+<span class="normal">1644</span>
+<span class="normal">1645</span>
+<span class="normal">1646</span>
+<span class="normal">1647</span>
+<span class="normal">1648</span>
+<span class="normal">1649</span>
+<span class="normal">1650</span>
+<span class="normal">1651</span>
+<span class="normal">1652</span>
+<span class="normal">1653</span>
+<span class="normal">1654</span>
+<span class="normal">1655</span>
+<span class="normal">1656</span>
+<span class="normal">1657</span>
+<span class="normal">1658</span>
+<span class="normal">1659</span>
+<span class="normal">1660</span>
+<span class="normal">1661</span>
+<span class="normal">1662</span>
+<span class="normal">1663</span>
+<span class="normal">1664</span>
+<span class="normal">1665</span>
+<span class="normal">1666</span>
+<span class="normal">1667</span>
+<span class="normal">1668</span>
+<span class="normal">1669</span>
+<span class="normal">1670</span>
+<span class="normal">1671</span>
+<span class="normal">1672</span>
+<span class="normal">1673</span>
+<span class="normal">1674</span>
+<span class="normal">1675</span>
+<span class="normal">1676</span>
+<span class="normal">1677</span>
+<span class="normal">1678</span>
+<span class="normal">1679</span>
+<span class="normal">1680</span>
+<span class="normal">1681</span>
+<span class="normal">1682</span>
+<span class="normal">1683</span>
+<span class="normal">1684</span>
+<span class="normal">1685</span>
+<span class="normal">1686</span>
+<span class="normal">1687</span>
+<span class="normal">1688</span>
+<span class="normal">1689</span>
+<span class="normal">1690</span>
+<span class="normal">1691</span>
+<span class="normal">1692</span>
+<span class="normal">1693</span>
+<span class="normal">1694</span>
+<span class="normal">1695</span>
+<span class="normal">1696</span>
+<span class="normal">1697</span>
+<span class="normal">1698</span>
+<span class="normal">1699</span>
+<span class="normal">1700</span>
+<span class="normal">1701</span>
+<span class="normal">1702</span>
+<span class="normal">1703</span>
+<span class="normal">1704</span>
+<span class="normal">1705</span>
+<span class="normal">1706</span>
+<span class="normal">1707</span>
+<span class="normal">1708</span>
+<span class="normal">1709</span>
+<span class="normal">1710</span>
+<span class="normal">1711</span>
+<span class="normal">1712</span>
+<span class="normal">1713</span>
+<span class="normal">1714</span>
+<span class="normal">1715</span>
+<span class="normal">1716</span>
+<span class="normal">1717</span>
+<span class="normal">1718</span>
+<span class="normal">1719</span>
+<span class="normal">1720</span>
+<span class="normal">1721</span>
+<span class="normal">1722</span>
+<span class="normal">1723</span>
+<span class="normal">1724</span>
+<span class="normal">1725</span>
+<span class="normal">1726</span>
+<span class="normal">1727</span>
+<span class="normal">1728</span>
+<span class="normal">1729</span>
+<span class="normal">1730</span>
+<span class="normal">1731</span>
+<span class="normal">1732</span>
+<span class="normal">1733</span>
+<span class="normal">1734</span>
+<span class="normal">1735</span>
+<span class="normal">1736</span>
+<span class="normal">1737</span>
+<span class="normal">1738</span>
+<span class="normal">1739</span>
+<span class="normal">1740</span>
+<span class="normal">1741</span>
+<span class="normal">1742</span>
+<span class="normal">1743</span>
+<span class="normal">1744</span>
+<span class="normal">1745</span>
+<span class="normal">1746</span>
+<span class="normal">1747</span>
+<span class="normal">1748</span>
+<span class="normal">1749</span>
+<span class="normal">1750</span>
+<span class="normal">1751</span>
+<span class="normal">1752</span>
+<span class="normal">1753</span>
+<span class="normal">1754</span>
+<span class="normal">1755</span>
+<span class="normal">1756</span>
+<span class="normal">1757</span>
+<span class="normal">1758</span>
+<span class="normal">1759</span>
+<span class="normal">1760</span>
+<span class="normal">1761</span>
+<span class="normal">1762</span>
+<span class="normal">1763</span>
+<span class="normal">1764</span>
+<span class="normal">1765</span>
+<span class="normal">1766</span>
+<span class="normal">1767</span>
+<span class="normal">1768</span>
+<span class="normal">1769</span>
+<span class="normal">1770</span>
+<span class="normal">1771</span>
+<span class="normal">1772</span>
+<span class="normal">1773</span>
+<span class="normal">1774</span>
+<span class="normal">1775</span>
+<span class="normal">1776</span>
+<span class="normal">1777</span>
+<span class="normal">1778</span>
+<span class="normal">1779</span>
+<span class="normal">1780</span>
+<span class="normal">1781</span>
+<span class="normal">1782</span>
+<span class="normal">1783</span>
+<span class="normal">1784</span>
+<span class="normal">1785</span>
+<span class="normal">1786</span>
+<span class="normal">1787</span>
+<span class="normal">1788</span>
+<span class="normal">1789</span>
+<span class="normal">1790</span>
+<span class="normal">1791</span>
+<span class="normal">1792</span>
+<span class="normal">1793</span>
+<span class="normal">1794</span>
+<span class="normal">1795</span>
+<span class="normal">1796</span>
+<span class="normal">1797</span>
+<span class="normal">1798</span>
+<span class="normal">1799</span>
+<span class="normal">1800</span>
+<span class="normal">1801</span>
+<span class="normal">1802</span>
+<span class="normal">1803</span>
+<span class="normal">1804</span>
+<span class="normal">1805</span>
+<span class="normal">1806</span>
+<span class="normal">1807</span>
+<span class="normal">1808</span>
+<span class="normal">1809</span>
+<span class="normal">1810</span>
+<span class="normal">1811</span>
+<span class="normal">1812</span>
+<span class="normal">1813</span>
+<span class="normal">1814</span>
+<span class="normal">1815</span>
+<span class="normal">1816</span>
+<span class="normal">1817</span>
+<span class="normal">1818</span>
+<span class="normal">1819</span>
+<span class="normal">1820</span>
+<span class="normal">1821</span>
+<span class="normal">1822</span>
+<span class="normal">1823</span>
+<span class="normal">1824</span>
+<span class="normal">1825</span>
+<span class="normal">1826</span>
+<span class="normal">1827</span>
+<span class="normal">1828</span>
+<span class="normal">1829</span>
+<span class="normal">1830</span>
+<span class="normal">1831</span>
+<span class="normal">1832</span>
+<span class="normal">1833</span>
+<span class="normal">1834</span>
+<span class="normal">1835</span>
+<span class="normal">1836</span>
+<span class="normal">1837</span>
+<span class="normal">1838</span>
+<span class="normal">1839</span>
+<span class="normal">1840</span>
+<span class="normal">1841</span>
+<span class="normal">1842</span>
+<span class="normal">1843</span>
+<span class="normal">1844</span>
+<span class="normal">1845</span>
+<span class="normal">1846</span>
+<span class="normal">1847</span>
+<span class="normal">1848</span>
+<span class="normal">1849</span>
+<span class="normal">1850</span>
+<span class="normal">1851</span>
+<span class="normal">1852</span>
+<span class="normal">1853</span>
+<span class="normal">1854</span>
+<span class="normal">1855</span>
+<span class="normal">1856</span>
+<span class="normal">1857</span>
+<span class="normal">1858</span>
+<span class="normal">1859</span>
+<span class="normal">1860</span>
+<span class="normal">1861</span>
+<span class="normal">1862</span>
+<span class="normal">1863</span>
+<span class="normal">1864</span>
+<span class="normal">1865</span>
+<span class="normal">1866</span>
+<span class="normal">1867</span>
+<span class="normal">1868</span>
+<span class="normal">1869</span>
+<span class="normal">1870</span>
+<span class="normal">1871</span>
+<span class="normal">1872</span>
+<span class="normal">1873</span>
+<span class="normal">1874</span>
+<span class="normal">1875</span>
+<span class="normal">1876</span>
+<span class="normal">1877</span>
+<span class="normal">1878</span>
+<span class="normal">1879</span>
+<span class="normal">1880</span>
+<span class="normal">1881</span>
+<span class="normal">1882</span>
+<span class="normal">1883</span>
+<span class="normal">1884</span>
+<span class="normal">1885</span>
+<span class="normal">1886</span>
+<span class="normal">1887</span>
+<span class="normal">1888</span>
+<span class="normal">1889</span>
+<span class="normal">1890</span>
+<span class="normal">1891</span>
+<span class="normal">1892</span>
+<span class="normal">1893</span>
+<span class="normal">1894</span>
+<span class="normal">1895</span>
+<span class="normal">1896</span>
+<span class="normal">1897</span>
+<span class="normal">1898</span>
+<span class="normal">1899</span>
+<span class="normal">1900</span>
+<span class="normal">1901</span>
+<span class="normal">1902</span>
+<span class="normal">1903</span>
+<span class="normal">1904</span>
+<span class="normal">1905</span>
+<span class="normal">1906</span>
+<span class="normal">1907</span>
+<span class="normal">1908</span>
+<span class="normal">1909</span>
+<span class="normal">1910</span>
+<span class="normal">1911</span>
+<span class="normal">1912</span>
+<span class="normal">1913</span>
+<span class="normal">1914</span>
+<span class="normal">1915</span>
+<span class="normal">1916</span>
+<span class="normal">1917</span>
+<span class="normal">1918</span>
+<span class="normal">1919</span>
+<span class="normal">1920</span>
+<span class="normal">1921</span>
+<span class="normal">1922</span>
+<span class="normal">1923</span>
+<span class="normal">1924</span>
+<span class="normal">1925</span>
+<span class="normal">1926</span>
+<span class="normal">1927</span>
+<span class="normal">1928</span>
+<span class="normal">1929</span>
+<span class="normal">1930</span>
+<span class="normal">1931</span>
+<span class="normal">1932</span>
+<span class="normal">1933</span>
+<span class="normal">1934</span>
+<span class="normal">1935</span>
+<span class="normal">1936</span>
+<span class="normal">1937</span>
+<span class="normal">1938</span>
+<span class="normal">1939</span>
+<span class="normal">1940</span>
+<span class="normal">1941</span>
+<span class="normal">1942</span>
+<span class="normal">1943</span>
+<span class="normal">1944</span>
+<span class="normal">1945</span>
+<span class="normal">1946</span>
+<span class="normal">1947</span>
+<span class="normal">1948</span>
+<span class="normal">1949</span>
+<span class="normal">1950</span>
+<span class="normal">1951</span>
+<span class="normal">1952</span>
+<span class="normal">1953</span>
+<span class="normal">1954</span>
+<span class="normal">1955</span>
+<span class="normal">1956</span>
+<span class="normal">1957</span>
+<span class="normal">1958</span>
+<span class="normal">1959</span>
+<span class="normal">1960</span>
+<span class="normal">1961</span>
+<span class="normal">1962</span>
+<span class="normal">1963</span>
+<span class="normal">1964</span>
+<span class="normal">1965</span>
+<span class="normal">1966</span>
+<span class="normal">1967</span>
+<span class="normal">1968</span>
+<span class="normal">1969</span>
+<span class="normal">1970</span>
+<span class="normal">1971</span>
+<span class="normal">1972</span>
+<span class="normal">1973</span>
+<span class="normal">1974</span>
+<span class="normal">1975</span>
+<span class="normal">1976</span>
+<span class="normal">1977</span>
+<span class="normal">1978</span>
+<span class="normal">1979</span>
+<span class="normal">1980</span>
+<span class="normal">1981</span>
+<span class="normal">1982</span>
+<span class="normal">1983</span>
+<span class="normal">1984</span>
+<span class="normal">1985</span>
+<span class="normal">1986</span>
+<span class="normal">1987</span>
+<span class="normal">1988</span>
+<span class="normal">1989</span>
+<span class="normal">1990</span>
+<span class="normal">1991</span>
+<span class="normal">1992</span>
+<span class="normal">1993</span>
+<span class="normal">1994</span>
+<span class="normal">1995</span>
+<span class="normal">1996</span>
+<span class="normal">1997</span>
+<span class="normal">1998</span>
+<span class="normal">1999</span>
+<span class="normal">2000</span>
+<span class="normal">2001</span>
+<span class="normal">2002</span>
+<span class="normal">2003</span>
+<span class="normal">2004</span>
+<span class="normal">2005</span>
+<span class="normal">2006</span>
+<span class="normal">2007</span>
+<span class="normal">2008</span>
+<span class="normal">2009</span>
+<span class="normal">2010</span>
+<span class="normal">2011</span>
+<span class="normal">2012</span>
+<span class="normal">2013</span>
+<span class="normal">2014</span>
+<span class="normal">2015</span>
+<span class="normal">2016</span>
+<span class="normal">2017</span>
+<span class="normal">2018</span>
+<span class="normal">2019</span>
+<span class="normal">2020</span>
+<span class="normal">2021</span>
+<span class="normal">2022</span>
+<span class="normal">2023</span>
+<span class="normal">2024</span>
+<span class="normal">2025</span>
+<span class="normal">2026</span>
+<span class="normal">2027</span>
+<span class="normal">2028</span>
+<span class="normal">2029</span>
+<span class="normal">2030</span>
+<span class="normal">2031</span>
+<span class="normal">2032</span>
+<span class="normal">2033</span>
+<span class="normal">2034</span>
+<span class="normal">2035</span>
+<span class="normal">2036</span>
+<span class="normal">2037</span>
+<span class="normal">2038</span>
+<span class="normal">2039</span>
+<span class="normal">2040</span>
+<span class="normal">2041</span>
+<span class="normal">2042</span>
+<span class="normal">2043</span>
+<span class="normal">2044</span>
+<span class="normal">2045</span>
+<span class="normal">2046</span>
+<span class="normal">2047</span>
+<span class="normal">2048</span>
+<span class="normal">2049</span>
+<span class="normal">2050</span>
+<span class="normal">2051</span>
+<span class="normal">2052</span>
+<span class="normal">2053</span>
+<span class="normal">2054</span>
+<span class="normal">2055</span>
+<span class="normal">2056</span>
+<span class="normal">2057</span>
+<span class="normal">2058</span>
+<span class="normal">2059</span>
+<span class="normal">2060</span>
+<span class="normal">2061</span>
+<span class="normal">2062</span>
+<span class="normal">2063</span>
+<span class="normal">2064</span>
+<span class="normal">2065</span>
+<span class="normal">2066</span>
+<span class="normal">2067</span>
+<span class="normal">2068</span>
+<span class="normal">2069</span>
+<span class="normal">2070</span>
+<span class="normal">2071</span>
+<span class="normal">2072</span>
+<span class="normal">2073</span>
+<span class="normal">2074</span>
+<span class="normal">2075</span>
+<span class="normal">2076</span>
+<span class="normal">2077</span>
+<span class="normal">2078</span>
+<span class="normal">2079</span>
+<span class="normal">2080</span>
+<span class="normal">2081</span>
+<span class="normal">2082</span>
+<span class="normal">2083</span>
+<span class="normal">2084</span>
+<span class="normal">2085</span>
+<span class="normal">2086</span>
+<span class="normal">2087</span>
+<span class="normal">2088</span>
+<span class="normal">2089</span>
+<span class="normal">2090</span>
+<span class="normal">2091</span>
+<span class="normal">2092</span>
+<span class="normal">2093</span>
+<span class="normal">2094</span>
+<span class="normal">2095</span>
+<span class="normal">2096</span>
+<span class="normal">2097</span>
+<span class="normal">2098</span>
+<span class="normal">2099</span>
+<span class="normal">2100</span>
+<span class="normal">2101</span>
+<span class="normal">2102</span>
+<span class="normal">2103</span>
+<span class="normal">2104</span>
+<span class="normal">2105</span>
+<span class="normal">2106</span>
+<span class="normal">2107</span>
+<span class="normal">2108</span>
+<span class="normal">2109</span>
+<span class="normal">2110</span>
+<span class="normal">2111</span>
+<span class="normal">2112</span>
+<span class="normal">2113</span>
+<span class="normal">2114</span>
+<span class="normal">2115</span>
+<span class="normal">2116</span>
+<span class="normal">2117</span>
+<span class="normal">2118</span>
+<span class="normal">2119</span>
+<span class="normal">2120</span>
+<span class="normal">2121</span>
+<span class="normal">2122</span>
+<span class="normal">2123</span>
+<span class="normal">2124</span>
+<span class="normal">2125</span>
+<span class="normal">2126</span>
+<span class="normal">2127</span>
+<span class="normal">2128</span>
+<span class="normal">2129</span>
+<span class="normal">2130</span>
+<span class="normal">2131</span>
+<span class="normal">2132</span>
+<span class="normal">2133</span>
+<span class="normal">2134</span>
+<span class="normal">2135</span>
+<span class="normal">2136</span>
+<span class="normal">2137</span>
+<span class="normal">2138</span>
+<span class="normal">2139</span>
+<span class="normal">2140</span>
+<span class="normal">2141</span>
+<span class="normal">2142</span>
+<span class="normal">2143</span>
+<span class="normal">2144</span>
+<span class="normal">2145</span>
+<span class="normal">2146</span>
+<span class="normal">2147</span>
+<span class="normal">2148</span>
+<span class="normal">2149</span>
+<span class="normal">2150</span>
+<span class="normal">2151</span>
+<span class="normal">2152</span>
+<span class="normal">2153</span>
+<span class="normal">2154</span>
+<span class="normal">2155</span>
+<span class="normal">2156</span>
+<span class="normal">2157</span>
+<span class="normal">2158</span>
+<span class="normal">2159</span>
+<span class="normal">2160</span>
+<span class="normal">2161</span>
+<span class="normal">2162</span>
+<span class="normal">2163</span>
+<span class="normal">2164</span>
+<span class="normal">2165</span>
+<span class="normal">2166</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* mate-rr.c</span>
+<a id="line-2" name="line-2"></a><span class="cm"> *</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright 2007, 2008, Red Hat, Inc.</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This file is part of the Mate Library.</span>
+<a id="line-6" name="line-6"></a><span class="cm"> *</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * The Mate Library is free software; you can redistribute it and/or</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * modify it under the terms of the GNU Library General Public License as</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * published by the Free Software Foundation; either version 2 of the</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * License, or (at your option) any later version.</span>
+<a id="line-11" name="line-11"></a><span class="cm"> *</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * The Mate Library is distributed in the hope that it will be useful,</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * Library General Public License for more details.</span>
+<a id="line-16" name="line-16"></a><span class="cm"> *</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * You should have received a copy of the GNU Library General Public</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * License along with the Mate Library; see the file COPYING.LIB. If not,</span>
+<a id="line-19" name="line-19"></a><span class="cm"> * write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-21" name="line-21"></a><span class="cm"> *</span>
+<a id="line-22" name="line-22"></a><span class="cm"> * Author: Soren Sandmann &lt;[email protected]&gt;</span>
+<a id="line-23" name="line-23"></a><span class="cm"> */</span>
+<a id="line-24" name="line-24"></a>
+<a id="line-25" name="line-25"></a><span class="cp">#define MATE_DESKTOP_USE_UNSTABLE_API</span>
+<a id="line-26" name="line-26"></a>
+<a id="line-27" name="line-27"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;config.h&gt;</span><span class="error2">&lt;--- Include file: <config.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n-lib.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n-lib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;X11/Xlib.h&gt;</span><span class="error2">&lt;--- Include file: <X11/Xlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="cp">#ifdef HAVE_RANDR</span>
+<a id="line-33" name="line-33"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;X11/extensions/Xrandr.h&gt;</span><span class="error2">&lt;--- Include file: <X11/extensions/Xrandr.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-34" name="line-34"></a><span class="cp">#endif</span>
+<a id="line-35" name="line-35"></a>
+<a id="line-36" name="line-36"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-37" name="line-37"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdkx.h&gt;</span><span class="error2">&lt;--- Include file: <gdk/gdkx.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-38" name="line-38"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;X11/Xatom.h&gt;</span><span class="error2">&lt;--- Include file: <X11/Xatom.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="cp">#undef MATE_DISABLE_DEPRECATED</span>
+<a id="line-41" name="line-41"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;mate-rr.h&quot;</span>
+<a id="line-42" name="line-42"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;mate-rr-config.h&quot;</span>
+<a id="line-43" name="line-43"></a>
+<a id="line-44" name="line-44"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;private.h&quot;</span>
+<a id="line-45" name="line-45"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;mate-rr-private.h&quot;</span>
+<a id="line-46" name="line-46"></a>
+<a id="line-47" name="line-47"></a><span class="cp">#define DISPLAY(o) ((o)-&gt;info-&gt;screen-&gt;priv-&gt;xdisplay)</span>
+<a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="cp">#ifndef HAVE_RANDR</span>
+<a id="line-50" name="line-50"></a><span class="cm">/* This is to avoid a ton of ifdefs wherever we use a type from libXrandr */</span>
+<a id="line-51" name="line-51"></a><span class="k">typedef</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">RROutput</span><span class="p">;</span>
+<a id="line-52" name="line-52"></a><span class="k">typedef</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">RRCrtc</span><span class="p">;</span>
+<a id="line-53" name="line-53"></a><span class="k">typedef</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">RRMode</span><span class="p">;</span>
+<a id="line-54" name="line-54"></a><span class="k">typedef</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">Rotation</span><span class="p">;</span>
+<a id="line-55" name="line-55"></a><span class="cp">#define RR_Rotate_0 1</span>
+<a id="line-56" name="line-56"></a><span class="cp">#define RR_Rotate_90 2</span>
+<a id="line-57" name="line-57"></a><span class="cp">#define RR_Rotate_180 4</span>
+<a id="line-58" name="line-58"></a><span class="cp">#define RR_Rotate_270 8</span>
+<a id="line-59" name="line-59"></a><span class="cp">#define RR_Reflect_X 16</span>
+<a id="line-60" name="line-60"></a><span class="cp">#define RR_Reflect_Y 32</span>
+<a id="line-61" name="line-61"></a><span class="cp">#endif</span>
+<a id="line-62" name="line-62"></a>
+<a id="line-63" name="line-63"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span>
+<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">SCREEN_PROP_0</span><span class="p">,</span>
+<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">SCREEN_PROP_GDK_SCREEN</span><span class="p">,</span>
+<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">SCREEN_PROP_LAST</span><span class="p">,</span>
+<a id="line-67" name="line-67"></a><span class="p">};</span>
+<a id="line-68" name="line-68"></a>
+<a id="line-69" name="line-69"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span>
+<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">SCREEN_CHANGED</span><span class="p">,</span>
+<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">SCREEN_SIGNAL_LAST</span><span class="p">,</span>
+<a id="line-72" name="line-72"></a><span class="p">};</span>
+<a id="line-73" name="line-73"></a>
+<a id="line-74" name="line-74"></a><span class="n">gint</span><span class="w"> </span><span class="n">screen_signals</span><span class="p">[</span><span class="n">SCREEN_SIGNAL_LAST</span><span class="p">];</span>
+<a id="line-75" name="line-75"></a>
+<a id="line-76" name="line-76"></a><span class="k">struct</span><span class="w"> </span><span class="nc">MateRROutput</span>
+<a id="line-77" name="line-77"></a><span class="p">{</span>
+<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">ScreenInfo</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">info</span><span class="p">;</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">RROutput</span><span class="w"> </span><span class="n">id</span><span class="p">;</span>
+<a id="line-80" name="line-80"></a>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">name</span><span class="p">;</span>
+<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">current_crtc</span><span class="p">;</span>
+<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">connected</span><span class="p">;</span>
+<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">width_mm</span><span class="p">;</span>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">height_mm</span><span class="p">;</span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">**</span><span class="w"> </span><span class="n">possible_crtcs</span><span class="p">;</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">**</span><span class="w"> </span><span class="n">clones</span><span class="p">;</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">**</span><span class="w"> </span><span class="n">modes</span><span class="p">;</span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n_preferred</span><span class="p">;</span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">guint8</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">edid_data</span><span class="p">;</span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">edid_size</span><span class="p">;</span>
+<a id="line-92" name="line-92"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">connector_type</span><span class="p">;</span>
+<a id="line-93" name="line-93"></a><span class="p">};</span>
+<a id="line-94" name="line-94"></a>
+<a id="line-95" name="line-95"></a><span class="k">struct</span><span class="w"> </span><span class="nc">MateRROutputWrap</span>
+<a id="line-96" name="line-96"></a><span class="p">{</span>
+<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">RROutput</span><span class="w"> </span><span class="n">id</span><span class="p">;</span>
+<a id="line-98" name="line-98"></a><span class="p">};</span>
+<a id="line-99" name="line-99"></a>
+<a id="line-100" name="line-100"></a><span class="k">struct</span><span class="w"> </span><span class="nc">MateRRCrtc</span>
+<a id="line-101" name="line-101"></a><span class="p">{</span>
+<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">ScreenInfo</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">info</span><span class="p">;</span>
+<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">RRCrtc</span><span class="w"> </span><span class="n">id</span><span class="p">;</span>
+<a id="line-104" name="line-104"></a>
+<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">current_mode</span><span class="p">;</span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">**</span><span class="w"> </span><span class="n">current_outputs</span><span class="p">;</span>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">**</span><span class="w"> </span><span class="n">possible_outputs</span><span class="p">;</span>
+<a id="line-108" name="line-108"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x</span><span class="p">;</span>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">y</span><span class="p">;</span>
+<a id="line-110" name="line-110"></a>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">MateRRRotation</span><span class="w"> </span><span class="n">current_rotation</span><span class="p">;</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">MateRRRotation</span><span class="w"> </span><span class="n">rotations</span><span class="p">;</span>
+<a id="line-113" name="line-113"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">gamma_size</span><span class="p">;</span>
+<a id="line-114" name="line-114"></a><span class="p">};</span>
+<a id="line-115" name="line-115"></a>
+<a id="line-116" name="line-116"></a><span class="k">struct</span><span class="w"> </span><span class="nc">MateRRMode</span>
+<a id="line-117" name="line-117"></a><span class="p">{</span>
+<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">ScreenInfo</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">info</span><span class="p">;</span>
+<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">RRMode</span><span class="w"> </span><span class="n">id</span><span class="p">;</span>
+<a id="line-120" name="line-120"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">name</span><span class="p">;</span>
+<a id="line-121" name="line-121"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">;</span>
+<a id="line-122" name="line-122"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">height</span><span class="p">;</span>
+<a id="line-123" name="line-123"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">freq</span><span class="p">;</span><span class="w"> </span><span class="cm">/* in mHz */</span>
+<a id="line-124" name="line-124"></a><span class="p">};</span>
+<a id="line-125" name="line-125"></a>
+<a id="line-126" name="line-126"></a><span class="cm">/* MateRRCrtc */</span>
+<a id="line-127" name="line-127"></a><span class="k">static</span><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nf">crtc_new</span><span class="w"> </span><span class="p">(</span><span class="n">ScreenInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">,</span>
+<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">RRCrtc</span><span class="w"> </span><span class="n">id</span><span class="p">);</span>
+<a id="line-129" name="line-129"></a><span class="k">static</span><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nf">crtc_copy</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">from</span><span class="p">);</span>
+<a id="line-130" name="line-130"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">crtc_free</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">);</span>
+<a id="line-131" name="line-131"></a>
+<a id="line-132" name="line-132"></a><span class="cp">#ifdef HAVE_RANDR</span>
+<a id="line-133" name="line-133"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">crtc_initialize</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">,</span>
+<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">XRRScreenResources</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">,</span>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">);</span>
+<a id="line-136" name="line-136"></a><span class="cp">#endif</span>
+<a id="line-137" name="line-137"></a>
+<a id="line-138" name="line-138"></a><span class="cm">/* MateRROutput */</span>
+<a id="line-139" name="line-139"></a><span class="k">static</span><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="nf">output_new</span><span class="w"> </span><span class="p">(</span><span class="n">ScreenInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">,</span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">RROutput</span><span class="w"> </span><span class="n">id</span><span class="p">);</span>
+<a id="line-141" name="line-141"></a>
+<a id="line-142" name="line-142"></a><span class="cp">#ifdef HAVE_RANDR</span>
+<a id="line-143" name="line-143"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">output_initialize</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">,</span>
+<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">XRRScreenResources</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">,</span>
+<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">);</span>
+<a id="line-146" name="line-146"></a><span class="cp">#endif</span>
+<a id="line-147" name="line-147"></a>
+<a id="line-148" name="line-148"></a><span class="k">static</span><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="nf">output_copy</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">from</span><span class="p">);</span>
+<a id="line-149" name="line-149"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">output_free</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">);</span>
+<a id="line-150" name="line-150"></a>
+<a id="line-151" name="line-151"></a><span class="cm">/* MateRRMode */</span>
+<a id="line-152" name="line-152"></a><span class="k">static</span><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nf">mode_new</span><span class="w"> </span><span class="p">(</span><span class="n">ScreenInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">,</span>
+<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">RRMode</span><span class="w"> </span><span class="n">id</span><span class="p">);</span>
+<a id="line-154" name="line-154"></a>
+<a id="line-155" name="line-155"></a><span class="cp">#ifdef HAVE_RANDR</span>
+<a id="line-156" name="line-156"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">mode_initialize</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="p">,</span>
+<a id="line-157" name="line-157"></a><span class="w"> </span><span class="n">XRRModeInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">);</span>
+<a id="line-158" name="line-158"></a><span class="cp">#endif</span>
+<a id="line-159" name="line-159"></a>
+<a id="line-160" name="line-160"></a><span class="k">static</span><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nf">mode_copy</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">from</span><span class="p">);</span>
+<a id="line-161" name="line-161"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">mode_free</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="p">);</span>
+<a id="line-162" name="line-162"></a>
+<a id="line-163" name="line-163"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">mate_rr_screen_finalize</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="o">*</span><span class="p">);</span>
+<a id="line-164" name="line-164"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">mate_rr_screen_set_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="o">*</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="o">*</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="o">*</span><span class="p">);</span>
+<a id="line-165" name="line-165"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">mate_rr_screen_get_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="o">*</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="p">,</span><span class="w"> </span><span class="n">GValue</span><span class="o">*</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="o">*</span><span class="p">);</span>
+<a id="line-166" name="line-166"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_rr_screen_initable_init</span><span class="w"> </span><span class="p">(</span><span class="n">GInitable</span><span class="o">*</span><span class="p">,</span><span class="w"> </span><span class="n">GCancellable</span><span class="o">*</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="o">**</span><span class="p">);</span>
+<a id="line-167" name="line-167"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">mate_rr_screen_initable_iface_init</span><span class="w"> </span><span class="p">(</span><span class="n">GInitableIface</span><span class="w"> </span><span class="o">*</span><span class="n">iface</span><span class="p">);</span>
+<a id="line-168" name="line-168"></a><span class="hll"><span class="n">G_DEFINE_TYPE_WITH_CODE</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="p">,</span><span class="w"> </span><span class="n">mate_rr_screen</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">,</span><span class="error2">&lt;--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_CODE is a macro then please configure it.</span>
+</span><a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">G_ADD_PRIVATE</span><span class="p">(</span><span class="n">MateRRScreen</span><span class="p">)</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">G_IMPLEMENT_INTERFACE</span><span class="w"> </span><span class="p">(</span><span class="n">G_TYPE_INITABLE</span><span class="p">,</span><span class="w"> </span><span class="n">mate_rr_screen_initable_iface_init</span><span class="p">))</span>
+<a id="line-171" name="line-171"></a>
+<a id="line-172" name="line-172"></a><span class="n">G_DEFINE_BOXED_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="p">,</span><span class="w"> </span><span class="n">mate_rr_crtc</span><span class="p">,</span><span class="w"> </span><span class="n">crtc_copy</span><span class="p">,</span><span class="w"> </span><span class="n">crtc_free</span><span class="p">)</span>
+<a id="line-173" name="line-173"></a><span class="n">G_DEFINE_BOXED_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="p">,</span><span class="w"> </span><span class="n">mate_rr_output</span><span class="p">,</span><span class="w"> </span><span class="n">output_copy</span><span class="p">,</span><span class="w"> </span><span class="n">output_free</span><span class="p">)</span>
+<a id="line-174" name="line-174"></a><span class="n">G_DEFINE_BOXED_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRMode</span><span class="p">,</span><span class="w"> </span><span class="n">mate_rr_mode</span><span class="p">,</span><span class="w"> </span><span class="n">mode_copy</span><span class="p">,</span><span class="w"> </span><span class="n">mode_free</span><span class="p">)</span>
+<a id="line-175" name="line-175"></a>
+<a id="line-176" name="line-176"></a><span class="cm">/* Errors */</span>
+<a id="line-177" name="line-177"></a>
+<a id="line-178" name="line-178"></a><span class="cm">/**</span>
+<a id="line-179" name="line-179"></a><span class="cm"> * mate_rr_error_quark:</span>
+<a id="line-180" name="line-180"></a><span class="cm"> *</span>
+<a id="line-181" name="line-181"></a><span class="cm"> * Returns the #GQuark that will be used for #GError values returned by the</span>
+<a id="line-182" name="line-182"></a><span class="cm"> * MateRR API.</span>
+<a id="line-183" name="line-183"></a><span class="cm"> *</span>
+<a id="line-184" name="line-184"></a><span class="cm"> * Return value: a #GQuark used to identify errors coming from the MateRR API.</span>
+<a id="line-185" name="line-185"></a><span class="cm"> */</span>
+<a id="line-186" name="line-186"></a><span class="n">GQuark</span>
+<a id="line-187" name="line-187"></a><span class="n">mate_rr_error_quark</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-188" name="line-188"></a><span class="p">{</span>
+<a id="line-189" name="line-189"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_quark_from_static_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;mate-rr-error-quark&quot;</span><span class="p">);</span>
+<a id="line-190" name="line-190"></a><span class="p">}</span>
+<a id="line-191" name="line-191"></a>
+<a id="line-192" name="line-192"></a><span class="cm">/* Screen */</span>
+<a id="line-193" name="line-193"></a><span class="k">static</span><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span>
+<a id="line-194" name="line-194"></a><span class="n">mate_rr_output_by_id</span><span class="w"> </span><span class="p">(</span><span class="n">ScreenInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">RROutput</span><span class="w"> </span><span class="n">id</span><span class="p">)</span>
+<a id="line-195" name="line-195"></a><span class="p">{</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">**</span><span class="n">output</span><span class="p">;</span>
+<a id="line-197" name="line-197"></a>
+<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-199" name="line-199"></a>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">output</span><span class="p">)</span>
+<a id="line-201" name="line-201"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-202" name="line-202"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="o">*</span><span class="n">output</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">id</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">id</span><span class="p">)</span>
+<a id="line-203" name="line-203"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">;</span>
+<a id="line-204" name="line-204"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-205" name="line-205"></a>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-207" name="line-207"></a><span class="p">}</span>
+<a id="line-208" name="line-208"></a>
+<a id="line-209" name="line-209"></a><span class="k">static</span><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span>
+<a id="line-210" name="line-210"></a><span class="n">crtc_by_id</span><span class="w"> </span><span class="p">(</span><span class="n">ScreenInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">RRCrtc</span><span class="w"> </span><span class="n">id</span><span class="p">)</span>
+<a id="line-211" name="line-211"></a><span class="p">{</span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">**</span><span class="n">crtc</span><span class="p">;</span>
+<a id="line-213" name="line-213"></a>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">info</span><span class="p">)</span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-216" name="line-216"></a>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">crtcs</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">crtc</span><span class="p">)</span>
+<a id="line-218" name="line-218"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-219" name="line-219"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="o">*</span><span class="n">crtc</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">id</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">id</span><span class="p">)</span>
+<a id="line-220" name="line-220"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">;</span>
+<a id="line-221" name="line-221"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-222" name="line-222"></a>
+<a id="line-223" name="line-223"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-224" name="line-224"></a><span class="p">}</span>
+<a id="line-225" name="line-225"></a>
+<a id="line-226" name="line-226"></a><span class="k">static</span><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span>
+<a id="line-227" name="line-227"></a><span class="n">mode_by_id</span><span class="w"> </span><span class="p">(</span><span class="n">ScreenInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">RRMode</span><span class="w"> </span><span class="n">id</span><span class="p">)</span>
+<a id="line-228" name="line-228"></a><span class="p">{</span>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">**</span><span class="n">mode</span><span class="p">;</span>
+<a id="line-230" name="line-230"></a>
+<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-232" name="line-232"></a>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">modes</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">mode</span><span class="p">)</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="o">*</span><span class="n">mode</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">id</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">id</span><span class="p">)</span>
+<a id="line-236" name="line-236"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="p">;</span>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-238" name="line-238"></a>
+<a id="line-239" name="line-239"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-240" name="line-240"></a><span class="p">}</span>
+<a id="line-241" name="line-241"></a>
+<a id="line-242" name="line-242"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-243" name="line-243"></a><span class="n">screen_info_free</span><span class="w"> </span><span class="p">(</span><span class="n">ScreenInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">)</span>
+<a id="line-244" name="line-244"></a><span class="p">{</span>
+<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">**</span><span class="n">output</span><span class="p">;</span>
+<a id="line-246" name="line-246"></a><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">**</span><span class="n">crtc</span><span class="p">;</span>
+<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">**</span><span class="n">mode</span><span class="p">;</span>
+<a id="line-248" name="line-248"></a>
+<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-250" name="line-250"></a>
+<a id="line-251" name="line-251"></a><span class="cp">#ifdef HAVE_RANDR</span>
+<a id="line-252" name="line-252"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">resources</span><span class="p">)</span>
+<a id="line-253" name="line-253"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">XRRFreeScreenResources</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">resources</span><span class="p">);</span>
+<a id="line-255" name="line-255"></a>
+<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">resources</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-257" name="line-257"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-258" name="line-258"></a><span class="cp">#endif</span>
+<a id="line-259" name="line-259"></a>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">)</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-262" name="line-262"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">output</span><span class="p">)</span>
+<a id="line-263" name="line-263"></a><span class="w"> </span><span class="n">output_free</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">output</span><span class="p">);</span>
+<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">);</span>
+<a id="line-265" name="line-265"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-266" name="line-266"></a>
+<a id="line-267" name="line-267"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">crtcs</span><span class="p">)</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-269" name="line-269"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">crtcs</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">crtc</span><span class="p">)</span>
+<a id="line-270" name="line-270"></a><span class="w"> </span><span class="n">crtc_free</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">crtc</span><span class="p">);</span>
+<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">crtcs</span><span class="p">);</span>
+<a id="line-272" name="line-272"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-273" name="line-273"></a>
+<a id="line-274" name="line-274"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">modes</span><span class="p">)</span>
+<a id="line-275" name="line-275"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-276" name="line-276"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">modes</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">mode</span><span class="p">)</span>
+<a id="line-277" name="line-277"></a><span class="w"> </span><span class="n">mode_free</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">mode</span><span class="p">);</span>
+<a id="line-278" name="line-278"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">modes</span><span class="p">);</span>
+<a id="line-279" name="line-279"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-280" name="line-280"></a>
+<a id="line-281" name="line-281"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">clone_modes</span><span class="p">)</span>
+<a id="line-282" name="line-282"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="cm">/* The modes themselves were freed above */</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">clone_modes</span><span class="p">);</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-286" name="line-286"></a>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">);</span>
+<a id="line-288" name="line-288"></a><span class="p">}</span>
+<a id="line-289" name="line-289"></a>
+<a id="line-290" name="line-290"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-291" name="line-291"></a><span class="n">has_similar_mode</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">,</span><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="p">)</span>
+<a id="line-292" name="line-292"></a><span class="p">{</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">**</span><span class="n">modes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_output_list_modes</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="p">);</span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_mode_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="p">);</span>
+<a id="line-296" name="line-296"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_mode_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="p">);</span>
+<a id="line-297" name="line-297"></a>
+<a id="line-298" name="line-298"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">modes</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">m</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">modes</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-301" name="line-301"></a>
+<a id="line-302" name="line-302"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mate_rr_mode_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">m</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-303" name="line-303"></a><span class="w"> </span><span class="n">mate_rr_mode_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">m</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">height</span><span class="p">)</span>
+<a id="line-304" name="line-304"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-305" name="line-305"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-306" name="line-306"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-307" name="line-307"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-308" name="line-308"></a>
+<a id="line-309" name="line-309"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-310" name="line-310"></a><span class="p">}</span>
+<a id="line-311" name="line-311"></a>
+<a id="line-312" name="line-312"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-313" name="line-313"></a><span class="n">gather_clone_modes</span><span class="w"> </span><span class="p">(</span><span class="n">ScreenInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">)</span>
+<a id="line-314" name="line-314"></a><span class="p">{</span>
+<a id="line-315" name="line-315"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">GPtrArray</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-317" name="line-317"></a>
+<a id="line-318" name="line-318"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-319" name="line-319"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">j</span><span class="p">;</span>
+<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output1</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">output2</span><span class="p">;</span>
+<a id="line-322" name="line-322"></a>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">output1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-324" name="line-324"></a>
+<a id="line-325" name="line-325"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">output1</span><span class="o">-&gt;</span><span class="n">connected</span><span class="p">)</span>
+<a id="line-326" name="line-326"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span>
+<a id="line-327" name="line-327"></a>
+<a id="line-328" name="line-328"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">output1</span><span class="o">-&gt;</span><span class="n">modes</span><span class="p">[</span><span class="n">j</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">j</span><span class="p">)</span>
+<a id="line-329" name="line-329"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-330" name="line-330"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">output1</span><span class="o">-&gt;</span><span class="n">modes</span><span class="p">[</span><span class="n">j</span><span class="p">];</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">valid</span><span class="p">;</span>
+<a id="line-332" name="line-332"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">k</span><span class="p">;</span>
+<a id="line-333" name="line-333"></a>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="n">valid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">k</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">k</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">k</span><span class="p">)</span>
+<a id="line-336" name="line-336"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">output2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">k</span><span class="p">];</span>
+<a id="line-338" name="line-338"></a>
+<a id="line-339" name="line-339"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">output2</span><span class="o">-&gt;</span><span class="n">connected</span><span class="p">)</span>
+<a id="line-340" name="line-340"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span>
+<a id="line-341" name="line-341"></a>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">has_similar_mode</span><span class="w"> </span><span class="p">(</span><span class="n">output2</span><span class="p">,</span><span class="w"> </span><span class="n">mode</span><span class="p">))</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">valid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-348" name="line-348"></a>
+<a id="line-349" name="line-349"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">valid</span><span class="p">)</span>
+<a id="line-350" name="line-350"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="n">mode</span><span class="p">);</span>
+<a id="line-351" name="line-351"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-352" name="line-352"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-353" name="line-353"></a>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-355" name="line-355"></a>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">clone_modes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">**</span><span class="p">)</span><span class="n">g_ptr_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-357" name="line-357"></a><span class="p">}</span>
+<a id="line-358" name="line-358"></a>
+<a id="line-359" name="line-359"></a><span class="cp">#ifdef HAVE_RANDR</span>
+<a id="line-360" name="line-360"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-361" name="line-361"></a><span class="n">fill_screen_info_from_resources</span><span class="w"> </span><span class="p">(</span><span class="n">ScreenInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">,</span>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="n">XRRScreenResources</span><span class="w"> </span><span class="o">*</span><span class="n">resources</span><span class="p">,</span>
+<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-364" name="line-364"></a><span class="p">{</span>
+<a id="line-365" name="line-365"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">GPtrArray</span><span class="w"> </span><span class="o">*</span><span class="n">a</span><span class="p">;</span>
+<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">**</span><span class="n">crtc</span><span class="p">;</span>
+<a id="line-368" name="line-368"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">**</span><span class="n">output</span><span class="p">;</span>
+<a id="line-369" name="line-369"></a>
+<a id="line-370" name="line-370"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">resources</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">resources</span><span class="p">;</span>
+<a id="line-371" name="line-371"></a>
+<a id="line-372" name="line-372"></a><span class="w"> </span><span class="cm">/* We create all the structures before initializing them, so</span>
+<a id="line-373" name="line-373"></a><span class="cm"> * that they can refer to each other.</span>
+<a id="line-374" name="line-374"></a><span class="cm"> */</span>
+<a id="line-375" name="line-375"></a><span class="w"> </span><span class="n">a</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-376" name="line-376"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">resources</span><span class="o">-&gt;</span><span class="n">ncrtc</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-377" name="line-377"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="n">crtc_new</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">resources</span><span class="o">-&gt;</span><span class="n">crtcs</span><span class="p">[</span><span class="n">i</span><span class="p">]));</span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">crtcs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">**</span><span class="p">)</span><span class="n">g_ptr_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-382" name="line-382"></a>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="n">a</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">resources</span><span class="o">-&gt;</span><span class="n">noutput</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="n">output_new</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">resources</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]));</span>
+<a id="line-387" name="line-387"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">**</span><span class="p">)</span><span class="n">g_ptr_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-390" name="line-390"></a>
+<a id="line-391" name="line-391"></a><span class="w"> </span><span class="n">a</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-392" name="line-392"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">resources</span><span class="o">-&gt;</span><span class="n">nmode</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-393" name="line-393"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mode_new</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">resources</span><span class="o">-&gt;</span><span class="n">modes</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">id</span><span class="p">);</span>
+<a id="line-395" name="line-395"></a>
+<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="n">mode</span><span class="p">);</span>
+<a id="line-397" name="line-397"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-398" name="line-398"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-399" name="line-399"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">modes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">**</span><span class="p">)</span><span class="n">g_ptr_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-400" name="line-400"></a>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="cm">/* Initialize */</span>
+<a id="line-402" name="line-402"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">crtcs</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">crtc</span><span class="p">)</span>
+<a id="line-403" name="line-403"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">crtc_initialize</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">crtc</span><span class="p">,</span><span class="w"> </span><span class="n">resources</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">))</span>
+<a id="line-405" name="line-405"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-406" name="line-406"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-407" name="line-407"></a>
+<a id="line-408" name="line-408"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">output</span><span class="p">)</span>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">output_initialize</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">output</span><span class="p">,</span><span class="w"> </span><span class="n">resources</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">))</span>
+<a id="line-411" name="line-411"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-413" name="line-413"></a>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">resources</span><span class="o">-&gt;</span><span class="n">nmode</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-415" name="line-415"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mode_by_id</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">resources</span><span class="o">-&gt;</span><span class="n">modes</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">id</span><span class="p">);</span>
+<a id="line-417" name="line-417"></a>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">mode_initialize</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="p">(</span><span class="n">resources</span><span class="o">-&gt;</span><span class="n">modes</span><span class="p">[</span><span class="n">i</span><span class="p">]));</span>
+<a id="line-419" name="line-419"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-420" name="line-420"></a>
+<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">gather_clone_modes</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">);</span>
+<a id="line-422" name="line-422"></a>
+<a id="line-423" name="line-423"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-424" name="line-424"></a><span class="p">}</span>
+<a id="line-425" name="line-425"></a><span class="cp">#endif </span><span class="cm">/* HAVE_RANDR */</span>
+<a id="line-426" name="line-426"></a>
+<a id="line-427" name="line-427"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-428" name="line-428"></a><span class="n">fill_out_screen_info</span><span class="w"> </span><span class="p">(</span><span class="n">Display</span><span class="w"> </span><span class="o">*</span><span class="n">xdisplay</span><span class="p">,</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">Window</span><span class="w"> </span><span class="n">xroot</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">ScreenInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">,</span>
+<a id="line-431" name="line-431"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">needs_reprobe</span><span class="p">,</span>
+<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-433" name="line-433"></a><span class="p">{</span>
+<a id="line-434" name="line-434"></a><span class="cp">#ifdef HAVE_RANDR</span>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">XRRScreenResources</span><span class="w"> </span><span class="o">*</span><span class="n">resources</span><span class="p">;</span>
+<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">;</span>
+<a id="line-437" name="line-437"></a>
+<a id="line-438" name="line-438"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">xdisplay</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-440" name="line-440"></a>
+<a id="line-441" name="line-441"></a><span class="w"> </span><span class="cm">/* First update the screen resources */</span>
+<a id="line-442" name="line-442"></a>
+<a id="line-443" name="line-443"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">needs_reprobe</span><span class="p">)</span>
+<a id="line-444" name="line-444"></a><span class="w"> </span><span class="n">resources</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XRRGetScreenResources</span><span class="w"> </span><span class="p">(</span><span class="n">xdisplay</span><span class="p">,</span><span class="w"> </span><span class="n">xroot</span><span class="p">);</span>
+<a id="line-445" name="line-445"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">resources</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XRRGetScreenResourcesCurrent</span><span class="w"> </span><span class="p">(</span><span class="n">xdisplay</span><span class="p">,</span><span class="w"> </span><span class="n">xroot</span><span class="p">);</span>
+<a id="line-447" name="line-447"></a>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">resources</span><span class="p">)</span>
+<a id="line-449" name="line-449"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-450" name="line-450"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">fill_screen_info_from_resources</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">resources</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">))</span>
+<a id="line-451" name="line-451"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-452" name="line-452"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-453" name="line-453"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-454" name="line-454"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-455" name="line-455"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR_RANDR_ERROR</span><span class="p">,</span>
+<a id="line-456" name="line-456"></a><span class="w"> </span><span class="cm">/* Translators: a CRTC is a CRT Controller (this is X terminology). */</span>
+<a id="line-457" name="line-457"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;could not get the screen resources (CRTCs, outputs, modes)&quot;</span><span class="p">));</span>
+<a id="line-458" name="line-458"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-459" name="line-459"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-460" name="line-460"></a>
+<a id="line-461" name="line-461"></a><span class="w"> </span><span class="cm">/* Then update the screen size range. We do this after XRRGetScreenResources() so that</span>
+<a id="line-462" name="line-462"></a><span class="cm"> * the X server will already have an updated view of the outputs.</span>
+<a id="line-463" name="line-463"></a><span class="cm"> */</span>
+<a id="line-464" name="line-464"></a>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">needs_reprobe</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-466" name="line-466"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">success</span><span class="p">;</span>
+<a id="line-467" name="line-467"></a>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="n">display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_display_get_default</span><span class="w"> </span><span class="p">();</span>
+<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">gdk_x11_display_error_trap_push</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="n">success</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XRRGetScreenSizeRange</span><span class="w"> </span><span class="p">(</span><span class="n">xdisplay</span><span class="p">,</span><span class="w"> </span><span class="n">xroot</span><span class="p">,</span>
+<a id="line-471" name="line-471"></a><span class="w"> </span><span class="o">&amp;</span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">min_width</span><span class="p">),</span>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="o">&amp;</span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">min_height</span><span class="p">),</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="o">&amp;</span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">max_width</span><span class="p">),</span>
+<a id="line-474" name="line-474"></a><span class="w"> </span><span class="o">&amp;</span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">max_height</span><span class="p">));</span>
+<a id="line-475" name="line-475"></a><span class="w"> </span><span class="n">gdk_display_flush</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-476" name="line-476"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_x11_display_error_trap_pop</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-477" name="line-477"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR_UNKNOWN</span><span class="p">,</span>
+<a id="line-478" name="line-478"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;unhandled X error while getting the range of screen sizes&quot;</span><span class="p">));</span>
+<a id="line-479" name="line-479"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-480" name="line-480"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-481" name="line-481"></a>
+<a id="line-482" name="line-482"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">success</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR_RANDR_ERROR</span><span class="p">,</span>
+<a id="line-484" name="line-484"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;could not get the range of screen sizes&quot;</span><span class="p">));</span>
+<a id="line-485" name="line-485"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-486" name="line-486"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-487" name="line-487"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-488" name="line-488"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-489" name="line-489"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-490" name="line-490"></a><span class="w"> </span><span class="n">mate_rr_screen_get_ranges</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-491" name="line-491"></a><span class="w"> </span><span class="o">&amp;</span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">min_width</span><span class="p">),</span>
+<a id="line-492" name="line-492"></a><span class="w"> </span><span class="o">&amp;</span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">max_width</span><span class="p">),</span>
+<a id="line-493" name="line-493"></a><span class="w"> </span><span class="o">&amp;</span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">min_height</span><span class="p">),</span>
+<a id="line-494" name="line-494"></a><span class="w"> </span><span class="o">&amp;</span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">max_height</span><span class="p">));</span>
+<a id="line-495" name="line-495"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-496" name="line-496"></a>
+<a id="line-497" name="line-497"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">primary</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">None</span><span class="p">;</span>
+<a id="line-498" name="line-498"></a><span class="w"> </span><span class="n">display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_display_get_default</span><span class="w"> </span><span class="p">();</span>
+<a id="line-499" name="line-499"></a><span class="w"> </span><span class="n">gdk_x11_display_error_trap_push</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-500" name="line-500"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">primary</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XRRGetOutputPrimary</span><span class="w"> </span><span class="p">(</span><span class="n">xdisplay</span><span class="p">,</span><span class="w"> </span><span class="n">xroot</span><span class="p">);</span>
+<a id="line-501" name="line-501"></a><span class="w"> </span><span class="n">gdk_x11_display_error_trap_pop_ignored</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-502" name="line-502"></a>
+<a id="line-503" name="line-503"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-504" name="line-504"></a><span class="cp">#else</span>
+<a id="line-505" name="line-505"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-506" name="line-506"></a><span class="cp">#endif </span><span class="cm">/* HAVE_RANDR */</span>
+<a id="line-507" name="line-507"></a><span class="p">}</span>
+<a id="line-508" name="line-508"></a>
+<a id="line-509" name="line-509"></a><span class="k">static</span><span class="w"> </span><span class="n">ScreenInfo</span><span class="w"> </span><span class="o">*</span>
+<a id="line-510" name="line-510"></a><span class="n">screen_info_new</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">needs_reprobe</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-511" name="line-511"></a><span class="p">{</span>
+<a id="line-512" name="line-512"></a><span class="w"> </span><span class="n">ScreenInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new0</span><span class="w"> </span><span class="p">(</span><span class="n">ScreenInfo</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-513" name="line-513"></a><span class="w"> </span><span class="n">MateRRScreenPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-514" name="line-514"></a>
+<a id="line-515" name="line-515"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-516" name="line-516"></a>
+<a id="line-517" name="line-517"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-518" name="line-518"></a>
+<a id="line-519" name="line-519"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-520" name="line-520"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">crtcs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-521" name="line-521"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">modes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">screen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">screen</span><span class="p">;</span>
+<a id="line-523" name="line-523"></a>
+<a id="line-524" name="line-524"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">fill_out_screen_info</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">xdisplay</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">xroot</span><span class="p">,</span><span class="w"> </span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">needs_reprobe</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">))</span>
+<a id="line-525" name="line-525"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-526" name="line-526"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">info</span><span class="p">;</span>
+<a id="line-527" name="line-527"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-528" name="line-528"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-529" name="line-529"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-530" name="line-530"></a><span class="w"> </span><span class="n">screen_info_free</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">);</span>
+<a id="line-531" name="line-531"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-532" name="line-532"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-533" name="line-533"></a><span class="p">}</span>
+<a id="line-534" name="line-534"></a>
+<a id="line-535" name="line-535"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-536" name="line-536"></a><span class="n">screen_update</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">force_callback</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">needs_reprobe</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-537" name="line-537"></a><span class="p">{</span>
+<a id="line-538" name="line-538"></a><span class="w"> </span><span class="n">ScreenInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">;</span>
+<a id="line-539" name="line-539"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">changed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-540" name="line-540"></a>
+<a id="line-541" name="line-541"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-542" name="line-542"></a>
+<a id="line-543" name="line-543"></a><span class="w"> </span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">screen_info_new</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">needs_reprobe</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-544" name="line-544"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">info</span><span class="p">)</span>
+<a id="line-545" name="line-545"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-546" name="line-546"></a>
+<a id="line-547" name="line-547"></a><span class="cp">#ifdef HAVE_RANDR</span>
+<a id="line-548" name="line-548"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">resources</span><span class="o">-&gt;</span><span class="n">configTimestamp</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">resources</span><span class="o">-&gt;</span><span class="n">configTimestamp</span><span class="p">)</span>
+<a id="line-549" name="line-549"></a><span class="w"> </span><span class="n">changed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-550" name="line-550"></a><span class="cp">#endif</span>
+<a id="line-551" name="line-551"></a>
+<a id="line-552" name="line-552"></a><span class="w"> </span><span class="n">screen_info_free</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="p">);</span>
+<a id="line-553" name="line-553"></a>
+<a id="line-554" name="line-554"></a><span class="w"> </span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="p">;</span>
+<a id="line-555" name="line-555"></a>
+<a id="line-556" name="line-556"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">changed</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">force_callback</span><span class="p">)</span>
+<a id="line-557" name="line-557"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">),</span><span class="w"> </span><span class="n">screen_signals</span><span class="p">[</span><span class="n">SCREEN_CHANGED</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-558" name="line-558"></a>
+<a id="line-559" name="line-559"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">changed</span><span class="p">;</span>
+<a id="line-560" name="line-560"></a><span class="p">}</span>
+<a id="line-561" name="line-561"></a>
+<a id="line-562" name="line-562"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkFilterReturn</span>
+<a id="line-563" name="line-563"></a><span class="n">screen_on_event</span><span class="w"> </span><span class="p">(</span><span class="n">GdkXEvent</span><span class="w"> </span><span class="o">*</span><span class="n">xevent</span><span class="p">,</span>
+<a id="line-564" name="line-564"></a><span class="w"> </span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span>
+<a id="line-565" name="line-565"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-566" name="line-566"></a><span class="p">{</span>
+<a id="line-567" name="line-567"></a><span class="cp">#ifdef HAVE_RANDR</span>
+<a id="line-568" name="line-568"></a><span class="w"> </span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">data</span><span class="p">;</span>
+<a id="line-569" name="line-569"></a><span class="w"> </span><span class="n">MateRRScreenPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-570" name="line-570"></a><span class="w"> </span><span class="n">XEvent</span><span class="w"> </span><span class="o">*</span><span class="n">e</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xevent</span><span class="p">;</span>
+<a id="line-571" name="line-571"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">event_num</span><span class="p">;</span>
+<a id="line-572" name="line-572"></a>
+<a id="line-573" name="line-573"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">e</span><span class="p">)</span>
+<a id="line-574" name="line-574"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">GDK_FILTER_CONTINUE</span><span class="p">;</span>
+<a id="line-575" name="line-575"></a>
+<a id="line-576" name="line-576"></a><span class="w"> </span><span class="n">event_num</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">e</span><span class="o">-&gt;</span><span class="n">type</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">randr_event_base</span><span class="p">;</span>
+<a id="line-577" name="line-577"></a>
+<a id="line-578" name="line-578"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event_num</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">RRScreenChangeNotify</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-579" name="line-579"></a><span class="w"> </span><span class="cm">/* We don&#39;t reprobe the hardware; we just fetch the X server&#39;s latest</span>
+<a id="line-580" name="line-580"></a><span class="cm"> * state. The server already knows the new state of the outputs; that&#39;s</span>
+<a id="line-581" name="line-581"></a><span class="cm"> * why it sent us an event!</span>
+<a id="line-582" name="line-582"></a><span class="cm"> */</span>
+<a id="line-583" name="line-583"></a><span class="w"> </span><span class="n">screen_update</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span><span class="w"> </span><span class="cm">/* NULL-GError */</span>
+<a id="line-584" name="line-584"></a><span class="cp">#if 0</span>
+<a id="line-585" name="line-585"></a><span class="c"> /* Enable this code to get a dialog showing the RANDR timestamps, for debugging purposes */</span>
+<a id="line-586" name="line-586"></a><span class="c"> {</span>
+<a id="line-587" name="line-587"></a><span class="c"> GtkWidget *dialog;</span>
+<a id="line-588" name="line-588"></a><span class="c"> XRRScreenChangeNotifyEvent *rr_event;</span>
+<a id="line-589" name="line-589"></a><span class="c"> static int dialog_num;</span>
+<a id="line-590" name="line-590"></a>
+<a id="line-591" name="line-591"></a><span class="c"> rr_event = (XRRScreenChangeNotifyEvent *) e;</span>
+<a id="line-592" name="line-592"></a>
+<a id="line-593" name="line-593"></a><span class="c"> dialog = gtk_message_dialog_new (NULL,</span>
+<a id="line-594" name="line-594"></a><span class="c"> 0,</span>
+<a id="line-595" name="line-595"></a><span class="c"> GTK_MESSAGE_INFO,</span>
+<a id="line-596" name="line-596"></a><span class="c"> GTK_BUTTONS_CLOSE,</span>
+<a id="line-597" name="line-597"></a><span class="c"> &quot;RRScreenChangeNotify timestamps (%d):\n&quot;</span>
+<a id="line-598" name="line-598"></a><span class="c"> &quot;event change: %u\n&quot;</span>
+<a id="line-599" name="line-599"></a><span class="c"> &quot;event config: %u\n&quot;</span>
+<a id="line-600" name="line-600"></a><span class="c"> &quot;event serial: %lu\n&quot;</span>
+<a id="line-601" name="line-601"></a><span class="c"> &quot;----------------------&quot;</span>
+<a id="line-602" name="line-602"></a><span class="c"> &quot;screen change: %u\n&quot;</span>
+<a id="line-603" name="line-603"></a><span class="c"> &quot;screen config: %u\n&quot;,</span>
+<a id="line-604" name="line-604"></a><span class="c"> dialog_num++,</span>
+<a id="line-605" name="line-605"></a><span class="c"> (guint32) rr_event-&gt;timestamp,</span>
+<a id="line-606" name="line-606"></a><span class="c"> (guint32) rr_event-&gt;config_timestamp,</span>
+<a id="line-607" name="line-607"></a><span class="c"> rr_event-&gt;serial,</span>
+<a id="line-608" name="line-608"></a><span class="c"> (guint32) priv-&gt;info-&gt;resources-&gt;timestamp,</span>
+<a id="line-609" name="line-609"></a><span class="c"> (guint32) priv-&gt;info-&gt;resources-&gt;configTimestamp);</span>
+<a id="line-610" name="line-610"></a><span class="c"> g_signal_connect (dialog, &quot;response&quot;,</span>
+<a id="line-611" name="line-611"></a><span class="c"> G_CALLBACK (gtk_widget_destroy), NULL);</span>
+<a id="line-612" name="line-612"></a><span class="c"> gtk_widget_show (dialog);</span>
+<a id="line-613" name="line-613"></a><span class="c"> }</span>
+<a id="line-614" name="line-614"></a><span class="cp">#endif</span>
+<a id="line-615" name="line-615"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-616" name="line-616"></a><span class="cp">#if 0</span>
+<a id="line-617" name="line-617"></a><span class="c"> /* WHY THIS CODE IS DISABLED:</span>
+<a id="line-618" name="line-618"></a><span class="c"> *</span>
+<a id="line-619" name="line-619"></a><span class="c"> * Note that in mate_rr_screen_new(), we only select for</span>
+<a id="line-620" name="line-620"></a><span class="c"> * RRScreenChangeNotifyMask. We used to select for other values in</span>
+<a id="line-621" name="line-621"></a><span class="c"> * RR*NotifyMask, but we weren&#39;t really doing anything useful with those</span>
+<a id="line-622" name="line-622"></a><span class="c"> * events. We only care about &quot;the screens changed in some way or another&quot;</span>
+<a id="line-623" name="line-623"></a><span class="c"> * for now.</span>
+<a id="line-624" name="line-624"></a><span class="c"> *</span>
+<a id="line-625" name="line-625"></a><span class="c"> * If we ever run into a situtation that could benefit from processing more</span>
+<a id="line-626" name="line-626"></a><span class="c"> * detailed events, we can enable this code again.</span>
+<a id="line-627" name="line-627"></a><span class="c"> *</span>
+<a id="line-628" name="line-628"></a><span class="c"> * Note that the X server sends RRScreenChangeNotify in conjunction with the</span>
+<a id="line-629" name="line-629"></a><span class="c"> * more detailed events from RANDR 1.2 - see xserver/randr/randr.c:TellChanged().</span>
+<a id="line-630" name="line-630"></a><span class="c"> */</span>
+<a id="line-631" name="line-631"></a><span class="c"> else if (event_num == RRNotify)</span>
+<a id="line-632" name="line-632"></a><span class="c"> {</span>
+<a id="line-633" name="line-633"></a><span class="c"> /* Other RandR events */</span>
+<a id="line-634" name="line-634"></a>
+<a id="line-635" name="line-635"></a><span class="c"> XRRNotifyEvent *event = (XRRNotifyEvent *)e;</span>
+<a id="line-636" name="line-636"></a>
+<a id="line-637" name="line-637"></a><span class="c"> /* Here we can distinguish between RRNotify events supported</span>
+<a id="line-638" name="line-638"></a><span class="c"> * since RandR 1.2 such as RRNotify_OutputProperty. For now, we</span>
+<a id="line-639" name="line-639"></a><span class="c"> * don&#39;t have anything special to do for particular subevent types, so</span>
+<a id="line-640" name="line-640"></a><span class="c"> * we leave this as an empty switch().</span>
+<a id="line-641" name="line-641"></a><span class="c"> */</span>
+<a id="line-642" name="line-642"></a><span class="c"> switch (event-&gt;subtype)</span>
+<a id="line-643" name="line-643"></a><span class="c"> {</span>
+<a id="line-644" name="line-644"></a><span class="c"> default:</span>
+<a id="line-645" name="line-645"></a><span class="c"> break;</span>
+<a id="line-646" name="line-646"></a><span class="c"> }</span>
+<a id="line-647" name="line-647"></a>
+<a id="line-648" name="line-648"></a><span class="c"> /* No need to reprobe hardware here */</span>
+<a id="line-649" name="line-649"></a><span class="c"> screen_update (screen, TRUE, FALSE, NULL); /* NULL-GError */</span>
+<a id="line-650" name="line-650"></a><span class="c"> }</span>
+<a id="line-651" name="line-651"></a><span class="cp">#endif</span>
+<a id="line-652" name="line-652"></a>
+<a id="line-653" name="line-653"></a><span class="cp">#endif </span><span class="cm">/* HAVE_RANDR */</span>
+<a id="line-654" name="line-654"></a>
+<a id="line-655" name="line-655"></a><span class="w"> </span><span class="cm">/* Pass the event on to GTK+ */</span>
+<a id="line-656" name="line-656"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">GDK_FILTER_CONTINUE</span><span class="p">;</span>
+<a id="line-657" name="line-657"></a><span class="p">}</span>
+<a id="line-658" name="line-658"></a>
+<a id="line-659" name="line-659"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-660" name="line-660"></a><span class="n">mate_rr_screen_initable_init</span><span class="w"> </span><span class="p">(</span><span class="n">GInitable</span><span class="w"> </span><span class="o">*</span><span class="n">initable</span><span class="p">,</span><span class="w"> </span><span class="n">GCancellable</span><span class="w"> </span><span class="o">*</span><span class="n">canc</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-661" name="line-661"></a>
+<a id="line-662" name="line-662"></a><span class="p">{</span>
+<a id="line-663" name="line-663"></a><span class="w"> </span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_RR_SCREEN</span><span class="w"> </span><span class="p">(</span><span class="n">initable</span><span class="p">);</span>
+<a id="line-664" name="line-664"></a><span class="w"> </span><span class="n">MateRRScreenPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-665" name="line-665"></a><span class="w"> </span><span class="n">Display</span><span class="w"> </span><span class="o">*</span><span class="n">dpy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_SCREEN_XDISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">gdk_screen</span><span class="p">);</span>
+<a id="line-666" name="line-666"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">event_base</span><span class="p">;</span>
+<a id="line-667" name="line-667"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">ignore</span><span class="p">;</span>
+<a id="line-668" name="line-668"></a>
+<a id="line-669" name="line-669"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">connector_type_atom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XInternAtom</span><span class="w"> </span><span class="p">(</span><span class="n">dpy</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ConnectorType&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-670" name="line-670"></a>
+<a id="line-671" name="line-671"></a><span class="cp">#ifdef HAVE_RANDR</span>
+<a id="line-672" name="line-672"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">XRRQueryExtension</span><span class="w"> </span><span class="p">(</span><span class="n">dpy</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">event_base</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">ignore</span><span class="p">))</span>
+<a id="line-673" name="line-673"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-674" name="line-674"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">randr_event_base</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">event_base</span><span class="p">;</span>
+<a id="line-675" name="line-675"></a>
+<a id="line-676" name="line-676"></a><span class="w"> </span><span class="n">XRRQueryVersion</span><span class="w"> </span><span class="p">(</span><span class="n">dpy</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rr_major_version</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rr_minor_version</span><span class="p">);</span>
+<a id="line-677" name="line-677"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rr_major_version</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rr_major_version</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rr_minor_version</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">3</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-678" name="line-678"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR_NO_RANDR_EXTENSION</span><span class="p">,</span>
+<a id="line-679" name="line-679"></a><span class="w"> </span><span class="s">&quot;RANDR extension is too old (must be at least 1.3)&quot;</span><span class="p">);</span>
+<a id="line-680" name="line-680"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-681" name="line-681"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-682" name="line-682"></a>
+<a id="line-683" name="line-683"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">screen_info_new</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-684" name="line-684"></a>
+<a id="line-685" name="line-685"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-686" name="line-686"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-687" name="line-687"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-688" name="line-688"></a>
+<a id="line-689" name="line-689"></a><span class="w"> </span><span class="n">XRRSelectInput</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">xdisplay</span><span class="p">,</span>
+<a id="line-690" name="line-690"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">xroot</span><span class="p">,</span>
+<a id="line-691" name="line-691"></a><span class="w"> </span><span class="n">RRScreenChangeNotifyMask</span><span class="p">);</span>
+<a id="line-692" name="line-692"></a><span class="w"> </span><span class="n">gdk_x11_register_standard_event_type</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_screen_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">gdk_screen</span><span class="p">),</span>
+<a id="line-693" name="line-693"></a><span class="w"> </span><span class="n">event_base</span><span class="p">,</span>
+<a id="line-694" name="line-694"></a><span class="w"> </span><span class="n">RRNotify</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-695" name="line-695"></a><span class="w"> </span><span class="n">gdk_window_add_filter</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">gdk_root</span><span class="p">,</span><span class="w"> </span><span class="n">screen_on_event</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="p">);</span>
+<a id="line-696" name="line-696"></a>
+<a id="line-697" name="line-697"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-698" name="line-698"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-699" name="line-699"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-700" name="line-700"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-701" name="line-701"></a><span class="cp">#endif </span><span class="cm">/* HAVE_RANDR */</span>
+<a id="line-702" name="line-702"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR_NO_RANDR_EXTENSION</span><span class="p">,</span>
+<a id="line-703" name="line-703"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;RANDR extension is not present&quot;</span><span class="p">));</span>
+<a id="line-704" name="line-704"></a>
+<a id="line-705" name="line-705"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-706" name="line-706"></a>
+<a id="line-707" name="line-707"></a><span class="cp">#ifdef HAVE_RANDR</span>
+<a id="line-708" name="line-708"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-709" name="line-709"></a><span class="cp">#endif</span>
+<a id="line-710" name="line-710"></a><span class="p">}</span>
+<a id="line-711" name="line-711"></a>
+<a id="line-712" name="line-712"></a><span class="kt">void</span>
+<a id="line-713" name="line-713"></a><span class="n">mate_rr_screen_initable_iface_init</span><span class="w"> </span><span class="p">(</span><span class="n">GInitableIface</span><span class="w"> </span><span class="o">*</span><span class="n">iface</span><span class="p">)</span>
+<a id="line-714" name="line-714"></a><span class="p">{</span>
+<a id="line-715" name="line-715"></a><span class="w"> </span><span class="n">iface</span><span class="o">-&gt;</span><span class="n">init</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_screen_initable_init</span><span class="p">;</span>
+<a id="line-716" name="line-716"></a><span class="p">}</span>
+<a id="line-717" name="line-717"></a>
+<a id="line-718" name="line-718"></a><span class="kt">void</span>
+<a id="line-719" name="line-719"></a><span class="w"> </span><span class="n">mate_rr_screen_finalize</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">gobject</span><span class="p">)</span>
+<a id="line-720" name="line-720"></a><span class="p">{</span>
+<a id="line-721" name="line-721"></a><span class="w"> </span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_RR_SCREEN</span><span class="w"> </span><span class="p">(</span><span class="n">gobject</span><span class="p">);</span>
+<a id="line-722" name="line-722"></a>
+<a id="line-723" name="line-723"></a><span class="w"> </span><span class="n">gdk_window_remove_filter</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">gdk_root</span><span class="p">,</span><span class="w"> </span><span class="n">screen_on_event</span><span class="p">,</span><span class="w"> </span><span class="n">screen</span><span class="p">);</span>
+<a id="line-724" name="line-724"></a>
+<a id="line-725" name="line-725"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="p">)</span>
+<a id="line-726" name="line-726"></a><span class="w"> </span><span class="n">screen_info_free</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="p">);</span>
+<a id="line-727" name="line-727"></a>
+<a id="line-728" name="line-728"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">mate_rr_screen_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">gobject</span><span class="p">);</span>
+<a id="line-729" name="line-729"></a><span class="p">}</span>
+<a id="line-730" name="line-730"></a>
+<a id="line-731" name="line-731"></a><span class="kt">void</span>
+<a id="line-732" name="line-732"></a><span class="n">mate_rr_screen_set_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">gobject</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">property</span><span class="p">)</span>
+<a id="line-733" name="line-733"></a><span class="p">{</span>
+<a id="line-734" name="line-734"></a><span class="w"> </span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_RR_SCREEN</span><span class="w"> </span><span class="p">(</span><span class="n">gobject</span><span class="p">);</span>
+<a id="line-735" name="line-735"></a><span class="w"> </span><span class="n">MateRRScreenPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-736" name="line-736"></a>
+<a id="line-737" name="line-737"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">property_id</span><span class="p">)</span>
+<a id="line-738" name="line-738"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-739" name="line-739"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">SCREEN_PROP_GDK_SCREEN</span><span class="p">:</span>
+<a id="line-740" name="line-740"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">gdk_screen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">);</span>
+<a id="line-741" name="line-741"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">gdk_root</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_screen_get_root_window</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">gdk_screen</span><span class="p">);</span>
+<a id="line-742" name="line-742"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">xroot</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_WINDOW_XID</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">gdk_root</span><span class="p">);</span>
+<a id="line-743" name="line-743"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">xdisplay</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_SCREEN_XDISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">gdk_screen</span><span class="p">);</span>
+<a id="line-744" name="line-744"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">xscreen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_x11_screen_get_xscreen</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">gdk_screen</span><span class="p">);</span>
+<a id="line-745" name="line-745"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-746" name="line-746"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-747" name="line-747"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">gobject</span><span class="p">,</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span><span class="w"> </span><span class="n">property</span><span class="p">);</span>
+<a id="line-748" name="line-748"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-749" name="line-749"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-750" name="line-750"></a><span class="p">}</span>
+<a id="line-751" name="line-751"></a>
+<a id="line-752" name="line-752"></a><span class="kt">void</span>
+<a id="line-753" name="line-753"></a><span class="n">mate_rr_screen_get_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">gobject</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">property</span><span class="p">)</span>
+<a id="line-754" name="line-754"></a><span class="p">{</span>
+<a id="line-755" name="line-755"></a><span class="w"> </span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_RR_SCREEN</span><span class="w"> </span><span class="p">(</span><span class="n">gobject</span><span class="p">);</span>
+<a id="line-756" name="line-756"></a><span class="w"> </span><span class="n">MateRRScreenPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-757" name="line-757"></a>
+<a id="line-758" name="line-758"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">property_id</span><span class="p">)</span>
+<a id="line-759" name="line-759"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-760" name="line-760"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">SCREEN_PROP_GDK_SCREEN</span><span class="p">:</span>
+<a id="line-761" name="line-761"></a><span class="w"> </span><span class="n">g_value_set_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">gdk_screen</span><span class="p">);</span>
+<a id="line-762" name="line-762"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-763" name="line-763"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-764" name="line-764"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">gobject</span><span class="p">,</span><span class="w"> </span><span class="n">property_id</span><span class="p">,</span><span class="w"> </span><span class="n">property</span><span class="p">);</span>
+<a id="line-765" name="line-765"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-766" name="line-766"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-767" name="line-767"></a><span class="p">}</span>
+<a id="line-768" name="line-768"></a>
+<a id="line-769" name="line-769"></a><span class="kt">void</span>
+<a id="line-770" name="line-770"></a><span class="n">mate_rr_screen_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreenClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span>
+<a id="line-771" name="line-771"></a><span class="p">{</span>
+<a id="line-772" name="line-772"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">gobject_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">klass</span><span class="p">);</span>
+<a id="line-773" name="line-773"></a>
+<a id="line-774" name="line-774"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_screen_set_property</span><span class="p">;</span>
+<a id="line-775" name="line-775"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_screen_get_property</span><span class="p">;</span>
+<a id="line-776" name="line-776"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_screen_finalize</span><span class="p">;</span>
+<a id="line-777" name="line-777"></a>
+<a id="line-778" name="line-778"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span>
+<a id="line-779" name="line-779"></a><span class="w"> </span><span class="n">gobject_class</span><span class="p">,</span>
+<a id="line-780" name="line-780"></a><span class="w"> </span><span class="n">SCREEN_PROP_GDK_SCREEN</span><span class="p">,</span>
+<a id="line-781" name="line-781"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span>
+<a id="line-782" name="line-782"></a><span class="w"> </span><span class="s">&quot;gdk-screen&quot;</span><span class="p">,</span>
+<a id="line-783" name="line-783"></a><span class="w"> </span><span class="s">&quot;GDK Screen&quot;</span><span class="p">,</span>
+<a id="line-784" name="line-784"></a><span class="w"> </span><span class="s">&quot;The GDK Screen represented by this MateRRScreen&quot;</span><span class="p">,</span>
+<a id="line-785" name="line-785"></a><span class="w"> </span><span class="n">GDK_TYPE_SCREEN</span><span class="p">,</span>
+<a id="line-786" name="line-786"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_STATIC_STRINGS</span><span class="p">)</span>
+<a id="line-787" name="line-787"></a><span class="w"> </span><span class="p">);</span>
+<a id="line-788" name="line-788"></a>
+<a id="line-789" name="line-789"></a><span class="w"> </span><span class="n">screen_signals</span><span class="p">[</span><span class="n">SCREEN_CHANGED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_signal_new</span><span class="p">(</span><span class="s">&quot;changed&quot;</span><span class="p">,</span>
+<a id="line-790" name="line-790"></a><span class="w"> </span><span class="n">G_TYPE_FROM_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">),</span>
+<a id="line-791" name="line-791"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_FIRST</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_SIGNAL_NO_RECURSE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_SIGNAL_NO_HOOKS</span><span class="p">,</span>
+<a id="line-792" name="line-792"></a><span class="w"> </span><span class="n">G_STRUCT_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreenClass</span><span class="p">,</span><span class="w"> </span><span class="n">changed</span><span class="p">),</span>
+<a id="line-793" name="line-793"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-794" name="line-794"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-795" name="line-795"></a><span class="w"> </span><span class="n">g_cclosure_marshal_VOID__VOID</span><span class="p">,</span>
+<a id="line-796" name="line-796"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span>
+<a id="line-797" name="line-797"></a><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-798" name="line-798"></a><span class="p">}</span>
+<a id="line-799" name="line-799"></a>
+<a id="line-800" name="line-800"></a><span class="kt">void</span>
+<a id="line-801" name="line-801"></a><span class="n">mate_rr_screen_init</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">)</span>
+<a id="line-802" name="line-802"></a><span class="p">{</span>
+<a id="line-803" name="line-803"></a><span class="w"> </span><span class="n">MateRRScreenPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_screen_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="p">);</span>
+<a id="line-804" name="line-804"></a><span class="w"> </span><span class="n">self</span><span class="o">-&gt;</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="p">;</span>
+<a id="line-805" name="line-805"></a>
+<a id="line-806" name="line-806"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">gdk_screen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-807" name="line-807"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">gdk_root</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-808" name="line-808"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">xdisplay</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-809" name="line-809"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">xroot</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">None</span><span class="p">;</span>
+<a id="line-810" name="line-810"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">xscreen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-811" name="line-811"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-812" name="line-812"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rr_major_version</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-813" name="line-813"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">rr_minor_version</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-814" name="line-814"></a><span class="p">}</span>
+<a id="line-815" name="line-815"></a>
+<a id="line-816" name="line-816"></a><span class="cm">/**</span>
+<a id="line-817" name="line-817"></a><span class="cm"> * mate_rr_screen_new:</span>
+<a id="line-818" name="line-818"></a><span class="cm"> * @screen: the #GdkScreen on which to operate</span>
+<a id="line-819" name="line-819"></a><span class="cm"> * @error: will be set if XRandR is not supported</span>
+<a id="line-820" name="line-820"></a><span class="cm"> *</span>
+<a id="line-821" name="line-821"></a><span class="cm"> * Creates a new #MateRRScreen instance</span>
+<a id="line-822" name="line-822"></a><span class="cm"> *</span>
+<a id="line-823" name="line-823"></a><span class="cm"> * Returns: a new #MateRRScreen instance or NULL if screen could not be created,</span>
+<a id="line-824" name="line-824"></a><span class="cm"> * for instance if the driver does not support Xrandr 1.2</span>
+<a id="line-825" name="line-825"></a><span class="cm"> */</span>
+<a id="line-826" name="line-826"></a><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span>
+<a id="line-827" name="line-827"></a><span class="n">mate_rr_screen_new</span><span class="w"> </span><span class="p">(</span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-828" name="line-828"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-829" name="line-829"></a><span class="p">{</span>
+<a id="line-830" name="line-830"></a><span class="w"> </span><span class="n">_mate_desktop_init_i18n</span><span class="w"> </span><span class="p">();</span>
+<a id="line-831" name="line-831"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_initable_new</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_TYPE_RR_SCREEN</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;gdk-screen&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-832" name="line-832"></a><span class="p">}</span>
+<a id="line-833" name="line-833"></a>
+<a id="line-834" name="line-834"></a><span class="kt">void</span>
+<a id="line-835" name="line-835"></a><span class="n">mate_rr_screen_set_size</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-836" name="line-836"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">,</span>
+<a id="line-837" name="line-837"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">height</span><span class="p">,</span>
+<a id="line-838" name="line-838"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">mm_width</span><span class="p">,</span>
+<a id="line-839" name="line-839"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">mm_height</span><span class="p">)</span>
+<a id="line-840" name="line-840"></a><span class="p">{</span>
+<a id="line-841" name="line-841"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_SCREEN</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">));</span>
+<a id="line-842" name="line-842"></a>
+<a id="line-843" name="line-843"></a><span class="cp">#ifdef HAVE_RANDR</span>
+<a id="line-844" name="line-844"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">;</span>
+<a id="line-845" name="line-845"></a>
+<a id="line-846" name="line-846"></a><span class="w"> </span><span class="n">display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_display_get_default</span><span class="w"> </span><span class="p">();</span>
+<a id="line-847" name="line-847"></a><span class="w"> </span><span class="n">gdk_x11_display_error_trap_push</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-848" name="line-848"></a><span class="w"> </span><span class="n">XRRSetScreenSize</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">xdisplay</span><span class="p">,</span><span class="w"> </span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">xroot</span><span class="p">,</span>
+<a id="line-849" name="line-849"></a><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">,</span><span class="w"> </span><span class="n">mm_width</span><span class="p">,</span><span class="w"> </span><span class="n">mm_height</span><span class="p">);</span>
+<a id="line-850" name="line-850"></a><span class="w"> </span><span class="n">gdk_x11_display_error_trap_pop_ignored</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-851" name="line-851"></a><span class="cp">#endif</span>
+<a id="line-852" name="line-852"></a><span class="p">}</span>
+<a id="line-853" name="line-853"></a>
+<a id="line-854" name="line-854"></a><span class="cm">/**</span>
+<a id="line-855" name="line-855"></a><span class="cm"> * mate_rr_screen_get_ranges:</span>
+<a id="line-856" name="line-856"></a><span class="cm"> * @screen: a #MateRRScreen</span>
+<a id="line-857" name="line-857"></a><span class="cm"> * @min_width: (out): the minimum width</span>
+<a id="line-858" name="line-858"></a><span class="cm"> * @max_width: (out): the maximum width</span>
+<a id="line-859" name="line-859"></a><span class="cm"> * @min_height: (out): the minimum height</span>
+<a id="line-860" name="line-860"></a><span class="cm"> * @max_height: (out): the maximum height</span>
+<a id="line-861" name="line-861"></a><span class="cm"> *</span>
+<a id="line-862" name="line-862"></a><span class="cm"> * Get the ranges of the screen</span>
+<a id="line-863" name="line-863"></a><span class="cm"> */</span>
+<a id="line-864" name="line-864"></a><span class="kt">void</span>
+<a id="line-865" name="line-865"></a><span class="n">mate_rr_screen_get_ranges</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-866" name="line-866"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">min_width</span><span class="p">,</span>
+<a id="line-867" name="line-867"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">max_width</span><span class="p">,</span>
+<a id="line-868" name="line-868"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">min_height</span><span class="p">,</span>
+<a id="line-869" name="line-869"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">max_height</span><span class="p">)</span>
+<a id="line-870" name="line-870"></a><span class="p">{</span>
+<a id="line-871" name="line-871"></a><span class="w"> </span><span class="n">MateRRScreenPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-872" name="line-872"></a>
+<a id="line-873" name="line-873"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_SCREEN</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">));</span>
+<a id="line-874" name="line-874"></a>
+<a id="line-875" name="line-875"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-876" name="line-876"></a>
+<a id="line-877" name="line-877"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">min_width</span><span class="p">)</span>
+<a id="line-878" name="line-878"></a><span class="w"> </span><span class="o">*</span><span class="n">min_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">min_width</span><span class="p">;</span>
+<a id="line-879" name="line-879"></a>
+<a id="line-880" name="line-880"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">max_width</span><span class="p">)</span>
+<a id="line-881" name="line-881"></a><span class="w"> </span><span class="o">*</span><span class="n">max_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">max_width</span><span class="p">;</span>
+<a id="line-882" name="line-882"></a>
+<a id="line-883" name="line-883"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">min_height</span><span class="p">)</span>
+<a id="line-884" name="line-884"></a><span class="w"> </span><span class="o">*</span><span class="n">min_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">min_height</span><span class="p">;</span>
+<a id="line-885" name="line-885"></a>
+<a id="line-886" name="line-886"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">max_height</span><span class="p">)</span>
+<a id="line-887" name="line-887"></a><span class="w"> </span><span class="o">*</span><span class="n">max_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">max_height</span><span class="p">;</span>
+<a id="line-888" name="line-888"></a><span class="p">}</span>
+<a id="line-889" name="line-889"></a>
+<a id="line-890" name="line-890"></a><span class="cm">/**</span>
+<a id="line-891" name="line-891"></a><span class="cm"> * mate_rr_screen_get_timestamps:</span>
+<a id="line-892" name="line-892"></a><span class="cm"> * @screen: a #MateRRScreen</span>
+<a id="line-893" name="line-893"></a><span class="cm"> * @change_timestamp_ret: (out): Location in which to store the timestamp at which the RANDR configuration was last changed</span>
+<a id="line-894" name="line-894"></a><span class="cm"> * @config_timestamp_ret: (out): Location in which to store the timestamp at which the RANDR configuration was last obtained</span>
+<a id="line-895" name="line-895"></a><span class="cm"> *</span>
+<a id="line-896" name="line-896"></a><span class="cm"> * Queries the two timestamps that the X RANDR extension maintains. The X</span>
+<a id="line-897" name="line-897"></a><span class="cm"> * server will prevent change requests for stale configurations, those whose</span>
+<a id="line-898" name="line-898"></a><span class="cm"> * timestamp is not equal to that of the latest request for configuration. The</span>
+<a id="line-899" name="line-899"></a><span class="cm"> * X server will also prevent change requests that have an older timestamp to</span>
+<a id="line-900" name="line-900"></a><span class="cm"> * the latest change request.</span>
+<a id="line-901" name="line-901"></a><span class="cm"> */</span>
+<a id="line-902" name="line-902"></a><span class="kt">void</span>
+<a id="line-903" name="line-903"></a><span class="n">mate_rr_screen_get_timestamps</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-904" name="line-904"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="o">*</span><span class="n">change_timestamp_ret</span><span class="p">,</span>
+<a id="line-905" name="line-905"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="o">*</span><span class="n">config_timestamp_ret</span><span class="p">)</span>
+<a id="line-906" name="line-906"></a><span class="p">{</span>
+<a id="line-907" name="line-907"></a><span class="w"> </span><span class="n">MateRRScreenPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-908" name="line-908"></a>
+<a id="line-909" name="line-909"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_SCREEN</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">));</span>
+<a id="line-910" name="line-910"></a>
+<a id="line-911" name="line-911"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-912" name="line-912"></a>
+<a id="line-913" name="line-913"></a><span class="cp">#ifdef HAVE_RANDR</span>
+<a id="line-914" name="line-914"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">change_timestamp_ret</span><span class="p">)</span>
+<a id="line-915" name="line-915"></a><span class="w"> </span><span class="o">*</span><span class="n">change_timestamp_ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">resources</span><span class="o">-&gt;</span><span class="n">timestamp</span><span class="p">;</span>
+<a id="line-916" name="line-916"></a>
+<a id="line-917" name="line-917"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">config_timestamp_ret</span><span class="p">)</span>
+<a id="line-918" name="line-918"></a><span class="w"> </span><span class="o">*</span><span class="n">config_timestamp_ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">resources</span><span class="o">-&gt;</span><span class="n">configTimestamp</span><span class="p">;</span>
+<a id="line-919" name="line-919"></a><span class="cp">#endif</span>
+<a id="line-920" name="line-920"></a><span class="p">}</span>
+<a id="line-921" name="line-921"></a>
+<a id="line-922" name="line-922"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-923" name="line-923"></a><span class="n">force_timestamp_update</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">)</span>
+<a id="line-924" name="line-924"></a><span class="p">{</span>
+<a id="line-925" name="line-925"></a><span class="cp">#ifdef HAVE_RANDR</span>
+<a id="line-926" name="line-926"></a><span class="w"> </span><span class="n">MateRRScreenPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-927" name="line-927"></a><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">;</span>
+<a id="line-928" name="line-928"></a><span class="w"> </span><span class="n">XRRCrtcInfo</span><span class="w"> </span><span class="o">*</span><span class="n">current_info</span><span class="p">;</span>
+<a id="line-929" name="line-929"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">;</span>
+<a id="line-930" name="line-930"></a><span class="w"> </span><span class="n">Status</span><span class="w"> </span><span class="n">status</span><span class="p">;</span>
+<a id="line-931" name="line-931"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">timestamp_updated</span><span class="p">;</span>
+<a id="line-932" name="line-932"></a>
+<a id="line-933" name="line-933"></a><span class="w"> </span><span class="n">timestamp_updated</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-934" name="line-934"></a>
+<a id="line-935" name="line-935"></a><span class="w"> </span><span class="n">crtc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">crtcs</span><span class="p">[</span><span class="mi">0</span><span class="p">];</span>
+<a id="line-936" name="line-936"></a>
+<a id="line-937" name="line-937"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-938" name="line-938"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span>
+<a id="line-939" name="line-939"></a>
+<a id="line-940" name="line-940"></a><span class="w"> </span><span class="n">current_info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XRRGetCrtcInfo</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">xdisplay</span><span class="p">,</span>
+<a id="line-941" name="line-941"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">resources</span><span class="p">,</span>
+<a id="line-942" name="line-942"></a><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">);</span>
+<a id="line-943" name="line-943"></a>
+<a id="line-944" name="line-944"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">current_info</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-945" name="line-945"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span>
+<a id="line-946" name="line-946"></a>
+<a id="line-947" name="line-947"></a><span class="w"> </span><span class="n">display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_display_get_default</span><span class="w"> </span><span class="p">();</span>
+<a id="line-948" name="line-948"></a><span class="w"> </span><span class="n">gdk_x11_display_error_trap_push</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-949" name="line-949"></a><span class="w"> </span><span class="n">status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XRRSetCrtcConfig</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">xdisplay</span><span class="p">,</span>
+<a id="line-950" name="line-950"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">resources</span><span class="p">,</span>
+<a id="line-951" name="line-951"></a><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">,</span>
+<a id="line-952" name="line-952"></a><span class="w"> </span><span class="n">current_info</span><span class="o">-&gt;</span><span class="n">timestamp</span><span class="p">,</span>
+<a id="line-953" name="line-953"></a><span class="w"> </span><span class="n">current_info</span><span class="o">-&gt;</span><span class="n">x</span><span class="p">,</span>
+<a id="line-954" name="line-954"></a><span class="w"> </span><span class="n">current_info</span><span class="o">-&gt;</span><span class="n">y</span><span class="p">,</span>
+<a id="line-955" name="line-955"></a><span class="w"> </span><span class="n">current_info</span><span class="o">-&gt;</span><span class="n">mode</span><span class="p">,</span>
+<a id="line-956" name="line-956"></a><span class="w"> </span><span class="n">current_info</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="p">,</span>
+<a id="line-957" name="line-957"></a><span class="w"> </span><span class="n">current_info</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">,</span>
+<a id="line-958" name="line-958"></a><span class="w"> </span><span class="n">current_info</span><span class="o">-&gt;</span><span class="n">noutput</span><span class="p">);</span>
+<a id="line-959" name="line-959"></a>
+<a id="line-960" name="line-960"></a><span class="w"> </span><span class="n">XRRFreeCrtcInfo</span><span class="w"> </span><span class="p">(</span><span class="n">current_info</span><span class="p">);</span>
+<a id="line-961" name="line-961"></a>
+<a id="line-962" name="line-962"></a><span class="w"> </span><span class="n">gdk_display_flush</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-963" name="line-963"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_x11_display_error_trap_pop</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">))</span>
+<a id="line-964" name="line-964"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span>
+<a id="line-965" name="line-965"></a>
+<a id="line-966" name="line-966"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">status</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">RRSetConfigSuccess</span><span class="p">)</span>
+<a id="line-967" name="line-967"></a><span class="w"> </span><span class="n">timestamp_updated</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-968" name="line-968"></a><span class="nl">out</span><span class="p">:</span>
+<a id="line-969" name="line-969"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">timestamp_updated</span><span class="p">;</span>
+<a id="line-970" name="line-970"></a><span class="cp">#else</span>
+<a id="line-971" name="line-971"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-972" name="line-972"></a><span class="cp">#endif</span>
+<a id="line-973" name="line-973"></a><span class="p">}</span>
+<a id="line-974" name="line-974"></a>
+<a id="line-975" name="line-975"></a><span class="cm">/**</span>
+<a id="line-976" name="line-976"></a><span class="cm"> * mate_rr_screen_refresh:</span>
+<a id="line-977" name="line-977"></a><span class="cm"> * @screen: a #MateRRScreen</span>
+<a id="line-978" name="line-978"></a><span class="cm"> * @error: location to store error, or %NULL</span>
+<a id="line-979" name="line-979"></a><span class="cm"> *</span>
+<a id="line-980" name="line-980"></a><span class="cm"> * Refreshes the screen configuration, and calls the screen&#39;s callback if it</span>
+<a id="line-981" name="line-981"></a><span class="cm"> * exists and if the screen&#39;s configuration changed.</span>
+<a id="line-982" name="line-982"></a><span class="cm"> *</span>
+<a id="line-983" name="line-983"></a><span class="cm"> * Return value: TRUE if the screen&#39;s configuration changed; otherwise, the</span>
+<a id="line-984" name="line-984"></a><span class="cm"> * function returns FALSE and a NULL error if the configuration didn&#39;t change,</span>
+<a id="line-985" name="line-985"></a><span class="cm"> * or FALSE and a non-NULL error if there was an error while refreshing the</span>
+<a id="line-986" name="line-986"></a><span class="cm"> * configuration.</span>
+<a id="line-987" name="line-987"></a><span class="cm"> */</span>
+<a id="line-988" name="line-988"></a><span class="n">gboolean</span>
+<a id="line-989" name="line-989"></a><span class="n">mate_rr_screen_refresh</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-990" name="line-990"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-991" name="line-991"></a><span class="p">{</span>
+<a id="line-992" name="line-992"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">refreshed</span><span class="p">;</span>
+<a id="line-993" name="line-993"></a>
+<a id="line-994" name="line-994"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-995" name="line-995"></a>
+<a id="line-996" name="line-996"></a><span class="w"> </span><span class="n">gdk_x11_display_grab</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_screen_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">gdk_screen</span><span class="p">));</span>
+<a id="line-997" name="line-997"></a>
+<a id="line-998" name="line-998"></a><span class="w"> </span><span class="n">refreshed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">screen_update</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-999" name="line-999"></a><span class="w"> </span><span class="n">force_timestamp_update</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">);</span><span class="w"> </span><span class="cm">/* this is to keep other clients from thinking that the X server re-detected things by itself - bgo#621046 */</span>
+<a id="line-1000" name="line-1000"></a>
+<a id="line-1001" name="line-1001"></a><span class="w"> </span><span class="n">gdk_x11_display_ungrab</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_screen_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">gdk_screen</span><span class="p">));</span>
+<a id="line-1002" name="line-1002"></a>
+<a id="line-1003" name="line-1003"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">refreshed</span><span class="p">;</span>
+<a id="line-1004" name="line-1004"></a><span class="p">}</span>
+<a id="line-1005" name="line-1005"></a>
+<a id="line-1006" name="line-1006"></a><span class="cm">/**</span>
+<a id="line-1007" name="line-1007"></a><span class="cm"> * mate_rr_screen_list_modes:</span>
+<a id="line-1008" name="line-1008"></a><span class="cm"> *</span>
+<a id="line-1009" name="line-1009"></a><span class="cm"> * List available XRandR modes</span>
+<a id="line-1010" name="line-1010"></a><span class="cm"> *</span>
+<a id="line-1011" name="line-1011"></a><span class="cm"> * Returns: (array zero-terminated=1) (transfer none):</span>
+<a id="line-1012" name="line-1012"></a><span class="cm"> */</span>
+<a id="line-1013" name="line-1013"></a><span class="n">MateRRMode</span><span class="w"> </span><span class="o">**</span>
+<a id="line-1014" name="line-1014"></a><span class="n">mate_rr_screen_list_modes</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">)</span>
+<a id="line-1015" name="line-1015"></a><span class="p">{</span>
+<a id="line-1016" name="line-1016"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_SCREEN</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1017" name="line-1017"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1018" name="line-1018"></a>
+<a id="line-1019" name="line-1019"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">modes</span><span class="p">;</span>
+<a id="line-1020" name="line-1020"></a><span class="p">}</span>
+<a id="line-1021" name="line-1021"></a>
+<a id="line-1022" name="line-1022"></a><span class="cm">/**</span>
+<a id="line-1023" name="line-1023"></a><span class="cm"> * mate_rr_screen_list_clone_modes:</span>
+<a id="line-1024" name="line-1024"></a><span class="cm"> *</span>
+<a id="line-1025" name="line-1025"></a><span class="cm"> * List available XRandR clone modes</span>
+<a id="line-1026" name="line-1026"></a><span class="cm"> *</span>
+<a id="line-1027" name="line-1027"></a><span class="cm"> * Returns: (array zero-terminated=1) (transfer none):</span>
+<a id="line-1028" name="line-1028"></a><span class="cm"> */</span>
+<a id="line-1029" name="line-1029"></a><span class="n">MateRRMode</span><span class="w"> </span><span class="o">**</span>
+<a id="line-1030" name="line-1030"></a><span class="n">mate_rr_screen_list_clone_modes</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">)</span>
+<a id="line-1031" name="line-1031"></a><span class="p">{</span>
+<a id="line-1032" name="line-1032"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_SCREEN</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1033" name="line-1033"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1034" name="line-1034"></a>
+<a id="line-1035" name="line-1035"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">clone_modes</span><span class="p">;</span>
+<a id="line-1036" name="line-1036"></a><span class="p">}</span>
+<a id="line-1037" name="line-1037"></a>
+<a id="line-1038" name="line-1038"></a><span class="cm">/**</span>
+<a id="line-1039" name="line-1039"></a><span class="cm"> * mate_rr_screen_list_crtcs:</span>
+<a id="line-1040" name="line-1040"></a><span class="cm"> *</span>
+<a id="line-1041" name="line-1041"></a><span class="cm"> * List all CRTCs</span>
+<a id="line-1042" name="line-1042"></a><span class="cm"> *</span>
+<a id="line-1043" name="line-1043"></a><span class="cm"> * Returns: (array zero-terminated=1) (transfer none):</span>
+<a id="line-1044" name="line-1044"></a><span class="cm"> */</span>
+<a id="line-1045" name="line-1045"></a><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">**</span>
+<a id="line-1046" name="line-1046"></a><span class="n">mate_rr_screen_list_crtcs</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">)</span>
+<a id="line-1047" name="line-1047"></a><span class="p">{</span>
+<a id="line-1048" name="line-1048"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_SCREEN</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1049" name="line-1049"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1050" name="line-1050"></a>
+<a id="line-1051" name="line-1051"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">crtcs</span><span class="p">;</span>
+<a id="line-1052" name="line-1052"></a><span class="p">}</span>
+<a id="line-1053" name="line-1053"></a>
+<a id="line-1054" name="line-1054"></a><span class="cm">/**</span>
+<a id="line-1055" name="line-1055"></a><span class="cm"> * mate_rr_screen_list_outputs:</span>
+<a id="line-1056" name="line-1056"></a><span class="cm"> *</span>
+<a id="line-1057" name="line-1057"></a><span class="cm"> * List all outputs</span>
+<a id="line-1058" name="line-1058"></a><span class="cm"> *</span>
+<a id="line-1059" name="line-1059"></a><span class="cm"> * Returns: (array zero-terminated=1) (transfer none):</span>
+<a id="line-1060" name="line-1060"></a><span class="cm"> */</span>
+<a id="line-1061" name="line-1061"></a><span class="n">MateRROutput</span><span class="w"> </span><span class="o">**</span>
+<a id="line-1062" name="line-1062"></a><span class="n">mate_rr_screen_list_outputs</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">)</span>
+<a id="line-1063" name="line-1063"></a><span class="p">{</span>
+<a id="line-1064" name="line-1064"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_SCREEN</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1065" name="line-1065"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1066" name="line-1066"></a>
+<a id="line-1067" name="line-1067"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">;</span>
+<a id="line-1068" name="line-1068"></a><span class="p">}</span>
+<a id="line-1069" name="line-1069"></a>
+<a id="line-1070" name="line-1070"></a><span class="cm">/**</span>
+<a id="line-1071" name="line-1071"></a><span class="cm"> * mate_rr_screen_get_crtc_by_id:</span>
+<a id="line-1072" name="line-1072"></a><span class="cm"> *</span>
+<a id="line-1073" name="line-1073"></a><span class="cm"> * Returns: (transfer none): the CRTC identified by @id</span>
+<a id="line-1074" name="line-1074"></a><span class="cm"> */</span>
+<a id="line-1075" name="line-1075"></a><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1076" name="line-1076"></a><span class="n">mate_rr_screen_get_crtc_by_id</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-1077" name="line-1077"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">id</span><span class="p">)</span>
+<a id="line-1078" name="line-1078"></a><span class="p">{</span>
+<a id="line-1079" name="line-1079"></a><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">**</span><span class="n">crtcs</span><span class="p">;</span>
+<a id="line-1080" name="line-1080"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-1081" name="line-1081"></a>
+<a id="line-1082" name="line-1082"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_SCREEN</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1083" name="line-1083"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1084" name="line-1084"></a>
+<a id="line-1085" name="line-1085"></a><span class="w"> </span><span class="n">crtcs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">crtcs</span><span class="p">;</span>
+<a id="line-1086" name="line-1086"></a>
+<a id="line-1087" name="line-1087"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">crtcs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-1088" name="line-1088"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1089" name="line-1089"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">crtcs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="o">-&gt;</span><span class="n">id</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">id</span><span class="p">)</span>
+<a id="line-1090" name="line-1090"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">crtcs</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-1091" name="line-1091"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1092" name="line-1092"></a>
+<a id="line-1093" name="line-1093"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1094" name="line-1094"></a><span class="p">}</span>
+<a id="line-1095" name="line-1095"></a>
+<a id="line-1096" name="line-1096"></a><span class="cm">/**</span>
+<a id="line-1097" name="line-1097"></a><span class="cm"> * mate_rr_screen_get_output_by_id:</span>
+<a id="line-1098" name="line-1098"></a><span class="cm"> *</span>
+<a id="line-1099" name="line-1099"></a><span class="cm"> * Returns: (transfer none): the output identified by @id</span>
+<a id="line-1100" name="line-1100"></a><span class="cm"> */</span>
+<a id="line-1101" name="line-1101"></a><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1102" name="line-1102"></a><span class="n">mate_rr_screen_get_output_by_id</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-1103" name="line-1103"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">id</span><span class="p">)</span>
+<a id="line-1104" name="line-1104"></a><span class="p">{</span>
+<a id="line-1105" name="line-1105"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">**</span><span class="n">outputs</span><span class="p">;</span>
+<a id="line-1106" name="line-1106"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-1107" name="line-1107"></a>
+<a id="line-1108" name="line-1108"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_SCREEN</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1109" name="line-1109"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1110" name="line-1110"></a>
+<a id="line-1111" name="line-1111"></a><span class="w"> </span><span class="n">outputs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">;</span>
+<a id="line-1112" name="line-1112"></a>
+<a id="line-1113" name="line-1113"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-1114" name="line-1114"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1115" name="line-1115"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="o">-&gt;</span><span class="n">id</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">id</span><span class="p">)</span>
+<a id="line-1116" name="line-1116"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-1117" name="line-1117"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1118" name="line-1118"></a>
+<a id="line-1119" name="line-1119"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1120" name="line-1120"></a><span class="p">}</span>
+<a id="line-1121" name="line-1121"></a>
+<a id="line-1122" name="line-1122"></a><span class="cm">/* MateRROutput */</span>
+<a id="line-1123" name="line-1123"></a><span class="k">static</span><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1124" name="line-1124"></a><span class="n">output_new</span><span class="w"> </span><span class="p">(</span><span class="n">ScreenInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">RROutput</span><span class="w"> </span><span class="n">id</span><span class="p">)</span>
+<a id="line-1125" name="line-1125"></a><span class="p">{</span>
+<a id="line-1126" name="line-1126"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slice_new0</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="p">);</span>
+<a id="line-1127" name="line-1127"></a>
+<a id="line-1128" name="line-1128"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">id</span><span class="p">;</span>
+<a id="line-1129" name="line-1129"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="p">;</span>
+<a id="line-1130" name="line-1130"></a>
+<a id="line-1131" name="line-1131"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">output</span><span class="p">;</span>
+<a id="line-1132" name="line-1132"></a><span class="p">}</span>
+<a id="line-1133" name="line-1133"></a>
+<a id="line-1134" name="line-1134"></a><span class="k">static</span><span class="w"> </span><span class="n">guint8</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1135" name="line-1135"></a><span class="n">get_property</span><span class="w"> </span><span class="p">(</span><span class="n">Display</span><span class="w"> </span><span class="o">*</span><span class="n">dpy</span><span class="p">,</span>
+<a id="line-1136" name="line-1136"></a><span class="w"> </span><span class="n">RROutput</span><span class="w"> </span><span class="n">output</span><span class="p">,</span>
+<a id="line-1137" name="line-1137"></a><span class="w"> </span><span class="n">Atom</span><span class="w"> </span><span class="n">atom</span><span class="p">,</span>
+<a id="line-1138" name="line-1138"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">len</span><span class="p">)</span>
+<a id="line-1139" name="line-1139"></a><span class="p">{</span>
+<a id="line-1140" name="line-1140"></a><span class="cp">#ifdef HAVE_RANDR</span>
+<a id="line-1141" name="line-1141"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">prop</span><span class="p">;</span>
+<a id="line-1142" name="line-1142"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">actual_format</span><span class="p">;</span>
+<a id="line-1143" name="line-1143"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="n">nitems</span><span class="p">,</span><span class="w"> </span><span class="n">bytes_after</span><span class="p">;</span>
+<a id="line-1144" name="line-1144"></a><span class="w"> </span><span class="n">Atom</span><span class="w"> </span><span class="n">actual_type</span><span class="p">;</span>
+<a id="line-1145" name="line-1145"></a><span class="w"> </span><span class="n">guint8</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="p">;</span>
+<a id="line-1146" name="line-1146"></a>
+<a id="line-1147" name="line-1147"></a><span class="w"> </span><span class="n">XRRGetOutputProperty</span><span class="w"> </span><span class="p">(</span><span class="n">dpy</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="p">,</span><span class="w"> </span><span class="n">atom</span><span class="p">,</span>
+<a id="line-1148" name="line-1148"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="n">False</span><span class="p">,</span><span class="w"> </span><span class="n">False</span><span class="p">,</span>
+<a id="line-1149" name="line-1149"></a><span class="w"> </span><span class="n">AnyPropertyType</span><span class="p">,</span>
+<a id="line-1150" name="line-1150"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">actual_type</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">actual_format</span><span class="p">,</span>
+<a id="line-1151" name="line-1151"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">nitems</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">bytes_after</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">prop</span><span class="p">);</span>
+<a id="line-1152" name="line-1152"></a>
+<a id="line-1153" name="line-1153"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">actual_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">XA_INTEGER</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">actual_format</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">8</span><span class="p">)</span>
+<a id="line-1154" name="line-1154"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1155" name="line-1155"></a><span class="cp">#ifdef GLIB_VERSION_2_68</span>
+<a id="line-1156" name="line-1156"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_memdup2</span><span class="w"> </span><span class="p">(</span><span class="n">prop</span><span class="p">,</span><span class="w"> </span><span class="n">nitems</span><span class="p">);</span>
+<a id="line-1157" name="line-1157"></a><span class="cp">#else</span>
+<a id="line-1158" name="line-1158"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_memdup</span><span class="w"> </span><span class="p">(</span><span class="n">prop</span><span class="p">,</span><span class="w"> </span><span class="n">nitems</span><span class="p">);</span>
+<a id="line-1159" name="line-1159"></a><span class="cp">#endif</span>
+<a id="line-1160" name="line-1160"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">len</span><span class="p">)</span>
+<a id="line-1161" name="line-1161"></a><span class="w"> </span><span class="o">*</span><span class="n">len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">nitems</span><span class="p">;</span>
+<a id="line-1162" name="line-1162"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1163" name="line-1163"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1164" name="line-1164"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1165" name="line-1165"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1166" name="line-1166"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1167" name="line-1167"></a>
+<a id="line-1168" name="line-1168"></a><span class="w"> </span><span class="n">XFree</span><span class="w"> </span><span class="p">(</span><span class="n">prop</span><span class="p">);</span>
+<a id="line-1169" name="line-1169"></a>
+<a id="line-1170" name="line-1170"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-1171" name="line-1171"></a><span class="cp">#else</span>
+<a id="line-1172" name="line-1172"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1173" name="line-1173"></a><span class="cp">#endif </span><span class="cm">/* HAVE_RANDR */</span>
+<a id="line-1174" name="line-1174"></a><span class="p">}</span>
+<a id="line-1175" name="line-1175"></a>
+<a id="line-1176" name="line-1176"></a><span class="k">static</span><span class="w"> </span><span class="n">guint8</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1177" name="line-1177"></a><span class="n">read_edid_data</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">len</span><span class="p">)</span>
+<a id="line-1178" name="line-1178"></a><span class="p">{</span>
+<a id="line-1179" name="line-1179"></a><span class="w"> </span><span class="n">Atom</span><span class="w"> </span><span class="n">edid_atom</span><span class="p">;</span>
+<a id="line-1180" name="line-1180"></a><span class="w"> </span><span class="n">guint8</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="p">;</span>
+<a id="line-1181" name="line-1181"></a>
+<a id="line-1182" name="line-1182"></a><span class="w"> </span><span class="n">edid_atom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XInternAtom</span><span class="w"> </span><span class="p">(</span><span class="n">DISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;EDID&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1183" name="line-1183"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_property</span><span class="w"> </span><span class="p">(</span><span class="n">DISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="p">),</span>
+<a id="line-1184" name="line-1184"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">,</span><span class="w"> </span><span class="n">edid_atom</span><span class="p">,</span><span class="w"> </span><span class="n">len</span><span class="p">);</span>
+<a id="line-1185" name="line-1185"></a>
+<a id="line-1186" name="line-1186"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">result</span><span class="p">)</span>
+<a id="line-1187" name="line-1187"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1188" name="line-1188"></a><span class="w"> </span><span class="n">edid_atom</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XInternAtom</span><span class="w"> </span><span class="p">(</span><span class="n">DISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;EDID_DATA&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1189" name="line-1189"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_property</span><span class="w"> </span><span class="p">(</span><span class="n">DISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="p">),</span>
+<a id="line-1190" name="line-1190"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">,</span><span class="w"> </span><span class="n">edid_atom</span><span class="p">,</span><span class="w"> </span><span class="n">len</span><span class="p">);</span>
+<a id="line-1191" name="line-1191"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1192" name="line-1192"></a>
+<a id="line-1193" name="line-1193"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="p">)</span>
+<a id="line-1194" name="line-1194"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1195" name="line-1195"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">len</span><span class="w"> </span><span class="o">%</span><span class="w"> </span><span class="mi">128</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-1196" name="line-1196"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-1197" name="line-1197"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1198" name="line-1198"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="p">);</span>
+<a id="line-1199" name="line-1199"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1200" name="line-1200"></a>
+<a id="line-1201" name="line-1201"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1202" name="line-1202"></a><span class="p">}</span>
+<a id="line-1203" name="line-1203"></a>
+<a id="line-1204" name="line-1204"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1205" name="line-1205"></a><span class="n">get_connector_type_string</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">)</span>
+<a id="line-1206" name="line-1206"></a><span class="p">{</span>
+<a id="line-1207" name="line-1207"></a><span class="cp">#ifdef HAVE_RANDR</span>
+<a id="line-1208" name="line-1208"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="p">;</span>
+<a id="line-1209" name="line-1209"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">prop</span><span class="p">;</span>
+<a id="line-1210" name="line-1210"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">actual_format</span><span class="p">;</span>
+<a id="line-1211" name="line-1211"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="n">nitems</span><span class="p">,</span><span class="w"> </span><span class="n">bytes_after</span><span class="p">;</span>
+<a id="line-1212" name="line-1212"></a><span class="w"> </span><span class="n">Atom</span><span class="w"> </span><span class="n">actual_type</span><span class="p">;</span>
+<a id="line-1213" name="line-1213"></a><span class="w"> </span><span class="n">Atom</span><span class="w"> </span><span class="n">connector_type</span><span class="p">;</span>
+<a id="line-1214" name="line-1214"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">connector_type_str</span><span class="p">;</span>
+<a id="line-1215" name="line-1215"></a>
+<a id="line-1216" name="line-1216"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1217" name="line-1217"></a>
+<a id="line-1218" name="line-1218"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">XRRGetOutputProperty</span><span class="w"> </span><span class="p">(</span><span class="n">DISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="p">),</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">connector_type_atom</span><span class="p">,</span>
+<a id="line-1219" name="line-1219"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="n">False</span><span class="p">,</span><span class="w"> </span><span class="n">False</span><span class="p">,</span>
+<a id="line-1220" name="line-1220"></a><span class="w"> </span><span class="n">AnyPropertyType</span><span class="p">,</span>
+<a id="line-1221" name="line-1221"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">actual_type</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">actual_format</span><span class="p">,</span>
+<a id="line-1222" name="line-1222"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">nitems</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">bytes_after</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">prop</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">Success</span><span class="p">)</span>
+<a id="line-1223" name="line-1223"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1224" name="line-1224"></a>
+<a id="line-1225" name="line-1225"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="n">actual_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">XA_ATOM</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">actual_format</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">32</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">nitems</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="p">))</span>
+<a id="line-1226" name="line-1226"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span>
+<a id="line-1227" name="line-1227"></a>
+<a id="line-1228" name="line-1228"></a><span class="w"> </span><span class="n">connector_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="p">((</span><span class="n">Atom</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">prop</span><span class="p">);</span>
+<a id="line-1229" name="line-1229"></a>
+<a id="line-1230" name="line-1230"></a><span class="w"> </span><span class="n">connector_type_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XGetAtomName</span><span class="w"> </span><span class="p">(</span><span class="n">DISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="p">),</span><span class="w"> </span><span class="n">connector_type</span><span class="p">);</span>
+<a id="line-1231" name="line-1231"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">connector_type_str</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1232" name="line-1232"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">connector_type_str</span><span class="p">);</span><span class="w"> </span><span class="cm">/* so the caller can g_free() it */</span>
+<a id="line-1233" name="line-1233"></a><span class="w"> </span><span class="n">XFree</span><span class="w"> </span><span class="p">(</span><span class="n">connector_type_str</span><span class="p">);</span>
+<a id="line-1234" name="line-1234"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1235" name="line-1235"></a>
+<a id="line-1236" name="line-1236"></a><span class="nl">out</span><span class="p">:</span>
+<a id="line-1237" name="line-1237"></a>
+<a id="line-1238" name="line-1238"></a><span class="w"> </span><span class="n">XFree</span><span class="w"> </span><span class="p">(</span><span class="n">prop</span><span class="p">);</span>
+<a id="line-1239" name="line-1239"></a>
+<a id="line-1240" name="line-1240"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-1241" name="line-1241"></a><span class="cp">#else</span>
+<a id="line-1242" name="line-1242"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1243" name="line-1243"></a><span class="cp">#endif</span>
+<a id="line-1244" name="line-1244"></a><span class="p">}</span>
+<a id="line-1245" name="line-1245"></a>
+<a id="line-1246" name="line-1246"></a><span class="cp">#ifdef HAVE_RANDR</span>
+<a id="line-1247" name="line-1247"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-1248" name="line-1248"></a><span class="n">output_initialize</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">,</span><span class="w"> </span><span class="n">XRRScreenResources</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-1249" name="line-1249"></a><span class="p">{</span>
+<a id="line-1250" name="line-1250"></a><span class="w"> </span><span class="n">XRROutputInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XRRGetOutputInfo</span><span class="w"> </span><span class="p">(</span>
+<a id="line-1251" name="line-1251"></a><span class="w"> </span><span class="n">DISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="p">),</span><span class="w"> </span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">);</span>
+<a id="line-1252" name="line-1252"></a><span class="w"> </span><span class="n">GPtrArray</span><span class="w"> </span><span class="o">*</span><span class="n">a</span><span class="p">;</span>
+<a id="line-1253" name="line-1253"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-1254" name="line-1254"></a>
+<a id="line-1255" name="line-1255"></a><span class="cp">#if 0</span>
+<a id="line-1256" name="line-1256"></a><span class="c"> g_print (&quot;Output %lx Timestamp: %u\n&quot;, output-&gt;id, (guint32)info-&gt;timestamp);</span>
+<a id="line-1257" name="line-1257"></a><span class="cp">#endif</span>
+<a id="line-1258" name="line-1258"></a>
+<a id="line-1259" name="line-1259"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">info</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">info</span><span class="p">)</span>
+<a id="line-1260" name="line-1260"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1261" name="line-1261"></a><span class="w"> </span><span class="cm">/* FIXME: see the comment in crtc_initialize() */</span>
+<a id="line-1262" name="line-1262"></a><span class="w"> </span><span class="cm">/* Translators: here, an &quot;output&quot; is a video output */</span>
+<a id="line-1263" name="line-1263"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR_RANDR_ERROR</span><span class="p">,</span>
+<a id="line-1264" name="line-1264"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;could not get information about output %d&quot;</span><span class="p">),</span>
+<a id="line-1265" name="line-1265"></a><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="p">)</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">);</span>
+<a id="line-1266" name="line-1266"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1267" name="line-1267"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1268" name="line-1268"></a>
+<a id="line-1269" name="line-1269"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">);</span><span class="w"> </span><span class="cm">/* FIXME: what is nameLen used for? */</span>
+<a id="line-1270" name="line-1270"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">current_crtc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">crtc_by_id</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">crtc</span><span class="p">);</span>
+<a id="line-1271" name="line-1271"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">width_mm</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">mm_width</span><span class="p">;</span>
+<a id="line-1272" name="line-1272"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">height_mm</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">mm_height</span><span class="p">;</span>
+<a id="line-1273" name="line-1273"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">connected</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">connection</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">RR_Connected</span><span class="p">);</span>
+<a id="line-1274" name="line-1274"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">connector_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_connector_type_string</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="p">);</span>
+<a id="line-1275" name="line-1275"></a>
+<a id="line-1276" name="line-1276"></a><span class="w"> </span><span class="cm">/* Possible crtcs */</span>
+<a id="line-1277" name="line-1277"></a><span class="w"> </span><span class="n">a</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1278" name="line-1278"></a>
+<a id="line-1279" name="line-1279"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">ncrtc</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-1280" name="line-1280"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1281" name="line-1281"></a><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">crtc_by_id</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">crtcs</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span>
+<a id="line-1282" name="line-1282"></a>
+<a id="line-1283" name="line-1283"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="p">)</span>
+<a id="line-1284" name="line-1284"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="n">crtc</span><span class="p">);</span>
+<a id="line-1285" name="line-1285"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1286" name="line-1286"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1287" name="line-1287"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">possible_crtcs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">**</span><span class="p">)</span><span class="n">g_ptr_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1288" name="line-1288"></a>
+<a id="line-1289" name="line-1289"></a><span class="w"> </span><span class="cm">/* Clones */</span>
+<a id="line-1290" name="line-1290"></a><span class="w"> </span><span class="n">a</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1291" name="line-1291"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">nclone</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-1292" name="line-1292"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1293" name="line-1293"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">mate_rr_output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_output_by_id</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">clones</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span>
+<a id="line-1294" name="line-1294"></a>
+<a id="line-1295" name="line-1295"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mate_rr_output</span><span class="p">)</span>
+<a id="line-1296" name="line-1296"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="n">mate_rr_output</span><span class="p">);</span>
+<a id="line-1297" name="line-1297"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1298" name="line-1298"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1299" name="line-1299"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">clones</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">**</span><span class="p">)</span><span class="n">g_ptr_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1300" name="line-1300"></a>
+<a id="line-1301" name="line-1301"></a><span class="w"> </span><span class="cm">/* Modes */</span>
+<a id="line-1302" name="line-1302"></a><span class="w"> </span><span class="n">a</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1303" name="line-1303"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">nmode</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-1304" name="line-1304"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1305" name="line-1305"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mode_by_id</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">modes</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span>
+<a id="line-1306" name="line-1306"></a>
+<a id="line-1307" name="line-1307"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="p">)</span>
+<a id="line-1308" name="line-1308"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="n">mode</span><span class="p">);</span>
+<a id="line-1309" name="line-1309"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1310" name="line-1310"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1311" name="line-1311"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">modes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">**</span><span class="p">)</span><span class="n">g_ptr_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1312" name="line-1312"></a>
+<a id="line-1313" name="line-1313"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">n_preferred</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">npreferred</span><span class="p">;</span>
+<a id="line-1314" name="line-1314"></a>
+<a id="line-1315" name="line-1315"></a><span class="w"> </span><span class="cm">/* Edid data */</span>
+<a id="line-1316" name="line-1316"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">edid_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">read_edid_data</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">edid_size</span><span class="p">);</span>
+<a id="line-1317" name="line-1317"></a>
+<a id="line-1318" name="line-1318"></a><span class="w"> </span><span class="n">XRRFreeOutputInfo</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">);</span>
+<a id="line-1319" name="line-1319"></a>
+<a id="line-1320" name="line-1320"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1321" name="line-1321"></a><span class="p">}</span>
+<a id="line-1322" name="line-1322"></a><span class="cp">#endif </span><span class="cm">/* HAVE_RANDR */</span>
+<a id="line-1323" name="line-1323"></a>
+<a id="line-1324" name="line-1324"></a><span class="k">static</span><span class="w"> </span><span class="n">MateRROutput</span><span class="o">*</span>
+<a id="line-1325" name="line-1325"></a><span class="n">output_copy</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">from</span><span class="p">)</span>
+<a id="line-1326" name="line-1326"></a><span class="p">{</span>
+<a id="line-1327" name="line-1327"></a><span class="w"> </span><span class="n">GPtrArray</span><span class="w"> </span><span class="o">*</span><span class="n">array</span><span class="p">;</span>
+<a id="line-1328" name="line-1328"></a><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">**</span><span class="n">p_crtc</span><span class="p">;</span>
+<a id="line-1329" name="line-1329"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">**</span><span class="n">p_output</span><span class="p">;</span>
+<a id="line-1330" name="line-1330"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">**</span><span class="n">p_mode</span><span class="p">;</span>
+<a id="line-1331" name="line-1331"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slice_new0</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="p">);</span>
+<a id="line-1332" name="line-1332"></a>
+<a id="line-1333" name="line-1333"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">;</span>
+<a id="line-1334" name="line-1334"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">info</span><span class="p">;</span>
+<a id="line-1335" name="line-1335"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">from</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">);</span>
+<a id="line-1336" name="line-1336"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">current_crtc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">current_crtc</span><span class="p">;</span>
+<a id="line-1337" name="line-1337"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">width_mm</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">width_mm</span><span class="p">;</span>
+<a id="line-1338" name="line-1338"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">height_mm</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">height_mm</span><span class="p">;</span>
+<a id="line-1339" name="line-1339"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">connected</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">connected</span><span class="p">;</span>
+<a id="line-1340" name="line-1340"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">n_preferred</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">n_preferred</span><span class="p">;</span>
+<a id="line-1341" name="line-1341"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">connector_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">from</span><span class="o">-&gt;</span><span class="n">connector_type</span><span class="p">);</span>
+<a id="line-1342" name="line-1342"></a>
+<a id="line-1343" name="line-1343"></a><span class="w"> </span><span class="n">array</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1344" name="line-1344"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">p_crtc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">possible_crtcs</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">p_crtc</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">p_crtc</span><span class="o">++</span><span class="p">)</span>
+<a id="line-1345" name="line-1345"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1346" name="line-1346"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">array</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">p_crtc</span><span class="p">);</span>
+<a id="line-1347" name="line-1347"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1348" name="line-1348"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">possible_crtcs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="o">**</span><span class="p">)</span><span class="w"> </span><span class="n">g_ptr_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">array</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1349" name="line-1349"></a>
+<a id="line-1350" name="line-1350"></a><span class="w"> </span><span class="n">array</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1351" name="line-1351"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">p_output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">clones</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">p_output</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">p_output</span><span class="o">++</span><span class="p">)</span>
+<a id="line-1352" name="line-1352"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1353" name="line-1353"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">array</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">p_output</span><span class="p">);</span>
+<a id="line-1354" name="line-1354"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1355" name="line-1355"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">clones</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="o">**</span><span class="p">)</span><span class="w"> </span><span class="n">g_ptr_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">array</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1356" name="line-1356"></a>
+<a id="line-1357" name="line-1357"></a><span class="w"> </span><span class="n">array</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1358" name="line-1358"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">p_mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">modes</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">p_mode</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">p_mode</span><span class="o">++</span><span class="p">)</span>
+<a id="line-1359" name="line-1359"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1360" name="line-1360"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">array</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">p_mode</span><span class="p">);</span>
+<a id="line-1361" name="line-1361"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1362" name="line-1362"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">modes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRMode</span><span class="o">**</span><span class="p">)</span><span class="w"> </span><span class="n">g_ptr_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">array</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1363" name="line-1363"></a>
+<a id="line-1364" name="line-1364"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">edid_size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">edid_size</span><span class="p">;</span>
+<a id="line-1365" name="line-1365"></a><span class="cp">#ifdef GLIB_VERSION_2_68</span>
+<a id="line-1366" name="line-1366"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">edid_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_memdup2</span><span class="w"> </span><span class="p">(</span><span class="n">from</span><span class="o">-&gt;</span><span class="n">edid_data</span><span class="p">,</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">edid_size</span><span class="p">);</span>
+<a id="line-1367" name="line-1367"></a><span class="cp">#else</span>
+<a id="line-1368" name="line-1368"></a><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">edid_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_memdup</span><span class="w"> </span><span class="p">(</span><span class="n">from</span><span class="o">-&gt;</span><span class="n">edid_data</span><span class="p">,</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">edid_size</span><span class="p">);</span>
+<a id="line-1369" name="line-1369"></a><span class="cp">#endif</span>
+<a id="line-1370" name="line-1370"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">output</span><span class="p">;</span>
+<a id="line-1371" name="line-1371"></a><span class="p">}</span>
+<a id="line-1372" name="line-1372"></a>
+<a id="line-1373" name="line-1373"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1374" name="line-1374"></a><span class="n">output_free</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">)</span>
+<a id="line-1375" name="line-1375"></a><span class="p">{</span>
+<a id="line-1376" name="line-1376"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">clones</span><span class="p">);</span>
+<a id="line-1377" name="line-1377"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">modes</span><span class="p">);</span>
+<a id="line-1378" name="line-1378"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">possible_crtcs</span><span class="p">);</span>
+<a id="line-1379" name="line-1379"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">edid_data</span><span class="p">);</span>
+<a id="line-1380" name="line-1380"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">);</span>
+<a id="line-1381" name="line-1381"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">connector_type</span><span class="p">);</span>
+<a id="line-1382" name="line-1382"></a><span class="w"> </span><span class="n">g_slice_free</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="p">);</span>
+<a id="line-1383" name="line-1383"></a><span class="p">}</span>
+<a id="line-1384" name="line-1384"></a>
+<a id="line-1385" name="line-1385"></a><span class="n">guint32</span>
+<a id="line-1386" name="line-1386"></a><span class="n">mate_rr_output_get_id</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">)</span>
+<a id="line-1387" name="line-1387"></a><span class="p">{</span>
+<a id="line-1388" name="line-1388"></a><span class="w"> </span><span class="n">g_assert</span><span class="p">(</span><span class="n">output</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1389" name="line-1389"></a>
+<a id="line-1390" name="line-1390"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">;</span>
+<a id="line-1391" name="line-1391"></a><span class="p">}</span>
+<a id="line-1392" name="line-1392"></a>
+<a id="line-1393" name="line-1393"></a><span class="k">const</span><span class="w"> </span><span class="n">guint8</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1394" name="line-1394"></a><span class="n">mate_rr_output_get_edid_data</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">)</span>
+<a id="line-1395" name="line-1395"></a><span class="p">{</span>
+<a id="line-1396" name="line-1396"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1397" name="line-1397"></a>
+<a id="line-1398" name="line-1398"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">edid_data</span><span class="p">;</span>
+<a id="line-1399" name="line-1399"></a><span class="p">}</span>
+<a id="line-1400" name="line-1400"></a>
+<a id="line-1401" name="line-1401"></a><span class="cm">/**</span>
+<a id="line-1402" name="line-1402"></a><span class="cm"> * mate_rr_screen_get_output_by_name:</span>
+<a id="line-1403" name="line-1403"></a><span class="cm"> *</span>
+<a id="line-1404" name="line-1404"></a><span class="cm"> * Returns: (transfer none): the output identified by @name</span>
+<a id="line-1405" name="line-1405"></a><span class="cm"> */</span>
+<a id="line-1406" name="line-1406"></a><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1407" name="line-1407"></a><span class="n">mate_rr_screen_get_output_by_name</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-1408" name="line-1408"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">)</span>
+<a id="line-1409" name="line-1409"></a><span class="p">{</span>
+<a id="line-1410" name="line-1410"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-1411" name="line-1411"></a>
+<a id="line-1412" name="line-1412"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_SCREEN</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1413" name="line-1413"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1414" name="line-1414"></a>
+<a id="line-1415" name="line-1415"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-1416" name="line-1416"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1417" name="line-1417"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-1418" name="line-1418"></a>
+<a id="line-1419" name="line-1419"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-1420" name="line-1420"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">output</span><span class="p">;</span>
+<a id="line-1421" name="line-1421"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1422" name="line-1422"></a>
+<a id="line-1423" name="line-1423"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1424" name="line-1424"></a><span class="p">}</span>
+<a id="line-1425" name="line-1425"></a>
+<a id="line-1426" name="line-1426"></a><span class="cm">/**</span>
+<a id="line-1427" name="line-1427"></a><span class="cm"> * mate_rr_output_get_crtc:</span>
+<a id="line-1428" name="line-1428"></a><span class="cm"> * @output: a #MateRROutput</span>
+<a id="line-1429" name="line-1429"></a><span class="cm"> * Returns: (transfer none):</span>
+<a id="line-1430" name="line-1430"></a><span class="cm"> */</span>
+<a id="line-1431" name="line-1431"></a><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1432" name="line-1432"></a><span class="n">mate_rr_output_get_crtc</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">)</span>
+<a id="line-1433" name="line-1433"></a><span class="p">{</span>
+<a id="line-1434" name="line-1434"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1435" name="line-1435"></a>
+<a id="line-1436" name="line-1436"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">current_crtc</span><span class="p">;</span>
+<a id="line-1437" name="line-1437"></a><span class="p">}</span>
+<a id="line-1438" name="line-1438"></a>
+<a id="line-1439" name="line-1439"></a><span class="cm">/**</span>
+<a id="line-1440" name="line-1440"></a><span class="cm"> * mate_rr_output_get_possible_crtcs:</span>
+<a id="line-1441" name="line-1441"></a><span class="cm"> * @output: a #MateRROutput</span>
+<a id="line-1442" name="line-1442"></a><span class="cm"> * Returns: (array zero-terminated=1) (transfer none):</span>
+<a id="line-1443" name="line-1443"></a><span class="cm"> */</span>
+<a id="line-1444" name="line-1444"></a><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">**</span>
+<a id="line-1445" name="line-1445"></a><span class="n">mate_rr_output_get_possible_crtcs</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">)</span>
+<a id="line-1446" name="line-1446"></a><span class="p">{</span>
+<a id="line-1447" name="line-1447"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1448" name="line-1448"></a>
+<a id="line-1449" name="line-1449"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">possible_crtcs</span><span class="p">;</span>
+<a id="line-1450" name="line-1450"></a><span class="p">}</span>
+<a id="line-1451" name="line-1451"></a>
+<a id="line-1452" name="line-1452"></a><span class="cm">/* Returns NULL if the ConnectorType property is not available */</span>
+<a id="line-1453" name="line-1453"></a><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1454" name="line-1454"></a><span class="n">mate_rr_output_get_connector_type</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">)</span>
+<a id="line-1455" name="line-1455"></a><span class="p">{</span>
+<a id="line-1456" name="line-1456"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1457" name="line-1457"></a>
+<a id="line-1458" name="line-1458"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">connector_type</span><span class="p">;</span>
+<a id="line-1459" name="line-1459"></a><span class="p">}</span>
+<a id="line-1460" name="line-1460"></a>
+<a id="line-1461" name="line-1461"></a><span class="n">gboolean</span>
+<a id="line-1462" name="line-1462"></a><span class="n">_mate_rr_output_name_is_laptop</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">)</span>
+<a id="line-1463" name="line-1463"></a><span class="p">{</span>
+<a id="line-1464" name="line-1464"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">name</span><span class="p">)</span>
+<a id="line-1465" name="line-1465"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1466" name="line-1466"></a>
+<a id="line-1467" name="line-1467"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strstr</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;lvds&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="cm">/* Most drivers use an &quot;LVDS&quot; prefix... */</span>
+<a id="line-1468" name="line-1468"></a><span class="w"> </span><span class="n">strstr</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;LVDS&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">||</span>
+<a id="line-1469" name="line-1469"></a><span class="w"> </span><span class="n">strstr</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Lvds&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">||</span>
+<a id="line-1470" name="line-1470"></a><span class="w"> </span><span class="n">strstr</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;LCD&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="cm">/* ... but fglrx uses &quot;LCD&quot; in some versions. Shoot me now, kthxbye. */</span>
+<a id="line-1471" name="line-1471"></a><span class="w"> </span><span class="n">strstr</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;eDP&quot;</span><span class="p">))</span><span class="w"> </span><span class="cm">/* eDP is for internal laptop panel connections */</span>
+<a id="line-1472" name="line-1472"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1473" name="line-1473"></a>
+<a id="line-1474" name="line-1474"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1475" name="line-1475"></a><span class="p">}</span>
+<a id="line-1476" name="line-1476"></a>
+<a id="line-1477" name="line-1477"></a><span class="n">gboolean</span>
+<a id="line-1478" name="line-1478"></a><span class="n">mate_rr_output_is_laptop</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">)</span>
+<a id="line-1479" name="line-1479"></a><span class="p">{</span>
+<a id="line-1480" name="line-1480"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1481" name="line-1481"></a>
+<a id="line-1482" name="line-1482"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">connected</span><span class="p">)</span>
+<a id="line-1483" name="line-1483"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1484" name="line-1484"></a>
+<a id="line-1485" name="line-1485"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_strcmp0</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">connector_type</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_CONNECTOR_TYPE_PANEL</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-1486" name="line-1486"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1487" name="line-1487"></a>
+<a id="line-1488" name="line-1488"></a><span class="w"> </span><span class="cm">/* Fallback (see https://bugs.freedesktop.org/show_bug.cgi?id=26736) */</span>
+<a id="line-1489" name="line-1489"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">_mate_rr_output_name_is_laptop</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">);</span>
+<a id="line-1490" name="line-1490"></a><span class="p">}</span>
+<a id="line-1491" name="line-1491"></a>
+<a id="line-1492" name="line-1492"></a><span class="cm">/**</span>
+<a id="line-1493" name="line-1493"></a><span class="cm"> * mate_rr_output_get_current_mode:</span>
+<a id="line-1494" name="line-1494"></a><span class="cm"> * @output: a #MateRROutput</span>
+<a id="line-1495" name="line-1495"></a><span class="cm"> * Returns: (transfer none): the current mode of this output</span>
+<a id="line-1496" name="line-1496"></a><span class="cm"> */</span>
+<a id="line-1497" name="line-1497"></a><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1498" name="line-1498"></a><span class="n">mate_rr_output_get_current_mode</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">)</span>
+<a id="line-1499" name="line-1499"></a><span class="p">{</span>
+<a id="line-1500" name="line-1500"></a><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">;</span>
+<a id="line-1501" name="line-1501"></a>
+<a id="line-1502" name="line-1502"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1503" name="line-1503"></a>
+<a id="line-1504" name="line-1504"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">crtc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_output_get_crtc</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="p">)))</span>
+<a id="line-1505" name="line-1505"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mate_rr_crtc_get_current_mode</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="p">);</span>
+<a id="line-1506" name="line-1506"></a>
+<a id="line-1507" name="line-1507"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1508" name="line-1508"></a><span class="p">}</span>
+<a id="line-1509" name="line-1509"></a>
+<a id="line-1510" name="line-1510"></a><span class="cm">/**</span>
+<a id="line-1511" name="line-1511"></a><span class="cm"> * mate_rr_output_get_position:</span>
+<a id="line-1512" name="line-1512"></a><span class="cm"> * @output: a #MateRROutput</span>
+<a id="line-1513" name="line-1513"></a><span class="cm"> * @x: (out) (allow-none):</span>
+<a id="line-1514" name="line-1514"></a><span class="cm"> * @y: (out) (allow-none):</span>
+<a id="line-1515" name="line-1515"></a><span class="cm"> */</span>
+<a id="line-1516" name="line-1516"></a><span class="kt">void</span>
+<a id="line-1517" name="line-1517"></a><span class="n">mate_rr_output_get_position</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">,</span>
+<a id="line-1518" name="line-1518"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span>
+<a id="line-1519" name="line-1519"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">)</span>
+<a id="line-1520" name="line-1520"></a><span class="p">{</span>
+<a id="line-1521" name="line-1521"></a><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">;</span>
+<a id="line-1522" name="line-1522"></a>
+<a id="line-1523" name="line-1523"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1524" name="line-1524"></a>
+<a id="line-1525" name="line-1525"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">crtc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_output_get_crtc</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="p">)))</span>
+<a id="line-1526" name="line-1526"></a><span class="w"> </span><span class="n">mate_rr_crtc_get_position</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">);</span>
+<a id="line-1527" name="line-1527"></a><span class="p">}</span>
+<a id="line-1528" name="line-1528"></a>
+<a id="line-1529" name="line-1529"></a><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1530" name="line-1530"></a><span class="n">mate_rr_output_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">)</span>
+<a id="line-1531" name="line-1531"></a><span class="p">{</span>
+<a id="line-1532" name="line-1532"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1533" name="line-1533"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">;</span>
+<a id="line-1534" name="line-1534"></a><span class="p">}</span>
+<a id="line-1535" name="line-1535"></a>
+<a id="line-1536" name="line-1536"></a><span class="kt">int</span>
+<a id="line-1537" name="line-1537"></a><span class="n">mate_rr_output_get_width_mm</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">)</span>
+<a id="line-1538" name="line-1538"></a><span class="p">{</span>
+<a id="line-1539" name="line-1539"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1540" name="line-1540"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">width_mm</span><span class="p">;</span>
+<a id="line-1541" name="line-1541"></a><span class="p">}</span>
+<a id="line-1542" name="line-1542"></a>
+<a id="line-1543" name="line-1543"></a><span class="kt">int</span>
+<a id="line-1544" name="line-1544"></a><span class="n">mate_rr_output_get_height_mm</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">)</span>
+<a id="line-1545" name="line-1545"></a><span class="p">{</span>
+<a id="line-1546" name="line-1546"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1547" name="line-1547"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">height_mm</span><span class="p">;</span>
+<a id="line-1548" name="line-1548"></a><span class="p">}</span>
+<a id="line-1549" name="line-1549"></a>
+<a id="line-1550" name="line-1550"></a><span class="cm">/**</span>
+<a id="line-1551" name="line-1551"></a><span class="cm"> * mate_rr_output_get_preferred_mode:</span>
+<a id="line-1552" name="line-1552"></a><span class="cm"> * @output: a #MateRROutput</span>
+<a id="line-1553" name="line-1553"></a><span class="cm"> * Returns: (transfer none):</span>
+<a id="line-1554" name="line-1554"></a><span class="cm"> */</span>
+<a id="line-1555" name="line-1555"></a><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1556" name="line-1556"></a><span class="n">mate_rr_output_get_preferred_mode</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">)</span>
+<a id="line-1557" name="line-1557"></a><span class="p">{</span>
+<a id="line-1558" name="line-1558"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1559" name="line-1559"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">n_preferred</span><span class="p">)</span>
+<a id="line-1560" name="line-1560"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">modes</span><span class="p">[</span><span class="mi">0</span><span class="p">];</span>
+<a id="line-1561" name="line-1561"></a>
+<a id="line-1562" name="line-1562"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1563" name="line-1563"></a><span class="p">}</span>
+<a id="line-1564" name="line-1564"></a>
+<a id="line-1565" name="line-1565"></a><span class="cm">/**</span>
+<a id="line-1566" name="line-1566"></a><span class="cm"> * mate_rr_output_list_modes:</span>
+<a id="line-1567" name="line-1567"></a><span class="cm"> * @output: a #MateRROutput</span>
+<a id="line-1568" name="line-1568"></a><span class="cm"> * Returns: (array zero-terminated=1) (transfer none):</span>
+<a id="line-1569" name="line-1569"></a><span class="cm"> */</span>
+<a id="line-1570" name="line-1570"></a>
+<a id="line-1571" name="line-1571"></a><span class="n">MateRRMode</span><span class="w"> </span><span class="o">**</span>
+<a id="line-1572" name="line-1572"></a><span class="n">mate_rr_output_list_modes</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">)</span>
+<a id="line-1573" name="line-1573"></a><span class="p">{</span>
+<a id="line-1574" name="line-1574"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1575" name="line-1575"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">modes</span><span class="p">;</span>
+<a id="line-1576" name="line-1576"></a><span class="p">}</span>
+<a id="line-1577" name="line-1577"></a>
+<a id="line-1578" name="line-1578"></a><span class="n">gboolean</span>
+<a id="line-1579" name="line-1579"></a><span class="n">mate_rr_output_is_connected</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">)</span>
+<a id="line-1580" name="line-1580"></a><span class="p">{</span>
+<a id="line-1581" name="line-1581"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1582" name="line-1582"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">connected</span><span class="p">;</span>
+<a id="line-1583" name="line-1583"></a><span class="p">}</span>
+<a id="line-1584" name="line-1584"></a>
+<a id="line-1585" name="line-1585"></a><span class="n">gboolean</span>
+<a id="line-1586" name="line-1586"></a><span class="n">mate_rr_output_supports_mode</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">,</span>
+<a id="line-1587" name="line-1587"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="p">)</span>
+<a id="line-1588" name="line-1588"></a><span class="p">{</span>
+<a id="line-1589" name="line-1589"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-1590" name="line-1590"></a>
+<a id="line-1591" name="line-1591"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1592" name="line-1592"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1593" name="line-1593"></a>
+<a id="line-1594" name="line-1594"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">modes</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-1595" name="line-1595"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1596" name="line-1596"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">modes</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">mode</span><span class="p">)</span>
+<a id="line-1597" name="line-1597"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1598" name="line-1598"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1599" name="line-1599"></a>
+<a id="line-1600" name="line-1600"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1601" name="line-1601"></a><span class="p">}</span>
+<a id="line-1602" name="line-1602"></a>
+<a id="line-1603" name="line-1603"></a><span class="n">gboolean</span>
+<a id="line-1604" name="line-1604"></a><span class="n">mate_rr_output_can_clone</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">,</span>
+<a id="line-1605" name="line-1605"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">clone</span><span class="p">)</span>
+<a id="line-1606" name="line-1606"></a><span class="p">{</span>
+<a id="line-1607" name="line-1607"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-1608" name="line-1608"></a>
+<a id="line-1609" name="line-1609"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1610" name="line-1610"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">clone</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1611" name="line-1611"></a>
+<a id="line-1612" name="line-1612"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">clones</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-1613" name="line-1613"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1614" name="line-1614"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="o">-&gt;</span><span class="n">clones</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">clone</span><span class="p">)</span>
+<a id="line-1615" name="line-1615"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1616" name="line-1616"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1617" name="line-1617"></a>
+<a id="line-1618" name="line-1618"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1619" name="line-1619"></a><span class="p">}</span>
+<a id="line-1620" name="line-1620"></a>
+<a id="line-1621" name="line-1621"></a><span class="n">gboolean</span>
+<a id="line-1622" name="line-1622"></a><span class="n">mate_rr_output_get_is_primary</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">)</span>
+<a id="line-1623" name="line-1623"></a><span class="p">{</span>
+<a id="line-1624" name="line-1624"></a><span class="cp">#ifdef HAVE_RANDR</span>
+<a id="line-1625" name="line-1625"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">primary</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">;</span>
+<a id="line-1626" name="line-1626"></a><span class="cp">#else</span>
+<a id="line-1627" name="line-1627"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1628" name="line-1628"></a><span class="cp">#endif</span>
+<a id="line-1629" name="line-1629"></a><span class="p">}</span>
+<a id="line-1630" name="line-1630"></a>
+<a id="line-1631" name="line-1631"></a><span class="kt">void</span>
+<a id="line-1632" name="line-1632"></a><span class="n">mate_rr_screen_set_primary_output</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-1633" name="line-1633"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">)</span>
+<a id="line-1634" name="line-1634"></a><span class="p">{</span>
+<a id="line-1635" name="line-1635"></a><span class="cp">#ifdef HAVE_RANDR</span>
+<a id="line-1636" name="line-1636"></a><span class="w"> </span><span class="n">MateRRScreenPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-1637" name="line-1637"></a>
+<a id="line-1638" name="line-1638"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_RR_SCREEN</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">));</span>
+<a id="line-1639" name="line-1639"></a>
+<a id="line-1640" name="line-1640"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">screen</span><span class="o">-&gt;</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-1641" name="line-1641"></a>
+<a id="line-1642" name="line-1642"></a><span class="w"> </span><span class="n">RROutput</span><span class="w"> </span><span class="n">id</span><span class="p">;</span>
+<a id="line-1643" name="line-1643"></a>
+<a id="line-1644" name="line-1644"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="p">)</span>
+<a id="line-1645" name="line-1645"></a><span class="w"> </span><span class="n">id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">output</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">;</span>
+<a id="line-1646" name="line-1646"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1647" name="line-1647"></a><span class="w"> </span><span class="n">id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">None</span><span class="p">;</span>
+<a id="line-1648" name="line-1648"></a>
+<a id="line-1649" name="line-1649"></a><span class="w"> </span><span class="n">XRRSetOutputPrimary</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">xdisplay</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">xroot</span><span class="p">,</span><span class="w"> </span><span class="n">id</span><span class="p">);</span>
+<a id="line-1650" name="line-1650"></a><span class="cp">#endif</span>
+<a id="line-1651" name="line-1651"></a><span class="p">}</span>
+<a id="line-1652" name="line-1652"></a>
+<a id="line-1653" name="line-1653"></a><span class="cm">/* MateRRCrtc */</span>
+<a id="line-1654" name="line-1654"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span>
+<a id="line-1655" name="line-1655"></a><span class="p">{</span>
+<a id="line-1656" name="line-1656"></a><span class="w"> </span><span class="n">Rotation</span><span class="w"> </span><span class="n">xrot</span><span class="p">;</span>
+<a id="line-1657" name="line-1657"></a><span class="w"> </span><span class="n">MateRRRotation</span><span class="w"> </span><span class="n">rot</span><span class="p">;</span>
+<a id="line-1658" name="line-1658"></a><span class="p">}</span><span class="w"> </span><span class="n">RotationMap</span><span class="p">;</span>
+<a id="line-1659" name="line-1659"></a>
+<a id="line-1660" name="line-1660"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">RotationMap</span><span class="w"> </span><span class="n">rotation_map</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span>
+<a id="line-1661" name="line-1661"></a><span class="p">{</span>
+<a id="line-1662" name="line-1662"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">RR_Rotate_0</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ROTATION_0</span><span class="w"> </span><span class="p">},</span>
+<a id="line-1663" name="line-1663"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">RR_Rotate_90</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ROTATION_90</span><span class="w"> </span><span class="p">},</span>
+<a id="line-1664" name="line-1664"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">RR_Rotate_180</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ROTATION_180</span><span class="w"> </span><span class="p">},</span>
+<a id="line-1665" name="line-1665"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">RR_Rotate_270</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ROTATION_270</span><span class="w"> </span><span class="p">},</span>
+<a id="line-1666" name="line-1666"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">RR_Reflect_X</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_REFLECT_X</span><span class="w"> </span><span class="p">},</span>
+<a id="line-1667" name="line-1667"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">RR_Reflect_Y</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_REFLECT_Y</span><span class="w"> </span><span class="p">},</span>
+<a id="line-1668" name="line-1668"></a><span class="p">};</span>
+<a id="line-1669" name="line-1669"></a>
+<a id="line-1670" name="line-1670"></a><span class="k">static</span><span class="w"> </span><span class="n">MateRRRotation</span>
+<a id="line-1671" name="line-1671"></a><span class="nf">mate_rr_rotation_from_xrotation</span><span class="w"> </span><span class="p">(</span><span class="n">Rotation</span><span class="w"> </span><span class="n">r</span><span class="p">)</span>
+<a id="line-1672" name="line-1672"></a><span class="p">{</span>
+<a id="line-1673" name="line-1673"></a><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-1674" name="line-1674"></a><span class="w"> </span><span class="n">MateRRRotation</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-1675" name="line-1675"></a>
+<a id="line-1676" name="line-1676"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">G_N_ELEMENTS</span><span class="w"> </span><span class="p">(</span><span class="n">rotation_map</span><span class="p">);</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-1677" name="line-1677"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1678" name="line-1678"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">r</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">rotation_map</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">xrot</span><span class="p">)</span>
+<a id="line-1679" name="line-1679"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">rotation_map</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">rot</span><span class="p">;</span>
+<a id="line-1680" name="line-1680"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1681" name="line-1681"></a>
+<a id="line-1682" name="line-1682"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-1683" name="line-1683"></a><span class="p">}</span>
+<a id="line-1684" name="line-1684"></a>
+<a id="line-1685" name="line-1685"></a><span class="k">static</span><span class="w"> </span><span class="n">Rotation</span>
+<a id="line-1686" name="line-1686"></a><span class="nf">xrotation_from_rotation</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRRotation</span><span class="w"> </span><span class="n">r</span><span class="p">)</span>
+<a id="line-1687" name="line-1687"></a><span class="p">{</span>
+<a id="line-1688" name="line-1688"></a><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-1689" name="line-1689"></a><span class="w"> </span><span class="n">Rotation</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-1690" name="line-1690"></a>
+<a id="line-1691" name="line-1691"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">G_N_ELEMENTS</span><span class="w"> </span><span class="p">(</span><span class="n">rotation_map</span><span class="p">);</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-1692" name="line-1692"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1693" name="line-1693"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">r</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">rotation_map</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">rot</span><span class="p">)</span>
+<a id="line-1694" name="line-1694"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">|=</span><span class="w"> </span><span class="n">rotation_map</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">xrot</span><span class="p">;</span>
+<a id="line-1695" name="line-1695"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1696" name="line-1696"></a>
+<a id="line-1697" name="line-1697"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-1698" name="line-1698"></a><span class="p">}</span>
+<a id="line-1699" name="line-1699"></a>
+<a id="line-1700" name="line-1700"></a><span class="cp">#ifndef MATE_DISABLE_DEPRECATED_SOURCE</span>
+<a id="line-1701" name="line-1701"></a><span class="n">gboolean</span>
+<a id="line-1702" name="line-1702"></a><span class="nf">mate_rr_crtc_set_config</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">,</span>
+<a id="line-1703" name="line-1703"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x</span><span class="p">,</span>
+<a id="line-1704" name="line-1704"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">y</span><span class="p">,</span>
+<a id="line-1705" name="line-1705"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="p">,</span>
+<a id="line-1706" name="line-1706"></a><span class="w"> </span><span class="n">MateRRRotation</span><span class="w"> </span><span class="n">rotation</span><span class="p">,</span>
+<a id="line-1707" name="line-1707"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">**</span><span class="n">outputs</span><span class="p">,</span>
+<a id="line-1708" name="line-1708"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n_outputs</span><span class="p">,</span>
+<a id="line-1709" name="line-1709"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-1710" name="line-1710"></a><span class="p">{</span>
+<a id="line-1711" name="line-1711"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mate_rr_crtc_set_config_with_time</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_CURRENT_TIME</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">mode</span><span class="p">,</span><span class="w"> </span><span class="n">rotation</span><span class="p">,</span><span class="w"> </span><span class="n">outputs</span><span class="p">,</span><span class="w"> </span><span class="n">n_outputs</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="p">);</span>
+<a id="line-1712" name="line-1712"></a><span class="p">}</span>
+<a id="line-1713" name="line-1713"></a><span class="cp">#endif</span>
+<a id="line-1714" name="line-1714"></a>
+<a id="line-1715" name="line-1715"></a><span class="n">gboolean</span>
+<a id="line-1716" name="line-1716"></a><span class="nf">mate_rr_crtc_set_config_with_time</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">,</span>
+<a id="line-1717" name="line-1717"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">timestamp</span><span class="p">,</span>
+<a id="line-1718" name="line-1718"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x</span><span class="p">,</span>
+<a id="line-1719" name="line-1719"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">y</span><span class="p">,</span>
+<a id="line-1720" name="line-1720"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="p">,</span>
+<a id="line-1721" name="line-1721"></a><span class="w"> </span><span class="n">MateRRRotation</span><span class="w"> </span><span class="n">rotation</span><span class="p">,</span>
+<a id="line-1722" name="line-1722"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">**</span><span class="n">outputs</span><span class="p">,</span>
+<a id="line-1723" name="line-1723"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n_outputs</span><span class="p">,</span>
+<a id="line-1724" name="line-1724"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-1725" name="line-1725"></a><span class="p">{</span>
+<a id="line-1726" name="line-1726"></a><span class="cp">#ifdef HAVE_RANDR</span>
+<a id="line-1727" name="line-1727"></a><span class="w"> </span><span class="n">ScreenInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">;</span>
+<a id="line-1728" name="line-1728"></a><span class="w"> </span><span class="n">GArray</span><span class="w"> </span><span class="o">*</span><span class="n">output_ids</span><span class="p">;</span>
+<a id="line-1729" name="line-1729"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">;</span>
+<a id="line-1730" name="line-1730"></a><span class="w"> </span><span class="n">Status</span><span class="w"> </span><span class="n">status</span><span class="p">;</span>
+<a id="line-1731" name="line-1731"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-1732" name="line-1732"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-1733" name="line-1733"></a>
+<a id="line-1734" name="line-1734"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1735" name="line-1735"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">outputs</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">n_outputs</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1736" name="line-1736"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1737" name="line-1737"></a>
+<a id="line-1738" name="line-1738"></a><span class="w"> </span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">info</span><span class="p">;</span>
+<a id="line-1739" name="line-1739"></a>
+<a id="line-1740" name="line-1740"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="p">)</span>
+<a id="line-1741" name="line-1741"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1742" name="line-1742"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">x</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">mode</span><span class="o">-&gt;</span><span class="n">width</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">max_width</span>
+<a id="line-1743" name="line-1743"></a><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">mode</span><span class="o">-&gt;</span><span class="n">height</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">max_height</span><span class="p">)</span>
+<a id="line-1744" name="line-1744"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1745" name="line-1745"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR_BOUNDS_ERROR</span><span class="p">,</span>
+<a id="line-1746" name="line-1746"></a><span class="w"> </span><span class="cm">/* Translators: the &quot;position&quot;, &quot;size&quot;, and &quot;maximum&quot;</span>
+<a id="line-1747" name="line-1747"></a><span class="cm"> * words here are not keywords; please translate them</span>
+<a id="line-1748" name="line-1748"></a><span class="cm"> * as usual. A CRTC is a CRT Controller (this is X terminology) */</span>
+<a id="line-1749" name="line-1749"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;requested position/size for CRTC %d is outside the allowed limit: &quot;</span>
+<a id="line-1750" name="line-1750"></a><span class="w"> </span><span class="s">&quot;position=(%d, %d), size=(%d, %d), maximum=(%d, %d)&quot;</span><span class="p">),</span>
+<a id="line-1751" name="line-1751"></a><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="p">)</span><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">,</span>
+<a id="line-1752" name="line-1752"></a><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span>
+<a id="line-1753" name="line-1753"></a><span class="w"> </span><span class="n">mode</span><span class="o">-&gt;</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">mode</span><span class="o">-&gt;</span><span class="n">height</span><span class="p">,</span>
+<a id="line-1754" name="line-1754"></a><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">max_width</span><span class="p">,</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">max_height</span><span class="p">);</span>
+<a id="line-1755" name="line-1755"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1756" name="line-1756"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1757" name="line-1757"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1758" name="line-1758"></a>
+<a id="line-1759" name="line-1759"></a><span class="w"> </span><span class="n">output_ids</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_array_new</span><span class="w"> </span><span class="p">(</span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="k">sizeof</span><span class="w"> </span><span class="p">(</span><span class="n">RROutput</span><span class="p">));</span>
+<a id="line-1760" name="line-1760"></a>
+<a id="line-1761" name="line-1761"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">outputs</span><span class="p">)</span>
+<a id="line-1762" name="line-1762"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1763" name="line-1763"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">n_outputs</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-1764" name="line-1764"></a><span class="w"> </span><span class="n">g_array_append_val</span><span class="w"> </span><span class="p">(</span><span class="n">output_ids</span><span class="p">,</span><span class="w"> </span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">);</span>
+<a id="line-1765" name="line-1765"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1766" name="line-1766"></a>
+<a id="line-1767" name="line-1767"></a><span class="w"> </span><span class="n">display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_display_get_default</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1768" name="line-1768"></a><span class="w"> </span><span class="n">gdk_x11_display_error_trap_push</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-1769" name="line-1769"></a><span class="w"> </span><span class="n">status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XRRSetCrtcConfig</span><span class="w"> </span><span class="p">(</span><span class="n">DISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="p">),</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">resources</span><span class="p">,</span><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">,</span>
+<a id="line-1770" name="line-1770"></a><span class="w"> </span><span class="n">timestamp</span><span class="p">,</span>
+<a id="line-1771" name="line-1771"></a><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span>
+<a id="line-1772" name="line-1772"></a><span class="w"> </span><span class="n">mode</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">mode</span><span class="o">-&gt;</span><span class="n">id</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="n">None</span><span class="p">,</span>
+<a id="line-1773" name="line-1773"></a><span class="w"> </span><span class="n">xrotation_from_rotation</span><span class="w"> </span><span class="p">(</span><span class="n">rotation</span><span class="p">),</span>
+<a id="line-1774" name="line-1774"></a><span class="w"> </span><span class="p">(</span><span class="n">RROutput</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">output_ids</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">,</span>
+<a id="line-1775" name="line-1775"></a><span class="w"> </span><span class="n">output_ids</span><span class="o">-&gt;</span><span class="n">len</span><span class="p">);</span>
+<a id="line-1776" name="line-1776"></a>
+<a id="line-1777" name="line-1777"></a><span class="w"> </span><span class="n">g_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">output_ids</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-1778" name="line-1778"></a>
+<a id="line-1779" name="line-1779"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_x11_display_error_trap_pop</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">status</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">RRSetConfigSuccess</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1780" name="line-1780"></a><span class="w"> </span><span class="cm">/* Translators: CRTC is a CRT Controller (this is X terminology).</span>
+<a id="line-1781" name="line-1781"></a><span class="cm"> * It is *very* unlikely that you&#39;ll ever get this error, so it is</span>
+<a id="line-1782" name="line-1782"></a><span class="cm"> * only listed for completeness. */</span>
+<a id="line-1783" name="line-1783"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR_RANDR_ERROR</span><span class="p">,</span>
+<a id="line-1784" name="line-1784"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;could not set the configuration for CRTC %d&quot;</span><span class="p">),</span>
+<a id="line-1785" name="line-1785"></a><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="p">)</span><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">);</span>
+<a id="line-1786" name="line-1786"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1787" name="line-1787"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1788" name="line-1788"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1789" name="line-1789"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1790" name="line-1790"></a>
+<a id="line-1791" name="line-1791"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-1792" name="line-1792"></a><span class="cp">#else</span>
+<a id="line-1793" name="line-1793"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1794" name="line-1794"></a><span class="cp">#endif </span><span class="cm">/* HAVE_RANDR */</span>
+<a id="line-1795" name="line-1795"></a><span class="p">}</span>
+<a id="line-1796" name="line-1796"></a>
+<a id="line-1797" name="line-1797"></a><span class="cm">/**</span>
+<a id="line-1798" name="line-1798"></a><span class="cm"> * mate_rr_crtc_get_current_mode:</span>
+<a id="line-1799" name="line-1799"></a><span class="cm"> * @crtc: a #MateRRCrtc</span>
+<a id="line-1800" name="line-1800"></a><span class="cm"> * Returns: (transfer none): the current mode of this crtc</span>
+<a id="line-1801" name="line-1801"></a><span class="cm"> */</span>
+<a id="line-1802" name="line-1802"></a><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1803" name="line-1803"></a><span class="nf">mate_rr_crtc_get_current_mode</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">)</span>
+<a id="line-1804" name="line-1804"></a><span class="p">{</span>
+<a id="line-1805" name="line-1805"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1806" name="line-1806"></a>
+<a id="line-1807" name="line-1807"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">current_mode</span><span class="p">;</span>
+<a id="line-1808" name="line-1808"></a><span class="p">}</span>
+<a id="line-1809" name="line-1809"></a>
+<a id="line-1810" name="line-1810"></a><span class="n">guint32</span>
+<a id="line-1811" name="line-1811"></a><span class="nf">mate_rr_crtc_get_id</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">)</span>
+<a id="line-1812" name="line-1812"></a><span class="p">{</span>
+<a id="line-1813" name="line-1813"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-1814" name="line-1814"></a>
+<a id="line-1815" name="line-1815"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">;</span>
+<a id="line-1816" name="line-1816"></a><span class="p">}</span>
+<a id="line-1817" name="line-1817"></a>
+<a id="line-1818" name="line-1818"></a><span class="n">gboolean</span>
+<a id="line-1819" name="line-1819"></a><span class="nf">mate_rr_crtc_can_drive_output</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">,</span>
+<a id="line-1820" name="line-1820"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="p">)</span>
+<a id="line-1821" name="line-1821"></a><span class="p">{</span>
+<a id="line-1822" name="line-1822"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-1823" name="line-1823"></a>
+<a id="line-1824" name="line-1824"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1825" name="line-1825"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1826" name="line-1826"></a>
+<a id="line-1827" name="line-1827"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">possible_outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-1828" name="line-1828"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1829" name="line-1829"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">possible_outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">output</span><span class="p">)</span>
+<a id="line-1830" name="line-1830"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1831" name="line-1831"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1832" name="line-1832"></a>
+<a id="line-1833" name="line-1833"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1834" name="line-1834"></a><span class="p">}</span>
+<a id="line-1835" name="line-1835"></a>
+<a id="line-1836" name="line-1836"></a><span class="cm">/* FIXME: merge with get_mode()? */</span>
+<a id="line-1837" name="line-1837"></a>
+<a id="line-1838" name="line-1838"></a><span class="cm">/**</span>
+<a id="line-1839" name="line-1839"></a><span class="cm"> * mate_rr_crtc_get_position:</span>
+<a id="line-1840" name="line-1840"></a><span class="cm"> * @crtc: a #MateRRCrtc</span>
+<a id="line-1841" name="line-1841"></a><span class="cm"> * @x: (out) (allow-none):</span>
+<a id="line-1842" name="line-1842"></a><span class="cm"> * @y: (out) (allow-none):</span>
+<a id="line-1843" name="line-1843"></a><span class="cm"> */</span>
+<a id="line-1844" name="line-1844"></a><span class="kt">void</span>
+<a id="line-1845" name="line-1845"></a><span class="nf">mate_rr_crtc_get_position</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">,</span>
+<a id="line-1846" name="line-1846"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span>
+<a id="line-1847" name="line-1847"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">)</span>
+<a id="line-1848" name="line-1848"></a><span class="p">{</span>
+<a id="line-1849" name="line-1849"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1850" name="line-1850"></a>
+<a id="line-1851" name="line-1851"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">x</span><span class="p">)</span>
+<a id="line-1852" name="line-1852"></a><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">x</span><span class="p">;</span>
+<a id="line-1853" name="line-1853"></a>
+<a id="line-1854" name="line-1854"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">y</span><span class="p">)</span>
+<a id="line-1855" name="line-1855"></a><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">y</span><span class="p">;</span>
+<a id="line-1856" name="line-1856"></a><span class="p">}</span>
+<a id="line-1857" name="line-1857"></a>
+<a id="line-1858" name="line-1858"></a><span class="cm">/* FIXME: merge with get_mode()? */</span>
+<a id="line-1859" name="line-1859"></a><span class="n">MateRRRotation</span>
+<a id="line-1860" name="line-1860"></a><span class="nf">mate_rr_crtc_get_current_rotation</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">)</span>
+<a id="line-1861" name="line-1861"></a><span class="p">{</span>
+<a id="line-1862" name="line-1862"></a><span class="w"> </span><span class="n">g_assert</span><span class="p">(</span><span class="n">crtc</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1863" name="line-1863"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">current_rotation</span><span class="p">;</span>
+<a id="line-1864" name="line-1864"></a><span class="p">}</span>
+<a id="line-1865" name="line-1865"></a>
+<a id="line-1866" name="line-1866"></a><span class="n">MateRRRotation</span>
+<a id="line-1867" name="line-1867"></a><span class="nf">mate_rr_crtc_get_rotations</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">)</span>
+<a id="line-1868" name="line-1868"></a><span class="p">{</span>
+<a id="line-1869" name="line-1869"></a><span class="w"> </span><span class="n">g_assert</span><span class="p">(</span><span class="n">crtc</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1870" name="line-1870"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">rotations</span><span class="p">;</span>
+<a id="line-1871" name="line-1871"></a><span class="p">}</span>
+<a id="line-1872" name="line-1872"></a>
+<a id="line-1873" name="line-1873"></a><span class="n">gboolean</span>
+<a id="line-1874" name="line-1874"></a><span class="nf">mate_rr_crtc_supports_rotation</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">crtc</span><span class="p">,</span>
+<a id="line-1875" name="line-1875"></a><span class="w"> </span><span class="n">MateRRRotation</span><span class="w"> </span><span class="n">rotation</span><span class="p">)</span>
+<a id="line-1876" name="line-1876"></a><span class="p">{</span>
+<a id="line-1877" name="line-1877"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1878" name="line-1878"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">rotations</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">rotation</span><span class="p">);</span>
+<a id="line-1879" name="line-1879"></a><span class="p">}</span>
+<a id="line-1880" name="line-1880"></a>
+<a id="line-1881" name="line-1881"></a><span class="k">static</span><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1882" name="line-1882"></a><span class="nf">crtc_new</span><span class="w"> </span><span class="p">(</span><span class="n">ScreenInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">RROutput</span><span class="w"> </span><span class="n">id</span><span class="p">)</span>
+<a id="line-1883" name="line-1883"></a><span class="p">{</span>
+<a id="line-1884" name="line-1884"></a><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slice_new0</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="p">);</span>
+<a id="line-1885" name="line-1885"></a>
+<a id="line-1886" name="line-1886"></a><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">id</span><span class="p">;</span>
+<a id="line-1887" name="line-1887"></a><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="p">;</span>
+<a id="line-1888" name="line-1888"></a>
+<a id="line-1889" name="line-1889"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">crtc</span><span class="p">;</span>
+<a id="line-1890" name="line-1890"></a><span class="p">}</span>
+<a id="line-1891" name="line-1891"></a>
+<a id="line-1892" name="line-1892"></a><span class="k">static</span><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1893" name="line-1893"></a><span class="nf">crtc_copy</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">from</span><span class="p">)</span>
+<a id="line-1894" name="line-1894"></a><span class="p">{</span>
+<a id="line-1895" name="line-1895"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">**</span><span class="n">p_output</span><span class="p">;</span>
+<a id="line-1896" name="line-1896"></a><span class="w"> </span><span class="n">GPtrArray</span><span class="w"> </span><span class="o">*</span><span class="n">array</span><span class="p">;</span>
+<a id="line-1897" name="line-1897"></a><span class="w"> </span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">to</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slice_new0</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="p">);</span>
+<a id="line-1898" name="line-1898"></a>
+<a id="line-1899" name="line-1899"></a><span class="w"> </span><span class="n">to</span><span class="o">-&gt;</span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">info</span><span class="p">;</span>
+<a id="line-1900" name="line-1900"></a><span class="w"> </span><span class="n">to</span><span class="o">-&gt;</span><span class="n">id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">;</span>
+<a id="line-1901" name="line-1901"></a><span class="w"> </span><span class="n">to</span><span class="o">-&gt;</span><span class="n">current_mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">current_mode</span><span class="p">;</span>
+<a id="line-1902" name="line-1902"></a><span class="w"> </span><span class="n">to</span><span class="o">-&gt;</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">x</span><span class="p">;</span>
+<a id="line-1903" name="line-1903"></a><span class="w"> </span><span class="n">to</span><span class="o">-&gt;</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">y</span><span class="p">;</span>
+<a id="line-1904" name="line-1904"></a><span class="w"> </span><span class="n">to</span><span class="o">-&gt;</span><span class="n">current_rotation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">current_rotation</span><span class="p">;</span>
+<a id="line-1905" name="line-1905"></a><span class="w"> </span><span class="n">to</span><span class="o">-&gt;</span><span class="n">rotations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">rotations</span><span class="p">;</span>
+<a id="line-1906" name="line-1906"></a><span class="w"> </span><span class="n">to</span><span class="o">-&gt;</span><span class="n">gamma_size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">gamma_size</span><span class="p">;</span>
+<a id="line-1907" name="line-1907"></a>
+<a id="line-1908" name="line-1908"></a><span class="w"> </span><span class="n">array</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1909" name="line-1909"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">p_output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">current_outputs</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">p_output</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">p_output</span><span class="o">++</span><span class="p">)</span>
+<a id="line-1910" name="line-1910"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1911" name="line-1911"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">array</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">p_output</span><span class="p">);</span>
+<a id="line-1912" name="line-1912"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1913" name="line-1913"></a><span class="w"> </span><span class="n">to</span><span class="o">-&gt;</span><span class="n">current_outputs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="o">**</span><span class="p">)</span><span class="w"> </span><span class="n">g_ptr_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">array</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1914" name="line-1914"></a>
+<a id="line-1915" name="line-1915"></a><span class="w"> </span><span class="n">array</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1916" name="line-1916"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">p_output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">possible_outputs</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">p_output</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">p_output</span><span class="o">++</span><span class="p">)</span>
+<a id="line-1917" name="line-1917"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1918" name="line-1918"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">array</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">p_output</span><span class="p">);</span>
+<a id="line-1919" name="line-1919"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1920" name="line-1920"></a><span class="w"> </span><span class="n">to</span><span class="o">-&gt;</span><span class="n">possible_outputs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="o">**</span><span class="p">)</span><span class="w"> </span><span class="n">g_ptr_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">array</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1921" name="line-1921"></a>
+<a id="line-1922" name="line-1922"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">to</span><span class="p">;</span>
+<a id="line-1923" name="line-1923"></a><span class="p">}</span>
+<a id="line-1924" name="line-1924"></a>
+<a id="line-1925" name="line-1925"></a><span class="cp">#ifdef HAVE_RANDR</span>
+<a id="line-1926" name="line-1926"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-1927" name="line-1927"></a><span class="nf">crtc_initialize</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">,</span>
+<a id="line-1928" name="line-1928"></a><span class="w"> </span><span class="n">XRRScreenResources</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">,</span>
+<a id="line-1929" name="line-1929"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">error</span><span class="p">)</span>
+<a id="line-1930" name="line-1930"></a><span class="p">{</span>
+<a id="line-1931" name="line-1931"></a><span class="w"> </span><span class="n">XRRCrtcInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XRRGetCrtcInfo</span><span class="w"> </span><span class="p">(</span><span class="n">DISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="p">),</span><span class="w"> </span><span class="n">res</span><span class="p">,</span><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">);</span>
+<a id="line-1932" name="line-1932"></a><span class="w"> </span><span class="n">GPtrArray</span><span class="w"> </span><span class="o">*</span><span class="n">a</span><span class="p">;</span>
+<a id="line-1933" name="line-1933"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-1934" name="line-1934"></a>
+<a id="line-1935" name="line-1935"></a><span class="cp">#if 0</span>
+<a id="line-1936" name="line-1936"></a><span class="c"> g_print (&quot;CRTC %lx Timestamp: %u\n&quot;, crtc-&gt;id, (guint32)info-&gt;timestamp);</span>
+<a id="line-1937" name="line-1937"></a><span class="cp">#endif</span>
+<a id="line-1938" name="line-1938"></a>
+<a id="line-1939" name="line-1939"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">info</span><span class="p">)</span>
+<a id="line-1940" name="line-1940"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1941" name="line-1941"></a><span class="w"> </span><span class="cm">/* FIXME: We need to reaquire the screen resources */</span>
+<a id="line-1942" name="line-1942"></a><span class="w"> </span><span class="cm">/* FIXME: can we actually catch BadRRCrtc, and does it make sense to emit that? */</span>
+<a id="line-1943" name="line-1943"></a>
+<a id="line-1944" name="line-1944"></a><span class="w"> </span><span class="cm">/* Translators: CRTC is a CRT Controller (this is X terminology).</span>
+<a id="line-1945" name="line-1945"></a><span class="cm"> * It is *very* unlikely that you&#39;ll ever get this error, so it is</span>
+<a id="line-1946" name="line-1946"></a><span class="cm"> * only listed for completeness. */</span>
+<a id="line-1947" name="line-1947"></a><span class="w"> </span><span class="n">g_set_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_RR_ERROR_RANDR_ERROR</span><span class="p">,</span>
+<a id="line-1948" name="line-1948"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;could not get information about CRTC %d&quot;</span><span class="p">),</span>
+<a id="line-1949" name="line-1949"></a><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="p">)</span><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">);</span>
+<a id="line-1950" name="line-1950"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1951" name="line-1951"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1952" name="line-1952"></a>
+<a id="line-1953" name="line-1953"></a><span class="w"> </span><span class="cm">/* MateRRMode */</span>
+<a id="line-1954" name="line-1954"></a><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">current_mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mode_by_id</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">mode</span><span class="p">);</span>
+<a id="line-1955" name="line-1955"></a>
+<a id="line-1956" name="line-1956"></a><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">x</span><span class="p">;</span>
+<a id="line-1957" name="line-1957"></a><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">y</span><span class="p">;</span>
+<a id="line-1958" name="line-1958"></a>
+<a id="line-1959" name="line-1959"></a><span class="w"> </span><span class="cm">/* Current outputs */</span>
+<a id="line-1960" name="line-1960"></a><span class="w"> </span><span class="n">a</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1961" name="line-1961"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">noutput</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-1962" name="line-1962"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1963" name="line-1963"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_output_by_id</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span>
+<a id="line-1964" name="line-1964"></a>
+<a id="line-1965" name="line-1965"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="p">)</span>
+<a id="line-1966" name="line-1966"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="p">);</span>
+<a id="line-1967" name="line-1967"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1968" name="line-1968"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1969" name="line-1969"></a><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">current_outputs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">**</span><span class="p">)</span><span class="n">g_ptr_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1970" name="line-1970"></a>
+<a id="line-1971" name="line-1971"></a><span class="w"> </span><span class="cm">/* Possible outputs */</span>
+<a id="line-1972" name="line-1972"></a><span class="w"> </span><span class="n">a</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ptr_array_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1973" name="line-1973"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">npossible</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span>
+<a id="line-1974" name="line-1974"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1975" name="line-1975"></a><span class="w"> </span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">*</span><span class="n">output</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_output_by_id</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">possible</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span>
+<a id="line-1976" name="line-1976"></a>
+<a id="line-1977" name="line-1977"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">output</span><span class="p">)</span>
+<a id="line-1978" name="line-1978"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="n">output</span><span class="p">);</span>
+<a id="line-1979" name="line-1979"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1980" name="line-1980"></a><span class="w"> </span><span class="n">g_ptr_array_add</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1981" name="line-1981"></a><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">possible_outputs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MateRROutput</span><span class="w"> </span><span class="o">**</span><span class="p">)</span><span class="n">g_ptr_array_free</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1982" name="line-1982"></a>
+<a id="line-1983" name="line-1983"></a><span class="w"> </span><span class="cm">/* Rotations */</span>
+<a id="line-1984" name="line-1984"></a><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">current_rotation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_rotation_from_xrotation</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">rotation</span><span class="p">);</span>
+<a id="line-1985" name="line-1985"></a><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">rotations</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_rr_rotation_from_xrotation</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">rotations</span><span class="p">);</span>
+<a id="line-1986" name="line-1986"></a>
+<a id="line-1987" name="line-1987"></a><span class="w"> </span><span class="n">XRRFreeCrtcInfo</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">);</span>
+<a id="line-1988" name="line-1988"></a>
+<a id="line-1989" name="line-1989"></a><span class="w"> </span><span class="cm">/* get an store gamma size */</span>
+<a id="line-1990" name="line-1990"></a><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">gamma_size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XRRGetCrtcGammaSize</span><span class="w"> </span><span class="p">(</span><span class="n">DISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="p">),</span><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">);</span>
+<a id="line-1991" name="line-1991"></a>
+<a id="line-1992" name="line-1992"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1993" name="line-1993"></a><span class="p">}</span>
+<a id="line-1994" name="line-1994"></a><span class="cp">#endif</span>
+<a id="line-1995" name="line-1995"></a>
+<a id="line-1996" name="line-1996"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1997" name="line-1997"></a><span class="nf">crtc_free</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">)</span>
+<a id="line-1998" name="line-1998"></a><span class="p">{</span>
+<a id="line-1999" name="line-1999"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">current_outputs</span><span class="p">);</span>
+<a id="line-2000" name="line-2000"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">possible_outputs</span><span class="p">);</span>
+<a id="line-2001" name="line-2001"></a><span class="w"> </span><span class="n">g_slice_free</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="p">,</span><span class="w"> </span><span class="n">crtc</span><span class="p">);</span>
+<a id="line-2002" name="line-2002"></a><span class="p">}</span>
+<a id="line-2003" name="line-2003"></a>
+<a id="line-2004" name="line-2004"></a><span class="cm">/* MateRRMode */</span>
+<a id="line-2005" name="line-2005"></a><span class="k">static</span><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span>
+<a id="line-2006" name="line-2006"></a><span class="nf">mode_new</span><span class="w"> </span><span class="p">(</span><span class="n">ScreenInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">,</span><span class="w"> </span><span class="n">RRMode</span><span class="w"> </span><span class="n">id</span><span class="p">)</span>
+<a id="line-2007" name="line-2007"></a><span class="p">{</span>
+<a id="line-2008" name="line-2008"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slice_new0</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRMode</span><span class="p">);</span>
+<a id="line-2009" name="line-2009"></a>
+<a id="line-2010" name="line-2010"></a><span class="w"> </span><span class="n">mode</span><span class="o">-&gt;</span><span class="n">id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">id</span><span class="p">;</span>
+<a id="line-2011" name="line-2011"></a><span class="w"> </span><span class="n">mode</span><span class="o">-&gt;</span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="p">;</span>
+<a id="line-2012" name="line-2012"></a>
+<a id="line-2013" name="line-2013"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mode</span><span class="p">;</span>
+<a id="line-2014" name="line-2014"></a><span class="p">}</span>
+<a id="line-2015" name="line-2015"></a>
+<a id="line-2016" name="line-2016"></a><span class="n">guint32</span>
+<a id="line-2017" name="line-2017"></a><span class="nf">mate_rr_mode_get_id</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="p">)</span>
+<a id="line-2018" name="line-2018"></a><span class="p">{</span>
+<a id="line-2019" name="line-2019"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-2020" name="line-2020"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mode</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">;</span>
+<a id="line-2021" name="line-2021"></a><span class="p">}</span>
+<a id="line-2022" name="line-2022"></a>
+<a id="line-2023" name="line-2023"></a><span class="n">guint</span>
+<a id="line-2024" name="line-2024"></a><span class="nf">mate_rr_mode_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="p">)</span>
+<a id="line-2025" name="line-2025"></a><span class="p">{</span>
+<a id="line-2026" name="line-2026"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-2027" name="line-2027"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mode</span><span class="o">-&gt;</span><span class="n">width</span><span class="p">;</span>
+<a id="line-2028" name="line-2028"></a><span class="p">}</span>
+<a id="line-2029" name="line-2029"></a>
+<a id="line-2030" name="line-2030"></a><span class="kt">int</span>
+<a id="line-2031" name="line-2031"></a><span class="nf">mate_rr_mode_get_freq</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="p">)</span>
+<a id="line-2032" name="line-2032"></a><span class="p">{</span>
+<a id="line-2033" name="line-2033"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-2034" name="line-2034"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="o">-&gt;</span><span class="n">freq</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">1000</span><span class="p">;</span>
+<a id="line-2035" name="line-2035"></a><span class="p">}</span>
+<a id="line-2036" name="line-2036"></a>
+<a id="line-2037" name="line-2037"></a><span class="n">guint</span>
+<a id="line-2038" name="line-2038"></a><span class="nf">mate_rr_mode_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="p">)</span>
+<a id="line-2039" name="line-2039"></a><span class="p">{</span>
+<a id="line-2040" name="line-2040"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-2041" name="line-2041"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mode</span><span class="o">-&gt;</span><span class="n">height</span><span class="p">;</span>
+<a id="line-2042" name="line-2042"></a><span class="p">}</span>
+<a id="line-2043" name="line-2043"></a>
+<a id="line-2044" name="line-2044"></a><span class="cp">#ifdef HAVE_RANDR</span>
+<a id="line-2045" name="line-2045"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-2046" name="line-2046"></a><span class="nf">mode_initialize</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="p">,</span><span class="w"> </span><span class="n">XRRModeInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">)</span>
+<a id="line-2047" name="line-2047"></a><span class="p">{</span>
+<a id="line-2048" name="line-2048"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2049" name="line-2049"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2050" name="line-2050"></a>
+<a id="line-2051" name="line-2051"></a><span class="w"> </span><span class="n">mode</span><span class="o">-&gt;</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">);</span>
+<a id="line-2052" name="line-2052"></a><span class="w"> </span><span class="n">mode</span><span class="o">-&gt;</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">width</span><span class="p">;</span>
+<a id="line-2053" name="line-2053"></a><span class="w"> </span><span class="n">mode</span><span class="o">-&gt;</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">height</span><span class="p">;</span>
+<a id="line-2054" name="line-2054"></a><span class="w"> </span><span class="n">mode</span><span class="o">-&gt;</span><span class="n">freq</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">((</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">dotClock</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="n">info</span><span class="o">-&gt;</span><span class="n">hTotal</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">info</span><span class="o">-&gt;</span><span class="n">vTotal</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">1000</span><span class="p">;</span>
+<a id="line-2055" name="line-2055"></a><span class="p">}</span>
+<a id="line-2056" name="line-2056"></a><span class="cp">#endif </span><span class="cm">/* HAVE_RANDR */</span>
+<a id="line-2057" name="line-2057"></a>
+<a id="line-2058" name="line-2058"></a><span class="k">static</span><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span>
+<a id="line-2059" name="line-2059"></a><span class="nf">mode_copy</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">from</span><span class="p">)</span>
+<a id="line-2060" name="line-2060"></a><span class="p">{</span>
+<a id="line-2061" name="line-2061"></a><span class="w"> </span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">to</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slice_new0</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRMode</span><span class="p">);</span>
+<a id="line-2062" name="line-2062"></a>
+<a id="line-2063" name="line-2063"></a><span class="w"> </span><span class="n">to</span><span class="o">-&gt;</span><span class="n">id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">;</span>
+<a id="line-2064" name="line-2064"></a><span class="w"> </span><span class="n">to</span><span class="o">-&gt;</span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">info</span><span class="p">;</span>
+<a id="line-2065" name="line-2065"></a><span class="w"> </span><span class="n">to</span><span class="o">-&gt;</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">from</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">);</span>
+<a id="line-2066" name="line-2066"></a><span class="w"> </span><span class="n">to</span><span class="o">-&gt;</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">width</span><span class="p">;</span>
+<a id="line-2067" name="line-2067"></a><span class="w"> </span><span class="n">to</span><span class="o">-&gt;</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">height</span><span class="p">;</span>
+<a id="line-2068" name="line-2068"></a><span class="w"> </span><span class="n">to</span><span class="o">-&gt;</span><span class="n">freq</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">from</span><span class="o">-&gt;</span><span class="n">freq</span><span class="p">;</span>
+<a id="line-2069" name="line-2069"></a>
+<a id="line-2070" name="line-2070"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">to</span><span class="p">;</span>
+<a id="line-2071" name="line-2071"></a><span class="p">}</span>
+<a id="line-2072" name="line-2072"></a>
+<a id="line-2073" name="line-2073"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-2074" name="line-2074"></a><span class="nf">mode_free</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRMode</span><span class="w"> </span><span class="o">*</span><span class="n">mode</span><span class="p">)</span>
+<a id="line-2075" name="line-2075"></a><span class="p">{</span>
+<a id="line-2076" name="line-2076"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="o">-&gt;</span><span class="n">name</span><span class="p">);</span>
+<a id="line-2077" name="line-2077"></a><span class="w"> </span><span class="n">g_slice_free</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRMode</span><span class="p">,</span><span class="w"> </span><span class="n">mode</span><span class="p">);</span>
+<a id="line-2078" name="line-2078"></a><span class="p">}</span>
+<a id="line-2079" name="line-2079"></a>
+<a id="line-2080" name="line-2080"></a><span class="kt">void</span>
+<a id="line-2081" name="line-2081"></a><span class="nf">mate_rr_crtc_set_gamma</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">size</span><span class="p">,</span>
+<a id="line-2082" name="line-2082"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">short</span><span class="w"> </span><span class="o">*</span><span class="n">red</span><span class="p">,</span>
+<a id="line-2083" name="line-2083"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">short</span><span class="w"> </span><span class="o">*</span><span class="n">green</span><span class="p">,</span>
+<a id="line-2084" name="line-2084"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">short</span><span class="w"> </span><span class="o">*</span><span class="n">blue</span><span class="p">)</span>
+<a id="line-2085" name="line-2085"></a><span class="p">{</span>
+<a id="line-2086" name="line-2086"></a><span class="cp">#ifdef HAVE_RANDR</span>
+<a id="line-2087" name="line-2087"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">copy_size</span><span class="p">;</span>
+<a id="line-2088" name="line-2088"></a><span class="w"> </span><span class="n">XRRCrtcGamma</span><span class="w"> </span><span class="o">*</span><span class="n">gamma</span><span class="p">;</span>
+<a id="line-2089" name="line-2089"></a>
+<a id="line-2090" name="line-2090"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2091" name="line-2091"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">red</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2092" name="line-2092"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">green</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2093" name="line-2093"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">blue</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2094" name="line-2094"></a>
+<a id="line-2095" name="line-2095"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">size</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">gamma_size</span><span class="p">)</span>
+<a id="line-2096" name="line-2096"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-2097" name="line-2097"></a>
+<a id="line-2098" name="line-2098"></a><span class="w"> </span><span class="n">gamma</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XRRAllocGamma</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">gamma_size</span><span class="p">);</span>
+<a id="line-2099" name="line-2099"></a>
+<a id="line-2100" name="line-2100"></a><span class="w"> </span><span class="n">copy_size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">gamma_size</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">sizeof</span><span class="w"> </span><span class="p">(</span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">short</span><span class="p">);</span>
+<a id="line-2101" name="line-2101"></a><span class="w"> </span><span class="n">memcpy</span><span class="w"> </span><span class="p">(</span><span class="n">gamma</span><span class="o">-&gt;</span><span class="n">red</span><span class="p">,</span><span class="w"> </span><span class="n">red</span><span class="p">,</span><span class="w"> </span><span class="n">copy_size</span><span class="p">);</span>
+<a id="line-2102" name="line-2102"></a><span class="w"> </span><span class="n">memcpy</span><span class="w"> </span><span class="p">(</span><span class="n">gamma</span><span class="o">-&gt;</span><span class="n">green</span><span class="p">,</span><span class="w"> </span><span class="n">green</span><span class="p">,</span><span class="w"> </span><span class="n">copy_size</span><span class="p">);</span>
+<a id="line-2103" name="line-2103"></a><span class="w"> </span><span class="n">memcpy</span><span class="w"> </span><span class="p">(</span><span class="n">gamma</span><span class="o">-&gt;</span><span class="n">blue</span><span class="p">,</span><span class="w"> </span><span class="n">blue</span><span class="p">,</span><span class="w"> </span><span class="n">copy_size</span><span class="p">);</span>
+<a id="line-2104" name="line-2104"></a>
+<a id="line-2105" name="line-2105"></a><span class="w"> </span><span class="n">XRRSetCrtcGamma</span><span class="w"> </span><span class="p">(</span><span class="n">DISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="p">),</span><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">,</span><span class="w"> </span><span class="n">gamma</span><span class="p">);</span>
+<a id="line-2106" name="line-2106"></a><span class="w"> </span><span class="n">XRRFreeGamma</span><span class="w"> </span><span class="p">(</span><span class="n">gamma</span><span class="p">);</span>
+<a id="line-2107" name="line-2107"></a><span class="cp">#endif </span><span class="cm">/* HAVE_RANDR */</span>
+<a id="line-2108" name="line-2108"></a><span class="p">}</span>
+<a id="line-2109" name="line-2109"></a>
+<a id="line-2110" name="line-2110"></a><span class="cm">/**</span>
+<a id="line-2111" name="line-2111"></a><span class="cm"> * mate_rr_crtc_get_gamma:</span>
+<a id="line-2112" name="line-2112"></a><span class="cm"> * @crtc: a #MateRRCrtc</span>
+<a id="line-2113" name="line-2113"></a><span class="cm"> * @size:</span>
+<a id="line-2114" name="line-2114"></a><span class="cm"> * @red: (out): the minimum width</span>
+<a id="line-2115" name="line-2115"></a><span class="cm"> * @green: (out): the maximum width</span>
+<a id="line-2116" name="line-2116"></a><span class="cm"> * @blue: (out): the minimum height</span>
+<a id="line-2117" name="line-2117"></a><span class="cm"> *</span>
+<a id="line-2118" name="line-2118"></a><span class="cm"> * Returns: %TRUE for success</span>
+<a id="line-2119" name="line-2119"></a><span class="cm"> */</span>
+<a id="line-2120" name="line-2120"></a><span class="n">gboolean</span>
+<a id="line-2121" name="line-2121"></a><span class="nf">mate_rr_crtc_get_gamma</span><span class="w"> </span><span class="p">(</span><span class="n">MateRRCrtc</span><span class="w"> </span><span class="o">*</span><span class="n">crtc</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">size</span><span class="p">,</span>
+<a id="line-2122" name="line-2122"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">short</span><span class="w"> </span><span class="o">**</span><span class="n">red</span><span class="p">,</span><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">short</span><span class="w"> </span><span class="o">**</span><span class="n">green</span><span class="p">,</span>
+<a id="line-2123" name="line-2123"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">short</span><span class="w"> </span><span class="o">**</span><span class="n">blue</span><span class="p">)</span>
+<a id="line-2124" name="line-2124"></a><span class="p">{</span>
+<a id="line-2125" name="line-2125"></a><span class="cp">#ifdef HAVE_RANDR</span>
+<a id="line-2126" name="line-2126"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">copy_size</span><span class="p">;</span>
+<a id="line-2127" name="line-2127"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">short</span><span class="w"> </span><span class="o">*</span><span class="n">r</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">g</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">b</span><span class="p">;</span>
+<a id="line-2128" name="line-2128"></a><span class="w"> </span><span class="n">XRRCrtcGamma</span><span class="w"> </span><span class="o">*</span><span class="n">gamma</span><span class="p">;</span>
+<a id="line-2129" name="line-2129"></a>
+<a id="line-2130" name="line-2130"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-2131" name="line-2131"></a>
+<a id="line-2132" name="line-2132"></a><span class="w"> </span><span class="n">gamma</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XRRGetCrtcGamma</span><span class="w"> </span><span class="p">(</span><span class="n">DISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">crtc</span><span class="p">),</span><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">id</span><span class="p">);</span>
+<a id="line-2133" name="line-2133"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gamma</span><span class="p">)</span>
+<a id="line-2134" name="line-2134"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-2135" name="line-2135"></a>
+<a id="line-2136" name="line-2136"></a><span class="w"> </span><span class="n">copy_size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">gamma_size</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">sizeof</span><span class="w"> </span><span class="p">(</span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">short</span><span class="p">);</span>
+<a id="line-2137" name="line-2137"></a>
+<a id="line-2138" name="line-2138"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">red</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2139" name="line-2139"></a><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new0</span><span class="w"> </span><span class="p">(</span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">short</span><span class="p">,</span><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">gamma_size</span><span class="p">);</span>
+<a id="line-2140" name="line-2140"></a><span class="w"> </span><span class="n">memcpy</span><span class="w"> </span><span class="p">(</span><span class="n">r</span><span class="p">,</span><span class="w"> </span><span class="n">gamma</span><span class="o">-&gt;</span><span class="n">red</span><span class="p">,</span><span class="w"> </span><span class="n">copy_size</span><span class="p">);</span>
+<a id="line-2141" name="line-2141"></a><span class="w"> </span><span class="o">*</span><span class="n">red</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">r</span><span class="p">;</span>
+<a id="line-2142" name="line-2142"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2143" name="line-2143"></a>
+<a id="line-2144" name="line-2144"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">green</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2145" name="line-2145"></a><span class="w"> </span><span class="n">g</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new0</span><span class="w"> </span><span class="p">(</span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">short</span><span class="p">,</span><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">gamma_size</span><span class="p">);</span>
+<a id="line-2146" name="line-2146"></a><span class="w"> </span><span class="n">memcpy</span><span class="w"> </span><span class="p">(</span><span class="n">g</span><span class="p">,</span><span class="w"> </span><span class="n">gamma</span><span class="o">-&gt;</span><span class="n">green</span><span class="p">,</span><span class="w"> </span><span class="n">copy_size</span><span class="p">);</span>
+<a id="line-2147" name="line-2147"></a><span class="w"> </span><span class="o">*</span><span class="n">green</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g</span><span class="p">;</span>
+<a id="line-2148" name="line-2148"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2149" name="line-2149"></a>
+<a id="line-2150" name="line-2150"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">blue</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2151" name="line-2151"></a><span class="w"> </span><span class="n">b</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new0</span><span class="w"> </span><span class="p">(</span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">short</span><span class="p">,</span><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">gamma_size</span><span class="p">);</span>
+<a id="line-2152" name="line-2152"></a><span class="w"> </span><span class="n">memcpy</span><span class="w"> </span><span class="p">(</span><span class="n">b</span><span class="p">,</span><span class="w"> </span><span class="n">gamma</span><span class="o">-&gt;</span><span class="n">blue</span><span class="p">,</span><span class="w"> </span><span class="n">copy_size</span><span class="p">);</span>
+<a id="line-2153" name="line-2153"></a><span class="w"> </span><span class="o">*</span><span class="n">blue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">b</span><span class="p">;</span>
+<a id="line-2154" name="line-2154"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2155" name="line-2155"></a>
+<a id="line-2156" name="line-2156"></a><span class="w"> </span><span class="n">XRRFreeGamma</span><span class="w"> </span><span class="p">(</span><span class="n">gamma</span><span class="p">);</span>
+<a id="line-2157" name="line-2157"></a>
+<a id="line-2158" name="line-2158"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">size</span><span class="p">)</span>
+<a id="line-2159" name="line-2159"></a><span class="w"> </span><span class="o">*</span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">crtc</span><span class="o">-&gt;</span><span class="n">gamma_size</span><span class="p">;</span>
+<a id="line-2160" name="line-2160"></a>
+<a id="line-2161" name="line-2161"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-2162" name="line-2162"></a><span class="cp">#else</span>
+<a id="line-2163" name="line-2163"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-2164" name="line-2164"></a><span class="cp">#endif </span><span class="cm">/* HAVE_RANDR */</span>
+<a id="line-2165" name="line-2165"></a><span class="p">}</span>
+<a id="line-2166" name="line-2166"></a>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/3.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/3.html
new file mode 100644
index 0000000..8a71836
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/3.html
@@ -0,0 +1,397 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/mate-bg-crossfade.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-bg-crossfade.h</p>
+<a href="3.html#line-32"> missingIncludeSystem 32</a><a href="3.html#line-33"> missingIncludeSystem 33</a><a href="3.html#line-34"> missingIncludeSystem 34</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal">10</span>
+<span class="normal">11</span>
+<span class="normal">12</span>
+<span class="normal">13</span>
+<span class="normal">14</span>
+<span class="normal">15</span>
+<span class="normal">16</span>
+<span class="normal">17</span>
+<span class="normal">18</span>
+<span class="normal">19</span>
+<span class="normal">20</span>
+<span class="normal">21</span>
+<span class="normal">22</span>
+<span class="normal">23</span>
+<span class="normal">24</span>
+<span class="normal">25</span>
+<span class="normal">26</span>
+<span class="normal">27</span>
+<span class="normal">28</span>
+<span class="normal">29</span>
+<span class="normal">30</span>
+<span class="normal">31</span>
+<span class="normal">32</span>
+<span class="normal">33</span>
+<span class="normal">34</span>
+<span class="normal">35</span>
+<span class="normal">36</span>
+<span class="normal">37</span>
+<span class="normal">38</span>
+<span class="normal">39</span>
+<span class="normal">40</span>
+<span class="normal">41</span>
+<span class="normal">42</span>
+<span class="normal">43</span>
+<span class="normal">44</span>
+<span class="normal">45</span>
+<span class="normal">46</span>
+<span class="normal">47</span>
+<span class="normal">48</span>
+<span class="normal">49</span>
+<span class="normal">50</span>
+<span class="normal">51</span>
+<span class="normal">52</span>
+<span class="normal">53</span>
+<span class="normal">54</span>
+<span class="normal">55</span>
+<span class="normal">56</span>
+<span class="normal">57</span>
+<span class="normal">58</span>
+<span class="normal">59</span>
+<span class="normal">60</span>
+<span class="normal">61</span>
+<span class="normal">62</span>
+<span class="normal">63</span>
+<span class="normal">64</span>
+<span class="normal">65</span>
+<span class="normal">66</span>
+<span class="normal">67</span>
+<span class="normal">68</span>
+<span class="normal">69</span>
+<span class="normal">70</span>
+<span class="normal">71</span>
+<span class="normal">72</span>
+<span class="normal">73</span>
+<span class="normal">74</span>
+<span class="normal">75</span>
+<span class="normal">76</span>
+<span class="normal">77</span>
+<span class="normal">78</span>
+<span class="normal">79</span>
+<span class="normal">80</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* mate-bg-crossfade.h - fade window background between two pixmaps</span>
+<a id="line-2" name="line-2"></a>
+<a id="line-3" name="line-3"></a><span class="cm"> Copyright 2008, Red Hat, Inc.</span>
+<a id="line-4" name="line-4"></a>
+<a id="line-5" name="line-5"></a><span class="cm"> This file is part of the Mate Library.</span>
+<a id="line-6" name="line-6"></a>
+<a id="line-7" name="line-7"></a><span class="cm"> The Mate Library is free software; you can redistribute it and/or</span>
+<a id="line-8" name="line-8"></a><span class="cm"> modify it under the terms of the GNU Library General Public License as</span>
+<a id="line-9" name="line-9"></a><span class="cm"> published by the Free Software Foundation; either version 2 of the</span>
+<a id="line-10" name="line-10"></a><span class="cm"> License, or (at your option) any later version.</span>
+<a id="line-11" name="line-11"></a>
+<a id="line-12" name="line-12"></a><span class="cm"> The Mate Library is distributed in the hope that it will be useful,</span>
+<a id="line-13" name="line-13"></a><span class="cm"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-14" name="line-14"></a><span class="cm"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-15" name="line-15"></a><span class="cm"> Library General Public License for more details.</span>
+<a id="line-16" name="line-16"></a>
+<a id="line-17" name="line-17"></a><span class="cm"> You should have received a copy of the GNU Library General Public</span>
+<a id="line-18" name="line-18"></a><span class="cm"> License along with the Mate Library; see the file COPYING.LIB. If not,</span>
+<a id="line-19" name="line-19"></a><span class="cm"> write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth</span>
+<a id="line-20" name="line-20"></a><span class="cm"> Floor, Boston, MA 02110-1301 US.</span>
+<a id="line-21" name="line-21"></a>
+<a id="line-22" name="line-22"></a><span class="cm"> Author: Ray Strode &lt;[email protected]&gt;</span>
+<a id="line-23" name="line-23"></a><span class="cm">*/</span>
+<a id="line-24" name="line-24"></a>
+<a id="line-25" name="line-25"></a><span class="cp">#ifndef __MATE_BG_CROSSFADE_H__</span>
+<a id="line-26" name="line-26"></a><span class="cp">#define __MATE_BG_CROSSFADE_H__</span>
+<a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="cp">#ifndef MATE_DESKTOP_USE_UNSTABLE_API</span>
+<a id="line-29" name="line-29"></a><span class="cp">#error MateBGCrossfade is unstable API. You must define MATE_DESKTOP_USE_UNSTABLE_API before including mate-bg-crossfade.h</span>
+<a id="line-30" name="line-30"></a><span class="cp">#endif</span>
+<a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib.h&gt;</span><span class="error2">&lt;--- Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-33" name="line-33"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdk.h&gt;</span><span class="error2">&lt;--- Include file: <gdk/gdk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-34" name="line-34"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-35" name="line-35"></a>
+<a id="line-36" name="line-36"></a><span class="n">G_BEGIN_DECLS</span>
+<a id="line-37" name="line-37"></a>
+<a id="line-38" name="line-38"></a><span class="cp">#define MATE_TYPE_BG_CROSSFADE (mate_bg_crossfade_get_type ())</span>
+<a id="line-39" name="line-39"></a><span class="cp">#define MATE_BG_CROSSFADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATE_TYPE_BG_CROSSFADE, MateBGCrossfade))</span>
+<a id="line-40" name="line-40"></a><span class="cp">#define MATE_BG_CROSSFADE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MATE_TYPE_BG_CROSSFADE, MateBGCrossfadeClass))</span>
+<a id="line-41" name="line-41"></a><span class="cp">#define MATE_IS_BG_CROSSFADE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MATE_TYPE_BG_CROSSFADE))</span>
+<a id="line-42" name="line-42"></a><span class="cp">#define MATE_IS_BG_CROSSFADE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MATE_TYPE_BG_CROSSFADE))</span>
+<a id="line-43" name="line-43"></a><span class="cp">#define MATE_BG_CROSSFADE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MATE_TYPE_BG_CROSSFADE, MateBGCrossfadeClass))</span>
+<a id="line-44" name="line-44"></a>
+<a id="line-45" name="line-45"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_MateBGCrossfadePrivate</span><span class="w"> </span><span class="n">MateBGCrossfadePrivate</span><span class="p">;</span>
+<a id="line-46" name="line-46"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_MateBGCrossfade</span><span class="w"> </span><span class="n">MateBGCrossfade</span><span class="p">;</span>
+<a id="line-47" name="line-47"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_MateBGCrossfadeClass</span><span class="w"> </span><span class="n">MateBGCrossfadeClass</span><span class="p">;</span>
+<a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_MateBGCrossfade</span>
+<a id="line-50" name="line-50"></a><span class="p">{</span>
+<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">GObject</span><span class="w"> </span><span class="n">parent_object</span><span class="p">;</span>
+<a id="line-52" name="line-52"></a>
+<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">MateBGCrossfadePrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-54" name="line-54"></a><span class="p">};</span>
+<a id="line-55" name="line-55"></a>
+<a id="line-56" name="line-56"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_MateBGCrossfadeClass</span>
+<a id="line-57" name="line-57"></a><span class="p">{</span>
+<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="n">parent_class</span><span class="p">;</span>
+<a id="line-59" name="line-59"></a>
+<a id="line-60" name="line-60"></a><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="w"> </span><span class="n">finished</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">MateBGCrossfade</span><span class="w"> </span><span class="o">*</span><span class="n">fade</span><span class="p">,</span><span class="w"> </span><span class="n">GdkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">);</span>
+<a id="line-61" name="line-61"></a><span class="p">};</span>
+<a id="line-62" name="line-62"></a>
+<a id="line-63" name="line-63"></a><span class="n">GType</span><span class="w"> </span><span class="nf">mate_bg_crossfade_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-64" name="line-64"></a><span class="n">MateBGCrossfade</span><span class="w"> </span><span class="o">*</span><span class="nf">mate_bg_crossfade_new</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">height</span><span class="p">);</span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_bg_crossfade_set_start_surface</span><span class="w"> </span><span class="p">(</span><span class="n">MateBGCrossfade</span><span class="w"> </span><span class="o">*</span><span class="n">fade</span><span class="p">,</span>
+<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span><span class="n">surface</span><span class="p">);</span>
+<a id="line-68" name="line-68"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_bg_crossfade_set_end_surface</span><span class="w"> </span><span class="p">(</span><span class="n">MateBGCrossfade</span><span class="w"> </span><span class="o">*</span><span class="n">fade</span><span class="p">,</span>
+<a id="line-69" name="line-69"></a><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span><span class="n">surface</span><span class="p">);</span>
+<a id="line-70" name="line-70"></a>
+<a id="line-71" name="line-71"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_bg_crossfade_start</span><span class="w"> </span><span class="p">(</span><span class="n">MateBGCrossfade</span><span class="w"> </span><span class="o">*</span><span class="n">fade</span><span class="p">,</span>
+<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">GdkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">);</span>
+<a id="line-73" name="line-73"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_bg_crossfade_start_widget</span><span class="w"> </span><span class="p">(</span><span class="n">MateBGCrossfade</span><span class="w"> </span><span class="o">*</span><span class="n">fade</span><span class="p">,</span>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-75" name="line-75"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_bg_crossfade_is_started</span><span class="w"> </span><span class="p">(</span><span class="n">MateBGCrossfade</span><span class="w"> </span><span class="o">*</span><span class="n">fade</span><span class="p">);</span>
+<a id="line-76" name="line-76"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_bg_crossfade_stop</span><span class="w"> </span><span class="p">(</span><span class="n">MateBGCrossfade</span><span class="w"> </span><span class="o">*</span><span class="n">fade</span><span class="p">);</span>
+<a id="line-77" name="line-77"></a>
+<a id="line-78" name="line-78"></a><span class="n">G_END_DECLS</span>
+<a id="line-79" name="line-79"></a>
+<a id="line-80" name="line-80"></a><span class="cp">#endif</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/30.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/30.html
new file mode 100644
index 0000000..cf4524f
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/30.html
@@ -0,0 +1,365 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/test-desktop-thumbnail.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> test-desktop-thumbnail.c</p>
+<a href="30.html#line-27"> missingIncludeSystem 27</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal">10</span>
+<span class="normal">11</span>
+<span class="normal">12</span>
+<span class="normal">13</span>
+<span class="normal">14</span>
+<span class="normal">15</span>
+<span class="normal">16</span>
+<span class="normal">17</span>
+<span class="normal">18</span>
+<span class="normal">19</span>
+<span class="normal">20</span>
+<span class="normal">21</span>
+<span class="normal">22</span>
+<span class="normal">23</span>
+<span class="normal">24</span>
+<span class="normal">25</span>
+<span class="normal">26</span>
+<span class="normal">27</span>
+<span class="normal">28</span>
+<span class="normal">29</span>
+<span class="normal">30</span>
+<span class="normal">31</span>
+<span class="normal">32</span>
+<span class="normal">33</span>
+<span class="normal">34</span>
+<span class="normal">35</span>
+<span class="normal">36</span>
+<span class="normal">37</span>
+<span class="normal">38</span>
+<span class="normal">39</span>
+<span class="normal">40</span>
+<span class="normal">41</span>
+<span class="normal">42</span>
+<span class="normal">43</span>
+<span class="normal">44</span>
+<span class="normal">45</span>
+<span class="normal">46</span>
+<span class="normal">47</span>
+<span class="normal">48</span>
+<span class="normal">49</span>
+<span class="normal">50</span>
+<span class="normal">51</span>
+<span class="normal">52</span>
+<span class="normal">53</span>
+<span class="normal">54</span>
+<span class="normal">55</span>
+<span class="normal">56</span>
+<span class="normal">57</span>
+<span class="normal">58</span>
+<span class="normal">59</span>
+<span class="normal">60</span>
+<span class="normal">61</span>
+<span class="normal">62</span>
+<span class="normal">63</span>
+<span class="normal">64</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span>
+<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2012,2017 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2018-2021 MATE Developers</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This file is part of the Mate Library.</span>
+<a id="line-6" name="line-6"></a><span class="cm"> *</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * The Gnome Library is free software; you can redistribute it and/or</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * modify it under the terms of the GNU Library General Public License as</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * published by the Free Software Foundation; either version 2 of the</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * License, or (at your option) any later version.</span>
+<a id="line-11" name="line-11"></a><span class="cm"> *</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * The Gnome Library is distributed in the hope that it will be useful,</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * Library General Public License for more details.</span>
+<a id="line-16" name="line-16"></a><span class="cm"> *</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * You should have received a copy of the GNU Library General Public</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * License along with the Gnome Library; see the file COPYING.LIB. If not,</span>
+<a id="line-19" name="line-19"></a><span class="cm"> * write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-21" name="line-21"></a><span class="cm"> *</span>
+<a id="line-22" name="line-22"></a><span class="cm"> * Authors: Bastien Nocera &lt;[email protected]&gt;</span>
+<a id="line-23" name="line-23"></a><span class="cm">+ */</span>
+<a id="line-24" name="line-24"></a>
+<a id="line-25" name="line-25"></a><span class="cp">#define MATE_DESKTOP_USE_UNSTABLE_API</span>
+<a id="line-26" name="line-26"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;mate-desktop-thumbnail.h&quot;</span>
+<a id="line-27" name="line-27"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-28" name="line-28"></a>
+<a id="line-29" name="line-29"></a><span class="kt">int</span><span class="w"> </span><span class="nf">main</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">)</span>
+<a id="line-30" name="line-30"></a><span class="p">{</span>
+<a id="line-31" name="line-31"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-32" name="line-32"></a><span class="w"> </span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">;</span>
+<a id="line-33" name="line-33"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span>
+<a id="line-34" name="line-34"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">content_type</span><span class="p">;</span>
+<a id="line-35" name="line-35"></a>
+<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">gtk_init</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">argv</span><span class="p">);</span>
+<a id="line-37" name="line-37"></a>
+<a id="line-38" name="line-38"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">argc</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">2</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-39" name="line-39"></a><span class="w"> </span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Usage: %s FILE...</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">argv</span><span class="p">[</span><span class="mi">0</span><span class="p">]);</span>
+<a id="line-40" name="line-40"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-41" name="line-41"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-42" name="line-42"></a>
+<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">content_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_content_type_guess</span><span class="w"> </span><span class="p">(</span><span class="n">argv</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-44" name="line-44"></a><span class="w"> </span><span class="n">factory</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_thumbnail_factory_new</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_DESKTOP_THUMBNAIL_SIZE_LARGE</span><span class="p">);</span>
+<a id="line-45" name="line-45"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_thumbnail_factory_generate_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">factory</span><span class="p">,</span><span class="w"> </span><span class="n">argv</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span><span class="w"> </span><span class="n">content_type</span><span class="p">);</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">content_type</span><span class="p">);</span>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">factory</span><span class="p">);</span>
+<a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;mate_desktop_thumbnail_factory_generate_thumbnail() failed to generate a thumbnail for %s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">argv</span><span class="p">[</span><span class="mi">1</span><span class="p">]);</span>
+<a id="line-51" name="line-51"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-52" name="line-52"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-53" name="line-53"></a>
+<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_window_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW_TOPLEVEL</span><span class="p">);</span>
+<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;destroy&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_main_quit</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span>
+<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span>
+<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="n">image</span><span class="p">);</span>
+<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span>
+<a id="line-60" name="line-60"></a>
+<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">gtk_main</span><span class="w"> </span><span class="p">();</span>
+<a id="line-62" name="line-62"></a>
+<a id="line-63" name="line-63"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-64" name="line-64"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/31.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/31.html
new file mode 100644
index 0000000..7dedad4
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/31.html
@@ -0,0 +1,553 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/test-ditem.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> test-ditem.c</p>
+<a href="31.html#line-19"> missingIncludeSystem 19</a><a href="31.html#line-20"> missingIncludeSystem 20</a><a href="31.html#line-21"> missingIncludeSystem 21</a><a href="31.html#line-23"> missingIncludeSystem 23</a><a href="31.html#line-25"> missingIncludeSystem 25</a><a href="31.html#line-26"> missingIncludeSystem 26</a><a href="31.html#line-132"> constVariablePointer 132</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal"> 10</span>
+<span class="normal"> 11</span>
+<span class="normal"> 12</span>
+<span class="normal"> 13</span>
+<span class="normal"> 14</span>
+<span class="normal"> 15</span>
+<span class="normal"> 16</span>
+<span class="normal"> 17</span>
+<span class="normal"> 18</span>
+<span class="normal"> 19</span>
+<span class="normal"> 20</span>
+<span class="normal"> 21</span>
+<span class="normal"> 22</span>
+<span class="normal"> 23</span>
+<span class="normal"> 24</span>
+<span class="normal"> 25</span>
+<span class="normal"> 26</span>
+<span class="normal"> 27</span>
+<span class="normal"> 28</span>
+<span class="normal"> 29</span>
+<span class="normal"> 30</span>
+<span class="normal"> 31</span>
+<span class="normal"> 32</span>
+<span class="normal"> 33</span>
+<span class="normal"> 34</span>
+<span class="normal"> 35</span>
+<span class="normal"> 36</span>
+<span class="normal"> 37</span>
+<span class="normal"> 38</span>
+<span class="normal"> 39</span>
+<span class="normal"> 40</span>
+<span class="normal"> 41</span>
+<span class="normal"> 42</span>
+<span class="normal"> 43</span>
+<span class="normal"> 44</span>
+<span class="normal"> 45</span>
+<span class="normal"> 46</span>
+<span class="normal"> 47</span>
+<span class="normal"> 48</span>
+<span class="normal"> 49</span>
+<span class="normal"> 50</span>
+<span class="normal"> 51</span>
+<span class="normal"> 52</span>
+<span class="normal"> 53</span>
+<span class="normal"> 54</span>
+<span class="normal"> 55</span>
+<span class="normal"> 56</span>
+<span class="normal"> 57</span>
+<span class="normal"> 58</span>
+<span class="normal"> 59</span>
+<span class="normal"> 60</span>
+<span class="normal"> 61</span>
+<span class="normal"> 62</span>
+<span class="normal"> 63</span>
+<span class="normal"> 64</span>
+<span class="normal"> 65</span>
+<span class="normal"> 66</span>
+<span class="normal"> 67</span>
+<span class="normal"> 68</span>
+<span class="normal"> 69</span>
+<span class="normal"> 70</span>
+<span class="normal"> 71</span>
+<span class="normal"> 72</span>
+<span class="normal"> 73</span>
+<span class="normal"> 74</span>
+<span class="normal"> 75</span>
+<span class="normal"> 76</span>
+<span class="normal"> 77</span>
+<span class="normal"> 78</span>
+<span class="normal"> 79</span>
+<span class="normal"> 80</span>
+<span class="normal"> 81</span>
+<span class="normal"> 82</span>
+<span class="normal"> 83</span>
+<span class="normal"> 84</span>
+<span class="normal"> 85</span>
+<span class="normal"> 86</span>
+<span class="normal"> 87</span>
+<span class="normal"> 88</span>
+<span class="normal"> 89</span>
+<span class="normal"> 90</span>
+<span class="normal"> 91</span>
+<span class="normal"> 92</span>
+<span class="normal"> 93</span>
+<span class="normal"> 94</span>
+<span class="normal"> 95</span>
+<span class="normal"> 96</span>
+<span class="normal"> 97</span>
+<span class="normal"> 98</span>
+<span class="normal"> 99</span>
+<span class="normal">100</span>
+<span class="normal">101</span>
+<span class="normal">102</span>
+<span class="normal">103</span>
+<span class="normal">104</span>
+<span class="normal">105</span>
+<span class="normal">106</span>
+<span class="normal">107</span>
+<span class="normal">108</span>
+<span class="normal">109</span>
+<span class="normal">110</span>
+<span class="normal">111</span>
+<span class="normal">112</span>
+<span class="normal">113</span>
+<span class="normal">114</span>
+<span class="normal">115</span>
+<span class="normal">116</span>
+<span class="normal">117</span>
+<span class="normal">118</span>
+<span class="normal">119</span>
+<span class="normal">120</span>
+<span class="normal">121</span>
+<span class="normal">122</span>
+<span class="normal">123</span>
+<span class="normal">124</span>
+<span class="normal">125</span>
+<span class="normal">126</span>
+<span class="normal">127</span>
+<span class="normal">128</span>
+<span class="normal">129</span>
+<span class="normal">130</span>
+<span class="normal">131</span>
+<span class="normal">132</span>
+<span class="normal">133</span>
+<span class="normal">134</span>
+<span class="normal">135</span>
+<span class="normal">136</span>
+<span class="normal">137</span>
+<span class="normal">138</span>
+<span class="normal">139</span>
+<span class="normal">140</span>
+<span class="normal">141</span>
+<span class="normal">142</span>
+<span class="normal">143</span>
+<span class="normal">144</span>
+<span class="normal">145</span>
+<span class="normal">146</span>
+<span class="normal">147</span>
+<span class="normal">148</span>
+<span class="normal">149</span>
+<span class="normal">150</span>
+<span class="normal">151</span>
+<span class="normal">152</span>
+<span class="normal">153</span>
+<span class="normal">154</span>
+<span class="normal">155</span>
+<span class="normal">156</span>
+<span class="normal">157</span>
+<span class="normal">158</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* -*- Mode: C; c-set-style: gnu indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */</span>
+<a id="line-2" name="line-2"></a><span class="cm">/*</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * This program is free software; you can redistribute it and/or modify</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * (at your option) any later version.</span>
+<a id="line-7" name="line-7"></a><span class="cm"> *</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * GNU General Public License for more details.</span>
+<a id="line-12" name="line-12"></a><span class="cm"> *</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * along with this program; if not, write to the Free Software</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor,</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-17" name="line-17"></a><span class="cm"> */</span>
+<a id="line-18" name="line-18"></a>
+<a id="line-19" name="line-19"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;config.h&gt;</span><span class="error2">&lt;--- Include file: <config.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-20" name="line-20"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-21" name="line-21"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;unistd.h&gt;</span><span class="error2">&lt;--- Include file: <unistd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;mate-desktop-item.h&gt;</span><span class="error2">&lt;--- Include file: <mate-desktop-item.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-24" name="line-24"></a>
+<a id="line-25" name="line-25"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;locale.h&gt;</span><span class="error2">&lt;--- Include file: <locale.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdlib.h&gt;</span><span class="error2">&lt;--- Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-29" name="line-29"></a><span class="nf">test_ditem</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">)</span>
+<a id="line-30" name="line-30"></a><span class="p">{</span>
+<a id="line-31" name="line-31"></a><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">ditem</span><span class="p">;</span>
+<a id="line-32" name="line-32"></a><span class="w"> </span><span class="n">MateDesktopItemType</span><span class="w"> </span><span class="n">type</span><span class="p">;</span>
+<a id="line-33" name="line-33"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">;</span>
+<a id="line-34" name="line-34"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">;</span>
+<a id="line-35" name="line-35"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">path</span><span class="p">[</span><span class="mi">256</span><span class="p">];</span>
+<a id="line-36" name="line-36"></a>
+<a id="line-37" name="line-37"></a><span class="w"> </span><span class="n">ditem</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_new_from_file</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span>
+<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_LOAD_ONLY_IF_EXISTS</span><span class="p">,</span>
+<a id="line-39" name="line-39"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-40" name="line-40"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">ditem</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;File %s is not an existing ditem</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">file</span><span class="p">);</span>
+<a id="line-42" name="line-42"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-43" name="line-43"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-44" name="line-44"></a>
+<a id="line-45" name="line-45"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_get_location</span><span class="w"> </span><span class="p">(</span><span class="n">ditem</span><span class="p">);</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;LOCATION: |%s|</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">text</span><span class="p">);</span>
+<a id="line-47" name="line-47"></a>
+<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_get_entry_type</span><span class="w"> </span><span class="p">(</span><span class="n">ditem</span><span class="p">);</span>
+<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;TYPE: |%u|</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">type</span><span class="p">);</span>
+<a id="line-50" name="line-50"></a>
+<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_get_string</span>
+<a id="line-52" name="line-52"></a><span class="w"> </span><span class="p">(</span><span class="n">ditem</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_TYPE</span><span class="p">);</span>
+<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;TYPE(string): |%s|</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">text</span><span class="p">);</span>
+<a id="line-54" name="line-54"></a>
+<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_get_string</span>
+<a id="line-56" name="line-56"></a><span class="w"> </span><span class="p">(</span><span class="n">ditem</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_EXEC</span><span class="p">);</span>
+<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;EXEC: |%s|</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">text</span><span class="p">);</span>
+<a id="line-58" name="line-58"></a>
+<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_get_string</span>
+<a id="line-60" name="line-60"></a><span class="w"> </span><span class="p">(</span><span class="n">ditem</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_ICON</span><span class="p">);</span>
+<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;ICON: |%s|</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">text</span><span class="p">);</span>
+<a id="line-62" name="line-62"></a>
+<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_get_localestring</span>
+<a id="line-64" name="line-64"></a><span class="w"> </span><span class="p">(</span><span class="n">ditem</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_NAME</span><span class="p">);</span>
+<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;NAME: |%s|</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">text</span><span class="p">);</span>
+<a id="line-66" name="line-66"></a>
+<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_get_localestring_lang</span>
+<a id="line-68" name="line-68"></a><span class="w"> </span><span class="p">(</span><span class="n">ditem</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_NAME</span><span class="p">,</span>
+<a id="line-69" name="line-69"></a><span class="w"> </span><span class="s">&quot;cs_CZ&quot;</span><span class="p">);</span>
+<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;NAME(lang=cs_CZ): |%s|</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">text</span><span class="p">);</span>
+<a id="line-71" name="line-71"></a>
+<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_get_localestring_lang</span>
+<a id="line-73" name="line-73"></a><span class="w"> </span><span class="p">(</span><span class="n">ditem</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_NAME</span><span class="p">,</span>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="s">&quot;de&quot;</span><span class="p">);</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;NAME(lang=de): |%s|</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">text</span><span class="p">);</span>
+<a id="line-76" name="line-76"></a>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_get_localestring_lang</span>
+<a id="line-78" name="line-78"></a><span class="w"> </span><span class="p">(</span><span class="n">ditem</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_NAME</span><span class="p">,</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;NAME(lang=null): |%s|</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">text</span><span class="p">);</span>
+<a id="line-81" name="line-81"></a>
+<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_get_localestring</span>
+<a id="line-83" name="line-83"></a><span class="w"> </span><span class="p">(</span><span class="n">ditem</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_COMMENT</span><span class="p">);</span>
+<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;COMMENT: |%s|</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">text</span><span class="p">);</span>
+<a id="line-85" name="line-85"></a>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Setting Name[de]=Neu gestzt! (I have no idea what that means)</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">);</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">mate_desktop_item_set_localestring</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="p">(</span><span class="n">ditem</span><span class="p">,</span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_NAME</span><span class="p">,</span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="s">&quot;Neu gesetzt!&quot;</span><span class="p">);</span>
+<a id="line-91" name="line-91"></a>
+<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">getcwd</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="mi">255</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;/foo.desktop&quot;</span><span class="p">));</span>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">g_strlcat</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;/foo.desktop&quot;</span><span class="p">,</span><span class="w"> </span><span class="k">sizeof</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">));</span>
+<a id="line-94" name="line-94"></a>
+<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Saving to foo.desktop</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">);</span>
+<a id="line-96" name="line-96"></a><span class="w"> </span><span class="n">uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_filename_to_uri</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;URI: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">uri</span><span class="p">);</span>
+<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">mate_desktop_item_save</span><span class="w"> </span><span class="p">(</span><span class="n">ditem</span><span class="p">,</span><span class="w"> </span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">);</span>
+<a id="line-100" name="line-100"></a><span class="p">}</span>
+<a id="line-101" name="line-101"></a>
+<a id="line-102" name="line-102"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-103" name="line-103"></a><span class="nf">launch_item</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">)</span>
+<a id="line-104" name="line-104"></a><span class="p">{</span>
+<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">MateDesktopItem</span><span class="w"> </span><span class="o">*</span><span class="n">ditem</span><span class="p">;</span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">file_list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-108" name="line-108"></a>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">ditem</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_new_from_file</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span>
+<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">MATE_DESKTOP_ITEM_LOAD_ONLY_IF_EXISTS</span><span class="p">,</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">ditem</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-113" name="line-113"></a><span class="w"> </span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;File %s is not an existing ditem</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">file</span><span class="p">);</span>
+<a id="line-114" name="line-114"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-115" name="line-115"></a>
+<a id="line-116" name="line-116"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-117" name="line-117"></a>
+<a id="line-118" name="line-118"></a><span class="cp">#if 0</span>
+<a id="line-119" name="line-119"></a><span class="c"> file_list = g_list_append (NULL, &quot;file:///bin/sh&quot;);</span>
+<a id="line-120" name="line-120"></a><span class="c"> file_list = g_list_append (file_list, &quot;foo&quot;);</span>
+<a id="line-121" name="line-121"></a><span class="c"> file_list = g_list_append (file_list, &quot;bar&quot;);</span>
+<a id="line-122" name="line-122"></a><span class="c"> file_list = g_list_append (file_list, &quot;http://slashdot.org&quot;);</span>
+<a id="line-123" name="line-123"></a><span class="cp">#endif</span>
+<a id="line-124" name="line-124"></a>
+<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_item_launch</span><span class="w"> </span><span class="p">(</span><span class="n">ditem</span><span class="p">,</span><span class="w"> </span><span class="n">file_list</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">g_print</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;launch returned: %d</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">ret</span><span class="p">);</span>
+<a id="line-127" name="line-127"></a><span class="p">}</span>
+<a id="line-128" name="line-128"></a>
+<a id="line-129" name="line-129"></a><span class="kt">int</span>
+<a id="line-130" name="line-130"></a><span class="nf">main</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">)</span>
+<a id="line-131" name="line-131"></a><span class="p">{</span>
+<a id="line-132" name="line-132"></a><span class="hll"><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span><span class="error2">&lt;--- Variable 'file' can be declared as pointer to const</span>
+</span><a id="line-133" name="line-133"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">launch</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-134" name="line-134"></a>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">argc</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">argc</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">3</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">fprintf</span><span class="w"> </span><span class="p">(</span><span class="n">stderr</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Usage: test-ditem path [LAUNCH]</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">);</span>
+<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">exit</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="p">);</span>
+<a id="line-138" name="line-138"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-139" name="line-139"></a>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">argc</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">3</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">argv</span><span class="p">[</span><span class="mi">2</span><span class="p">],</span><span class="w"> </span><span class="s">&quot;LAUNCH&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">launch</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-143" name="line-143"></a>
+<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">argv</span><span class="p">[</span><span class="mi">1</span><span class="p">]);</span>
+<a id="line-145" name="line-145"></a>
+<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">gtk_init</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">argv</span><span class="p">);</span>
+<a id="line-147" name="line-147"></a>
+<a id="line-148" name="line-148"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">launch</span><span class="p">)</span>
+<a id="line-149" name="line-149"></a><span class="w"> </span><span class="n">launch_item</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-150" name="line-150"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">test_ditem</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-152" name="line-152"></a>
+<a id="line-153" name="line-153"></a><span class="w"> </span><span class="cm">/*</span>
+<a id="line-154" name="line-154"></a><span class="cm"> test_ditem_edit (file);</span>
+<a id="line-155" name="line-155"></a><span class="cm"> */</span>
+<a id="line-156" name="line-156"></a>
+<a id="line-157" name="line-157"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-158" name="line-158"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/32.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/32.html
new file mode 100644
index 0000000..6195e99
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/32.html
@@ -0,0 +1,413 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/test-languages.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> test-languages.c</p>
+<a href="32.html#line-18"> missingIncludeSystem 18</a><a href="32.html#line-19"> missingIncludeSystem 19</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal">10</span>
+<span class="normal">11</span>
+<span class="normal">12</span>
+<span class="normal">13</span>
+<span class="normal">14</span>
+<span class="normal">15</span>
+<span class="normal">16</span>
+<span class="normal">17</span>
+<span class="normal">18</span>
+<span class="normal">19</span>
+<span class="normal">20</span>
+<span class="normal">21</span>
+<span class="normal">22</span>
+<span class="normal">23</span>
+<span class="normal">24</span>
+<span class="normal">25</span>
+<span class="normal">26</span>
+<span class="normal">27</span>
+<span class="normal">28</span>
+<span class="normal">29</span>
+<span class="normal">30</span>
+<span class="normal">31</span>
+<span class="normal">32</span>
+<span class="normal">33</span>
+<span class="normal">34</span>
+<span class="normal">35</span>
+<span class="normal">36</span>
+<span class="normal">37</span>
+<span class="normal">38</span>
+<span class="normal">39</span>
+<span class="normal">40</span>
+<span class="normal">41</span>
+<span class="normal">42</span>
+<span class="normal">43</span>
+<span class="normal">44</span>
+<span class="normal">45</span>
+<span class="normal">46</span>
+<span class="normal">47</span>
+<span class="normal">48</span>
+<span class="normal">49</span>
+<span class="normal">50</span>
+<span class="normal">51</span>
+<span class="normal">52</span>
+<span class="normal">53</span>
+<span class="normal">54</span>
+<span class="normal">55</span>
+<span class="normal">56</span>
+<span class="normal">57</span>
+<span class="normal">58</span>
+<span class="normal">59</span>
+<span class="normal">60</span>
+<span class="normal">61</span>
+<span class="normal">62</span>
+<span class="normal">63</span>
+<span class="normal">64</span>
+<span class="normal">65</span>
+<span class="normal">66</span>
+<span class="normal">67</span>
+<span class="normal">68</span>
+<span class="normal">69</span>
+<span class="normal">70</span>
+<span class="normal">71</span>
+<span class="normal">72</span>
+<span class="normal">73</span>
+<span class="normal">74</span>
+<span class="normal">75</span>
+<span class="normal">76</span>
+<span class="normal">77</span>
+<span class="normal">78</span>
+<span class="normal">79</span>
+<span class="normal">80</span>
+<span class="normal">81</span>
+<span class="normal">82</span>
+<span class="normal">83</span>
+<span class="normal">84</span>
+<span class="normal">85</span>
+<span class="normal">86</span>
+<span class="normal">87</span>
+<span class="normal">88</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* vi: set sw=4 ts=4 wrap ai: */</span>
+<a id="line-2" name="line-2"></a><span class="cm">/*</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * This program is free software; you can redistribute it and/or modify</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * (at your option) any later version.</span>
+<a id="line-7" name="line-7"></a><span class="cm"> *</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * GNU General Public License for more details.</span>
+<a id="line-12" name="line-12"></a><span class="cm"> *</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * You should have received a copy of the GNU General Public License along</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * with this program; if not, write to the Free Software Foundation, Inc.,</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * */</span>
+<a id="line-17" name="line-17"></a>
+<a id="line-18" name="line-18"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdio.h&gt;</span><span class="error2">&lt;--- Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-19" name="line-19"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;locale.h&gt;</span><span class="error2">&lt;--- Include file: <locale.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-20" name="line-20"></a><span class="cp">#define MATE_DESKTOP_USE_UNSTABLE_API</span>
+<a id="line-21" name="line-21"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;mate-languages.h&quot;</span>
+<a id="line-22" name="line-22"></a>
+<a id="line-23" name="line-23"></a><span class="kt">void</span><span class="w"> </span><span class="nf">test_one_locale</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">locale</span><span class="p">);</span>
+<a id="line-24" name="line-24"></a><span class="kt">void</span><span class="w"> </span><span class="nf">test_locales</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="kt">void</span><span class="w"> </span><span class="nf">test_one_locale</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">locale</span><span class="p">)</span>
+<a id="line-27" name="line-27"></a><span class="p">{</span>
+<a id="line-28" name="line-28"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">lang</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">country</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">norm_locale</span><span class="p">;</span>
+<a id="line-29" name="line-29"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">language_code</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">country_code</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">codeset</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">modifier</span><span class="p">;</span>
+<a id="line-30" name="line-30"></a>
+<a id="line-31" name="line-31"></a><span class="w"> </span><span class="n">lang</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_get_language_from_locale</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="p">);</span>
+<a id="line-32" name="line-32"></a><span class="w"> </span><span class="n">country</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_get_country_from_locale</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="p">);</span>
+<a id="line-33" name="line-33"></a><span class="w"> </span><span class="n">norm_locale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_normalize_locale</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="p">);</span>
+<a id="line-34" name="line-34"></a>
+<a id="line-35" name="line-35"></a><span class="w"> </span><span class="n">printf</span><span class="p">(</span><span class="s">&quot;Current locale: %s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="p">);</span>
+<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">printf</span><span class="p">(</span><span class="s">&quot;[locale]:</span><span class="se">\t\t</span><span class="s">lang=%s, country=%s, locale=%s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">lang</span><span class="p">,</span><span class="w"> </span><span class="n">country</span><span class="p">,</span><span class="w"> </span><span class="n">norm_locale</span><span class="p">);</span>
+<a id="line-37" name="line-37"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">lang</span><span class="p">);</span>
+<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">country</span><span class="p">);</span>
+<a id="line-39" name="line-39"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">norm_locale</span><span class="p">);</span>
+<a id="line-40" name="line-40"></a>
+<a id="line-41" name="line-41"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mate_parse_locale</span><span class="w"> </span><span class="p">(</span><span class="n">locale</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">language_code</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">country_code</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">codeset</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">modifier</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">lang</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_get_language_from_code</span><span class="w"> </span><span class="p">(</span><span class="n">language_code</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="p">);</span>
+<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">country</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_get_country_from_code</span><span class="w"> </span><span class="p">(</span><span class="n">country_code</span><span class="p">,</span><span class="w"> </span><span class="n">locale</span><span class="p">);</span>
+<a id="line-44" name="line-44"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mate_language_has_translations</span><span class="p">(</span><span class="n">language_code</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-45" name="line-45"></a><span class="w"> </span><span class="n">printf</span><span class="p">(</span><span class="s">&quot;[mate_parse_locale]:</span><span class="se">\t</span><span class="s">lang_code=%s, country_code=%s, code=%s, modifier=%s</span><span class="se">\n</span><span class="s">&quot;</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="s">&quot;[code]:</span><span class="se">\t\t\t</span><span class="s">lang=%s, country=%s, Has translation</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span>
+<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">language_code</span><span class="p">,</span><span class="w"> </span><span class="n">country_code</span><span class="p">,</span><span class="w"> </span><span class="n">codeset</span><span class="p">,</span><span class="w"> </span><span class="n">modifier</span><span class="p">,</span>
+<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">lang</span><span class="p">,</span><span class="w"> </span><span class="n">country</span><span class="p">);</span>
+<a id="line-49" name="line-49"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">printf</span><span class="p">(</span><span class="s">&quot;[mate_parse_locale]:</span><span class="se">\t</span><span class="s">lang_code=%s, country_code=%s, code=%s, modifier=%s</span><span class="se">\n</span><span class="s">&quot;</span>
+<a id="line-51" name="line-51"></a><span class="w"> </span><span class="s">&quot;[code]:</span><span class="se">\t\t\t</span><span class="s">lang=%s, country=%s</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span>
+<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">language_code</span><span class="p">,</span><span class="w"> </span><span class="n">country_code</span><span class="p">,</span><span class="w"> </span><span class="n">codeset</span><span class="p">,</span><span class="w"> </span><span class="n">modifier</span><span class="p">,</span>
+<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">lang</span><span class="p">,</span><span class="w"> </span><span class="n">country</span><span class="p">);</span>
+<a id="line-54" name="line-54"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">lang</span><span class="p">);</span>
+<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">country</span><span class="p">);</span>
+<a id="line-57" name="line-57"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">putchar</span><span class="p">(</span><span class="sc">&#39;\n&#39;</span><span class="p">);</span>
+<a id="line-59" name="line-59"></a>
+<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">language_code</span><span class="p">);</span>
+<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">country_code</span><span class="p">);</span>
+<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">codeset</span><span class="p">);</span>
+<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">modifier</span><span class="p">);</span>
+<a id="line-64" name="line-64"></a><span class="p">}</span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="kt">void</span><span class="w"> </span><span class="nf">test_locales</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-67" name="line-67"></a><span class="p">{</span>
+<a id="line-68" name="line-68"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">all</span><span class="p">;</span>
+<a id="line-69" name="line-69"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">len</span><span class="p">;</span>
+<a id="line-70" name="line-70"></a>
+<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">all</span><span class="o">=</span><span class="w"> </span><span class="n">mate_get_all_locales</span><span class="w"> </span><span class="p">();</span>
+<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strv_length</span><span class="w"> </span><span class="p">(</span><span class="n">all</span><span class="p">);</span>
+<a id="line-73" name="line-73"></a>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">len</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">test_one_locale</span><span class="p">(</span><span class="n">all</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="p">(</span><span class="n">all</span><span class="p">);</span>
+<a id="line-78" name="line-78"></a><span class="p">}</span>
+<a id="line-79" name="line-79"></a>
+<a id="line-80" name="line-80"></a><span class="kt">int</span><span class="w"> </span><span class="nf">main</span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">)</span>
+<a id="line-81" name="line-81"></a><span class="p">{</span>
+<a id="line-82" name="line-82"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">argc</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">2</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">test_one_locale</span><span class="p">(</span><span class="n">argv</span><span class="p">[</span><span class="mi">1</span><span class="p">]);</span>
+<a id="line-84" name="line-84"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">test_locales</span><span class="p">();</span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-88" name="line-88"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/33.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/33.html
new file mode 100644
index 0000000..fbf1c0c
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/33.html
@@ -0,0 +1,1577 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: mate-about/mate-about.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-about.h</p>
+<a href="33.html#line-25"> missingIncludeSystem 25</a><a href="33.html#line-26"> missingIncludeSystem 26</a><a href="33.html#line-27"> missingIncludeSystem 27</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal"> 10</span>
+<span class="normal"> 11</span>
+<span class="normal"> 12</span>
+<span class="normal"> 13</span>
+<span class="normal"> 14</span>
+<span class="normal"> 15</span>
+<span class="normal"> 16</span>
+<span class="normal"> 17</span>
+<span class="normal"> 18</span>
+<span class="normal"> 19</span>
+<span class="normal"> 20</span>
+<span class="normal"> 21</span>
+<span class="normal"> 22</span>
+<span class="normal"> 23</span>
+<span class="normal"> 24</span>
+<span class="normal"> 25</span>
+<span class="normal"> 26</span>
+<span class="normal"> 27</span>
+<span class="normal"> 28</span>
+<span class="normal"> 29</span>
+<span class="normal"> 30</span>
+<span class="normal"> 31</span>
+<span class="normal"> 32</span>
+<span class="normal"> 33</span>
+<span class="normal"> 34</span>
+<span class="normal"> 35</span>
+<span class="normal"> 36</span>
+<span class="normal"> 37</span>
+<span class="normal"> 38</span>
+<span class="normal"> 39</span>
+<span class="normal"> 40</span>
+<span class="normal"> 41</span>
+<span class="normal"> 42</span>
+<span class="normal"> 43</span>
+<span class="normal"> 44</span>
+<span class="normal"> 45</span>
+<span class="normal"> 46</span>
+<span class="normal"> 47</span>
+<span class="normal"> 48</span>
+<span class="normal"> 49</span>
+<span class="normal"> 50</span>
+<span class="normal"> 51</span>
+<span class="normal"> 52</span>
+<span class="normal"> 53</span>
+<span class="normal"> 54</span>
+<span class="normal"> 55</span>
+<span class="normal"> 56</span>
+<span class="normal"> 57</span>
+<span class="normal"> 58</span>
+<span class="normal"> 59</span>
+<span class="normal"> 60</span>
+<span class="normal"> 61</span>
+<span class="normal"> 62</span>
+<span class="normal"> 63</span>
+<span class="normal"> 64</span>
+<span class="normal"> 65</span>
+<span class="normal"> 66</span>
+<span class="normal"> 67</span>
+<span class="normal"> 68</span>
+<span class="normal"> 69</span>
+<span class="normal"> 70</span>
+<span class="normal"> 71</span>
+<span class="normal"> 72</span>
+<span class="normal"> 73</span>
+<span class="normal"> 74</span>
+<span class="normal"> 75</span>
+<span class="normal"> 76</span>
+<span class="normal"> 77</span>
+<span class="normal"> 78</span>
+<span class="normal"> 79</span>
+<span class="normal"> 80</span>
+<span class="normal"> 81</span>
+<span class="normal"> 82</span>
+<span class="normal"> 83</span>
+<span class="normal"> 84</span>
+<span class="normal"> 85</span>
+<span class="normal"> 86</span>
+<span class="normal"> 87</span>
+<span class="normal"> 88</span>
+<span class="normal"> 89</span>
+<span class="normal"> 90</span>
+<span class="normal"> 91</span>
+<span class="normal"> 92</span>
+<span class="normal"> 93</span>
+<span class="normal"> 94</span>
+<span class="normal"> 95</span>
+<span class="normal"> 96</span>
+<span class="normal"> 97</span>
+<span class="normal"> 98</span>
+<span class="normal"> 99</span>
+<span class="normal">100</span>
+<span class="normal">101</span>
+<span class="normal">102</span>
+<span class="normal">103</span>
+<span class="normal">104</span>
+<span class="normal">105</span>
+<span class="normal">106</span>
+<span class="normal">107</span>
+<span class="normal">108</span>
+<span class="normal">109</span>
+<span class="normal">110</span>
+<span class="normal">111</span>
+<span class="normal">112</span>
+<span class="normal">113</span>
+<span class="normal">114</span>
+<span class="normal">115</span>
+<span class="normal">116</span>
+<span class="normal">117</span>
+<span class="normal">118</span>
+<span class="normal">119</span>
+<span class="normal">120</span>
+<span class="normal">121</span>
+<span class="normal">122</span>
+<span class="normal">123</span>
+<span class="normal">124</span>
+<span class="normal">125</span>
+<span class="normal">126</span>
+<span class="normal">127</span>
+<span class="normal">128</span>
+<span class="normal">129</span>
+<span class="normal">130</span>
+<span class="normal">131</span>
+<span class="normal">132</span>
+<span class="normal">133</span>
+<span class="normal">134</span>
+<span class="normal">135</span>
+<span class="normal">136</span>
+<span class="normal">137</span>
+<span class="normal">138</span>
+<span class="normal">139</span>
+<span class="normal">140</span>
+<span class="normal">141</span>
+<span class="normal">142</span>
+<span class="normal">143</span>
+<span class="normal">144</span>
+<span class="normal">145</span>
+<span class="normal">146</span>
+<span class="normal">147</span>
+<span class="normal">148</span>
+<span class="normal">149</span>
+<span class="normal">150</span>
+<span class="normal">151</span>
+<span class="normal">152</span>
+<span class="normal">153</span>
+<span class="normal">154</span>
+<span class="normal">155</span>
+<span class="normal">156</span>
+<span class="normal">157</span>
+<span class="normal">158</span>
+<span class="normal">159</span>
+<span class="normal">160</span>
+<span class="normal">161</span>
+<span class="normal">162</span>
+<span class="normal">163</span>
+<span class="normal">164</span>
+<span class="normal">165</span>
+<span class="normal">166</span>
+<span class="normal">167</span>
+<span class="normal">168</span>
+<span class="normal">169</span>
+<span class="normal">170</span>
+<span class="normal">171</span>
+<span class="normal">172</span>
+<span class="normal">173</span>
+<span class="normal">174</span>
+<span class="normal">175</span>
+<span class="normal">176</span>
+<span class="normal">177</span>
+<span class="normal">178</span>
+<span class="normal">179</span>
+<span class="normal">180</span>
+<span class="normal">181</span>
+<span class="normal">182</span>
+<span class="normal">183</span>
+<span class="normal">184</span>
+<span class="normal">185</span>
+<span class="normal">186</span>
+<span class="normal">187</span>
+<span class="normal">188</span>
+<span class="normal">189</span>
+<span class="normal">190</span>
+<span class="normal">191</span>
+<span class="normal">192</span>
+<span class="normal">193</span>
+<span class="normal">194</span>
+<span class="normal">195</span>
+<span class="normal">196</span>
+<span class="normal">197</span>
+<span class="normal">198</span>
+<span class="normal">199</span>
+<span class="normal">200</span>
+<span class="normal">201</span>
+<span class="normal">202</span>
+<span class="normal">203</span>
+<span class="normal">204</span>
+<span class="normal">205</span>
+<span class="normal">206</span>
+<span class="normal">207</span>
+<span class="normal">208</span>
+<span class="normal">209</span>
+<span class="normal">210</span>
+<span class="normal">211</span>
+<span class="normal">212</span>
+<span class="normal">213</span>
+<span class="normal">214</span>
+<span class="normal">215</span>
+<span class="normal">216</span>
+<span class="normal">217</span>
+<span class="normal">218</span>
+<span class="normal">219</span>
+<span class="normal">220</span>
+<span class="normal">221</span>
+<span class="normal">222</span>
+<span class="normal">223</span>
+<span class="normal">224</span>
+<span class="normal">225</span>
+<span class="normal">226</span>
+<span class="normal">227</span>
+<span class="normal">228</span>
+<span class="normal">229</span>
+<span class="normal">230</span>
+<span class="normal">231</span>
+<span class="normal">232</span>
+<span class="normal">233</span>
+<span class="normal">234</span>
+<span class="normal">235</span>
+<span class="normal">236</span>
+<span class="normal">237</span>
+<span class="normal">238</span>
+<span class="normal">239</span>
+<span class="normal">240</span>
+<span class="normal">241</span>
+<span class="normal">242</span>
+<span class="normal">243</span>
+<span class="normal">244</span>
+<span class="normal">245</span>
+<span class="normal">246</span>
+<span class="normal">247</span>
+<span class="normal">248</span>
+<span class="normal">249</span>
+<span class="normal">250</span>
+<span class="normal">251</span>
+<span class="normal">252</span>
+<span class="normal">253</span>
+<span class="normal">254</span>
+<span class="normal">255</span>
+<span class="normal">256</span>
+<span class="normal">257</span>
+<span class="normal">258</span>
+<span class="normal">259</span>
+<span class="normal">260</span>
+<span class="normal">261</span>
+<span class="normal">262</span>
+<span class="normal">263</span>
+<span class="normal">264</span>
+<span class="normal">265</span>
+<span class="normal">266</span>
+<span class="normal">267</span>
+<span class="normal">268</span>
+<span class="normal">269</span>
+<span class="normal">270</span>
+<span class="normal">271</span>
+<span class="normal">272</span>
+<span class="normal">273</span>
+<span class="normal">274</span>
+<span class="normal">275</span>
+<span class="normal">276</span>
+<span class="normal">277</span>
+<span class="normal">278</span>
+<span class="normal">279</span>
+<span class="normal">280</span>
+<span class="normal">281</span>
+<span class="normal">282</span>
+<span class="normal">283</span>
+<span class="normal">284</span>
+<span class="normal">285</span>
+<span class="normal">286</span>
+<span class="normal">287</span>
+<span class="normal">288</span>
+<span class="normal">289</span>
+<span class="normal">290</span>
+<span class="normal">291</span>
+<span class="normal">292</span>
+<span class="normal">293</span>
+<span class="normal">294</span>
+<span class="normal">295</span>
+<span class="normal">296</span>
+<span class="normal">297</span>
+<span class="normal">298</span>
+<span class="normal">299</span>
+<span class="normal">300</span>
+<span class="normal">301</span>
+<span class="normal">302</span>
+<span class="normal">303</span>
+<span class="normal">304</span>
+<span class="normal">305</span>
+<span class="normal">306</span>
+<span class="normal">307</span>
+<span class="normal">308</span>
+<span class="normal">309</span>
+<span class="normal">310</span>
+<span class="normal">311</span>
+<span class="normal">312</span>
+<span class="normal">313</span>
+<span class="normal">314</span>
+<span class="normal">315</span>
+<span class="normal">316</span>
+<span class="normal">317</span>
+<span class="normal">318</span>
+<span class="normal">319</span>
+<span class="normal">320</span>
+<span class="normal">321</span>
+<span class="normal">322</span>
+<span class="normal">323</span>
+<span class="normal">324</span>
+<span class="normal">325</span>
+<span class="normal">326</span>
+<span class="normal">327</span>
+<span class="normal">328</span>
+<span class="normal">329</span>
+<span class="normal">330</span>
+<span class="normal">331</span>
+<span class="normal">332</span>
+<span class="normal">333</span>
+<span class="normal">334</span>
+<span class="normal">335</span>
+<span class="normal">336</span>
+<span class="normal">337</span>
+<span class="normal">338</span>
+<span class="normal">339</span>
+<span class="normal">340</span>
+<span class="normal">341</span>
+<span class="normal">342</span>
+<span class="normal">343</span>
+<span class="normal">344</span>
+<span class="normal">345</span>
+<span class="normal">346</span>
+<span class="normal">347</span>
+<span class="normal">348</span>
+<span class="normal">349</span>
+<span class="normal">350</span>
+<span class="normal">351</span>
+<span class="normal">352</span>
+<span class="normal">353</span>
+<span class="normal">354</span>
+<span class="normal">355</span>
+<span class="normal">356</span>
+<span class="normal">357</span>
+<span class="normal">358</span>
+<span class="normal">359</span>
+<span class="normal">360</span>
+<span class="normal">361</span>
+<span class="normal">362</span>
+<span class="normal">363</span>
+<span class="normal">364</span>
+<span class="normal">365</span>
+<span class="normal">366</span>
+<span class="normal">367</span>
+<span class="normal">368</span>
+<span class="normal">369</span>
+<span class="normal">370</span>
+<span class="normal">371</span>
+<span class="normal">372</span>
+<span class="normal">373</span>
+<span class="normal">374</span>
+<span class="normal">375</span>
+<span class="normal">376</span>
+<span class="normal">377</span>
+<span class="normal">378</span>
+<span class="normal">379</span>
+<span class="normal">380</span>
+<span class="normal">381</span>
+<span class="normal">382</span>
+<span class="normal">383</span>
+<span class="normal">384</span>
+<span class="normal">385</span>
+<span class="normal">386</span>
+<span class="normal">387</span>
+<span class="normal">388</span>
+<span class="normal">389</span>
+<span class="normal">390</span>
+<span class="normal">391</span>
+<span class="normal">392</span>
+<span class="normal">393</span>
+<span class="normal">394</span>
+<span class="normal">395</span>
+<span class="normal">396</span>
+<span class="normal">397</span>
+<span class="normal">398</span>
+<span class="normal">399</span>
+<span class="normal">400</span>
+<span class="normal">401</span>
+<span class="normal">402</span>
+<span class="normal">403</span>
+<span class="normal">404</span>
+<span class="normal">405</span>
+<span class="normal">406</span>
+<span class="normal">407</span>
+<span class="normal">408</span>
+<span class="normal">409</span>
+<span class="normal">410</span>
+<span class="normal">411</span>
+<span class="normal">412</span>
+<span class="normal">413</span>
+<span class="normal">414</span>
+<span class="normal">415</span>
+<span class="normal">416</span>
+<span class="normal">417</span>
+<span class="normal">418</span>
+<span class="normal">419</span>
+<span class="normal">420</span>
+<span class="normal">421</span>
+<span class="normal">422</span>
+<span class="normal">423</span>
+<span class="normal">424</span>
+<span class="normal">425</span>
+<span class="normal">426</span>
+<span class="normal">427</span>
+<span class="normal">428</span>
+<span class="normal">429</span>
+<span class="normal">430</span>
+<span class="normal">431</span>
+<span class="normal">432</span>
+<span class="normal">433</span>
+<span class="normal">434</span>
+<span class="normal">435</span>
+<span class="normal">436</span>
+<span class="normal">437</span>
+<span class="normal">438</span>
+<span class="normal">439</span>
+<span class="normal">440</span>
+<span class="normal">441</span>
+<span class="normal">442</span>
+<span class="normal">443</span>
+<span class="normal">444</span>
+<span class="normal">445</span>
+<span class="normal">446</span>
+<span class="normal">447</span>
+<span class="normal">448</span>
+<span class="normal">449</span>
+<span class="normal">450</span>
+<span class="normal">451</span>
+<span class="normal">452</span>
+<span class="normal">453</span>
+<span class="normal">454</span>
+<span class="normal">455</span>
+<span class="normal">456</span>
+<span class="normal">457</span>
+<span class="normal">458</span>
+<span class="normal">459</span>
+<span class="normal">460</span>
+<span class="normal">461</span>
+<span class="normal">462</span>
+<span class="normal">463</span>
+<span class="normal">464</span>
+<span class="normal">465</span>
+<span class="normal">466</span>
+<span class="normal">467</span>
+<span class="normal">468</span>
+<span class="normal">469</span>
+<span class="normal">470</span>
+<span class="normal">471</span>
+<span class="normal">472</span>
+<span class="normal">473</span>
+<span class="normal">474</span>
+<span class="normal">475</span>
+<span class="normal">476</span>
+<span class="normal">477</span>
+<span class="normal">478</span>
+<span class="normal">479</span>
+<span class="normal">480</span>
+<span class="normal">481</span>
+<span class="normal">482</span>
+<span class="normal">483</span>
+<span class="normal">484</span>
+<span class="normal">485</span>
+<span class="normal">486</span>
+<span class="normal">487</span>
+<span class="normal">488</span>
+<span class="normal">489</span>
+<span class="normal">490</span>
+<span class="normal">491</span>
+<span class="normal">492</span>
+<span class="normal">493</span>
+<span class="normal">494</span>
+<span class="normal">495</span>
+<span class="normal">496</span>
+<span class="normal">497</span>
+<span class="normal">498</span>
+<span class="normal">499</span>
+<span class="normal">500</span>
+<span class="normal">501</span>
+<span class="normal">502</span>
+<span class="normal">503</span>
+<span class="normal">504</span>
+<span class="normal">505</span>
+<span class="normal">506</span>
+<span class="normal">507</span>
+<span class="normal">508</span>
+<span class="normal">509</span>
+<span class="normal">510</span>
+<span class="normal">511</span>
+<span class="normal">512</span>
+<span class="normal">513</span>
+<span class="normal">514</span>
+<span class="normal">515</span>
+<span class="normal">516</span>
+<span class="normal">517</span>
+<span class="normal">518</span>
+<span class="normal">519</span>
+<span class="normal">520</span>
+<span class="normal">521</span>
+<span class="normal">522</span>
+<span class="normal">523</span>
+<span class="normal">524</span>
+<span class="normal">525</span>
+<span class="normal">526</span>
+<span class="normal">527</span>
+<span class="normal">528</span>
+<span class="normal">529</span>
+<span class="normal">530</span>
+<span class="normal">531</span>
+<span class="normal">532</span>
+<span class="normal">533</span>
+<span class="normal">534</span>
+<span class="normal">535</span>
+<span class="normal">536</span>
+<span class="normal">537</span>
+<span class="normal">538</span>
+<span class="normal">539</span>
+<span class="normal">540</span>
+<span class="normal">541</span>
+<span class="normal">542</span>
+<span class="normal">543</span>
+<span class="normal">544</span>
+<span class="normal">545</span>
+<span class="normal">546</span>
+<span class="normal">547</span>
+<span class="normal">548</span>
+<span class="normal">549</span>
+<span class="normal">550</span>
+<span class="normal">551</span>
+<span class="normal">552</span>
+<span class="normal">553</span>
+<span class="normal">554</span>
+<span class="normal">555</span>
+<span class="normal">556</span>
+<span class="normal">557</span>
+<span class="normal">558</span>
+<span class="normal">559</span>
+<span class="normal">560</span>
+<span class="normal">561</span>
+<span class="normal">562</span>
+<span class="normal">563</span>
+<span class="normal">564</span>
+<span class="normal">565</span>
+<span class="normal">566</span>
+<span class="normal">567</span>
+<span class="normal">568</span>
+<span class="normal">569</span>
+<span class="normal">570</span>
+<span class="normal">571</span>
+<span class="normal">572</span>
+<span class="normal">573</span>
+<span class="normal">574</span>
+<span class="normal">575</span>
+<span class="normal">576</span>
+<span class="normal">577</span>
+<span class="normal">578</span>
+<span class="normal">579</span>
+<span class="normal">580</span>
+<span class="normal">581</span>
+<span class="normal">582</span>
+<span class="normal">583</span>
+<span class="normal">584</span>
+<span class="normal">585</span>
+<span class="normal">586</span>
+<span class="normal">587</span>
+<span class="normal">588</span>
+<span class="normal">589</span>
+<span class="normal">590</span>
+<span class="normal">591</span>
+<span class="normal">592</span>
+<span class="normal">593</span>
+<span class="normal">594</span>
+<span class="normal">595</span>
+<span class="normal">596</span>
+<span class="normal">597</span>
+<span class="normal">598</span>
+<span class="normal">599</span>
+<span class="normal">600</span>
+<span class="normal">601</span>
+<span class="normal">602</span>
+<span class="normal">603</span>
+<span class="normal">604</span>
+<span class="normal">605</span>
+<span class="normal">606</span>
+<span class="normal">607</span>
+<span class="normal">608</span>
+<span class="normal">609</span>
+<span class="normal">610</span>
+<span class="normal">611</span>
+<span class="normal">612</span>
+<span class="normal">613</span>
+<span class="normal">614</span>
+<span class="normal">615</span>
+<span class="normal">616</span>
+<span class="normal">617</span>
+<span class="normal">618</span>
+<span class="normal">619</span>
+<span class="normal">620</span>
+<span class="normal">621</span>
+<span class="normal">622</span>
+<span class="normal">623</span>
+<span class="normal">624</span>
+<span class="normal">625</span>
+<span class="normal">626</span>
+<span class="normal">627</span>
+<span class="normal">628</span>
+<span class="normal">629</span>
+<span class="normal">630</span>
+<span class="normal">631</span>
+<span class="normal">632</span>
+<span class="normal">633</span>
+<span class="normal">634</span>
+<span class="normal">635</span>
+<span class="normal">636</span>
+<span class="normal">637</span>
+<span class="normal">638</span>
+<span class="normal">639</span>
+<span class="normal">640</span>
+<span class="normal">641</span>
+<span class="normal">642</span>
+<span class="normal">643</span>
+<span class="normal">644</span>
+<span class="normal">645</span>
+<span class="normal">646</span>
+<span class="normal">647</span>
+<span class="normal">648</span>
+<span class="normal">649</span>
+<span class="normal">650</span>
+<span class="normal">651</span>
+<span class="normal">652</span>
+<span class="normal">653</span>
+<span class="normal">654</span>
+<span class="normal">655</span>
+<span class="normal">656</span>
+<span class="normal">657</span>
+<span class="normal">658</span>
+<span class="normal">659</span>
+<span class="normal">660</span>
+<span class="normal">661</span>
+<span class="normal">662</span>
+<span class="normal">663</span>
+<span class="normal">664</span>
+<span class="normal">665</span>
+<span class="normal">666</span>
+<span class="normal">667</span>
+<span class="normal">668</span>
+<span class="normal">669</span>
+<span class="normal">670</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-</span>
+<a id="line-2" name="line-2"></a><span class="cm"> *</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2011 Perberos &lt;[email protected]&gt;</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-5" name="line-5"></a><span class="cm"> *</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * This program is free software; you can redistribute it and/or modify</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * the Free Software Foundation; either version 2, or (at your option)</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * any later version.</span>
+<a id="line-10" name="line-10"></a><span class="cm"> *</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * GNU General Public License for more details.</span>
+<a id="line-15" name="line-15"></a><span class="cm"> *</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * along with this program; if not, write to the Free Software</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA</span>
+<a id="line-19" name="line-19"></a><span class="cm"> * 02110-1301, USA.</span>
+<a id="line-20" name="line-20"></a><span class="cm"> */</span>
+<a id="line-21" name="line-21"></a>
+<a id="line-22" name="line-22"></a><span class="cp">#ifndef __MATE_ABOUT_H__</span>
+<a id="line-23" name="line-23"></a><span class="cp">#define __MATE_ABOUT_H__</span>
+<a id="line-24" name="line-24"></a>
+<a id="line-25" name="line-25"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;config.h&gt;</span><span class="c1"> // autogenerated by ./configure</span><span class="error2">&lt;--- Include file: <config.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-28" name="line-28"></a>
+<a id="line-29" name="line-29"></a><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="n">program_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">&quot;MATE Desktop Environment&quot;</span><span class="p">);</span>
+<a id="line-30" name="line-30"></a><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="n">version</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">PACKAGE_VERSION</span><span class="p">;</span>
+<a id="line-31" name="line-31"></a><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="n">icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;mate-desktop&quot;</span><span class="p">;</span>
+<a id="line-32" name="line-32"></a><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="n">website</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;https://mate-desktop.org/&quot;</span><span class="p">;</span>
+<a id="line-33" name="line-33"></a>
+<a id="line-34" name="line-34"></a><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="n">copyright</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">&quot;Copyright © 1997-2011 GNOME developers</span><span class="se">\n</span><span class="s">&quot;</span>
+<a id="line-35" name="line-35"></a><span class="w"> </span><span class="s">&quot;Copyright © 2011 Perberos</span><span class="se">\n</span><span class="s">&quot;</span>
+<a id="line-36" name="line-36"></a><span class="w"> </span><span class="s">&quot;Copyright © 2012-2024 MATE developers&quot;</span><span class="p">);</span>
+<a id="line-37" name="line-37"></a>
+<a id="line-38" name="line-38"></a><span class="cm">/* Increment comments_count if you add other comments. This will be</span>
+<a id="line-39" name="line-39"></a><span class="cm"> * used to choose a random comment. */</span>
+<a id="line-40" name="line-40"></a><span class="k">const</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">comments_count</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">6</span><span class="p">;</span>
+<a id="line-41" name="line-41"></a><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="n">comments_array</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span>
+<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">&quot;MATE provides an intuitive and attractive desktop to Linux users &quot;</span>
+<a id="line-43" name="line-43"></a><span class="w"> </span><span class="s">&quot;using traditional metaphors.&quot;</span><span class="p">),</span>
+<a id="line-44" name="line-44"></a>
+<a id="line-45" name="line-45"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">&quot;MATE includes most of what you see on your computer, including the file &quot;</span>
+<a id="line-46" name="line-46"></a><span class="w"> </span><span class="s">&quot;manager, document viewer, image viewer, menus, and many applications.&quot;</span><span class="p">),</span>
+<a id="line-47" name="line-47"></a>
+<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">&quot;MATE is a Free, usable, stable, accessible desktop environment for the Unix-&quot;</span>
+<a id="line-49" name="line-49"></a><span class="w"> </span><span class="s">&quot;like family of operating systems.&quot;</span><span class="p">),</span>
+<a id="line-50" name="line-50"></a>
+<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">&quot;MATE is the continuation of GNOME 2. Hundreds of people have contributed code to &quot;</span>
+<a id="line-52" name="line-52"></a><span class="w"> </span><span class="s">&quot;GNOME since it was started in 1997; many more have contributed in other &quot;</span>
+<a id="line-53" name="line-53"></a><span class="w"> </span><span class="s">&quot;important ways, including translations, documentation, and quality assurance.&quot;</span><span class="p">),</span>
+<a id="line-54" name="line-54"></a>
+<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">&quot;GNOME 2 was the most popular Linux desktop but it’s no longer available... &quot;</span>
+<a id="line-56" name="line-56"></a><span class="w"> </span><span class="s">&quot;MATE is here to provide that same desktop to you!&quot;</span><span class="p">),</span>
+<a id="line-57" name="line-57"></a>
+<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">&quot;The name “MATE” comes from yerba maté, a species of holly native &quot;</span>
+<a id="line-59" name="line-59"></a><span class="w"> </span><span class="s">&quot;to subtropical South America. Its leaves contain caffeine and are &quot;</span>
+<a id="line-60" name="line-60"></a><span class="w"> </span><span class="s">&quot;used to make infusions and a beverage called mate.&quot;</span><span class="p">)</span>
+<a id="line-61" name="line-61"></a><span class="p">};</span>
+<a id="line-62" name="line-62"></a>
+<a id="line-63" name="line-63"></a><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="n">authors</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span>
+<a id="line-64" name="line-64"></a><span class="w"> </span><span class="s">&quot;MATE:&quot;</span><span class="p">,</span>
+<a id="line-65" name="line-65"></a><span class="w"> </span><span class="cm">/* MATE founders */</span>
+<a id="line-66" name="line-66"></a><span class="w"> </span><span class="s">&quot;Perberos &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-67" name="line-67"></a><span class="w"> </span><span class="s">&quot;Stefano Karapetsas &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-68" name="line-68"></a><span class="w"> </span><span class="s">&quot;Steve Zesch &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-69" name="line-69"></a><span class="w"> </span><span class="s">&quot;Clement Lefebvre &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-70" name="line-70"></a><span class="w"> </span><span class="cm">/* MATE developers and contributors */</span>
+<a id="line-71" name="line-71"></a><span class="w"> </span><span class="s">&quot;Scott Balneaves &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-72" name="line-72"></a><span class="w"> </span><span class="s">&quot;Marcel Dijkstra &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-73" name="line-73"></a><span class="w"> </span><span class="s">&quot;Jasmine Hassan &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="s">&quot;Brent Hull &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="s">&quot;Steev Klimaszewski &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="s">&quot;Joseph Krieger &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="s">&quot;Nelson Marques &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-78" name="line-78"></a><span class="w"> </span><span class="s">&quot;Dan Mashal &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="s">&quot;Elan Ruusamäe &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-80" name="line-80"></a><span class="w"> </span><span class="s">&quot;Yaakov Selkowitz &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="s">&quot;Sam Tygier &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-82" name="line-82"></a><span class="w"> </span><span class="s">&quot;Wolfgang Ulbrich &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-83" name="line-83"></a><span class="w"> </span><span class="s">&quot;Sander Sweers &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-84" name="line-84"></a><span class="w"> </span><span class="s">&quot;Benjamin Denisart &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="s">&quot;Efstathios Iosifidis &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="s">&quot;Martin Wimpress &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="s">&quot;John Paul Adrian Glaubitz &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="s">&quot;Mike Gabriel &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="s">&quot;Willy Sudiarto Raharjo &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="s">&quot;Chess Griffin &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="s">&quot;Vlad Orlov &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-92" name="line-92"></a><span class="w"> </span><span class="s">&quot;Abel McClendon &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="cm">/* MATE Google Summer of Code students */</span>
+<a id="line-94" name="line-94"></a><span class="w"> </span><span class="s">&quot;Alexander van der Meij &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-95" name="line-95"></a><span class="w"> </span><span class="s">&quot;Avishkar Gupta &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-96" name="line-96"></a><span class="w"> </span><span class="s">&quot;Laszlo Boros &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-97" name="line-97"></a><span class="w"> </span><span class="s">&quot;Michal Ratajsky &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-98" name="line-98"></a><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">,</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="cm">/* GNOME developers */</span>
+<a id="line-100" name="line-100"></a><span class="w"> </span><span class="s">&quot;GNOME:&quot;</span><span class="p">,</span>
+<a id="line-101" name="line-101"></a><span class="w"> </span><span class="s">&quot;Jérôme Abela&quot;</span><span class="p">,</span>
+<a id="line-102" name="line-102"></a><span class="w"> </span><span class="s">&quot;Rob Adams&quot;</span><span class="p">,</span>
+<a id="line-103" name="line-103"></a><span class="w"> </span><span class="s">&quot;Djihed Afifi&quot;</span><span class="p">,</span>
+<a id="line-104" name="line-104"></a><span class="w"> </span><span class="s">&quot;Sarfraaz Ahmed&quot;</span><span class="p">,</span>
+<a id="line-105" name="line-105"></a><span class="w"> </span><span class="s">&quot;Christopher Aillon&quot;</span><span class="p">,</span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="s">&quot;Lauri Alanko&quot;</span><span class="p">,</span>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="s">&quot;Борислав Александров (Borislav Aleksandrov)&quot;</span><span class="p">,</span>
+<a id="line-108" name="line-108"></a><span class="w"> </span><span class="s">&quot;Seth Alves&quot;</span><span class="p">,</span>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="s">&quot;Shawn T. Amundson&quot;</span><span class="p">,</span>
+<a id="line-110" name="line-110"></a><span class="w"> </span><span class="s">&quot;Robert Ancell&quot;</span><span class="p">,</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="s">&quot;Erik Andersen&quot;</span><span class="p">,</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="s">&quot;Филип Андонов (Filip Andonov)&quot;</span><span class="p">,</span>
+<a id="line-113" name="line-113"></a><span class="w"> </span><span class="s">&quot;Marius Andreiana&quot;</span><span class="p">,</span>
+<a id="line-114" name="line-114"></a><span class="w"> </span><span class="s">&quot;Jon Anhold&quot;</span><span class="p">,</span>
+<a id="line-115" name="line-115"></a><span class="w"> </span><span class="s">&quot;Арангел Ангов (Arangel Angov)&quot;</span><span class="p">,</span>
+<a id="line-116" name="line-116"></a><span class="w"> </span><span class="s">&quot;Никола Антонов (Nikola Antonov)&quot;</span><span class="p">,</span>
+<a id="line-117" name="line-117"></a><span class="w"> </span><span class="s">&quot;Sandy Armstrong&quot;</span><span class="p">,</span>
+<a id="line-118" name="line-118"></a><span class="w"> </span><span class="s">&quot;Frank Arnold&quot;</span><span class="p">,</span>
+<a id="line-119" name="line-119"></a><span class="w"> </span><span class="s">&quot;Arunprakash&quot;</span><span class="p">,</span>
+<a id="line-120" name="line-120"></a><span class="w"> </span><span class="s">&quot;Paolo Bacchilega&quot;</span><span class="p">,</span>
+<a id="line-121" name="line-121"></a><span class="w"> </span><span class="s">&quot;Peter Bach&quot;</span><span class="p">,</span>
+<a id="line-122" name="line-122"></a><span class="w"> </span><span class="s">&quot;Timur I. Bakeyev&quot;</span><span class="p">,</span>
+<a id="line-123" name="line-123"></a><span class="w"> </span><span class="s">&quot;Sébastien Bacher&quot;</span><span class="p">,</span>
+<a id="line-124" name="line-124"></a><span class="w"> </span><span class="s">&quot;Chris Ball&quot;</span><span class="p">,</span>
+<a id="line-125" name="line-125"></a><span class="w"> </span><span class="s">&quot;Szabolcs &#39;Shooby&#39; Bán&quot;</span><span class="p">,</span>
+<a id="line-126" name="line-126"></a><span class="w"> </span><span class="s">&quot;Lasse Bang Mikkelsen&quot;</span><span class="p">,</span>
+<a id="line-127" name="line-127"></a><span class="w"> </span><span class="s">&quot;Matthew Barnes&quot;</span><span class="p">,</span>
+<a id="line-128" name="line-128"></a><span class="w"> </span><span class="s">&quot;Seba Barto&quot;</span><span class="p">,</span>
+<a id="line-129" name="line-129"></a><span class="w"> </span><span class="s">&quot;Emmanuele Bassi&quot;</span><span class="p">,</span>
+<a id="line-130" name="line-130"></a><span class="w"> </span><span class="s">&quot;Martin Baulig&quot;</span><span class="p">,</span>
+<a id="line-131" name="line-131"></a><span class="w"> </span><span class="s">&quot;Tom Bech&quot;</span><span class="p">,</span>
+<a id="line-132" name="line-132"></a><span class="w"> </span><span class="s">&quot;Andreas Beck&quot;</span><span class="p">,</span>
+<a id="line-133" name="line-133"></a><span class="w"> </span><span class="s">&quot;Carlos Amador Bedolla&quot;</span><span class="p">,</span>
+<a id="line-134" name="line-134"></a><span class="w"> </span><span class="s">&quot;Martijn van Beers&quot;</span><span class="p">,</span>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="s">&quot;Frank Belew&quot;</span><span class="p">,</span>
+<a id="line-136" name="line-136"></a><span class="w"> </span><span class="s">&quot;Calum Benson&quot;</span><span class="p">,</span>
+<a id="line-137" name="line-137"></a><span class="w"> </span><span class="s">&quot;Jacob Berkman&quot;</span><span class="p">,</span>
+<a id="line-138" name="line-138"></a><span class="w"> </span><span class="s">&quot;Eckehard Berns&quot;</span><span class="p">,</span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="s">&quot;Žygimantas Beručka&quot;</span><span class="p">,</span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="s">&quot;Runa Bhattacharjee&quot;</span><span class="p">,</span>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="s">&quot;Robert Bihlmeyer&quot;</span><span class="p">,</span>
+<a id="line-142" name="line-142"></a><span class="w"> </span><span class="s">&quot;Jonathan Blandford &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-143" name="line-143"></a><span class="w"> </span><span class="s">&quot;Christopher Blizzard&quot;</span><span class="p">,</span>
+<a id="line-144" name="line-144"></a><span class="w"> </span><span class="s">&quot;Bruno Boaventura&quot;</span><span class="p">,</span>
+<a id="line-145" name="line-145"></a><span class="w"> </span><span class="s">&quot;Евгени Боевски (Evgeni Boevski)&quot;</span><span class="p">,</span>
+<a id="line-146" name="line-146"></a><span class="w"> </span><span class="s">&quot;Jérôme Bolliet&quot;</span><span class="p">,</span>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="s">&quot;Andreas Bolsch&quot;</span><span class="p">,</span>
+<a id="line-148" name="line-148"></a><span class="w"> </span><span class="s">&quot;Wouter Bolsterlee&quot;</span><span class="p">,</span>
+<a id="line-149" name="line-149"></a><span class="w"> </span><span class="s">&quot;David Bolter&quot;</span><span class="p">,</span>
+<a id="line-150" name="line-150"></a><span class="w"> </span><span class="s">&quot;Dave Bordoley&quot;</span><span class="p">,</span>
+<a id="line-151" name="line-151"></a><span class="w"> </span><span class="s">&quot;Paolo Borelli&quot;</span><span class="p">,</span>
+<a id="line-152" name="line-152"></a><span class="w"> </span><span class="s">&quot;James Bowes&quot;</span><span class="p">,</span>
+<a id="line-153" name="line-153"></a><span class="w"> </span><span class="s">&quot;Karsten Bräckelmann&quot;</span><span class="p">,</span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="s">&quot;Hendrik Brandt&quot;</span><span class="p">,</span>
+<a id="line-155" name="line-155"></a><span class="w"> </span><span class="s">&quot;Dario Bressanini&quot;</span><span class="p">,</span>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="s">&quot;Emmanuel Briot&quot;</span><span class="p">,</span>
+<a id="line-157" name="line-157"></a><span class="w"> </span><span class="s">&quot;Stephen Browne&quot;</span><span class="p">,</span>
+<a id="line-158" name="line-158"></a><span class="w"> </span><span class="s">&quot;Marcus Brubaker&quot;</span><span class="p">,</span>
+<a id="line-159" name="line-159"></a><span class="w"> </span><span class="s">&quot;Christian Bucher&quot;</span><span class="p">,</span>
+<a id="line-160" name="line-160"></a><span class="w"> </span><span class="s">&quot;Ronald S. Bultje&quot;</span><span class="p">,</span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="s">&quot;Rich Burridge&quot;</span><span class="p">,</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="s">&quot;Ross Burton&quot;</span><span class="p">,</span>
+<a id="line-163" name="line-163"></a><span class="w"> </span><span class="s">&quot;Jeff Cai&quot;</span><span class="p">,</span>
+<a id="line-164" name="line-164"></a><span class="w"> </span><span class="s">&quot;Brian Cameron&quot;</span><span class="p">,</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="s">&quot;Dave Camp&quot;</span><span class="p">,</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="s">&quot;Didier Carlier&quot;</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="s">&quot;Anders Carlsson&quot;</span><span class="p">,</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="s">&quot;Luca Cavalli&quot;</span><span class="p">,</span>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="s">&quot;Chema Celorio&quot;</span><span class="p">,</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="s">&quot;Youssef Chahibi&quot;</span><span class="p">,</span>
+<a id="line-171" name="line-171"></a><span class="w"> </span><span class="s">&quot;Gaël Chamoulaud&quot;</span><span class="p">,</span>
+<a id="line-172" name="line-172"></a><span class="w"> </span><span class="s">&quot;Сава Чанков (Sava Chankov)&quot;</span><span class="p">,</span>
+<a id="line-173" name="line-173"></a><span class="w"> </span><span class="s">&quot;Damon Chaplin&quot;</span><span class="p">,</span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="s">&quot;Kevin Charter&quot;</span><span class="p">,</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="s">&quot;Erwann Chénedé&quot;</span><span class="p">,</span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="s">&quot;張 國 冠&quot;</span><span class="p">,</span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="s">&quot;Павел Чолаков (Pavel Cholakov)&quot;</span><span class="p">,</span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="s">&quot;Kenneth Rohde Christiansen&quot;</span><span class="p">,</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="s">&quot;Bryan Clark&quot;</span><span class="p">,</span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="s">&quot;Chad Clark&quot;</span><span class="p">,</span>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="s">&quot;Matthias Clasen&quot;</span><span class="p">,</span>
+<a id="line-182" name="line-182"></a><span class="w"> </span><span class="s">&quot;Andrew Clausen&quot;</span><span class="p">,</span>
+<a id="line-183" name="line-183"></a><span class="w"> </span><span class="s">&quot;Jason Clinton&quot;</span><span class="p">,</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="s">&quot;Jules Colding&quot;</span><span class="p">,</span>
+<a id="line-185" name="line-185"></a><span class="w"> </span><span class="s">&quot;Jeremy Collins&quot;</span><span class="p">,</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="s">&quot;Rusty Conover&quot;</span><span class="p">,</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="s">&quot;Pat Costello&quot;</span><span class="p">,</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="s">&quot;Phil Cowans&quot;</span><span class="p">,</span>
+<a id="line-189" name="line-189"></a><span class="w"> </span><span class="s">&quot;Alan Cox&quot;</span><span class="p">,</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="s">&quot;Dennis Cranston&quot;</span><span class="p">,</span>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="s">&quot;Mark Crichton&quot;</span><span class="p">,</span>
+<a id="line-192" name="line-192"></a><span class="w"> </span><span class="s">&quot;Frédéric Crozat&quot;</span><span class="p">,</span>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="s">&quot;Andreas Czechanowski&quot;</span><span class="p">,</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="s">&quot;Виктор Дачев (Victor Dachev)&quot;</span><span class="p">,</span>
+<a id="line-195" name="line-195"></a><span class="w"> </span><span class="s">&quot;Johan Dahlin&quot;</span><span class="p">,</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="s">&quot;Nalin Dahyabhai&quot;</span><span class="p">,</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="s">&quot;Dan Damian&quot;</span><span class="p">,</span>
+<a id="line-198" name="line-198"></a><span class="w"> </span><span class="s">&quot;Sayamindu Dasgupta&quot;</span><span class="p">,</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="s">&quot;Phil Dawes&quot;</span><span class="p">,</span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="s">&quot;Fatih Demir&quot;</span><span class="p">,</span>
+<a id="line-201" name="line-201"></a><span class="w"> </span><span class="s">&quot;Guillaume Desmottes&quot;</span><span class="p">,</span>
+<a id="line-202" name="line-202"></a><span class="w"> </span><span class="s">&quot;Frédéric Devernay&quot;</span><span class="p">,</span>
+<a id="line-203" name="line-203"></a><span class="w"> </span><span class="s">&quot;Joanmarie Diggs&quot;</span><span class="p">,</span>
+<a id="line-204" name="line-204"></a><span class="w"> </span><span class="s">&quot;Feico W. Dillema&quot;</span><span class="p">,</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="s">&quot;Филип Димитров (Philip Dimitrov)&quot;</span><span class="p">,</span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="s">&quot;Carlos Eduardo Rodrigues Diógenes&quot;</span><span class="p">,</span>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="s">&quot;Станимир Джевелеков (Stanimir Djevelekov)&quot;</span><span class="p">,</span>
+<a id="line-208" name="line-208"></a><span class="w"> </span><span class="s">&quot;Петър Добрев (Peter Dobrev)&quot;</span><span class="p">,</span>
+<a id="line-209" name="line-209"></a><span class="w"> </span><span class="s">&quot;Явор Доганов (Yavor Doganov)&quot;</span><span class="p">,</span>
+<a id="line-210" name="line-210"></a><span class="w"> </span><span class="s">&quot;Radek Doulik&quot;</span><span class="p">,</span>
+<a id="line-211" name="line-211"></a><span class="w"> </span><span class="s">&quot;Sebastian Dröge&quot;</span><span class="p">,</span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="s">&quot;Máirín Duffy&quot;</span><span class="p">,</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="s">&quot;Alex Duggan&quot;</span><span class="p">,</span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="s">&quot;László Dvornik&quot;</span><span class="p">,</span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="s">&quot;Tom Dyas&quot;</span><span class="p">,</span>
+<a id="line-216" name="line-216"></a><span class="w"> </span><span class="s">&quot;Karl Eichwalder&quot;</span><span class="p">,</span>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="s">&quot;John Ellis&quot;</span><span class="p">,</span>
+<a id="line-218" name="line-218"></a><span class="w"> </span><span class="s">&quot;Diego Escalante Urrelo&quot;</span><span class="p">,</span>
+<a id="line-219" name="line-219"></a><span class="w"> </span><span class="s">&quot;Behdad Esfahbod&quot;</span><span class="p">,</span>
+<a id="line-220" name="line-220"></a><span class="w"> </span><span class="s">&quot;Arturo Espinosa&quot;</span><span class="p">,</span>
+<a id="line-221" name="line-221"></a><span class="w"> </span><span class="s">&quot;Gus Estrella&quot;</span><span class="p">,</span>
+<a id="line-222" name="line-222"></a><span class="w"> </span><span class="s">&quot;David Etherton&quot;</span><span class="p">,</span>
+<a id="line-223" name="line-223"></a><span class="w"> </span><span class="s">&quot;Larry Ewing&quot;</span><span class="p">,</span>
+<a id="line-224" name="line-224"></a><span class="w"> </span><span class="s">&quot;Marc Ewing&quot;</span><span class="p">,</span>
+<a id="line-225" name="line-225"></a><span class="w"> </span><span class="s">&quot;Gergő Érdi&quot;</span><span class="p">,</span>
+<a id="line-226" name="line-226"></a><span class="w"> </span><span class="s">&quot;Peter Fales&quot;</span><span class="p">,</span>
+<a id="line-227" name="line-227"></a><span class="w"> </span><span class="s">&quot;Ahmad Farghal&quot;</span><span class="p">,</span>
+<a id="line-228" name="line-228"></a><span class="w"> </span><span class="s">&quot;Joaquim Fellmann&quot;</span><span class="p">,</span>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="s">&quot;Christophe Fergeau&quot;</span><span class="p">,</span>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="s">&quot;Jens Finke&quot;</span><span class="p">,</span>
+<a id="line-231" name="line-231"></a><span class="w"> </span><span class="s">&quot;Mark Finlay&quot;</span><span class="p">,</span>
+<a id="line-232" name="line-232"></a><span class="w"> </span><span class="s">&quot;Dave Finton&quot;</span><span class="p">,</span>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="s">&quot;Milon Firikis&quot;</span><span class="p">,</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="s">&quot;John Fleck&quot;</span><span class="p">,</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="s">&quot;Raúl Perusquia Flores&quot;</span><span class="p">,</span>
+<a id="line-236" name="line-236"></a><span class="w"> </span><span class="s">&quot;Crispin Flowerday&quot;</span><span class="p">,</span>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="s">&quot;Lawrence Foard&quot;</span><span class="p">,</span>
+<a id="line-238" name="line-238"></a><span class="w"> </span><span class="s">&quot;Leonardo Fontenelle&quot;</span><span class="p">,</span>
+<a id="line-239" name="line-239"></a><span class="w"> </span><span class="s">&quot;Glynn Foster&quot;</span><span class="p">,</span>
+<a id="line-240" name="line-240"></a><span class="w"> </span><span class="s">&quot;Ben FrantzDale&quot;</span><span class="p">,</span>
+<a id="line-241" name="line-241"></a><span class="w"> </span><span class="s">&quot;Jeff Freedman&quot;</span><span class="p">,</span>
+<a id="line-242" name="line-242"></a><span class="w"> </span><span class="s">&quot;David Abilleira Freijeiro&quot;</span><span class="p">,</span>
+<a id="line-243" name="line-243"></a><span class="w"> </span><span class="s">&quot;Nat Friedman&quot;</span><span class="p">,</span>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="s">&quot;Jochen Friedrich&quot;</span><span class="p">,</span>
+<a id="line-245" name="line-245"></a><span class="w"> </span><span class="s">&quot;Adam Fritzler&quot;</span><span class="p">,</span>
+<a id="line-246" name="line-246"></a><span class="w"> </span><span class="s">&quot;Michael Fulbright&quot;</span><span class="p">,</span>
+<a id="line-247" name="line-247"></a><span class="w"> </span><span class="s">&quot;Christopher R. Gabriel&quot;</span><span class="p">,</span>
+<a id="line-248" name="line-248"></a><span class="w"> </span><span class="s">&quot;Mark Galassi&quot;</span><span class="p">,</span>
+<a id="line-249" name="line-249"></a><span class="w"> </span><span class="s">&quot;Tony Gale&quot;</span><span class="p">,</span>
+<a id="line-250" name="line-250"></a><span class="w"> </span><span class="s">&quot;Carlos García Campos&quot;</span><span class="p">,</span>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="s">&quot;Matthew Garrett&quot;</span><span class="p">,</span>
+<a id="line-252" name="line-252"></a><span class="w"> </span><span class="s">&quot;Carlos Garnacho Parro&quot;</span><span class="p">,</span>
+<a id="line-253" name="line-253"></a><span class="w"> </span><span class="s">&quot;Jeff Garzik&quot;</span><span class="p">,</span>
+<a id="line-254" name="line-254"></a><span class="w"> </span><span class="s">&quot;Vincent Geddes&quot;</span><span class="p">,</span>
+<a id="line-255" name="line-255"></a><span class="w"> </span><span class="s">&quot;Владимир Герджиков (Vladimir Gerdjikov)&quot;</span><span class="p">,</span>
+<a id="line-256" name="line-256"></a><span class="w"> </span><span class="s">&quot;Tim Gerla&quot;</span><span class="p">,</span>
+<a id="line-257" name="line-257"></a><span class="w"> </span><span class="s">&quot;Björn Giesler&quot;</span><span class="p">,</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="s">&quot;Quim Gil&quot;</span><span class="p">,</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="s">&quot;Evandro Fernandes Giovanini&quot;</span><span class="p">,</span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="s">&quot;Владимира Гиргинова (Vladimira Girginova)&quot;</span><span class="p">,</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="s">&quot;Dave Glowacki&quot;</span><span class="p">,</span>
+<a id="line-262" name="line-262"></a><span class="w"> </span><span class="s">&quot;Scott Goehring&quot;</span><span class="p">,</span>
+<a id="line-263" name="line-263"></a><span class="w"> </span><span class="s">&quot;Jody Goldberg&quot;</span><span class="p">,</span>
+<a id="line-264" name="line-264"></a><span class="w"> </span><span class="s">&quot;Randy Gordon&quot;</span><span class="p">,</span>
+<a id="line-265" name="line-265"></a><span class="w"> </span><span class="s">&quot;Ted Gould&quot;</span><span class="p">,</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="s">&quot;Jens Granseuer&quot;</span><span class="p">,</span>
+<a id="line-267" name="line-267"></a><span class="w"> </span><span class="s">&quot;Kenny Graunke&quot;</span><span class="p">,</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="s">&quot;Alex Graveley&quot;</span><span class="p">,</span>
+<a id="line-269" name="line-269"></a><span class="w"> </span><span class="s">&quot;Jamin Philip Gray&quot;</span><span class="p">,</span>
+<a id="line-270" name="line-270"></a><span class="w"> </span><span class="s">&quot;Dov Grobgeld&quot;</span><span class="p">,</span>
+<a id="line-271" name="line-271"></a><span class="w"> </span><span class="s">&quot;Bertrand Guiheneuf&quot;</span><span class="p">,</span>
+<a id="line-272" name="line-272"></a><span class="w"> </span><span class="s">&quot;Alan Aspuru Guzik&quot;</span><span class="p">,</span>
+<a id="line-273" name="line-273"></a><span class="w"> </span><span class="s">&quot;Telsa Gwynne&quot;</span><span class="p">,</span>
+<a id="line-274" name="line-274"></a><span class="w"> </span><span class="s">&quot;Fredrik Hallenberg&quot;</span><span class="p">,</span>
+<a id="line-275" name="line-275"></a><span class="w"> </span><span class="s">&quot;Mikael Hallendal&quot;</span><span class="p">,</span>
+<a id="line-276" name="line-276"></a><span class="w"> </span><span class="s">&quot;Lars Hamann&quot;</span><span class="p">,</span>
+<a id="line-277" name="line-277"></a><span class="w"> </span><span class="s">&quot;Bill Haneman&quot;</span><span class="p">,</span>
+<a id="line-278" name="line-278"></a><span class="w"> </span><span class="s">&quot;Michael Hanni&quot;</span><span class="p">,</span>
+<a id="line-279" name="line-279"></a><span class="w"> </span><span class="s">&quot;Raja R Harinath&quot;</span><span class="p">,</span>
+<a id="line-280" name="line-280"></a><span class="w"> </span><span class="s">&quot;Heath Harrelson&quot;</span><span class="p">,</span>
+<a id="line-281" name="line-281"></a><span class="w"> </span><span class="s">&quot;Peter Harvey&quot;</span><span class="p">,</span>
+<a id="line-282" name="line-282"></a><span class="w"> </span><span class="s">&quot;Mathias Hasselmann&quot;</span><span class="p">,</span>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="s">&quot;Peter Hawkins&quot;</span><span class="p">,</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="s">&quot;Chris Heath&quot;</span><span class="p">,</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="s">&quot;Scott Heavner&quot;</span><span class="p">,</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="s">&quot;Sebastian Heinlein&quot;</span><span class="p">,</span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="s">&quot;Jon K Hellan&quot;</span><span class="p">,</span>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="s">&quot;James Henstridge &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="s">&quot;Fernando Herrera&quot;</span><span class="p">,</span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="s">&quot;Richard Hestilow&quot;</span><span class="p">,</span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="s">&quot;Raphael Higino&quot;</span><span class="p">,</span>
+<a id="line-292" name="line-292"></a><span class="w"> </span><span class="s">&quot;Thomas Hinkle&quot;</span><span class="p">,</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="s">&quot;Iain Holmes&quot;</span><span class="p">,</span>
+<a id="line-294" name="line-294"></a><span class="w"> </span><span class="s">&quot;Adam Hooper&quot;</span><span class="p">,</span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="s">&quot;Alan Horkan&quot;</span><span class="p">,</span>
+<a id="line-296" name="line-296"></a><span class="w"> </span><span class="s">&quot;Khaled Hosny&quot;</span><span class="p">,</span>
+<a id="line-297" name="line-297"></a><span class="w"> </span><span class="s">&quot;Ihar Hrachyshka&quot;</span><span class="p">,</span>
+<a id="line-298" name="line-298"></a><span class="w"> </span><span class="s">&quot;Николай Христов (Nikolay Hristov)&quot;</span><span class="p">,</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="s">&quot;Irene Huang&quot;</span><span class="p">,</span>
+<a id="line-300" name="line-300"></a><span class="w"> </span><span class="s">&quot;Richard Hughes&quot;</span><span class="p">,</span>
+<a id="line-301" name="line-301"></a><span class="w"> </span><span class="s">&quot;David Huggins-Daines&quot;</span><span class="p">,</span>
+<a id="line-302" name="line-302"></a><span class="w"> </span><span class="s">&quot;Richard Hult&quot;</span><span class="p">,</span>
+<a id="line-303" name="line-303"></a><span class="w"> </span><span class="s">&quot;Andreas Hyden&quot;</span><span class="p">,</span>
+<a id="line-304" name="line-304"></a><span class="w"> </span><span class="s">&quot;Miguel de Icaza &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-305" name="line-305"></a><span class="w"> </span><span class="s">&quot;Hiroyuki Ikezoe&quot;</span><span class="p">,</span>
+<a id="line-306" name="line-306"></a><span class="w"> </span><span class="s">&quot;Khandakar Mujahidul Islam&quot;</span><span class="p">,</span>
+<a id="line-307" name="line-307"></a><span class="w"> </span><span class="s">&quot;Johnny Jacob&quot;</span><span class="p">,</span>
+<a id="line-308" name="line-308"></a><span class="w"> </span><span class="s">&quot;Mayank Jain&quot;</span><span class="p">,</span>
+<a id="line-309" name="line-309"></a><span class="w"> </span><span class="s">&quot;Vivek Jain&quot;</span><span class="p">,</span>
+<a id="line-310" name="line-310"></a><span class="w"> </span><span class="s">&quot;Tim Janik&quot;</span><span class="p">,</span>
+<a id="line-311" name="line-311"></a><span class="w"> </span><span class="s">&quot;Stefan Jeske&quot;</span><span class="p">,</span>
+<a id="line-312" name="line-312"></a><span class="w"> </span><span class="s">&quot;王 剑&quot;</span><span class="p">,</span>
+<a id="line-313" name="line-313"></a><span class="w"> </span><span class="s">&quot;Amed Ç. Jiyan&quot;</span><span class="p">,</span>
+<a id="line-314" name="line-314"></a><span class="w"> </span><span class="s">&quot;Michael K. Johnson&quot;</span><span class="p">,</span>
+<a id="line-315" name="line-315"></a><span class="w"> </span><span class="s">&quot;Keld Jørn Simonsen&quot;</span><span class="p">,</span>
+<a id="line-316" name="line-316"></a><span class="w"> </span><span class="s">&quot;Andy Kahn&quot;</span><span class="p">,</span>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="s">&quot;Mikkel Kamstrup Erlandsen&quot;</span><span class="p">,</span>
+<a id="line-318" name="line-318"></a><span class="w"> </span><span class="s">&quot;Sami Kananoja&quot;</span><span class="p">,</span>
+<a id="line-319" name="line-319"></a><span class="w"> </span><span class="s">&quot;Янко Канети (Yanko Kaneti)&quot;</span><span class="p">,</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="s">&quot;Ивелина Кърчева (Ivelina Karcheva)&quot;</span><span class="p">,</span>
+<a id="line-321" name="line-321"></a><span class="w"> </span><span class="s">&quot;Theppitak Karoonboonyanan&quot;</span><span class="p">,</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="s">&quot;Matt Keenan&quot;</span><span class="p">,</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="s">&quot;Gábor Kelemen&quot;</span><span class="p">,</span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="s">&quot;Michael Kellen&quot;</span><span class="p">,</span>
+<a id="line-325" name="line-325"></a><span class="w"> </span><span class="s">&quot;Christian Kellner&quot;</span><span class="p">,</span>
+<a id="line-326" name="line-326"></a><span class="w"> </span><span class="s">&quot;Stephen Kiernan&quot;</span><span class="p">,</span>
+<a id="line-327" name="line-327"></a><span class="w"> </span><span class="s">&quot;Spencer Kimball&quot;</span><span class="p">,</span>
+<a id="line-328" name="line-328"></a><span class="w"> </span><span class="s">&quot;Christian Kintner&quot;</span><span class="p">,</span>
+<a id="line-329" name="line-329"></a><span class="w"> </span><span class="s">&quot;Christian Kirbach&quot;</span><span class="p">,</span>
+<a id="line-330" name="line-330"></a><span class="w"> </span><span class="s">&quot;Peter Kirchgessner&quot;</span><span class="p">,</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="s">&quot;Alexander Kirillov&quot;</span><span class="p">,</span>
+<a id="line-332" name="line-332"></a><span class="w"> </span><span class="s">&quot;Димитър Киров (Dimitar Kirov)&quot;</span><span class="p">,</span>
+<a id="line-333" name="line-333"></a><span class="w"> </span><span class="s">&quot;Andre Klapper&quot;</span><span class="p">,</span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="s">&quot;Helmut Köberle&quot;</span><span class="p">,</span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="s">&quot;Alfredo Kojima&quot;</span><span class="p">,</span>
+<a id="line-336" name="line-336"></a><span class="w"> </span><span class="s">&quot;Атанас Кошаров (Atanas Kosharov)&quot;</span><span class="p">,</span>
+<a id="line-337" name="line-337"></a><span class="w"> </span><span class="s">&quot;Martin Kretzschmar&quot;</span><span class="p">,</span>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="s">&quot;Harish Krishnaswamy&quot;</span><span class="p">,</span>
+<a id="line-339" name="line-339"></a><span class="w"> </span><span class="s">&quot;Andrew Kuchling&quot;</span><span class="p">,</span>
+<a id="line-340" name="line-340"></a><span class="w"> </span><span class="s">&quot;Tomas Kuliavas&quot;</span><span class="p">,</span>
+<a id="line-341" name="line-341"></a><span class="w"> </span><span class="s">&quot;Stephan Kulow&quot;</span><span class="p">,</span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="s">&quot;Kaushal Kumar&quot;</span><span class="p">,</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="s">&quot;Nirmal Kumar&quot;</span><span class="p">,</span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="s">&quot;Praveen Kumar&quot;</span><span class="p">,</span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="s">&quot;Martynas Kunigelis&quot;</span><span class="p">,</span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="s">&quot;Tuomas Kuosmanen&quot;</span><span class="p">,</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="s">&quot;Olof Kylander&quot;</span><span class="p">,</span>
+<a id="line-348" name="line-348"></a><span class="w"> </span><span class="s">&quot;Mathieu Lacage&quot;</span><span class="p">,</span>
+<a id="line-349" name="line-349"></a><span class="w"> </span><span class="s">&quot;Francis J. Lacoste&quot;</span><span class="p">,</span>
+<a id="line-350" name="line-350"></a><span class="w"> </span><span class="s">&quot;Chris Lahey&quot;</span><span class="p">,</span>
+<a id="line-351" name="line-351"></a><span class="w"> </span><span class="s">&quot;Dom Lachowicz&quot;</span><span class="p">,</span>
+<a id="line-352" name="line-352"></a><span class="w"> </span><span class="s">&quot;Scott Laird&quot;</span><span class="p">,</span>
+<a id="line-353" name="line-353"></a><span class="w"> </span><span class="s">&quot;Birger Langkjer&quot;</span><span class="p">,</span>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="s">&quot;Ask Hjorth Larsen&quot;</span><span class="p">,</span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="s">&quot;Alexander Larsson&quot;</span><span class="p">,</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="s">&quot;Guillaume Laurent&quot;</span><span class="p">,</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="s">&quot;Ole Laursen&quot;</span><span class="p">,</span>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="s">&quot;Michael Lausch&quot;</span><span class="p">,</span>
+<a id="line-359" name="line-359"></a><span class="w"> </span><span class="s">&quot;Will LaShell&quot;</span><span class="p">,</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="s">&quot;Jens Lautenbacher&quot;</span><span class="p">,</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="s">&quot;Evan Lawrence&quot;</span><span class="p">,</span>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="s">&quot;Garrett LeSage&quot;</span><span class="p">,</span>
+<a id="line-363" name="line-363"></a><span class="w"> </span><span class="s">&quot;Jason Leach&quot;</span><span class="p">,</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="s">&quot;George Lebl&quot;</span><span class="p">,</span>
+<a id="line-365" name="line-365"></a><span class="w"> </span><span class="s">&quot;Gregory Leblanc&quot;</span><span class="p">,</span>
+<a id="line-366" name="line-366"></a><span class="w"> </span><span class="s">&quot;Elliot Lee &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-367" name="line-367"></a><span class="w"> </span><span class="s">&quot;Marc Lehmann&quot;</span><span class="p">,</span>
+<a id="line-368" name="line-368"></a><span class="w"> </span><span class="s">&quot;Noah Levitt&quot;</span><span class="p">,</span>
+<a id="line-369" name="line-369"></a><span class="w"> </span><span class="s">&quot;Raph Levien&quot;</span><span class="p">,</span>
+<a id="line-370" name="line-370"></a><span class="w"> </span><span class="s">&quot;廖 昭 雄&quot;</span><span class="p">,</span>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="s">&quot;Tor Lillqvist&quot;</span><span class="p">,</span>
+<a id="line-372" name="line-372"></a><span class="w"> </span><span class="s">&quot;Matt Loper&quot;</span><span class="p">,</span>
+<a id="line-373" name="line-373"></a><span class="w"> </span><span class="s">&quot;Nick Lopez&quot;</span><span class="p">,</span>
+<a id="line-374" name="line-374"></a><span class="w"> </span><span class="s">&quot;Xan Lopez&quot;</span><span class="p">,</span>
+<a id="line-375" name="line-375"></a><span class="w"> </span><span class="s">&quot;Elixan Loran&quot;</span><span class="p">,</span>
+<a id="line-376" name="line-376"></a><span class="w"> </span><span class="s">&quot;Ryan Lortie&quot;</span><span class="p">,</span>
+<a id="line-377" name="line-377"></a><span class="w"> </span><span class="s">&quot;Harry Lu&quot;</span><span class="p">,</span>
+<a id="line-378" name="line-378"></a><span class="w"> </span><span class="s">&quot;Dirk Lutjens&quot;</span><span class="p">,</span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="s">&quot;Josh MacDonald&quot;</span><span class="p">,</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="s">&quot;Og Maciel&quot;</span><span class="p">,</span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="s">&quot;David MacKay&quot;</span><span class="p">,</span>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="s">&quot;Davyd Madeley&quot;</span><span class="p">,</span>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="s">&quot;Mohamed Magdy&quot;</span><span class="p">,</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="s">&quot;Paolo Maggi&quot;</span><span class="p">,</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="s">&quot;Sam Magnuson&quot;</span><span class="p">,</span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="s">&quot;Ian Main&quot;</span><span class="p">,</span>
+<a id="line-387" name="line-387"></a><span class="w"> </span><span class="s">&quot;David Malcolm&quot;</span><span class="p">,</span>
+<a id="line-388" name="line-388"></a><span class="w"> </span><span class="s">&quot;Jordi Mallach&quot;</span><span class="p">,</span>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="s">&quot;Mandrake&quot;</span><span class="p">,</span>
+<a id="line-390" name="line-390"></a><span class="w"> </span><span class="s">&quot;Daniel Manrique&quot;</span><span class="p">,</span>
+<a id="line-391" name="line-391"></a><span class="w"> </span><span class="s">&quot;Kjartan Maraas&quot;</span><span class="p">,</span>
+<a id="line-392" name="line-392"></a><span class="w"> </span><span class="s">&quot;Matthew Marjanovic&quot;</span><span class="p">,</span>
+<a id="line-393" name="line-393"></a><span class="w"> </span><span class="s">&quot;Heath Martin&quot;</span><span class="p">,</span>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="s">&quot;Oliver Maruhn&quot;</span><span class="p">,</span>
+<a id="line-395" name="line-395"></a><span class="w"> </span><span class="s">&quot;Fabio Marzocca&quot;</span><span class="p">,</span>
+<a id="line-396" name="line-396"></a><span class="w"> </span><span class="s">&quot;Dave Mason&quot;</span><span class="p">,</span>
+<a id="line-397" name="line-397"></a><span class="w"> </span><span class="s">&quot;James Mastros&quot;</span><span class="p">,</span>
+<a id="line-398" name="line-398"></a><span class="w"> </span><span class="s">&quot;Peter Mattis&quot;</span><span class="p">,</span>
+<a id="line-399" name="line-399"></a><span class="w"> </span><span class="s">&quot;Gordon Matzigkeit&quot;</span><span class="p">,</span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="s">&quot;Dietmar Maurer &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="s">&quot;Justin Maurer&quot;</span><span class="p">,</span>
+<a id="line-402" name="line-402"></a><span class="w"> </span><span class="s">&quot;Shaun McCance&quot;</span><span class="p">,</span>
+<a id="line-403" name="line-403"></a><span class="w"> </span><span class="s">&quot;William Jon McCann&quot;</span><span class="p">,</span>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="s">&quot;Callum McKenzie&quot;</span><span class="p">,</span>
+<a id="line-405" name="line-405"></a><span class="w"> </span><span class="s">&quot;Gregory McLean&quot;</span><span class="p">,</span>
+<a id="line-406" name="line-406"></a><span class="w"> </span><span class="s">&quot;Mark McLoughlin&quot;</span><span class="p">,</span>
+<a id="line-407" name="line-407"></a><span class="w"> </span><span class="s">&quot;Michael Meeks&quot;</span><span class="p">,</span>
+<a id="line-408" name="line-408"></a><span class="w"> </span><span class="s">&quot;Federico Mena-Quintero&quot;</span><span class="p">,</span>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="s">&quot;Christophe Merlet&quot;</span><span class="p">,</span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="s">&quot;Christian Meyer&quot;</span><span class="p">,</span>
+<a id="line-411" name="line-411"></a><span class="w"> </span><span class="s">&quot;Tim Miao&quot;</span><span class="p">,</span>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="s">&quot;Gintautas Miliauskas&quot;</span><span class="p">,</span>
+<a id="line-413" name="line-413"></a><span class="w"> </span><span class="s">&quot;Cesar Miquel&quot;</span><span class="p">,</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="s">&quot;Julian Missig&quot;</span><span class="p">,</span>
+<a id="line-415" name="line-415"></a><span class="w"> </span><span class="s">&quot;Eric B. Mitchell&quot;</span><span class="p">,</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="s">&quot;Jaka Mocnik&quot;</span><span class="p">,</span>
+<a id="line-417" name="line-417"></a><span class="w"> </span><span class="s">&quot;Paolo Molaro&quot;</span><span class="p">,</span>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="s">&quot;Lynn Monsanto&quot;</span><span class="p">,</span>
+<a id="line-419" name="line-419"></a><span class="w"> </span><span class="s">&quot;David Mosberger&quot;</span><span class="p">,</span>
+<a id="line-420" name="line-420"></a><span class="w"> </span><span class="s">&quot;Rodrigo Moya &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-421" name="line-421"></a><span class="w"> </span><span class="s">&quot;Dan Mueth&quot;</span><span class="p">,</span>
+<a id="line-422" name="line-422"></a><span class="w"> </span><span class="s">&quot;Thomas Muldowney&quot;</span><span class="p">,</span>
+<a id="line-423" name="line-423"></a><span class="w"> </span><span class="s">&quot;Alexandre Muñiz&quot;</span><span class="p">,</span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="s">&quot;Tim-Philipp Müller&quot;</span><span class="p">,</span>
+<a id="line-425" name="line-425"></a><span class="w"> </span><span class="s">&quot;Sivaiah Nallagatla&quot;</span><span class="p">,</span>
+<a id="line-426" name="line-426"></a><span class="w"> </span><span class="s">&quot;남 성 현&quot;</span><span class="p">,</span>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="s">&quot;Deepa Natarajan&quot;</span><span class="p">,</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="s">&quot;Ales Navicki&quot;</span><span class="p">,</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="s">&quot;Јован Наумовски (Jovan Naumovski)&quot;</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="s">&quot;Dave Neary&quot;</span><span class="p">,</span>
+<a id="line-431" name="line-431"></a><span class="w"> </span><span class="s">&quot;Karl Nelson&quot;</span><span class="p">,</span>
+<a id="line-432" name="line-432"></a><span class="w"> </span><span class="s">&quot;Elijah Newren&quot;</span><span class="p">,</span>
+<a id="line-433" name="line-433"></a><span class="w"> </span><span class="s">&quot;Christian Neumair&quot;</span><span class="p">,</span>
+<a id="line-434" name="line-434"></a><span class="w"> </span><span class="s">&quot;Mike Newman&quot;</span><span class="p">,</span>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="s">&quot;Seth Nickell&quot;</span><span class="p">,</span>
+<a id="line-436" name="line-436"></a><span class="w"> </span><span class="s">&quot;Asger Alstrup Nielsen&quot;</span><span class="p">,</span>
+<a id="line-437" name="line-437"></a><span class="w"> </span><span class="s">&quot;Kenneth Nielsen&quot;</span><span class="p">,</span>
+<a id="line-438" name="line-438"></a><span class="w"> </span><span class="s">&quot;Nate Nielsen&quot;</span><span class="p">,</span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="s">&quot;Eric Nielson&quot;</span><span class="p">,</span>
+<a id="line-440" name="line-440"></a><span class="w"> </span><span class="s">&quot;Bastien Nocera&quot;</span><span class="p">,</span>
+<a id="line-441" name="line-441"></a><span class="w"> </span><span class="s">&quot;Martin Norbäck&quot;</span><span class="p">,</span>
+<a id="line-442" name="line-442"></a><span class="w"> </span><span class="s">&quot;Joachim Noreiko&quot;</span><span class="p">,</span>
+<a id="line-443" name="line-443"></a><span class="w"> </span><span class="s">&quot;Alexander Nyakhaychyk&quot;</span><span class="p">,</span>
+<a id="line-444" name="line-444"></a><span class="w"> </span><span class="s">&quot;Daniel Nylander&quot;</span><span class="p">,</span>
+<a id="line-445" name="line-445"></a><span class="w"> </span><span class="s">&quot;Padraig O&#39;Briain&quot;</span><span class="p">,</span>
+<a id="line-446" name="line-446"></a><span class="w"> </span><span class="s">&quot;Eskil Olsen&quot;</span><span class="p">,</span>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="s">&quot;Jimmy Olsen&quot;</span><span class="p">,</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="s">&quot;David Orme&quot;</span><span class="p">,</span>
+<a id="line-449" name="line-449"></a><span class="w"> </span><span class="s">&quot;Karl Anders Oygard&quot;</span><span class="p">,</span>
+<a id="line-450" name="line-450"></a><span class="w"> </span><span class="s">&quot;Tomas Ögren&quot;</span><span class="p">,</span>
+<a id="line-451" name="line-451"></a><span class="w"> </span><span class="s">&quot;Keith Packard&quot;</span><span class="p">,</span>
+<a id="line-452" name="line-452"></a><span class="w"> </span><span class="s">&quot;Jay Painter&quot;</span><span class="p">,</span>
+<a id="line-453" name="line-453"></a><span class="w"> </span><span class="s">&quot;Chenthill Palanisamy&quot;</span><span class="p">,</span>
+<a id="line-454" name="line-454"></a><span class="w"> </span><span class="s">&quot;John Palmieri&quot;</span><span class="p">,</span>
+<a id="line-455" name="line-455"></a><span class="w"> </span><span class="s">&quot;Cameron Parish&quot;</span><span class="p">,</span>
+<a id="line-456" name="line-456"></a><span class="w"> </span><span class="s">&quot;Conrad Parker&quot;</span><span class="p">,</span>
+<a id="line-457" name="line-457"></a><span class="w"> </span><span class="s">&quot;Stuart Parmenter&quot;</span><span class="p">,</span>
+<a id="line-458" name="line-458"></a><span class="w"> </span><span class="s">&quot;Guilherme de S. Pastore&quot;</span><span class="p">,</span>
+<a id="line-459" name="line-459"></a><span class="w"> </span><span class="s">&quot;Sankarasivasubramaniam Pasupathilingam&quot;</span><span class="p">,</span>
+<a id="line-460" name="line-460"></a><span class="w"> </span><span class="s">&quot;Данило Шеган&quot;</span><span class="p">,</span>
+<a id="line-461" name="line-461"></a><span class="w"> </span><span class="s">&quot;Mike Pedersen&quot;</span><span class="p">,</span>
+<a id="line-462" name="line-462"></a><span class="w"> </span><span class="s">&quot;Nils Pedersen&quot;</span><span class="p">,</span>
+<a id="line-463" name="line-463"></a><span class="w"> </span><span class="s">&quot;Илия Пенев (Ilia Penev)&quot;</span><span class="p">,</span>
+<a id="line-464" name="line-464"></a><span class="w"> </span><span class="s">&quot;Havoc Pennington&quot;</span><span class="p">,</span>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="s">&quot;Ettore Perazzoli&quot;</span><span class="p">,</span>
+<a id="line-466" name="line-466"></a><span class="w"> </span><span class="s">&quot;Carlos Perelló Marín&quot;</span><span class="p">,</span>
+<a id="line-467" name="line-467"></a><span class="w"> </span><span class="s">&quot;Christian Persch&quot;</span><span class="p">,</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="s">&quot;Marco Pesenti Gritti&quot;</span><span class="p">,</span>
+<a id="line-469" name="line-469"></a><span class="w"> </span><span class="s">&quot;Ian Peters&quot;</span><span class="p">,</span>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="s">&quot;Martin Kasper Petersen&quot;</span><span class="p">,</span>
+<a id="line-471" name="line-471"></a><span class="w"> </span><span class="s">&quot;Christof Petig&quot;</span><span class="p">,</span>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="s">&quot;Владимир Петков (Vladimir </span><span class="se">\&quot;</span><span class="s">Kaladan</span><span class="se">\&quot;</span><span class="s"> Petkov)&quot;</span><span class="p">,</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="s">&quot;Joe Pfeiffer&quot;</span><span class="p">,</span>
+<a id="line-474" name="line-474"></a><span class="w"> </span><span class="s">&quot;Ben Pierce&quot;</span><span class="p">,</span>
+<a id="line-475" name="line-475"></a><span class="w"> </span><span class="s">&quot;Chris Pinkham&quot;</span><span class="p">,</span>
+<a id="line-476" name="line-476"></a><span class="w"> </span><span class="s">&quot;Hasbullah Bin Pit&quot;</span><span class="p">,</span>
+<a id="line-477" name="line-477"></a><span class="w"> </span><span class="s">&quot;Sebastian Pölsterl&quot;</span><span class="p">,</span>
+<a id="line-478" name="line-478"></a><span class="w"> </span><span class="s">&quot;Germán Poo-Caamaño&quot;</span><span class="p">,</span>
+<a id="line-479" name="line-479"></a><span class="w"> </span><span class="s">&quot;Пейо Попов (Peio Popov)&quot;</span><span class="p">,</span>
+<a id="line-480" name="line-480"></a><span class="w"> </span><span class="s">&quot;Dick Porter&quot;</span><span class="p">,</span>
+<a id="line-481" name="line-481"></a><span class="w"> </span><span class="s">&quot;Ясен Праматаров (Yasen Pramatarov)&quot;</span><span class="p">,</span>
+<a id="line-482" name="line-482"></a><span class="w"> </span><span class="s">&quot;Tero Pulkkinen&quot;</span><span class="p">,</span>
+<a id="line-483" name="line-483"></a><span class="w"> </span><span class="s">&quot;Атанас Пюскюлев (Atanas Pyuskyulev)&quot;</span><span class="p">,</span>
+<a id="line-484" name="line-484"></a><span class="w"> </span><span class="s">&quot;Sushma Rai&quot;</span><span class="p">,</span>
+<a id="line-485" name="line-485"></a><span class="w"> </span><span class="s">&quot;Ростислав Райков (Rostislav </span><span class="se">\&quot;</span><span class="s">zbrox</span><span class="se">\&quot;</span><span class="s"> Raikov)&quot;</span><span class="p">,</span>
+<a id="line-486" name="line-486"></a><span class="w"> </span><span class="s">&quot;Madhan Raj M.&quot;</span><span class="p">,</span>
+<a id="line-487" name="line-487"></a><span class="w"> </span><span class="s">&quot;Srinivasa Ragavan&quot;</span><span class="p">,</span>
+<a id="line-488" name="line-488"></a><span class="w"> </span><span class="s">&quot;Rajeev Ramanathan&quot;</span><span class="p">,</span>
+<a id="line-489" name="line-489"></a><span class="w"> </span><span class="s">&quot;Jean-François Rameau&quot;</span><span class="p">,</span>
+<a id="line-490" name="line-490"></a><span class="w"> </span><span class="s">&quot;Sriram Ramkrishna&quot;</span><span class="p">,</span>
+<a id="line-491" name="line-491"></a><span class="w"> </span><span class="s">&quot;The Rasterman&quot;</span><span class="p">,</span>
+<a id="line-492" name="line-492"></a><span class="w"> </span><span class="s">&quot;Oliver Rauch&quot;</span><span class="p">,</span>
+<a id="line-493" name="line-493"></a><span class="w"> </span><span class="s">&quot;Lucas Rocha&quot;</span><span class="p">,</span>
+<a id="line-494" name="line-494"></a><span class="w"> </span><span class="s">&quot;Erdal Ronahi&quot;</span><span class="p">,</span>
+<a id="line-495" name="line-495"></a><span class="w"> </span><span class="s">&quot;Andreas Røsdal&quot;</span><span class="p">,</span>
+<a id="line-496" name="line-496"></a><span class="w"> </span><span class="s">&quot;Christian Rose&quot;</span><span class="p">,</span>
+<a id="line-497" name="line-497"></a><span class="w"> </span><span class="s">&quot;Cody Russell&quot;</span><span class="p">,</span>
+<a id="line-498" name="line-498"></a><span class="w"> </span><span class="s">&quot;Reklaw&quot;</span><span class="p">,</span>
+<a id="line-499" name="line-499"></a><span class="w"> </span><span class="s">&quot;Jens Christian Restemeier&quot;</span><span class="p">,</span>
+<a id="line-500" name="line-500"></a><span class="w"> </span><span class="s">&quot;Patrick Reynolds&quot;</span><span class="p">,</span>
+<a id="line-501" name="line-501"></a><span class="w"> </span><span class="s">&quot;Robert Richardson&quot;</span><span class="p">,</span>
+<a id="line-502" name="line-502"></a><span class="w"> </span><span class="s">&quot;Hendrik Richter&quot;</span><span class="p">,</span>
+<a id="line-503" name="line-503"></a><span class="w"> </span><span class="s">&quot;Kristian Rietveld&quot;</span><span class="p">,</span>
+<a id="line-504" name="line-504"></a><span class="w"> </span><span class="s">&quot;Sebastian Rittau&quot;</span><span class="p">,</span>
+<a id="line-505" name="line-505"></a><span class="w"> </span><span class="s">&quot;Alex Roberts&quot;</span><span class="p">,</span>
+<a id="line-506" name="line-506"></a><span class="w"> </span><span class="s">&quot;Michel Roelofs&quot;</span><span class="p">,</span>
+<a id="line-507" name="line-507"></a><span class="w"> </span><span class="s">&quot;Ueli Rutishauser&quot;</span><span class="p">,</span>
+<a id="line-508" name="line-508"></a><span class="w"> </span><span class="s">&quot;Lars Rydlinge&quot;</span><span class="p">,</span>
+<a id="line-509" name="line-509"></a><span class="w"> </span><span class="s">&quot;Peter Ryland&quot;</span><span class="p">,</span>
+<a id="line-510" name="line-510"></a><span class="w"> </span><span class="s">&quot;Claudio Saavedra&quot;</span><span class="p">,</span>
+<a id="line-511" name="line-511"></a><span class="w"> </span><span class="s">&quot;Joseph Sacco&quot;</span><span class="p">,</span>
+<a id="line-512" name="line-512"></a><span class="w"> </span><span class="s">&quot;Bibek Sahu&quot;</span><span class="p">,</span>
+<a id="line-513" name="line-513"></a><span class="w"> </span><span class="s">&quot;Arvind Samptur&quot;</span><span class="p">,</span>
+<a id="line-514" name="line-514"></a><span class="w"> </span><span class="s">&quot;Søren Sandmann&quot;</span><span class="p">,</span>
+<a id="line-515" name="line-515"></a><span class="w"> </span><span class="s">&quot;Damien Sandras&quot;</span><span class="p">,</span>
+<a id="line-516" name="line-516"></a><span class="w"> </span><span class="s">&quot;Pablo Saratxaga&quot;</span><span class="p">,</span>
+<a id="line-517" name="line-517"></a><span class="w"> </span><span class="s">&quot;笹 山 和 宏&quot;</span><span class="p">,</span>
+<a id="line-518" name="line-518"></a><span class="w"> </span><span class="s">&quot;Carsten Schaar&quot;</span><span class="p">,</span>
+<a id="line-519" name="line-519"></a><span class="w"> </span><span class="s">&quot;Christian Schaller&quot;</span><span class="p">,</span>
+<a id="line-520" name="line-520"></a><span class="w"> </span><span class="s">&quot;Wayne Schuller&quot;</span><span class="p">,</span>
+<a id="line-521" name="line-521"></a><span class="w"> </span><span class="s">&quot;Franck Schneider&quot;</span><span class="p">,</span>
+<a id="line-522" name="line-522"></a><span class="w"> </span><span class="s">&quot;Ingo Schneider&quot;</span><span class="p">,</span>
+<a id="line-523" name="line-523"></a><span class="w"> </span><span class="s">&quot;Bernd Schroeder&quot;</span><span class="p">,</span>
+<a id="line-524" name="line-524"></a><span class="w"> </span><span class="s">&quot;John Schulien&quot;</span><span class="p">,</span>
+<a id="line-525" name="line-525"></a><span class="w"> </span><span class="s">&quot;Chris Scobell&quot;</span><span class="p">,</span>
+<a id="line-526" name="line-526"></a><span class="w"> </span><span class="s">&quot;Don Scorgie&quot;</span><span class="p">,</span>
+<a id="line-527" name="line-527"></a><span class="w"> </span><span class="s">&quot;Jens Seidel&quot;</span><span class="p">,</span>
+<a id="line-528" name="line-528"></a><span class="w"> </span><span class="s">&quot;Dodji Seketeli&quot;</span><span class="p">,</span>
+<a id="line-529" name="line-529"></a><span class="w"> </span><span class="s">&quot;Shakti Sen&quot;</span><span class="p">,</span>
+<a id="line-530" name="line-530"></a><span class="w"> </span><span class="s">&quot;Iñigo Serna&quot;</span><span class="p">,</span>
+<a id="line-531" name="line-531"></a><span class="w"> </span><span class="s">&quot;Shaleh&quot;</span><span class="p">,</span>
+<a id="line-532" name="line-532"></a><span class="w"> </span><span class="s">&quot;Devashish Sharma&quot;</span><span class="p">,</span>
+<a id="line-533" name="line-533"></a><span class="w"> </span><span class="s">&quot;Joe Shaw&quot;</span><span class="p">,</span>
+<a id="line-534" name="line-534"></a><span class="w"> </span><span class="s">&quot;Александър Шопов (Alexander Shopov)&quot;</span><span class="p">,</span>
+<a id="line-535" name="line-535"></a><span class="w"> </span><span class="s">&quot;Clytie Siddall&quot;</span><span class="p">,</span>
+<a id="line-536" name="line-536"></a><span class="w"> </span><span class="s">&quot;Alejandro Aguilar Sierra&quot;</span><span class="p">,</span>
+<a id="line-537" name="line-537"></a><span class="w"> </span><span class="s">&quot;Miroslav Silovic&quot;</span><span class="p">,</span>
+<a id="line-538" name="line-538"></a><span class="w"> </span><span class="s">&quot;Manish Singh&quot;</span><span class="p">,</span>
+<a id="line-539" name="line-539"></a><span class="w"> </span><span class="s">&quot;Timo Sirainen&quot;</span><span class="p">,</span>
+<a id="line-540" name="line-540"></a><span class="w"> </span><span class="s">&quot;David F. Skoll&quot;</span><span class="p">,</span>
+<a id="line-541" name="line-541"></a><span class="w"> </span><span class="s">&quot;Jochen Skulj&quot;</span><span class="p">,</span>
+<a id="line-542" name="line-542"></a><span class="w"> </span><span class="s">&quot;Nuke Skyjumper&quot;</span><span class="p">,</span>
+<a id="line-543" name="line-543"></a><span class="w"> </span><span class="s">&quot;Петър Славов (Peter </span><span class="se">\&quot;</span><span class="s">Peshka</span><span class="se">\&quot;</span><span class="s"> Slavov)&quot;</span><span class="p">,</span>
+<a id="line-544" name="line-544"></a><span class="w"> </span><span class="s">&quot;Josh Sled&quot;</span><span class="p">,</span>
+<a id="line-545" name="line-545"></a><span class="w"> </span><span class="s">&quot;John Slee&quot;</span><span class="p">,</span>
+<a id="line-546" name="line-546"></a><span class="w"> </span><span class="s">&quot;Raphaël Slinckx&quot;</span><span class="p">,</span>
+<a id="line-547" name="line-547"></a><span class="w"> </span><span class="s">&quot;Brent Smith&quot;</span><span class="p">,</span>
+<a id="line-548" name="line-548"></a><span class="w"> </span><span class="s">&quot;Garrett Smith&quot;</span><span class="p">,</span>
+<a id="line-549" name="line-549"></a><span class="w"> </span><span class="s">&quot;Suzanna Smith&quot;</span><span class="p">,</span>
+<a id="line-550" name="line-550"></a><span class="w"> </span><span class="s">&quot;Andrew Sobala&quot;</span><span class="p">,</span>
+<a id="line-551" name="line-551"></a><span class="w"> </span><span class="s">&quot;Shreyas Srinivasan&quot;</span><span class="p">,</span>
+<a id="line-552" name="line-552"></a><span class="w"> </span><span class="s">&quot;Maciej Stachowiak&quot;</span><span class="p">,</span>
+<a id="line-553" name="line-553"></a><span class="w"> </span><span class="s">&quot;Stalyn&quot;</span><span class="p">,</span>
+<a id="line-554" name="line-554"></a><span class="w"> </span><span class="s">&quot;Jeffrey Stedfast&quot;</span><span class="p">,</span>
+<a id="line-555" name="line-555"></a><span class="w"> </span><span class="s">&quot;Jakub Steiner&quot;</span><span class="p">,</span>
+<a id="line-556" name="line-556"></a><span class="w"> </span><span class="s">&quot;Ben Stern&quot;</span><span class="p">,</span>
+<a id="line-557" name="line-557"></a><span class="w"> </span><span class="s">&quot;Micah Stetson&quot;</span><span class="p">,</span>
+<a id="line-558" name="line-558"></a><span class="w"> </span><span class="s">&quot;Ray Strode&quot;</span><span class="p">,</span>
+<a id="line-559" name="line-559"></a><span class="w"> </span><span class="s">&quot;Luke Stroven&quot;</span><span class="p">,</span>
+<a id="line-560" name="line-560"></a><span class="w"> </span><span class="s">&quot;Mariano Suárez-Alvarez&quot;</span><span class="p">,</span>
+<a id="line-561" name="line-561"></a><span class="w"> </span><span class="s">&quot;Parthasarathi Susarla&quot;</span><span class="p">,</span>
+<a id="line-562" name="line-562"></a><span class="w"> </span><span class="s">&quot;Nathan Carl Summers&quot;</span><span class="p">,</span>
+<a id="line-563" name="line-563"></a><span class="w"> </span><span class="s">&quot;Istvan Szekeres&quot;</span><span class="p">,</span>
+<a id="line-564" name="line-564"></a><span class="w"> </span><span class="s">&quot;Петър Тахчиев (Peter Tahchiev)&quot;</span><span class="p">,</span>
+<a id="line-565" name="line-565"></a><span class="w"> </span><span class="s">&quot;HideToshi Tajima&quot;</span><span class="p">,</span>
+<a id="line-566" name="line-566"></a><span class="w"> </span><span class="s">&quot;Nigel Tao&quot;</span><span class="p">,</span>
+<a id="line-567" name="line-567"></a><span class="w"> </span><span class="s">&quot;Tristan Tarrant&quot;</span><span class="p">,</span>
+<a id="line-568" name="line-568"></a><span class="w"> </span><span class="s">&quot;Anthony Taylor&quot;</span><span class="p">,</span>
+<a id="line-569" name="line-569"></a><span class="w"> </span><span class="s">&quot;Owen Taylor&quot;</span><span class="p">,</span>
+<a id="line-570" name="line-570"></a><span class="w"> </span><span class="s">&quot;Peter Teichman&quot;</span><span class="p">,</span>
+<a id="line-571" name="line-571"></a><span class="w"> </span><span class="s">&quot;Arturo Tena&quot;</span><span class="p">,</span>
+<a id="line-572" name="line-572"></a><span class="w"> </span><span class="s">&quot;Thomas Thurman&quot;</span><span class="p">,</span>
+<a id="line-573" name="line-573"></a><span class="w"> </span><span class="s">&quot;Kimball Thurston&quot;</span><span class="p">,</span>
+<a id="line-574" name="line-574"></a><span class="w"> </span><span class="s">&quot;András Tímár&quot;</span><span class="p">,</span>
+<a id="line-575" name="line-575"></a><span class="w"> </span><span class="s">&quot;Boyd Timothy&quot;</span><span class="p">,</span>
+<a id="line-576" name="line-576"></a><span class="w"> </span><span class="s">&quot;Rêzan Tovjîn&quot;</span><span class="p">,</span>
+<a id="line-577" name="line-577"></a><span class="w"> </span><span class="s">&quot;Alp Toker&quot;</span><span class="p">,</span>
+<a id="line-578" name="line-578"></a><span class="w"> </span><span class="s">&quot;Chris Toshok&quot;</span><span class="p">,</span>
+<a id="line-579" name="line-579"></a><span class="w"> </span><span class="s">&quot;Christoph Toshok&quot;</span><span class="p">,</span>
+<a id="line-580" name="line-580"></a><span class="w"> </span><span class="s">&quot;Malcolm Tredinnick&quot;</span><span class="p">,</span>
+<a id="line-581" name="line-581"></a><span class="w"> </span><span class="s">&quot;Tom Tromey &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-582" name="line-582"></a><span class="w"> </span><span class="s">&quot;David Trowbridge&quot;</span><span class="p">,</span>
+<a id="line-583" name="line-583"></a><span class="w"> </span><span class="s">&quot;Jon Trowbridge&quot;</span><span class="p">,</span>
+<a id="line-584" name="line-584"></a><span class="w"> </span><span class="s">&quot;段 活 文&quot;</span><span class="p">,</span>
+<a id="line-585" name="line-585"></a><span class="w"> </span><span class="s">&quot;Сергей В. Удальцов&quot;</span><span class="p">,</span>
+<a id="line-586" name="line-586"></a><span class="w"> </span><span class="s">&quot;Juan Pablo Ugarte&quot;</span><span class="p">,</span>
+<a id="line-587" name="line-587"></a><span class="w"> </span><span class="s">&quot;Vincent Untz&quot;</span><span class="p">,</span>
+<a id="line-588" name="line-588"></a><span class="w"> </span><span class="s">&quot;Manish Vachharajani&quot;</span><span class="p">,</span>
+<a id="line-589" name="line-589"></a><span class="w"> </span><span class="s">&quot;Neil Vachharajani&quot;</span><span class="p">,</span>
+<a id="line-590" name="line-590"></a><span class="w"> </span><span class="s">&quot;Tristan Van Berkom&quot;</span><span class="p">,</span>
+<a id="line-591" name="line-591"></a><span class="w"> </span><span class="s">&quot;Philip Van Hoof&quot;</span><span class="p">,</span>
+<a id="line-592" name="line-592"></a><span class="w"> </span><span class="s">&quot;Thomas Vander Stichele&quot;</span><span class="p">,</span>
+<a id="line-593" name="line-593"></a><span class="w"> </span><span class="s">&quot;Veerapuram Varadhan&quot;</span><span class="p">,</span>
+<a id="line-594" name="line-594"></a><span class="w"> </span><span class="s">&quot;Васил Василев (Vasil Vasilev)&quot;</span><span class="p">,</span>
+<a id="line-595" name="line-595"></a><span class="w"> </span><span class="s">&quot;Daniel Veillard&quot;</span><span class="p">,</span>
+<a id="line-596" name="line-596"></a><span class="w"> </span><span class="s">&quot;Vendu&quot;</span><span class="p">,</span>
+<a id="line-597" name="line-597"></a><span class="w"> </span><span class="s">&quot;Andrew Veliath&quot;</span><span class="p">,</span>
+<a id="line-598" name="line-598"></a><span class="w"> </span><span class="s">&quot;Юлия Велкова (Julia Velkova)&quot;</span><span class="p">,</span>
+<a id="line-599" name="line-599"></a><span class="w"> </span><span class="s">&quot;Luis Villa&quot;</span><span class="p">,</span>
+<a id="line-600" name="line-600"></a><span class="w"> </span><span class="s">&quot;Olav Vitters&quot;</span><span class="p">,</span>
+<a id="line-601" name="line-601"></a><span class="w"> </span><span class="s">&quot;Marius Vollmer&quot;</span><span class="p">,</span>
+<a id="line-602" name="line-602"></a><span class="w"> </span><span class="s">&quot;Patrick Wade&quot;</span><span class="p">,</span>
+<a id="line-603" name="line-603"></a><span class="w"> </span><span class="s">&quot;Shawn Wagner&quot;</span><span class="p">,</span>
+<a id="line-604" name="line-604"></a><span class="w"> </span><span class="s">&quot;Will Walker&quot;</span><span class="p">,</span>
+<a id="line-605" name="line-605"></a><span class="w"> </span><span class="s">&quot;Hanna Wallach&quot;</span><span class="p">,</span>
+<a id="line-606" name="line-606"></a><span class="w"> </span><span class="s">&quot;Colin Walters&quot;</span><span class="p">,</span>
+<a id="line-607" name="line-607"></a><span class="w"> </span><span class="s">&quot;Matthias Warkus&quot;</span><span class="p">,</span>
+<a id="line-608" name="line-608"></a><span class="w"> </span><span class="s">&quot;Jeff Waugh&quot;</span><span class="p">,</span>
+<a id="line-609" name="line-609"></a><span class="w"> </span><span class="s">&quot;Morten Welinder&quot;</span><span class="p">,</span>
+<a id="line-610" name="line-610"></a><span class="w"> </span><span class="s">&quot;Jonh Wendell&quot;</span><span class="p">,</span>
+<a id="line-611" name="line-611"></a><span class="w"> </span><span class="s">&quot;Bruno Widmann&quot;</span><span class="p">,</span>
+<a id="line-612" name="line-612"></a><span class="w"> </span><span class="s">&quot;Robert Wilhelm&quot;</span><span class="p">,</span>
+<a id="line-613" name="line-613"></a><span class="w"> </span><span class="s">&quot;Sebastian Wilhelmi&quot;</span><span class="p">,</span>
+<a id="line-614" name="line-614"></a><span class="w"> </span><span class="s">&quot;Dan Williams&quot;</span><span class="p">,</span>
+<a id="line-615" name="line-615"></a><span class="w"> </span><span class="s">&quot;James Willcox&quot;</span><span class="p">,</span>
+<a id="line-616" name="line-616"></a><span class="w"> </span><span class="s">&quot;David Winkler&quot;</span><span class="p">,</span>
+<a id="line-617" name="line-617"></a><span class="w"> </span><span class="s">&quot;Dan Winship&quot;</span><span class="p">,</span>
+<a id="line-618" name="line-618"></a><span class="w"> </span><span class="s">&quot;Jeremy Wise&quot;</span><span class="p">,</span>
+<a id="line-619" name="line-619"></a><span class="w"> </span><span class="s">&quot;Roger Wolff&quot;</span><span class="p">,</span>
+<a id="line-620" name="line-620"></a><span class="w"> </span><span class="s">&quot;Ivan Wong&quot;</span><span class="p">,</span>
+<a id="line-621" name="line-621"></a><span class="w"> </span><span class="s">&quot;Frank Worsley&quot;</span><span class="p">,</span>
+<a id="line-622" name="line-622"></a><span class="w"> </span><span class="s">&quot;Rizoyê Xerzî&quot;</span><span class="p">,</span>
+<a id="line-623" name="line-623"></a><span class="w"> </span><span class="s">&quot;Wang Xin&quot;</span><span class="p">,</span>
+<a id="line-624" name="line-624"></a><span class="w"> </span><span class="s">&quot;James Youngman&quot;</span><span class="p">,</span>
+<a id="line-625" name="line-625"></a><span class="w"> </span><span class="s">&quot;Mengjie Yu&quot;</span><span class="p">,</span>
+<a id="line-626" name="line-626"></a><span class="w"> </span><span class="s">&quot;Li Yuan&quot;</span><span class="p">,</span>
+<a id="line-627" name="line-627"></a><span class="w"> </span><span class="s">&quot;Orest Zborowski&quot;</span><span class="p">,</span>
+<a id="line-628" name="line-628"></a><span class="w"> </span><span class="s">&quot;Simon Zheng&quot;</span><span class="p">,</span>
+<a id="line-629" name="line-629"></a><span class="w"> </span><span class="s">&quot;Sascha Ziemann&quot;</span><span class="p">,</span>
+<a id="line-630" name="line-630"></a><span class="w"> </span><span class="s">&quot;Michael Zucchi&quot;</span><span class="p">,</span>
+<a id="line-631" name="line-631"></a><span class="w"> </span><span class="s">&quot;Jason van Zyl&quot;</span><span class="p">,</span>
+<a id="line-632" name="line-632"></a><span class="w"> </span><span class="nb">NULL</span>
+<a id="line-633" name="line-633"></a><span class="p">};</span>
+<a id="line-634" name="line-634"></a>
+<a id="line-635" name="line-635"></a><span class="c1">// documentation</span>
+<a id="line-636" name="line-636"></a><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="n">documenters</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span>
+<a id="line-637" name="line-637"></a><span class="w"> </span><span class="s">&quot;...&quot;</span><span class="p">,</span><span class="w"> </span><span class="c1">// TODO: fillme</span>
+<a id="line-638" name="line-638"></a><span class="w"> </span><span class="nb">NULL</span>
+<a id="line-639" name="line-639"></a><span class="p">};</span>
+<a id="line-640" name="line-640"></a><span class="c1">// artists</span>
+<a id="line-641" name="line-641"></a><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="n">artists</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span>
+<a id="line-642" name="line-642"></a><span class="w"> </span><span class="s">&quot;Marcel Dijkstra &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-643" name="line-643"></a><span class="w"> </span><span class="s">&quot;Rowen Stipe &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-644" name="line-644"></a><span class="w"> </span><span class="s">&quot;Wolfgang Ulbrich &lt;[email protected]&gt;&quot;</span><span class="p">,</span>
+<a id="line-645" name="line-645"></a><span class="w"> </span><span class="nb">NULL</span>
+<a id="line-646" name="line-646"></a><span class="p">};</span>
+<a id="line-647" name="line-647"></a>
+<a id="line-648" name="line-648"></a><span class="c1">// widget for mate-about window</span>
+<a id="line-649" name="line-649"></a><span class="n">GtkAboutDialog</span><span class="o">*</span><span class="w"> </span><span class="n">mate_about_dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-650" name="line-650"></a>
+<a id="line-651" name="line-651"></a><span class="n">GtkApplication</span><span class="o">*</span><span class="w"> </span><span class="n">mate_about_application</span><span class="p">;</span>
+<a id="line-652" name="line-652"></a>
+<a id="line-653" name="line-653"></a><span class="cm">/**</span>
+<a id="line-654" name="line-654"></a><span class="cm"> * If this value is set to TRUE, then mate_about_dialog will not be called</span>
+<a id="line-655" name="line-655"></a><span class="cm"> * on the main function.</span>
+<a id="line-656" name="line-656"></a><span class="cm"> */</span>
+<a id="line-657" name="line-657"></a><span class="n">gboolean</span><span class="w"> </span><span class="n">mate_about_nogui</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-658" name="line-658"></a><span class="c1">// functions</span>
+<a id="line-659" name="line-659"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_about_run</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-660" name="line-660"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_about_release_version</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-661" name="line-661"></a>
+<a id="line-662" name="line-662"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">mate_about_on_activate</span><span class="p">(</span><span class="n">GtkApplication</span><span class="o">*</span><span class="w"> </span><span class="n">app</span><span class="p">);</span>
+<a id="line-663" name="line-663"></a>
+<a id="line-664" name="line-664"></a><span class="c1">// arguments definitions</span>
+<a id="line-665" name="line-665"></a><span class="k">static</span><span class="w"> </span><span class="n">GOptionEntry</span><span class="w"> </span><span class="n">command_entries</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span>
+<a id="line-666" name="line-666"></a><span class="w"> </span><span class="p">{</span><span class="s">&quot;version&quot;</span><span class="p">,</span><span class="w"> </span><span class="sc">&#39;v&#39;</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">G_OPTION_ARG_NONE</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">mate_about_nogui</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;Show MATE version&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">},</span>
+<a id="line-667" name="line-667"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">G_OPTION_ARG_NONE</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">}</span>
+<a id="line-668" name="line-668"></a><span class="p">};</span>
+<a id="line-669" name="line-669"></a>
+<a id="line-670" name="line-670"></a><span class="cp">#endif </span><span class="cm">/* __MATE_ABOUT_H__ */</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/34.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/34.html
new file mode 100644
index 0000000..d226c21
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/34.html
@@ -0,0 +1,417 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: tools/mate-color-select.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-color-select.c</p>
+<a href="34.html#line-26"> missingIncludeSystem 26</a><a href="34.html#line-27"> missingIncludeSystem 27</a><a href="34.html#line-28"> missingIncludeSystem 28</a><a href="34.html#line-29"> missingIncludeSystem 29</a><a href="34.html#line-30"> missingIncludeSystem 30</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal">10</span>
+<span class="normal">11</span>
+<span class="normal">12</span>
+<span class="normal">13</span>
+<span class="normal">14</span>
+<span class="normal">15</span>
+<span class="normal">16</span>
+<span class="normal">17</span>
+<span class="normal">18</span>
+<span class="normal">19</span>
+<span class="normal">20</span>
+<span class="normal">21</span>
+<span class="normal">22</span>
+<span class="normal">23</span>
+<span class="normal">24</span>
+<span class="normal">25</span>
+<span class="normal">26</span>
+<span class="normal">27</span>
+<span class="normal">28</span>
+<span class="normal">29</span>
+<span class="normal">30</span>
+<span class="normal">31</span>
+<span class="normal">32</span>
+<span class="normal">33</span>
+<span class="normal">34</span>
+<span class="normal">35</span>
+<span class="normal">36</span>
+<span class="normal">37</span>
+<span class="normal">38</span>
+<span class="normal">39</span>
+<span class="normal">40</span>
+<span class="normal">41</span>
+<span class="normal">42</span>
+<span class="normal">43</span>
+<span class="normal">44</span>
+<span class="normal">45</span>
+<span class="normal">46</span>
+<span class="normal">47</span>
+<span class="normal">48</span>
+<span class="normal">49</span>
+<span class="normal">50</span>
+<span class="normal">51</span>
+<span class="normal">52</span>
+<span class="normal">53</span>
+<span class="normal">54</span>
+<span class="normal">55</span>
+<span class="normal">56</span>
+<span class="normal">57</span>
+<span class="normal">58</span>
+<span class="normal">59</span>
+<span class="normal">60</span>
+<span class="normal">61</span>
+<span class="normal">62</span>
+<span class="normal">63</span>
+<span class="normal">64</span>
+<span class="normal">65</span>
+<span class="normal">66</span>
+<span class="normal">67</span>
+<span class="normal">68</span>
+<span class="normal">69</span>
+<span class="normal">70</span>
+<span class="normal">71</span>
+<span class="normal">72</span>
+<span class="normal">73</span>
+<span class="normal">74</span>
+<span class="normal">75</span>
+<span class="normal">76</span>
+<span class="normal">77</span>
+<span class="normal">78</span>
+<span class="normal">79</span>
+<span class="normal">80</span>
+<span class="normal">81</span>
+<span class="normal">82</span>
+<span class="normal">83</span>
+<span class="normal">84</span>
+<span class="normal">85</span>
+<span class="normal">86</span>
+<span class="normal">87</span>
+<span class="normal">88</span>
+<span class="normal">89</span>
+<span class="normal">90</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span>
+<a id="line-2" name="line-2"></a><span class="cm"> * mate-color.c: MATE color selection tool</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * Copyright (C) 2014 Stefano Karapetsas</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * Copyright (C) 2014-2021 MATE Developers</span>
+<a id="line-6" name="line-6"></a><span class="cm"> *</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * This program is free software; you can redistribute it and/or modify</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * it under the terms of the GNU General Public License as published by</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * (at your option) any later version.</span>
+<a id="line-11" name="line-11"></a><span class="cm"> *</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * This program is distributed in the hope that it will be useful,</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * GNU General Public License for more details.</span>
+<a id="line-16" name="line-16"></a><span class="cm"> *</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * You should have received a copy of the GNU General Public License</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * along with this program; if not, write to the Free Software</span>
+<a id="line-19" name="line-19"></a><span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor,</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * Boston, MA 02110-1301, USA.</span>
+<a id="line-21" name="line-21"></a><span class="cm"> *</span>
+<a id="line-22" name="line-22"></a><span class="cm"> * Authors:</span>
+<a id="line-23" name="line-23"></a><span class="cm"> * Stefano Karapetsas &lt;[email protected]&gt;</span>
+<a id="line-24" name="line-24"></a><span class="cm"> */</span>
+<a id="line-25" name="line-25"></a>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;config.h&gt;</span><span class="error2">&lt;--- Include file: <config.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-27" name="line-27"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;libmate-desktop/mate-colorseldialog.h&gt;</span><span class="error2">&lt;--- Include file: <libmate-desktop/mate-colorseldialog.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;libmate-desktop/mate-colorsel.h&gt;</span><span class="error2">&lt;--- Include file: <libmate-desktop/mate-colorsel.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-33" name="line-33"></a><span class="nf">copy_color</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span><span class="w"> </span><span class="n">MateColorSelectionDialog</span><span class="w"> </span><span class="o">*</span><span class="n">color_dialog</span><span class="p">)</span>
+<a id="line-34" name="line-34"></a><span class="p">{</span>
+<a id="line-35" name="line-35"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="n">color</span><span class="p">;</span>
+<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">color_string</span><span class="p">;</span>
+<a id="line-37" name="line-37"></a>
+<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">mate_color_selection_get_current_rgba</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">color_dialog</span><span class="o">-&gt;</span><span class="n">colorsel</span><span class="p">),</span><span class="w"> </span><span class="o">&amp;</span><span class="n">color</span><span class="p">);</span>
+<a id="line-39" name="line-39"></a><span class="w"> </span><span class="n">g_object_get</span><span class="w"> </span><span class="p">(</span><span class="n">color_dialog</span><span class="o">-&gt;</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;hex-string&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">color_string</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-40" name="line-40"></a>
+<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">gtk_clipboard_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_clipboard_get</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_SELECTION_CLIPBOARD</span><span class="p">),</span><span class="w"> </span><span class="n">color_string</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span>
+<a id="line-42" name="line-42"></a>
+<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">color_string</span><span class="p">);</span>
+<a id="line-44" name="line-44"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-45" name="line-45"></a><span class="p">}</span>
+<a id="line-46" name="line-46"></a>
+<a id="line-47" name="line-47"></a><span class="kt">int</span>
+<a id="line-48" name="line-48"></a><span class="nf">main</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">)</span>
+<a id="line-49" name="line-49"></a><span class="p">{</span>
+<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">color_dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">color_selection</span><span class="p">;</span>
+<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">;</span>
+<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span>
+<a id="line-54" name="line-54"></a>
+<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">bindtextdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="n">LOCALE_DIR</span><span class="p">);</span>
+<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">bind_textdomain_codeset</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;UTF-8&quot;</span><span class="p">);</span>
+<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">textdomain</span><span class="w"> </span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">);</span>
+<a id="line-58" name="line-58"></a>
+<a id="line-59" name="line-59"></a><span class="w"> </span><span class="cm">/* initialize GTK+ */</span>
+<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">gtk_init</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">argv</span><span class="p">);</span>
+<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">gtk_window_set_default_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;gtk-select-color&quot;</span><span class="p">);</span>
+<a id="line-62" name="line-62"></a>
+<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">color_dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_color_selection_dialog_new</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;MATE Color Selection&quot;</span><span class="p">));</span>
+<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">color_selection</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_COLOR_SELECTION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">color_dialog</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">colorsel</span><span class="p">;</span>
+<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">mate_color_selection_set_has_palette</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">color_selection</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-66" name="line-66"></a>
+<a id="line-67" name="line-67"></a><span class="w"> </span><span class="cm">/* quit signal */</span>
+<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">color_dialog</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;destroy&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_main_quit</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-69" name="line-69"></a>
+<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_button_new_with_mnemonic</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Copy&quot;</span><span class="p">));</span>
+<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;edit-copy&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_BUTTON</span><span class="p">);</span>
+<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">gtk_button_set_image</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">image</span><span class="p">);</span>
+<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">gtk_dialog_add_action_widget</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">color_dialog</span><span class="p">),</span><span class="w"> </span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_RESPONSE_ACCEPT</span><span class="p">);</span>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;button-release-event&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">copy_color</span><span class="p">),</span><span class="w"> </span><span class="n">color_dialog</span><span class="p">);</span>
+<a id="line-75" name="line-75"></a>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_button_new_with_mnemonic</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Close&quot;</span><span class="p">));</span>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;window-close&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_BUTTON</span><span class="p">);</span>
+<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">gtk_button_set_image</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">image</span><span class="p">);</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">gtk_dialog_add_action_widget</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">color_dialog</span><span class="p">),</span><span class="w"> </span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_RESPONSE_CLOSE</span><span class="p">);</span>
+<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;button-release-event&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_main_quit</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-81" name="line-81"></a>
+<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">color_dialog</span><span class="p">);</span>
+<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_COLOR_SELECTION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">color_dialog</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">ok_button</span><span class="p">);</span>
+<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_COLOR_SELECTION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">color_dialog</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">cancel_button</span><span class="p">);</span>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_COLOR_SELECTION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">color_dialog</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">help_button</span><span class="p">);</span>
+<a id="line-86" name="line-86"></a>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="cm">/* start application */</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">gtk_main</span><span class="w"> </span><span class="p">();</span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-90" name="line-90"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/4.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/4.html
new file mode 100644
index 0000000..99d7453
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/4.html
@@ -0,0 +1,6759 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/mate-bg.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-bg.c</p>
+<a href="4.html#line-33"> missingIncludeSystem 33</a><a href="4.html#line-34"> missingIncludeSystem 34</a><a href="4.html#line-35"> missingIncludeSystem 35</a><a href="4.html#line-36"> missingIncludeSystem 36</a><a href="4.html#line-38"> missingIncludeSystem 38</a><a href="4.html#line-39"> missingIncludeSystem 39</a><a href="4.html#line-41"> missingIncludeSystem 41</a><a href="4.html#line-42"> missingIncludeSystem 42</a><a href="4.html#line-43"> missingIncludeSystem 43</a><a href="4.html#line-45"> missingIncludeSystem 45</a><a href="4.html#line-48"> missingIncludeSystem 48</a><a href="4.html#line-49"> missingIncludeSystem 49</a><a href="4.html#line-51"> missingIncludeSystem 51</a><a href="4.html#line-122"> unknownMacro 122</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal"> 10</span>
+<span class="normal"> 11</span>
+<span class="normal"> 12</span>
+<span class="normal"> 13</span>
+<span class="normal"> 14</span>
+<span class="normal"> 15</span>
+<span class="normal"> 16</span>
+<span class="normal"> 17</span>
+<span class="normal"> 18</span>
+<span class="normal"> 19</span>
+<span class="normal"> 20</span>
+<span class="normal"> 21</span>
+<span class="normal"> 22</span>
+<span class="normal"> 23</span>
+<span class="normal"> 24</span>
+<span class="normal"> 25</span>
+<span class="normal"> 26</span>
+<span class="normal"> 27</span>
+<span class="normal"> 28</span>
+<span class="normal"> 29</span>
+<span class="normal"> 30</span>
+<span class="normal"> 31</span>
+<span class="normal"> 32</span>
+<span class="normal"> 33</span>
+<span class="normal"> 34</span>
+<span class="normal"> 35</span>
+<span class="normal"> 36</span>
+<span class="normal"> 37</span>
+<span class="normal"> 38</span>
+<span class="normal"> 39</span>
+<span class="normal"> 40</span>
+<span class="normal"> 41</span>
+<span class="normal"> 42</span>
+<span class="normal"> 43</span>
+<span class="normal"> 44</span>
+<span class="normal"> 45</span>
+<span class="normal"> 46</span>
+<span class="normal"> 47</span>
+<span class="normal"> 48</span>
+<span class="normal"> 49</span>
+<span class="normal"> 50</span>
+<span class="normal"> 51</span>
+<span class="normal"> 52</span>
+<span class="normal"> 53</span>
+<span class="normal"> 54</span>
+<span class="normal"> 55</span>
+<span class="normal"> 56</span>
+<span class="normal"> 57</span>
+<span class="normal"> 58</span>
+<span class="normal"> 59</span>
+<span class="normal"> 60</span>
+<span class="normal"> 61</span>
+<span class="normal"> 62</span>
+<span class="normal"> 63</span>
+<span class="normal"> 64</span>
+<span class="normal"> 65</span>
+<span class="normal"> 66</span>
+<span class="normal"> 67</span>
+<span class="normal"> 68</span>
+<span class="normal"> 69</span>
+<span class="normal"> 70</span>
+<span class="normal"> 71</span>
+<span class="normal"> 72</span>
+<span class="normal"> 73</span>
+<span class="normal"> 74</span>
+<span class="normal"> 75</span>
+<span class="normal"> 76</span>
+<span class="normal"> 77</span>
+<span class="normal"> 78</span>
+<span class="normal"> 79</span>
+<span class="normal"> 80</span>
+<span class="normal"> 81</span>
+<span class="normal"> 82</span>
+<span class="normal"> 83</span>
+<span class="normal"> 84</span>
+<span class="normal"> 85</span>
+<span class="normal"> 86</span>
+<span class="normal"> 87</span>
+<span class="normal"> 88</span>
+<span class="normal"> 89</span>
+<span class="normal"> 90</span>
+<span class="normal"> 91</span>
+<span class="normal"> 92</span>
+<span class="normal"> 93</span>
+<span class="normal"> 94</span>
+<span class="normal"> 95</span>
+<span class="normal"> 96</span>
+<span class="normal"> 97</span>
+<span class="normal"> 98</span>
+<span class="normal"> 99</span>
+<span class="normal"> 100</span>
+<span class="normal"> 101</span>
+<span class="normal"> 102</span>
+<span class="normal"> 103</span>
+<span class="normal"> 104</span>
+<span class="normal"> 105</span>
+<span class="normal"> 106</span>
+<span class="normal"> 107</span>
+<span class="normal"> 108</span>
+<span class="normal"> 109</span>
+<span class="normal"> 110</span>
+<span class="normal"> 111</span>
+<span class="normal"> 112</span>
+<span class="normal"> 113</span>
+<span class="normal"> 114</span>
+<span class="normal"> 115</span>
+<span class="normal"> 116</span>
+<span class="normal"> 117</span>
+<span class="normal"> 118</span>
+<span class="normal"> 119</span>
+<span class="normal"> 120</span>
+<span class="normal"> 121</span>
+<span class="normal"> 122</span>
+<span class="normal"> 123</span>
+<span class="normal"> 124</span>
+<span class="normal"> 125</span>
+<span class="normal"> 126</span>
+<span class="normal"> 127</span>
+<span class="normal"> 128</span>
+<span class="normal"> 129</span>
+<span class="normal"> 130</span>
+<span class="normal"> 131</span>
+<span class="normal"> 132</span>
+<span class="normal"> 133</span>
+<span class="normal"> 134</span>
+<span class="normal"> 135</span>
+<span class="normal"> 136</span>
+<span class="normal"> 137</span>
+<span class="normal"> 138</span>
+<span class="normal"> 139</span>
+<span class="normal"> 140</span>
+<span class="normal"> 141</span>
+<span class="normal"> 142</span>
+<span class="normal"> 143</span>
+<span class="normal"> 144</span>
+<span class="normal"> 145</span>
+<span class="normal"> 146</span>
+<span class="normal"> 147</span>
+<span class="normal"> 148</span>
+<span class="normal"> 149</span>
+<span class="normal"> 150</span>
+<span class="normal"> 151</span>
+<span class="normal"> 152</span>
+<span class="normal"> 153</span>
+<span class="normal"> 154</span>
+<span class="normal"> 155</span>
+<span class="normal"> 156</span>
+<span class="normal"> 157</span>
+<span class="normal"> 158</span>
+<span class="normal"> 159</span>
+<span class="normal"> 160</span>
+<span class="normal"> 161</span>
+<span class="normal"> 162</span>
+<span class="normal"> 163</span>
+<span class="normal"> 164</span>
+<span class="normal"> 165</span>
+<span class="normal"> 166</span>
+<span class="normal"> 167</span>
+<span class="normal"> 168</span>
+<span class="normal"> 169</span>
+<span class="normal"> 170</span>
+<span class="normal"> 171</span>
+<span class="normal"> 172</span>
+<span class="normal"> 173</span>
+<span class="normal"> 174</span>
+<span class="normal"> 175</span>
+<span class="normal"> 176</span>
+<span class="normal"> 177</span>
+<span class="normal"> 178</span>
+<span class="normal"> 179</span>
+<span class="normal"> 180</span>
+<span class="normal"> 181</span>
+<span class="normal"> 182</span>
+<span class="normal"> 183</span>
+<span class="normal"> 184</span>
+<span class="normal"> 185</span>
+<span class="normal"> 186</span>
+<span class="normal"> 187</span>
+<span class="normal"> 188</span>
+<span class="normal"> 189</span>
+<span class="normal"> 190</span>
+<span class="normal"> 191</span>
+<span class="normal"> 192</span>
+<span class="normal"> 193</span>
+<span class="normal"> 194</span>
+<span class="normal"> 195</span>
+<span class="normal"> 196</span>
+<span class="normal"> 197</span>
+<span class="normal"> 198</span>
+<span class="normal"> 199</span>
+<span class="normal"> 200</span>
+<span class="normal"> 201</span>
+<span class="normal"> 202</span>
+<span class="normal"> 203</span>
+<span class="normal"> 204</span>
+<span class="normal"> 205</span>
+<span class="normal"> 206</span>
+<span class="normal"> 207</span>
+<span class="normal"> 208</span>
+<span class="normal"> 209</span>
+<span class="normal"> 210</span>
+<span class="normal"> 211</span>
+<span class="normal"> 212</span>
+<span class="normal"> 213</span>
+<span class="normal"> 214</span>
+<span class="normal"> 215</span>
+<span class="normal"> 216</span>
+<span class="normal"> 217</span>
+<span class="normal"> 218</span>
+<span class="normal"> 219</span>
+<span class="normal"> 220</span>
+<span class="normal"> 221</span>
+<span class="normal"> 222</span>
+<span class="normal"> 223</span>
+<span class="normal"> 224</span>
+<span class="normal"> 225</span>
+<span class="normal"> 226</span>
+<span class="normal"> 227</span>
+<span class="normal"> 228</span>
+<span class="normal"> 229</span>
+<span class="normal"> 230</span>
+<span class="normal"> 231</span>
+<span class="normal"> 232</span>
+<span class="normal"> 233</span>
+<span class="normal"> 234</span>
+<span class="normal"> 235</span>
+<span class="normal"> 236</span>
+<span class="normal"> 237</span>
+<span class="normal"> 238</span>
+<span class="normal"> 239</span>
+<span class="normal"> 240</span>
+<span class="normal"> 241</span>
+<span class="normal"> 242</span>
+<span class="normal"> 243</span>
+<span class="normal"> 244</span>
+<span class="normal"> 245</span>
+<span class="normal"> 246</span>
+<span class="normal"> 247</span>
+<span class="normal"> 248</span>
+<span class="normal"> 249</span>
+<span class="normal"> 250</span>
+<span class="normal"> 251</span>
+<span class="normal"> 252</span>
+<span class="normal"> 253</span>
+<span class="normal"> 254</span>
+<span class="normal"> 255</span>
+<span class="normal"> 256</span>
+<span class="normal"> 257</span>
+<span class="normal"> 258</span>
+<span class="normal"> 259</span>
+<span class="normal"> 260</span>
+<span class="normal"> 261</span>
+<span class="normal"> 262</span>
+<span class="normal"> 263</span>
+<span class="normal"> 264</span>
+<span class="normal"> 265</span>
+<span class="normal"> 266</span>
+<span class="normal"> 267</span>
+<span class="normal"> 268</span>
+<span class="normal"> 269</span>
+<span class="normal"> 270</span>
+<span class="normal"> 271</span>
+<span class="normal"> 272</span>
+<span class="normal"> 273</span>
+<span class="normal"> 274</span>
+<span class="normal"> 275</span>
+<span class="normal"> 276</span>
+<span class="normal"> 277</span>
+<span class="normal"> 278</span>
+<span class="normal"> 279</span>
+<span class="normal"> 280</span>
+<span class="normal"> 281</span>
+<span class="normal"> 282</span>
+<span class="normal"> 283</span>
+<span class="normal"> 284</span>
+<span class="normal"> 285</span>
+<span class="normal"> 286</span>
+<span class="normal"> 287</span>
+<span class="normal"> 288</span>
+<span class="normal"> 289</span>
+<span class="normal"> 290</span>
+<span class="normal"> 291</span>
+<span class="normal"> 292</span>
+<span class="normal"> 293</span>
+<span class="normal"> 294</span>
+<span class="normal"> 295</span>
+<span class="normal"> 296</span>
+<span class="normal"> 297</span>
+<span class="normal"> 298</span>
+<span class="normal"> 299</span>
+<span class="normal"> 300</span>
+<span class="normal"> 301</span>
+<span class="normal"> 302</span>
+<span class="normal"> 303</span>
+<span class="normal"> 304</span>
+<span class="normal"> 305</span>
+<span class="normal"> 306</span>
+<span class="normal"> 307</span>
+<span class="normal"> 308</span>
+<span class="normal"> 309</span>
+<span class="normal"> 310</span>
+<span class="normal"> 311</span>
+<span class="normal"> 312</span>
+<span class="normal"> 313</span>
+<span class="normal"> 314</span>
+<span class="normal"> 315</span>
+<span class="normal"> 316</span>
+<span class="normal"> 317</span>
+<span class="normal"> 318</span>
+<span class="normal"> 319</span>
+<span class="normal"> 320</span>
+<span class="normal"> 321</span>
+<span class="normal"> 322</span>
+<span class="normal"> 323</span>
+<span class="normal"> 324</span>
+<span class="normal"> 325</span>
+<span class="normal"> 326</span>
+<span class="normal"> 327</span>
+<span class="normal"> 328</span>
+<span class="normal"> 329</span>
+<span class="normal"> 330</span>
+<span class="normal"> 331</span>
+<span class="normal"> 332</span>
+<span class="normal"> 333</span>
+<span class="normal"> 334</span>
+<span class="normal"> 335</span>
+<span class="normal"> 336</span>
+<span class="normal"> 337</span>
+<span class="normal"> 338</span>
+<span class="normal"> 339</span>
+<span class="normal"> 340</span>
+<span class="normal"> 341</span>
+<span class="normal"> 342</span>
+<span class="normal"> 343</span>
+<span class="normal"> 344</span>
+<span class="normal"> 345</span>
+<span class="normal"> 346</span>
+<span class="normal"> 347</span>
+<span class="normal"> 348</span>
+<span class="normal"> 349</span>
+<span class="normal"> 350</span>
+<span class="normal"> 351</span>
+<span class="normal"> 352</span>
+<span class="normal"> 353</span>
+<span class="normal"> 354</span>
+<span class="normal"> 355</span>
+<span class="normal"> 356</span>
+<span class="normal"> 357</span>
+<span class="normal"> 358</span>
+<span class="normal"> 359</span>
+<span class="normal"> 360</span>
+<span class="normal"> 361</span>
+<span class="normal"> 362</span>
+<span class="normal"> 363</span>
+<span class="normal"> 364</span>
+<span class="normal"> 365</span>
+<span class="normal"> 366</span>
+<span class="normal"> 367</span>
+<span class="normal"> 368</span>
+<span class="normal"> 369</span>
+<span class="normal"> 370</span>
+<span class="normal"> 371</span>
+<span class="normal"> 372</span>
+<span class="normal"> 373</span>
+<span class="normal"> 374</span>
+<span class="normal"> 375</span>
+<span class="normal"> 376</span>
+<span class="normal"> 377</span>
+<span class="normal"> 378</span>
+<span class="normal"> 379</span>
+<span class="normal"> 380</span>
+<span class="normal"> 381</span>
+<span class="normal"> 382</span>
+<span class="normal"> 383</span>
+<span class="normal"> 384</span>
+<span class="normal"> 385</span>
+<span class="normal"> 386</span>
+<span class="normal"> 387</span>
+<span class="normal"> 388</span>
+<span class="normal"> 389</span>
+<span class="normal"> 390</span>
+<span class="normal"> 391</span>
+<span class="normal"> 392</span>
+<span class="normal"> 393</span>
+<span class="normal"> 394</span>
+<span class="normal"> 395</span>
+<span class="normal"> 396</span>
+<span class="normal"> 397</span>
+<span class="normal"> 398</span>
+<span class="normal"> 399</span>
+<span class="normal"> 400</span>
+<span class="normal"> 401</span>
+<span class="normal"> 402</span>
+<span class="normal"> 403</span>
+<span class="normal"> 404</span>
+<span class="normal"> 405</span>
+<span class="normal"> 406</span>
+<span class="normal"> 407</span>
+<span class="normal"> 408</span>
+<span class="normal"> 409</span>
+<span class="normal"> 410</span>
+<span class="normal"> 411</span>
+<span class="normal"> 412</span>
+<span class="normal"> 413</span>
+<span class="normal"> 414</span>
+<span class="normal"> 415</span>
+<span class="normal"> 416</span>
+<span class="normal"> 417</span>
+<span class="normal"> 418</span>
+<span class="normal"> 419</span>
+<span class="normal"> 420</span>
+<span class="normal"> 421</span>
+<span class="normal"> 422</span>
+<span class="normal"> 423</span>
+<span class="normal"> 424</span>
+<span class="normal"> 425</span>
+<span class="normal"> 426</span>
+<span class="normal"> 427</span>
+<span class="normal"> 428</span>
+<span class="normal"> 429</span>
+<span class="normal"> 430</span>
+<span class="normal"> 431</span>
+<span class="normal"> 432</span>
+<span class="normal"> 433</span>
+<span class="normal"> 434</span>
+<span class="normal"> 435</span>
+<span class="normal"> 436</span>
+<span class="normal"> 437</span>
+<span class="normal"> 438</span>
+<span class="normal"> 439</span>
+<span class="normal"> 440</span>
+<span class="normal"> 441</span>
+<span class="normal"> 442</span>
+<span class="normal"> 443</span>
+<span class="normal"> 444</span>
+<span class="normal"> 445</span>
+<span class="normal"> 446</span>
+<span class="normal"> 447</span>
+<span class="normal"> 448</span>
+<span class="normal"> 449</span>
+<span class="normal"> 450</span>
+<span class="normal"> 451</span>
+<span class="normal"> 452</span>
+<span class="normal"> 453</span>
+<span class="normal"> 454</span>
+<span class="normal"> 455</span>
+<span class="normal"> 456</span>
+<span class="normal"> 457</span>
+<span class="normal"> 458</span>
+<span class="normal"> 459</span>
+<span class="normal"> 460</span>
+<span class="normal"> 461</span>
+<span class="normal"> 462</span>
+<span class="normal"> 463</span>
+<span class="normal"> 464</span>
+<span class="normal"> 465</span>
+<span class="normal"> 466</span>
+<span class="normal"> 467</span>
+<span class="normal"> 468</span>
+<span class="normal"> 469</span>
+<span class="normal"> 470</span>
+<span class="normal"> 471</span>
+<span class="normal"> 472</span>
+<span class="normal"> 473</span>
+<span class="normal"> 474</span>
+<span class="normal"> 475</span>
+<span class="normal"> 476</span>
+<span class="normal"> 477</span>
+<span class="normal"> 478</span>
+<span class="normal"> 479</span>
+<span class="normal"> 480</span>
+<span class="normal"> 481</span>
+<span class="normal"> 482</span>
+<span class="normal"> 483</span>
+<span class="normal"> 484</span>
+<span class="normal"> 485</span>
+<span class="normal"> 486</span>
+<span class="normal"> 487</span>
+<span class="normal"> 488</span>
+<span class="normal"> 489</span>
+<span class="normal"> 490</span>
+<span class="normal"> 491</span>
+<span class="normal"> 492</span>
+<span class="normal"> 493</span>
+<span class="normal"> 494</span>
+<span class="normal"> 495</span>
+<span class="normal"> 496</span>
+<span class="normal"> 497</span>
+<span class="normal"> 498</span>
+<span class="normal"> 499</span>
+<span class="normal"> 500</span>
+<span class="normal"> 501</span>
+<span class="normal"> 502</span>
+<span class="normal"> 503</span>
+<span class="normal"> 504</span>
+<span class="normal"> 505</span>
+<span class="normal"> 506</span>
+<span class="normal"> 507</span>
+<span class="normal"> 508</span>
+<span class="normal"> 509</span>
+<span class="normal"> 510</span>
+<span class="normal"> 511</span>
+<span class="normal"> 512</span>
+<span class="normal"> 513</span>
+<span class="normal"> 514</span>
+<span class="normal"> 515</span>
+<span class="normal"> 516</span>
+<span class="normal"> 517</span>
+<span class="normal"> 518</span>
+<span class="normal"> 519</span>
+<span class="normal"> 520</span>
+<span class="normal"> 521</span>
+<span class="normal"> 522</span>
+<span class="normal"> 523</span>
+<span class="normal"> 524</span>
+<span class="normal"> 525</span>
+<span class="normal"> 526</span>
+<span class="normal"> 527</span>
+<span class="normal"> 528</span>
+<span class="normal"> 529</span>
+<span class="normal"> 530</span>
+<span class="normal"> 531</span>
+<span class="normal"> 532</span>
+<span class="normal"> 533</span>
+<span class="normal"> 534</span>
+<span class="normal"> 535</span>
+<span class="normal"> 536</span>
+<span class="normal"> 537</span>
+<span class="normal"> 538</span>
+<span class="normal"> 539</span>
+<span class="normal"> 540</span>
+<span class="normal"> 541</span>
+<span class="normal"> 542</span>
+<span class="normal"> 543</span>
+<span class="normal"> 544</span>
+<span class="normal"> 545</span>
+<span class="normal"> 546</span>
+<span class="normal"> 547</span>
+<span class="normal"> 548</span>
+<span class="normal"> 549</span>
+<span class="normal"> 550</span>
+<span class="normal"> 551</span>
+<span class="normal"> 552</span>
+<span class="normal"> 553</span>
+<span class="normal"> 554</span>
+<span class="normal"> 555</span>
+<span class="normal"> 556</span>
+<span class="normal"> 557</span>
+<span class="normal"> 558</span>
+<span class="normal"> 559</span>
+<span class="normal"> 560</span>
+<span class="normal"> 561</span>
+<span class="normal"> 562</span>
+<span class="normal"> 563</span>
+<span class="normal"> 564</span>
+<span class="normal"> 565</span>
+<span class="normal"> 566</span>
+<span class="normal"> 567</span>
+<span class="normal"> 568</span>
+<span class="normal"> 569</span>
+<span class="normal"> 570</span>
+<span class="normal"> 571</span>
+<span class="normal"> 572</span>
+<span class="normal"> 573</span>
+<span class="normal"> 574</span>
+<span class="normal"> 575</span>
+<span class="normal"> 576</span>
+<span class="normal"> 577</span>
+<span class="normal"> 578</span>
+<span class="normal"> 579</span>
+<span class="normal"> 580</span>
+<span class="normal"> 581</span>
+<span class="normal"> 582</span>
+<span class="normal"> 583</span>
+<span class="normal"> 584</span>
+<span class="normal"> 585</span>
+<span class="normal"> 586</span>
+<span class="normal"> 587</span>
+<span class="normal"> 588</span>
+<span class="normal"> 589</span>
+<span class="normal"> 590</span>
+<span class="normal"> 591</span>
+<span class="normal"> 592</span>
+<span class="normal"> 593</span>
+<span class="normal"> 594</span>
+<span class="normal"> 595</span>
+<span class="normal"> 596</span>
+<span class="normal"> 597</span>
+<span class="normal"> 598</span>
+<span class="normal"> 599</span>
+<span class="normal"> 600</span>
+<span class="normal"> 601</span>
+<span class="normal"> 602</span>
+<span class="normal"> 603</span>
+<span class="normal"> 604</span>
+<span class="normal"> 605</span>
+<span class="normal"> 606</span>
+<span class="normal"> 607</span>
+<span class="normal"> 608</span>
+<span class="normal"> 609</span>
+<span class="normal"> 610</span>
+<span class="normal"> 611</span>
+<span class="normal"> 612</span>
+<span class="normal"> 613</span>
+<span class="normal"> 614</span>
+<span class="normal"> 615</span>
+<span class="normal"> 616</span>
+<span class="normal"> 617</span>
+<span class="normal"> 618</span>
+<span class="normal"> 619</span>
+<span class="normal"> 620</span>
+<span class="normal"> 621</span>
+<span class="normal"> 622</span>
+<span class="normal"> 623</span>
+<span class="normal"> 624</span>
+<span class="normal"> 625</span>
+<span class="normal"> 626</span>
+<span class="normal"> 627</span>
+<span class="normal"> 628</span>
+<span class="normal"> 629</span>
+<span class="normal"> 630</span>
+<span class="normal"> 631</span>
+<span class="normal"> 632</span>
+<span class="normal"> 633</span>
+<span class="normal"> 634</span>
+<span class="normal"> 635</span>
+<span class="normal"> 636</span>
+<span class="normal"> 637</span>
+<span class="normal"> 638</span>
+<span class="normal"> 639</span>
+<span class="normal"> 640</span>
+<span class="normal"> 641</span>
+<span class="normal"> 642</span>
+<span class="normal"> 643</span>
+<span class="normal"> 644</span>
+<span class="normal"> 645</span>
+<span class="normal"> 646</span>
+<span class="normal"> 647</span>
+<span class="normal"> 648</span>
+<span class="normal"> 649</span>
+<span class="normal"> 650</span>
+<span class="normal"> 651</span>
+<span class="normal"> 652</span>
+<span class="normal"> 653</span>
+<span class="normal"> 654</span>
+<span class="normal"> 655</span>
+<span class="normal"> 656</span>
+<span class="normal"> 657</span>
+<span class="normal"> 658</span>
+<span class="normal"> 659</span>
+<span class="normal"> 660</span>
+<span class="normal"> 661</span>
+<span class="normal"> 662</span>
+<span class="normal"> 663</span>
+<span class="normal"> 664</span>
+<span class="normal"> 665</span>
+<span class="normal"> 666</span>
+<span class="normal"> 667</span>
+<span class="normal"> 668</span>
+<span class="normal"> 669</span>
+<span class="normal"> 670</span>
+<span class="normal"> 671</span>
+<span class="normal"> 672</span>
+<span class="normal"> 673</span>
+<span class="normal"> 674</span>
+<span class="normal"> 675</span>
+<span class="normal"> 676</span>
+<span class="normal"> 677</span>
+<span class="normal"> 678</span>
+<span class="normal"> 679</span>
+<span class="normal"> 680</span>
+<span class="normal"> 681</span>
+<span class="normal"> 682</span>
+<span class="normal"> 683</span>
+<span class="normal"> 684</span>
+<span class="normal"> 685</span>
+<span class="normal"> 686</span>
+<span class="normal"> 687</span>
+<span class="normal"> 688</span>
+<span class="normal"> 689</span>
+<span class="normal"> 690</span>
+<span class="normal"> 691</span>
+<span class="normal"> 692</span>
+<span class="normal"> 693</span>
+<span class="normal"> 694</span>
+<span class="normal"> 695</span>
+<span class="normal"> 696</span>
+<span class="normal"> 697</span>
+<span class="normal"> 698</span>
+<span class="normal"> 699</span>
+<span class="normal"> 700</span>
+<span class="normal"> 701</span>
+<span class="normal"> 702</span>
+<span class="normal"> 703</span>
+<span class="normal"> 704</span>
+<span class="normal"> 705</span>
+<span class="normal"> 706</span>
+<span class="normal"> 707</span>
+<span class="normal"> 708</span>
+<span class="normal"> 709</span>
+<span class="normal"> 710</span>
+<span class="normal"> 711</span>
+<span class="normal"> 712</span>
+<span class="normal"> 713</span>
+<span class="normal"> 714</span>
+<span class="normal"> 715</span>
+<span class="normal"> 716</span>
+<span class="normal"> 717</span>
+<span class="normal"> 718</span>
+<span class="normal"> 719</span>
+<span class="normal"> 720</span>
+<span class="normal"> 721</span>
+<span class="normal"> 722</span>
+<span class="normal"> 723</span>
+<span class="normal"> 724</span>
+<span class="normal"> 725</span>
+<span class="normal"> 726</span>
+<span class="normal"> 727</span>
+<span class="normal"> 728</span>
+<span class="normal"> 729</span>
+<span class="normal"> 730</span>
+<span class="normal"> 731</span>
+<span class="normal"> 732</span>
+<span class="normal"> 733</span>
+<span class="normal"> 734</span>
+<span class="normal"> 735</span>
+<span class="normal"> 736</span>
+<span class="normal"> 737</span>
+<span class="normal"> 738</span>
+<span class="normal"> 739</span>
+<span class="normal"> 740</span>
+<span class="normal"> 741</span>
+<span class="normal"> 742</span>
+<span class="normal"> 743</span>
+<span class="normal"> 744</span>
+<span class="normal"> 745</span>
+<span class="normal"> 746</span>
+<span class="normal"> 747</span>
+<span class="normal"> 748</span>
+<span class="normal"> 749</span>
+<span class="normal"> 750</span>
+<span class="normal"> 751</span>
+<span class="normal"> 752</span>
+<span class="normal"> 753</span>
+<span class="normal"> 754</span>
+<span class="normal"> 755</span>
+<span class="normal"> 756</span>
+<span class="normal"> 757</span>
+<span class="normal"> 758</span>
+<span class="normal"> 759</span>
+<span class="normal"> 760</span>
+<span class="normal"> 761</span>
+<span class="normal"> 762</span>
+<span class="normal"> 763</span>
+<span class="normal"> 764</span>
+<span class="normal"> 765</span>
+<span class="normal"> 766</span>
+<span class="normal"> 767</span>
+<span class="normal"> 768</span>
+<span class="normal"> 769</span>
+<span class="normal"> 770</span>
+<span class="normal"> 771</span>
+<span class="normal"> 772</span>
+<span class="normal"> 773</span>
+<span class="normal"> 774</span>
+<span class="normal"> 775</span>
+<span class="normal"> 776</span>
+<span class="normal"> 777</span>
+<span class="normal"> 778</span>
+<span class="normal"> 779</span>
+<span class="normal"> 780</span>
+<span class="normal"> 781</span>
+<span class="normal"> 782</span>
+<span class="normal"> 783</span>
+<span class="normal"> 784</span>
+<span class="normal"> 785</span>
+<span class="normal"> 786</span>
+<span class="normal"> 787</span>
+<span class="normal"> 788</span>
+<span class="normal"> 789</span>
+<span class="normal"> 790</span>
+<span class="normal"> 791</span>
+<span class="normal"> 792</span>
+<span class="normal"> 793</span>
+<span class="normal"> 794</span>
+<span class="normal"> 795</span>
+<span class="normal"> 796</span>
+<span class="normal"> 797</span>
+<span class="normal"> 798</span>
+<span class="normal"> 799</span>
+<span class="normal"> 800</span>
+<span class="normal"> 801</span>
+<span class="normal"> 802</span>
+<span class="normal"> 803</span>
+<span class="normal"> 804</span>
+<span class="normal"> 805</span>
+<span class="normal"> 806</span>
+<span class="normal"> 807</span>
+<span class="normal"> 808</span>
+<span class="normal"> 809</span>
+<span class="normal"> 810</span>
+<span class="normal"> 811</span>
+<span class="normal"> 812</span>
+<span class="normal"> 813</span>
+<span class="normal"> 814</span>
+<span class="normal"> 815</span>
+<span class="normal"> 816</span>
+<span class="normal"> 817</span>
+<span class="normal"> 818</span>
+<span class="normal"> 819</span>
+<span class="normal"> 820</span>
+<span class="normal"> 821</span>
+<span class="normal"> 822</span>
+<span class="normal"> 823</span>
+<span class="normal"> 824</span>
+<span class="normal"> 825</span>
+<span class="normal"> 826</span>
+<span class="normal"> 827</span>
+<span class="normal"> 828</span>
+<span class="normal"> 829</span>
+<span class="normal"> 830</span>
+<span class="normal"> 831</span>
+<span class="normal"> 832</span>
+<span class="normal"> 833</span>
+<span class="normal"> 834</span>
+<span class="normal"> 835</span>
+<span class="normal"> 836</span>
+<span class="normal"> 837</span>
+<span class="normal"> 838</span>
+<span class="normal"> 839</span>
+<span class="normal"> 840</span>
+<span class="normal"> 841</span>
+<span class="normal"> 842</span>
+<span class="normal"> 843</span>
+<span class="normal"> 844</span>
+<span class="normal"> 845</span>
+<span class="normal"> 846</span>
+<span class="normal"> 847</span>
+<span class="normal"> 848</span>
+<span class="normal"> 849</span>
+<span class="normal"> 850</span>
+<span class="normal"> 851</span>
+<span class="normal"> 852</span>
+<span class="normal"> 853</span>
+<span class="normal"> 854</span>
+<span class="normal"> 855</span>
+<span class="normal"> 856</span>
+<span class="normal"> 857</span>
+<span class="normal"> 858</span>
+<span class="normal"> 859</span>
+<span class="normal"> 860</span>
+<span class="normal"> 861</span>
+<span class="normal"> 862</span>
+<span class="normal"> 863</span>
+<span class="normal"> 864</span>
+<span class="normal"> 865</span>
+<span class="normal"> 866</span>
+<span class="normal"> 867</span>
+<span class="normal"> 868</span>
+<span class="normal"> 869</span>
+<span class="normal"> 870</span>
+<span class="normal"> 871</span>
+<span class="normal"> 872</span>
+<span class="normal"> 873</span>
+<span class="normal"> 874</span>
+<span class="normal"> 875</span>
+<span class="normal"> 876</span>
+<span class="normal"> 877</span>
+<span class="normal"> 878</span>
+<span class="normal"> 879</span>
+<span class="normal"> 880</span>
+<span class="normal"> 881</span>
+<span class="normal"> 882</span>
+<span class="normal"> 883</span>
+<span class="normal"> 884</span>
+<span class="normal"> 885</span>
+<span class="normal"> 886</span>
+<span class="normal"> 887</span>
+<span class="normal"> 888</span>
+<span class="normal"> 889</span>
+<span class="normal"> 890</span>
+<span class="normal"> 891</span>
+<span class="normal"> 892</span>
+<span class="normal"> 893</span>
+<span class="normal"> 894</span>
+<span class="normal"> 895</span>
+<span class="normal"> 896</span>
+<span class="normal"> 897</span>
+<span class="normal"> 898</span>
+<span class="normal"> 899</span>
+<span class="normal"> 900</span>
+<span class="normal"> 901</span>
+<span class="normal"> 902</span>
+<span class="normal"> 903</span>
+<span class="normal"> 904</span>
+<span class="normal"> 905</span>
+<span class="normal"> 906</span>
+<span class="normal"> 907</span>
+<span class="normal"> 908</span>
+<span class="normal"> 909</span>
+<span class="normal"> 910</span>
+<span class="normal"> 911</span>
+<span class="normal"> 912</span>
+<span class="normal"> 913</span>
+<span class="normal"> 914</span>
+<span class="normal"> 915</span>
+<span class="normal"> 916</span>
+<span class="normal"> 917</span>
+<span class="normal"> 918</span>
+<span class="normal"> 919</span>
+<span class="normal"> 920</span>
+<span class="normal"> 921</span>
+<span class="normal"> 922</span>
+<span class="normal"> 923</span>
+<span class="normal"> 924</span>
+<span class="normal"> 925</span>
+<span class="normal"> 926</span>
+<span class="normal"> 927</span>
+<span class="normal"> 928</span>
+<span class="normal"> 929</span>
+<span class="normal"> 930</span>
+<span class="normal"> 931</span>
+<span class="normal"> 932</span>
+<span class="normal"> 933</span>
+<span class="normal"> 934</span>
+<span class="normal"> 935</span>
+<span class="normal"> 936</span>
+<span class="normal"> 937</span>
+<span class="normal"> 938</span>
+<span class="normal"> 939</span>
+<span class="normal"> 940</span>
+<span class="normal"> 941</span>
+<span class="normal"> 942</span>
+<span class="normal"> 943</span>
+<span class="normal"> 944</span>
+<span class="normal"> 945</span>
+<span class="normal"> 946</span>
+<span class="normal"> 947</span>
+<span class="normal"> 948</span>
+<span class="normal"> 949</span>
+<span class="normal"> 950</span>
+<span class="normal"> 951</span>
+<span class="normal"> 952</span>
+<span class="normal"> 953</span>
+<span class="normal"> 954</span>
+<span class="normal"> 955</span>
+<span class="normal"> 956</span>
+<span class="normal"> 957</span>
+<span class="normal"> 958</span>
+<span class="normal"> 959</span>
+<span class="normal"> 960</span>
+<span class="normal"> 961</span>
+<span class="normal"> 962</span>
+<span class="normal"> 963</span>
+<span class="normal"> 964</span>
+<span class="normal"> 965</span>
+<span class="normal"> 966</span>
+<span class="normal"> 967</span>
+<span class="normal"> 968</span>
+<span class="normal"> 969</span>
+<span class="normal"> 970</span>
+<span class="normal"> 971</span>
+<span class="normal"> 972</span>
+<span class="normal"> 973</span>
+<span class="normal"> 974</span>
+<span class="normal"> 975</span>
+<span class="normal"> 976</span>
+<span class="normal"> 977</span>
+<span class="normal"> 978</span>
+<span class="normal"> 979</span>
+<span class="normal"> 980</span>
+<span class="normal"> 981</span>
+<span class="normal"> 982</span>
+<span class="normal"> 983</span>
+<span class="normal"> 984</span>
+<span class="normal"> 985</span>
+<span class="normal"> 986</span>
+<span class="normal"> 987</span>
+<span class="normal"> 988</span>
+<span class="normal"> 989</span>
+<span class="normal"> 990</span>
+<span class="normal"> 991</span>
+<span class="normal"> 992</span>
+<span class="normal"> 993</span>
+<span class="normal"> 994</span>
+<span class="normal"> 995</span>
+<span class="normal"> 996</span>
+<span class="normal"> 997</span>
+<span class="normal"> 998</span>
+<span class="normal"> 999</span>
+<span class="normal">1000</span>
+<span class="normal">1001</span>
+<span class="normal">1002</span>
+<span class="normal">1003</span>
+<span class="normal">1004</span>
+<span class="normal">1005</span>
+<span class="normal">1006</span>
+<span class="normal">1007</span>
+<span class="normal">1008</span>
+<span class="normal">1009</span>
+<span class="normal">1010</span>
+<span class="normal">1011</span>
+<span class="normal">1012</span>
+<span class="normal">1013</span>
+<span class="normal">1014</span>
+<span class="normal">1015</span>
+<span class="normal">1016</span>
+<span class="normal">1017</span>
+<span class="normal">1018</span>
+<span class="normal">1019</span>
+<span class="normal">1020</span>
+<span class="normal">1021</span>
+<span class="normal">1022</span>
+<span class="normal">1023</span>
+<span class="normal">1024</span>
+<span class="normal">1025</span>
+<span class="normal">1026</span>
+<span class="normal">1027</span>
+<span class="normal">1028</span>
+<span class="normal">1029</span>
+<span class="normal">1030</span>
+<span class="normal">1031</span>
+<span class="normal">1032</span>
+<span class="normal">1033</span>
+<span class="normal">1034</span>
+<span class="normal">1035</span>
+<span class="normal">1036</span>
+<span class="normal">1037</span>
+<span class="normal">1038</span>
+<span class="normal">1039</span>
+<span class="normal">1040</span>
+<span class="normal">1041</span>
+<span class="normal">1042</span>
+<span class="normal">1043</span>
+<span class="normal">1044</span>
+<span class="normal">1045</span>
+<span class="normal">1046</span>
+<span class="normal">1047</span>
+<span class="normal">1048</span>
+<span class="normal">1049</span>
+<span class="normal">1050</span>
+<span class="normal">1051</span>
+<span class="normal">1052</span>
+<span class="normal">1053</span>
+<span class="normal">1054</span>
+<span class="normal">1055</span>
+<span class="normal">1056</span>
+<span class="normal">1057</span>
+<span class="normal">1058</span>
+<span class="normal">1059</span>
+<span class="normal">1060</span>
+<span class="normal">1061</span>
+<span class="normal">1062</span>
+<span class="normal">1063</span>
+<span class="normal">1064</span>
+<span class="normal">1065</span>
+<span class="normal">1066</span>
+<span class="normal">1067</span>
+<span class="normal">1068</span>
+<span class="normal">1069</span>
+<span class="normal">1070</span>
+<span class="normal">1071</span>
+<span class="normal">1072</span>
+<span class="normal">1073</span>
+<span class="normal">1074</span>
+<span class="normal">1075</span>
+<span class="normal">1076</span>
+<span class="normal">1077</span>
+<span class="normal">1078</span>
+<span class="normal">1079</span>
+<span class="normal">1080</span>
+<span class="normal">1081</span>
+<span class="normal">1082</span>
+<span class="normal">1083</span>
+<span class="normal">1084</span>
+<span class="normal">1085</span>
+<span class="normal">1086</span>
+<span class="normal">1087</span>
+<span class="normal">1088</span>
+<span class="normal">1089</span>
+<span class="normal">1090</span>
+<span class="normal">1091</span>
+<span class="normal">1092</span>
+<span class="normal">1093</span>
+<span class="normal">1094</span>
+<span class="normal">1095</span>
+<span class="normal">1096</span>
+<span class="normal">1097</span>
+<span class="normal">1098</span>
+<span class="normal">1099</span>
+<span class="normal">1100</span>
+<span class="normal">1101</span>
+<span class="normal">1102</span>
+<span class="normal">1103</span>
+<span class="normal">1104</span>
+<span class="normal">1105</span>
+<span class="normal">1106</span>
+<span class="normal">1107</span>
+<span class="normal">1108</span>
+<span class="normal">1109</span>
+<span class="normal">1110</span>
+<span class="normal">1111</span>
+<span class="normal">1112</span>
+<span class="normal">1113</span>
+<span class="normal">1114</span>
+<span class="normal">1115</span>
+<span class="normal">1116</span>
+<span class="normal">1117</span>
+<span class="normal">1118</span>
+<span class="normal">1119</span>
+<span class="normal">1120</span>
+<span class="normal">1121</span>
+<span class="normal">1122</span>
+<span class="normal">1123</span>
+<span class="normal">1124</span>
+<span class="normal">1125</span>
+<span class="normal">1126</span>
+<span class="normal">1127</span>
+<span class="normal">1128</span>
+<span class="normal">1129</span>
+<span class="normal">1130</span>
+<span class="normal">1131</span>
+<span class="normal">1132</span>
+<span class="normal">1133</span>
+<span class="normal">1134</span>
+<span class="normal">1135</span>
+<span class="normal">1136</span>
+<span class="normal">1137</span>
+<span class="normal">1138</span>
+<span class="normal">1139</span>
+<span class="normal">1140</span>
+<span class="normal">1141</span>
+<span class="normal">1142</span>
+<span class="normal">1143</span>
+<span class="normal">1144</span>
+<span class="normal">1145</span>
+<span class="normal">1146</span>
+<span class="normal">1147</span>
+<span class="normal">1148</span>
+<span class="normal">1149</span>
+<span class="normal">1150</span>
+<span class="normal">1151</span>
+<span class="normal">1152</span>
+<span class="normal">1153</span>
+<span class="normal">1154</span>
+<span class="normal">1155</span>
+<span class="normal">1156</span>
+<span class="normal">1157</span>
+<span class="normal">1158</span>
+<span class="normal">1159</span>
+<span class="normal">1160</span>
+<span class="normal">1161</span>
+<span class="normal">1162</span>
+<span class="normal">1163</span>
+<span class="normal">1164</span>
+<span class="normal">1165</span>
+<span class="normal">1166</span>
+<span class="normal">1167</span>
+<span class="normal">1168</span>
+<span class="normal">1169</span>
+<span class="normal">1170</span>
+<span class="normal">1171</span>
+<span class="normal">1172</span>
+<span class="normal">1173</span>
+<span class="normal">1174</span>
+<span class="normal">1175</span>
+<span class="normal">1176</span>
+<span class="normal">1177</span>
+<span class="normal">1178</span>
+<span class="normal">1179</span>
+<span class="normal">1180</span>
+<span class="normal">1181</span>
+<span class="normal">1182</span>
+<span class="normal">1183</span>
+<span class="normal">1184</span>
+<span class="normal">1185</span>
+<span class="normal">1186</span>
+<span class="normal">1187</span>
+<span class="normal">1188</span>
+<span class="normal">1189</span>
+<span class="normal">1190</span>
+<span class="normal">1191</span>
+<span class="normal">1192</span>
+<span class="normal">1193</span>
+<span class="normal">1194</span>
+<span class="normal">1195</span>
+<span class="normal">1196</span>
+<span class="normal">1197</span>
+<span class="normal">1198</span>
+<span class="normal">1199</span>
+<span class="normal">1200</span>
+<span class="normal">1201</span>
+<span class="normal">1202</span>
+<span class="normal">1203</span>
+<span class="normal">1204</span>
+<span class="normal">1205</span>
+<span class="normal">1206</span>
+<span class="normal">1207</span>
+<span class="normal">1208</span>
+<span class="normal">1209</span>
+<span class="normal">1210</span>
+<span class="normal">1211</span>
+<span class="normal">1212</span>
+<span class="normal">1213</span>
+<span class="normal">1214</span>
+<span class="normal">1215</span>
+<span class="normal">1216</span>
+<span class="normal">1217</span>
+<span class="normal">1218</span>
+<span class="normal">1219</span>
+<span class="normal">1220</span>
+<span class="normal">1221</span>
+<span class="normal">1222</span>
+<span class="normal">1223</span>
+<span class="normal">1224</span>
+<span class="normal">1225</span>
+<span class="normal">1226</span>
+<span class="normal">1227</span>
+<span class="normal">1228</span>
+<span class="normal">1229</span>
+<span class="normal">1230</span>
+<span class="normal">1231</span>
+<span class="normal">1232</span>
+<span class="normal">1233</span>
+<span class="normal">1234</span>
+<span class="normal">1235</span>
+<span class="normal">1236</span>
+<span class="normal">1237</span>
+<span class="normal">1238</span>
+<span class="normal">1239</span>
+<span class="normal">1240</span>
+<span class="normal">1241</span>
+<span class="normal">1242</span>
+<span class="normal">1243</span>
+<span class="normal">1244</span>
+<span class="normal">1245</span>
+<span class="normal">1246</span>
+<span class="normal">1247</span>
+<span class="normal">1248</span>
+<span class="normal">1249</span>
+<span class="normal">1250</span>
+<span class="normal">1251</span>
+<span class="normal">1252</span>
+<span class="normal">1253</span>
+<span class="normal">1254</span>
+<span class="normal">1255</span>
+<span class="normal">1256</span>
+<span class="normal">1257</span>
+<span class="normal">1258</span>
+<span class="normal">1259</span>
+<span class="normal">1260</span>
+<span class="normal">1261</span>
+<span class="normal">1262</span>
+<span class="normal">1263</span>
+<span class="normal">1264</span>
+<span class="normal">1265</span>
+<span class="normal">1266</span>
+<span class="normal">1267</span>
+<span class="normal">1268</span>
+<span class="normal">1269</span>
+<span class="normal">1270</span>
+<span class="normal">1271</span>
+<span class="normal">1272</span>
+<span class="normal">1273</span>
+<span class="normal">1274</span>
+<span class="normal">1275</span>
+<span class="normal">1276</span>
+<span class="normal">1277</span>
+<span class="normal">1278</span>
+<span class="normal">1279</span>
+<span class="normal">1280</span>
+<span class="normal">1281</span>
+<span class="normal">1282</span>
+<span class="normal">1283</span>
+<span class="normal">1284</span>
+<span class="normal">1285</span>
+<span class="normal">1286</span>
+<span class="normal">1287</span>
+<span class="normal">1288</span>
+<span class="normal">1289</span>
+<span class="normal">1290</span>
+<span class="normal">1291</span>
+<span class="normal">1292</span>
+<span class="normal">1293</span>
+<span class="normal">1294</span>
+<span class="normal">1295</span>
+<span class="normal">1296</span>
+<span class="normal">1297</span>
+<span class="normal">1298</span>
+<span class="normal">1299</span>
+<span class="normal">1300</span>
+<span class="normal">1301</span>
+<span class="normal">1302</span>
+<span class="normal">1303</span>
+<span class="normal">1304</span>
+<span class="normal">1305</span>
+<span class="normal">1306</span>
+<span class="normal">1307</span>
+<span class="normal">1308</span>
+<span class="normal">1309</span>
+<span class="normal">1310</span>
+<span class="normal">1311</span>
+<span class="normal">1312</span>
+<span class="normal">1313</span>
+<span class="normal">1314</span>
+<span class="normal">1315</span>
+<span class="normal">1316</span>
+<span class="normal">1317</span>
+<span class="normal">1318</span>
+<span class="normal">1319</span>
+<span class="normal">1320</span>
+<span class="normal">1321</span>
+<span class="normal">1322</span>
+<span class="normal">1323</span>
+<span class="normal">1324</span>
+<span class="normal">1325</span>
+<span class="normal">1326</span>
+<span class="normal">1327</span>
+<span class="normal">1328</span>
+<span class="normal">1329</span>
+<span class="normal">1330</span>
+<span class="normal">1331</span>
+<span class="normal">1332</span>
+<span class="normal">1333</span>
+<span class="normal">1334</span>
+<span class="normal">1335</span>
+<span class="normal">1336</span>
+<span class="normal">1337</span>
+<span class="normal">1338</span>
+<span class="normal">1339</span>
+<span class="normal">1340</span>
+<span class="normal">1341</span>
+<span class="normal">1342</span>
+<span class="normal">1343</span>
+<span class="normal">1344</span>
+<span class="normal">1345</span>
+<span class="normal">1346</span>
+<span class="normal">1347</span>
+<span class="normal">1348</span>
+<span class="normal">1349</span>
+<span class="normal">1350</span>
+<span class="normal">1351</span>
+<span class="normal">1352</span>
+<span class="normal">1353</span>
+<span class="normal">1354</span>
+<span class="normal">1355</span>
+<span class="normal">1356</span>
+<span class="normal">1357</span>
+<span class="normal">1358</span>
+<span class="normal">1359</span>
+<span class="normal">1360</span>
+<span class="normal">1361</span>
+<span class="normal">1362</span>
+<span class="normal">1363</span>
+<span class="normal">1364</span>
+<span class="normal">1365</span>
+<span class="normal">1366</span>
+<span class="normal">1367</span>
+<span class="normal">1368</span>
+<span class="normal">1369</span>
+<span class="normal">1370</span>
+<span class="normal">1371</span>
+<span class="normal">1372</span>
+<span class="normal">1373</span>
+<span class="normal">1374</span>
+<span class="normal">1375</span>
+<span class="normal">1376</span>
+<span class="normal">1377</span>
+<span class="normal">1378</span>
+<span class="normal">1379</span>
+<span class="normal">1380</span>
+<span class="normal">1381</span>
+<span class="normal">1382</span>
+<span class="normal">1383</span>
+<span class="normal">1384</span>
+<span class="normal">1385</span>
+<span class="normal">1386</span>
+<span class="normal">1387</span>
+<span class="normal">1388</span>
+<span class="normal">1389</span>
+<span class="normal">1390</span>
+<span class="normal">1391</span>
+<span class="normal">1392</span>
+<span class="normal">1393</span>
+<span class="normal">1394</span>
+<span class="normal">1395</span>
+<span class="normal">1396</span>
+<span class="normal">1397</span>
+<span class="normal">1398</span>
+<span class="normal">1399</span>
+<span class="normal">1400</span>
+<span class="normal">1401</span>
+<span class="normal">1402</span>
+<span class="normal">1403</span>
+<span class="normal">1404</span>
+<span class="normal">1405</span>
+<span class="normal">1406</span>
+<span class="normal">1407</span>
+<span class="normal">1408</span>
+<span class="normal">1409</span>
+<span class="normal">1410</span>
+<span class="normal">1411</span>
+<span class="normal">1412</span>
+<span class="normal">1413</span>
+<span class="normal">1414</span>
+<span class="normal">1415</span>
+<span class="normal">1416</span>
+<span class="normal">1417</span>
+<span class="normal">1418</span>
+<span class="normal">1419</span>
+<span class="normal">1420</span>
+<span class="normal">1421</span>
+<span class="normal">1422</span>
+<span class="normal">1423</span>
+<span class="normal">1424</span>
+<span class="normal">1425</span>
+<span class="normal">1426</span>
+<span class="normal">1427</span>
+<span class="normal">1428</span>
+<span class="normal">1429</span>
+<span class="normal">1430</span>
+<span class="normal">1431</span>
+<span class="normal">1432</span>
+<span class="normal">1433</span>
+<span class="normal">1434</span>
+<span class="normal">1435</span>
+<span class="normal">1436</span>
+<span class="normal">1437</span>
+<span class="normal">1438</span>
+<span class="normal">1439</span>
+<span class="normal">1440</span>
+<span class="normal">1441</span>
+<span class="normal">1442</span>
+<span class="normal">1443</span>
+<span class="normal">1444</span>
+<span class="normal">1445</span>
+<span class="normal">1446</span>
+<span class="normal">1447</span>
+<span class="normal">1448</span>
+<span class="normal">1449</span>
+<span class="normal">1450</span>
+<span class="normal">1451</span>
+<span class="normal">1452</span>
+<span class="normal">1453</span>
+<span class="normal">1454</span>
+<span class="normal">1455</span>
+<span class="normal">1456</span>
+<span class="normal">1457</span>
+<span class="normal">1458</span>
+<span class="normal">1459</span>
+<span class="normal">1460</span>
+<span class="normal">1461</span>
+<span class="normal">1462</span>
+<span class="normal">1463</span>
+<span class="normal">1464</span>
+<span class="normal">1465</span>
+<span class="normal">1466</span>
+<span class="normal">1467</span>
+<span class="normal">1468</span>
+<span class="normal">1469</span>
+<span class="normal">1470</span>
+<span class="normal">1471</span>
+<span class="normal">1472</span>
+<span class="normal">1473</span>
+<span class="normal">1474</span>
+<span class="normal">1475</span>
+<span class="normal">1476</span>
+<span class="normal">1477</span>
+<span class="normal">1478</span>
+<span class="normal">1479</span>
+<span class="normal">1480</span>
+<span class="normal">1481</span>
+<span class="normal">1482</span>
+<span class="normal">1483</span>
+<span class="normal">1484</span>
+<span class="normal">1485</span>
+<span class="normal">1486</span>
+<span class="normal">1487</span>
+<span class="normal">1488</span>
+<span class="normal">1489</span>
+<span class="normal">1490</span>
+<span class="normal">1491</span>
+<span class="normal">1492</span>
+<span class="normal">1493</span>
+<span class="normal">1494</span>
+<span class="normal">1495</span>
+<span class="normal">1496</span>
+<span class="normal">1497</span>
+<span class="normal">1498</span>
+<span class="normal">1499</span>
+<span class="normal">1500</span>
+<span class="normal">1501</span>
+<span class="normal">1502</span>
+<span class="normal">1503</span>
+<span class="normal">1504</span>
+<span class="normal">1505</span>
+<span class="normal">1506</span>
+<span class="normal">1507</span>
+<span class="normal">1508</span>
+<span class="normal">1509</span>
+<span class="normal">1510</span>
+<span class="normal">1511</span>
+<span class="normal">1512</span>
+<span class="normal">1513</span>
+<span class="normal">1514</span>
+<span class="normal">1515</span>
+<span class="normal">1516</span>
+<span class="normal">1517</span>
+<span class="normal">1518</span>
+<span class="normal">1519</span>
+<span class="normal">1520</span>
+<span class="normal">1521</span>
+<span class="normal">1522</span>
+<span class="normal">1523</span>
+<span class="normal">1524</span>
+<span class="normal">1525</span>
+<span class="normal">1526</span>
+<span class="normal">1527</span>
+<span class="normal">1528</span>
+<span class="normal">1529</span>
+<span class="normal">1530</span>
+<span class="normal">1531</span>
+<span class="normal">1532</span>
+<span class="normal">1533</span>
+<span class="normal">1534</span>
+<span class="normal">1535</span>
+<span class="normal">1536</span>
+<span class="normal">1537</span>
+<span class="normal">1538</span>
+<span class="normal">1539</span>
+<span class="normal">1540</span>
+<span class="normal">1541</span>
+<span class="normal">1542</span>
+<span class="normal">1543</span>
+<span class="normal">1544</span>
+<span class="normal">1545</span>
+<span class="normal">1546</span>
+<span class="normal">1547</span>
+<span class="normal">1548</span>
+<span class="normal">1549</span>
+<span class="normal">1550</span>
+<span class="normal">1551</span>
+<span class="normal">1552</span>
+<span class="normal">1553</span>
+<span class="normal">1554</span>
+<span class="normal">1555</span>
+<span class="normal">1556</span>
+<span class="normal">1557</span>
+<span class="normal">1558</span>
+<span class="normal">1559</span>
+<span class="normal">1560</span>
+<span class="normal">1561</span>
+<span class="normal">1562</span>
+<span class="normal">1563</span>
+<span class="normal">1564</span>
+<span class="normal">1565</span>
+<span class="normal">1566</span>
+<span class="normal">1567</span>
+<span class="normal">1568</span>
+<span class="normal">1569</span>
+<span class="normal">1570</span>
+<span class="normal">1571</span>
+<span class="normal">1572</span>
+<span class="normal">1573</span>
+<span class="normal">1574</span>
+<span class="normal">1575</span>
+<span class="normal">1576</span>
+<span class="normal">1577</span>
+<span class="normal">1578</span>
+<span class="normal">1579</span>
+<span class="normal">1580</span>
+<span class="normal">1581</span>
+<span class="normal">1582</span>
+<span class="normal">1583</span>
+<span class="normal">1584</span>
+<span class="normal">1585</span>
+<span class="normal">1586</span>
+<span class="normal">1587</span>
+<span class="normal">1588</span>
+<span class="normal">1589</span>
+<span class="normal">1590</span>
+<span class="normal">1591</span>
+<span class="normal">1592</span>
+<span class="normal">1593</span>
+<span class="normal">1594</span>
+<span class="normal">1595</span>
+<span class="normal">1596</span>
+<span class="normal">1597</span>
+<span class="normal">1598</span>
+<span class="normal">1599</span>
+<span class="normal">1600</span>
+<span class="normal">1601</span>
+<span class="normal">1602</span>
+<span class="normal">1603</span>
+<span class="normal">1604</span>
+<span class="normal">1605</span>
+<span class="normal">1606</span>
+<span class="normal">1607</span>
+<span class="normal">1608</span>
+<span class="normal">1609</span>
+<span class="normal">1610</span>
+<span class="normal">1611</span>
+<span class="normal">1612</span>
+<span class="normal">1613</span>
+<span class="normal">1614</span>
+<span class="normal">1615</span>
+<span class="normal">1616</span>
+<span class="normal">1617</span>
+<span class="normal">1618</span>
+<span class="normal">1619</span>
+<span class="normal">1620</span>
+<span class="normal">1621</span>
+<span class="normal">1622</span>
+<span class="normal">1623</span>
+<span class="normal">1624</span>
+<span class="normal">1625</span>
+<span class="normal">1626</span>
+<span class="normal">1627</span>
+<span class="normal">1628</span>
+<span class="normal">1629</span>
+<span class="normal">1630</span>
+<span class="normal">1631</span>
+<span class="normal">1632</span>
+<span class="normal">1633</span>
+<span class="normal">1634</span>
+<span class="normal">1635</span>
+<span class="normal">1636</span>
+<span class="normal">1637</span>
+<span class="normal">1638</span>
+<span class="normal">1639</span>
+<span class="normal">1640</span>
+<span class="normal">1641</span>
+<span class="normal">1642</span>
+<span class="normal">1643</span>
+<span class="normal">1644</span>
+<span class="normal">1645</span>
+<span class="normal">1646</span>
+<span class="normal">1647</span>
+<span class="normal">1648</span>
+<span class="normal">1649</span>
+<span class="normal">1650</span>
+<span class="normal">1651</span>
+<span class="normal">1652</span>
+<span class="normal">1653</span>
+<span class="normal">1654</span>
+<span class="normal">1655</span>
+<span class="normal">1656</span>
+<span class="normal">1657</span>
+<span class="normal">1658</span>
+<span class="normal">1659</span>
+<span class="normal">1660</span>
+<span class="normal">1661</span>
+<span class="normal">1662</span>
+<span class="normal">1663</span>
+<span class="normal">1664</span>
+<span class="normal">1665</span>
+<span class="normal">1666</span>
+<span class="normal">1667</span>
+<span class="normal">1668</span>
+<span class="normal">1669</span>
+<span class="normal">1670</span>
+<span class="normal">1671</span>
+<span class="normal">1672</span>
+<span class="normal">1673</span>
+<span class="normal">1674</span>
+<span class="normal">1675</span>
+<span class="normal">1676</span>
+<span class="normal">1677</span>
+<span class="normal">1678</span>
+<span class="normal">1679</span>
+<span class="normal">1680</span>
+<span class="normal">1681</span>
+<span class="normal">1682</span>
+<span class="normal">1683</span>
+<span class="normal">1684</span>
+<span class="normal">1685</span>
+<span class="normal">1686</span>
+<span class="normal">1687</span>
+<span class="normal">1688</span>
+<span class="normal">1689</span>
+<span class="normal">1690</span>
+<span class="normal">1691</span>
+<span class="normal">1692</span>
+<span class="normal">1693</span>
+<span class="normal">1694</span>
+<span class="normal">1695</span>
+<span class="normal">1696</span>
+<span class="normal">1697</span>
+<span class="normal">1698</span>
+<span class="normal">1699</span>
+<span class="normal">1700</span>
+<span class="normal">1701</span>
+<span class="normal">1702</span>
+<span class="normal">1703</span>
+<span class="normal">1704</span>
+<span class="normal">1705</span>
+<span class="normal">1706</span>
+<span class="normal">1707</span>
+<span class="normal">1708</span>
+<span class="normal">1709</span>
+<span class="normal">1710</span>
+<span class="normal">1711</span>
+<span class="normal">1712</span>
+<span class="normal">1713</span>
+<span class="normal">1714</span>
+<span class="normal">1715</span>
+<span class="normal">1716</span>
+<span class="normal">1717</span>
+<span class="normal">1718</span>
+<span class="normal">1719</span>
+<span class="normal">1720</span>
+<span class="normal">1721</span>
+<span class="normal">1722</span>
+<span class="normal">1723</span>
+<span class="normal">1724</span>
+<span class="normal">1725</span>
+<span class="normal">1726</span>
+<span class="normal">1727</span>
+<span class="normal">1728</span>
+<span class="normal">1729</span>
+<span class="normal">1730</span>
+<span class="normal">1731</span>
+<span class="normal">1732</span>
+<span class="normal">1733</span>
+<span class="normal">1734</span>
+<span class="normal">1735</span>
+<span class="normal">1736</span>
+<span class="normal">1737</span>
+<span class="normal">1738</span>
+<span class="normal">1739</span>
+<span class="normal">1740</span>
+<span class="normal">1741</span>
+<span class="normal">1742</span>
+<span class="normal">1743</span>
+<span class="normal">1744</span>
+<span class="normal">1745</span>
+<span class="normal">1746</span>
+<span class="normal">1747</span>
+<span class="normal">1748</span>
+<span class="normal">1749</span>
+<span class="normal">1750</span>
+<span class="normal">1751</span>
+<span class="normal">1752</span>
+<span class="normal">1753</span>
+<span class="normal">1754</span>
+<span class="normal">1755</span>
+<span class="normal">1756</span>
+<span class="normal">1757</span>
+<span class="normal">1758</span>
+<span class="normal">1759</span>
+<span class="normal">1760</span>
+<span class="normal">1761</span>
+<span class="normal">1762</span>
+<span class="normal">1763</span>
+<span class="normal">1764</span>
+<span class="normal">1765</span>
+<span class="normal">1766</span>
+<span class="normal">1767</span>
+<span class="normal">1768</span>
+<span class="normal">1769</span>
+<span class="normal">1770</span>
+<span class="normal">1771</span>
+<span class="normal">1772</span>
+<span class="normal">1773</span>
+<span class="normal">1774</span>
+<span class="normal">1775</span>
+<span class="normal">1776</span>
+<span class="normal">1777</span>
+<span class="normal">1778</span>
+<span class="normal">1779</span>
+<span class="normal">1780</span>
+<span class="normal">1781</span>
+<span class="normal">1782</span>
+<span class="normal">1783</span>
+<span class="normal">1784</span>
+<span class="normal">1785</span>
+<span class="normal">1786</span>
+<span class="normal">1787</span>
+<span class="normal">1788</span>
+<span class="normal">1789</span>
+<span class="normal">1790</span>
+<span class="normal">1791</span>
+<span class="normal">1792</span>
+<span class="normal">1793</span>
+<span class="normal">1794</span>
+<span class="normal">1795</span>
+<span class="normal">1796</span>
+<span class="normal">1797</span>
+<span class="normal">1798</span>
+<span class="normal">1799</span>
+<span class="normal">1800</span>
+<span class="normal">1801</span>
+<span class="normal">1802</span>
+<span class="normal">1803</span>
+<span class="normal">1804</span>
+<span class="normal">1805</span>
+<span class="normal">1806</span>
+<span class="normal">1807</span>
+<span class="normal">1808</span>
+<span class="normal">1809</span>
+<span class="normal">1810</span>
+<span class="normal">1811</span>
+<span class="normal">1812</span>
+<span class="normal">1813</span>
+<span class="normal">1814</span>
+<span class="normal">1815</span>
+<span class="normal">1816</span>
+<span class="normal">1817</span>
+<span class="normal">1818</span>
+<span class="normal">1819</span>
+<span class="normal">1820</span>
+<span class="normal">1821</span>
+<span class="normal">1822</span>
+<span class="normal">1823</span>
+<span class="normal">1824</span>
+<span class="normal">1825</span>
+<span class="normal">1826</span>
+<span class="normal">1827</span>
+<span class="normal">1828</span>
+<span class="normal">1829</span>
+<span class="normal">1830</span>
+<span class="normal">1831</span>
+<span class="normal">1832</span>
+<span class="normal">1833</span>
+<span class="normal">1834</span>
+<span class="normal">1835</span>
+<span class="normal">1836</span>
+<span class="normal">1837</span>
+<span class="normal">1838</span>
+<span class="normal">1839</span>
+<span class="normal">1840</span>
+<span class="normal">1841</span>
+<span class="normal">1842</span>
+<span class="normal">1843</span>
+<span class="normal">1844</span>
+<span class="normal">1845</span>
+<span class="normal">1846</span>
+<span class="normal">1847</span>
+<span class="normal">1848</span>
+<span class="normal">1849</span>
+<span class="normal">1850</span>
+<span class="normal">1851</span>
+<span class="normal">1852</span>
+<span class="normal">1853</span>
+<span class="normal">1854</span>
+<span class="normal">1855</span>
+<span class="normal">1856</span>
+<span class="normal">1857</span>
+<span class="normal">1858</span>
+<span class="normal">1859</span>
+<span class="normal">1860</span>
+<span class="normal">1861</span>
+<span class="normal">1862</span>
+<span class="normal">1863</span>
+<span class="normal">1864</span>
+<span class="normal">1865</span>
+<span class="normal">1866</span>
+<span class="normal">1867</span>
+<span class="normal">1868</span>
+<span class="normal">1869</span>
+<span class="normal">1870</span>
+<span class="normal">1871</span>
+<span class="normal">1872</span>
+<span class="normal">1873</span>
+<span class="normal">1874</span>
+<span class="normal">1875</span>
+<span class="normal">1876</span>
+<span class="normal">1877</span>
+<span class="normal">1878</span>
+<span class="normal">1879</span>
+<span class="normal">1880</span>
+<span class="normal">1881</span>
+<span class="normal">1882</span>
+<span class="normal">1883</span>
+<span class="normal">1884</span>
+<span class="normal">1885</span>
+<span class="normal">1886</span>
+<span class="normal">1887</span>
+<span class="normal">1888</span>
+<span class="normal">1889</span>
+<span class="normal">1890</span>
+<span class="normal">1891</span>
+<span class="normal">1892</span>
+<span class="normal">1893</span>
+<span class="normal">1894</span>
+<span class="normal">1895</span>
+<span class="normal">1896</span>
+<span class="normal">1897</span>
+<span class="normal">1898</span>
+<span class="normal">1899</span>
+<span class="normal">1900</span>
+<span class="normal">1901</span>
+<span class="normal">1902</span>
+<span class="normal">1903</span>
+<span class="normal">1904</span>
+<span class="normal">1905</span>
+<span class="normal">1906</span>
+<span class="normal">1907</span>
+<span class="normal">1908</span>
+<span class="normal">1909</span>
+<span class="normal">1910</span>
+<span class="normal">1911</span>
+<span class="normal">1912</span>
+<span class="normal">1913</span>
+<span class="normal">1914</span>
+<span class="normal">1915</span>
+<span class="normal">1916</span>
+<span class="normal">1917</span>
+<span class="normal">1918</span>
+<span class="normal">1919</span>
+<span class="normal">1920</span>
+<span class="normal">1921</span>
+<span class="normal">1922</span>
+<span class="normal">1923</span>
+<span class="normal">1924</span>
+<span class="normal">1925</span>
+<span class="normal">1926</span>
+<span class="normal">1927</span>
+<span class="normal">1928</span>
+<span class="normal">1929</span>
+<span class="normal">1930</span>
+<span class="normal">1931</span>
+<span class="normal">1932</span>
+<span class="normal">1933</span>
+<span class="normal">1934</span>
+<span class="normal">1935</span>
+<span class="normal">1936</span>
+<span class="normal">1937</span>
+<span class="normal">1938</span>
+<span class="normal">1939</span>
+<span class="normal">1940</span>
+<span class="normal">1941</span>
+<span class="normal">1942</span>
+<span class="normal">1943</span>
+<span class="normal">1944</span>
+<span class="normal">1945</span>
+<span class="normal">1946</span>
+<span class="normal">1947</span>
+<span class="normal">1948</span>
+<span class="normal">1949</span>
+<span class="normal">1950</span>
+<span class="normal">1951</span>
+<span class="normal">1952</span>
+<span class="normal">1953</span>
+<span class="normal">1954</span>
+<span class="normal">1955</span>
+<span class="normal">1956</span>
+<span class="normal">1957</span>
+<span class="normal">1958</span>
+<span class="normal">1959</span>
+<span class="normal">1960</span>
+<span class="normal">1961</span>
+<span class="normal">1962</span>
+<span class="normal">1963</span>
+<span class="normal">1964</span>
+<span class="normal">1965</span>
+<span class="normal">1966</span>
+<span class="normal">1967</span>
+<span class="normal">1968</span>
+<span class="normal">1969</span>
+<span class="normal">1970</span>
+<span class="normal">1971</span>
+<span class="normal">1972</span>
+<span class="normal">1973</span>
+<span class="normal">1974</span>
+<span class="normal">1975</span>
+<span class="normal">1976</span>
+<span class="normal">1977</span>
+<span class="normal">1978</span>
+<span class="normal">1979</span>
+<span class="normal">1980</span>
+<span class="normal">1981</span>
+<span class="normal">1982</span>
+<span class="normal">1983</span>
+<span class="normal">1984</span>
+<span class="normal">1985</span>
+<span class="normal">1986</span>
+<span class="normal">1987</span>
+<span class="normal">1988</span>
+<span class="normal">1989</span>
+<span class="normal">1990</span>
+<span class="normal">1991</span>
+<span class="normal">1992</span>
+<span class="normal">1993</span>
+<span class="normal">1994</span>
+<span class="normal">1995</span>
+<span class="normal">1996</span>
+<span class="normal">1997</span>
+<span class="normal">1998</span>
+<span class="normal">1999</span>
+<span class="normal">2000</span>
+<span class="normal">2001</span>
+<span class="normal">2002</span>
+<span class="normal">2003</span>
+<span class="normal">2004</span>
+<span class="normal">2005</span>
+<span class="normal">2006</span>
+<span class="normal">2007</span>
+<span class="normal">2008</span>
+<span class="normal">2009</span>
+<span class="normal">2010</span>
+<span class="normal">2011</span>
+<span class="normal">2012</span>
+<span class="normal">2013</span>
+<span class="normal">2014</span>
+<span class="normal">2015</span>
+<span class="normal">2016</span>
+<span class="normal">2017</span>
+<span class="normal">2018</span>
+<span class="normal">2019</span>
+<span class="normal">2020</span>
+<span class="normal">2021</span>
+<span class="normal">2022</span>
+<span class="normal">2023</span>
+<span class="normal">2024</span>
+<span class="normal">2025</span>
+<span class="normal">2026</span>
+<span class="normal">2027</span>
+<span class="normal">2028</span>
+<span class="normal">2029</span>
+<span class="normal">2030</span>
+<span class="normal">2031</span>
+<span class="normal">2032</span>
+<span class="normal">2033</span>
+<span class="normal">2034</span>
+<span class="normal">2035</span>
+<span class="normal">2036</span>
+<span class="normal">2037</span>
+<span class="normal">2038</span>
+<span class="normal">2039</span>
+<span class="normal">2040</span>
+<span class="normal">2041</span>
+<span class="normal">2042</span>
+<span class="normal">2043</span>
+<span class="normal">2044</span>
+<span class="normal">2045</span>
+<span class="normal">2046</span>
+<span class="normal">2047</span>
+<span class="normal">2048</span>
+<span class="normal">2049</span>
+<span class="normal">2050</span>
+<span class="normal">2051</span>
+<span class="normal">2052</span>
+<span class="normal">2053</span>
+<span class="normal">2054</span>
+<span class="normal">2055</span>
+<span class="normal">2056</span>
+<span class="normal">2057</span>
+<span class="normal">2058</span>
+<span class="normal">2059</span>
+<span class="normal">2060</span>
+<span class="normal">2061</span>
+<span class="normal">2062</span>
+<span class="normal">2063</span>
+<span class="normal">2064</span>
+<span class="normal">2065</span>
+<span class="normal">2066</span>
+<span class="normal">2067</span>
+<span class="normal">2068</span>
+<span class="normal">2069</span>
+<span class="normal">2070</span>
+<span class="normal">2071</span>
+<span class="normal">2072</span>
+<span class="normal">2073</span>
+<span class="normal">2074</span>
+<span class="normal">2075</span>
+<span class="normal">2076</span>
+<span class="normal">2077</span>
+<span class="normal">2078</span>
+<span class="normal">2079</span>
+<span class="normal">2080</span>
+<span class="normal">2081</span>
+<span class="normal">2082</span>
+<span class="normal">2083</span>
+<span class="normal">2084</span>
+<span class="normal">2085</span>
+<span class="normal">2086</span>
+<span class="normal">2087</span>
+<span class="normal">2088</span>
+<span class="normal">2089</span>
+<span class="normal">2090</span>
+<span class="normal">2091</span>
+<span class="normal">2092</span>
+<span class="normal">2093</span>
+<span class="normal">2094</span>
+<span class="normal">2095</span>
+<span class="normal">2096</span>
+<span class="normal">2097</span>
+<span class="normal">2098</span>
+<span class="normal">2099</span>
+<span class="normal">2100</span>
+<span class="normal">2101</span>
+<span class="normal">2102</span>
+<span class="normal">2103</span>
+<span class="normal">2104</span>
+<span class="normal">2105</span>
+<span class="normal">2106</span>
+<span class="normal">2107</span>
+<span class="normal">2108</span>
+<span class="normal">2109</span>
+<span class="normal">2110</span>
+<span class="normal">2111</span>
+<span class="normal">2112</span>
+<span class="normal">2113</span>
+<span class="normal">2114</span>
+<span class="normal">2115</span>
+<span class="normal">2116</span>
+<span class="normal">2117</span>
+<span class="normal">2118</span>
+<span class="normal">2119</span>
+<span class="normal">2120</span>
+<span class="normal">2121</span>
+<span class="normal">2122</span>
+<span class="normal">2123</span>
+<span class="normal">2124</span>
+<span class="normal">2125</span>
+<span class="normal">2126</span>
+<span class="normal">2127</span>
+<span class="normal">2128</span>
+<span class="normal">2129</span>
+<span class="normal">2130</span>
+<span class="normal">2131</span>
+<span class="normal">2132</span>
+<span class="normal">2133</span>
+<span class="normal">2134</span>
+<span class="normal">2135</span>
+<span class="normal">2136</span>
+<span class="normal">2137</span>
+<span class="normal">2138</span>
+<span class="normal">2139</span>
+<span class="normal">2140</span>
+<span class="normal">2141</span>
+<span class="normal">2142</span>
+<span class="normal">2143</span>
+<span class="normal">2144</span>
+<span class="normal">2145</span>
+<span class="normal">2146</span>
+<span class="normal">2147</span>
+<span class="normal">2148</span>
+<span class="normal">2149</span>
+<span class="normal">2150</span>
+<span class="normal">2151</span>
+<span class="normal">2152</span>
+<span class="normal">2153</span>
+<span class="normal">2154</span>
+<span class="normal">2155</span>
+<span class="normal">2156</span>
+<span class="normal">2157</span>
+<span class="normal">2158</span>
+<span class="normal">2159</span>
+<span class="normal">2160</span>
+<span class="normal">2161</span>
+<span class="normal">2162</span>
+<span class="normal">2163</span>
+<span class="normal">2164</span>
+<span class="normal">2165</span>
+<span class="normal">2166</span>
+<span class="normal">2167</span>
+<span class="normal">2168</span>
+<span class="normal">2169</span>
+<span class="normal">2170</span>
+<span class="normal">2171</span>
+<span class="normal">2172</span>
+<span class="normal">2173</span>
+<span class="normal">2174</span>
+<span class="normal">2175</span>
+<span class="normal">2176</span>
+<span class="normal">2177</span>
+<span class="normal">2178</span>
+<span class="normal">2179</span>
+<span class="normal">2180</span>
+<span class="normal">2181</span>
+<span class="normal">2182</span>
+<span class="normal">2183</span>
+<span class="normal">2184</span>
+<span class="normal">2185</span>
+<span class="normal">2186</span>
+<span class="normal">2187</span>
+<span class="normal">2188</span>
+<span class="normal">2189</span>
+<span class="normal">2190</span>
+<span class="normal">2191</span>
+<span class="normal">2192</span>
+<span class="normal">2193</span>
+<span class="normal">2194</span>
+<span class="normal">2195</span>
+<span class="normal">2196</span>
+<span class="normal">2197</span>
+<span class="normal">2198</span>
+<span class="normal">2199</span>
+<span class="normal">2200</span>
+<span class="normal">2201</span>
+<span class="normal">2202</span>
+<span class="normal">2203</span>
+<span class="normal">2204</span>
+<span class="normal">2205</span>
+<span class="normal">2206</span>
+<span class="normal">2207</span>
+<span class="normal">2208</span>
+<span class="normal">2209</span>
+<span class="normal">2210</span>
+<span class="normal">2211</span>
+<span class="normal">2212</span>
+<span class="normal">2213</span>
+<span class="normal">2214</span>
+<span class="normal">2215</span>
+<span class="normal">2216</span>
+<span class="normal">2217</span>
+<span class="normal">2218</span>
+<span class="normal">2219</span>
+<span class="normal">2220</span>
+<span class="normal">2221</span>
+<span class="normal">2222</span>
+<span class="normal">2223</span>
+<span class="normal">2224</span>
+<span class="normal">2225</span>
+<span class="normal">2226</span>
+<span class="normal">2227</span>
+<span class="normal">2228</span>
+<span class="normal">2229</span>
+<span class="normal">2230</span>
+<span class="normal">2231</span>
+<span class="normal">2232</span>
+<span class="normal">2233</span>
+<span class="normal">2234</span>
+<span class="normal">2235</span>
+<span class="normal">2236</span>
+<span class="normal">2237</span>
+<span class="normal">2238</span>
+<span class="normal">2239</span>
+<span class="normal">2240</span>
+<span class="normal">2241</span>
+<span class="normal">2242</span>
+<span class="normal">2243</span>
+<span class="normal">2244</span>
+<span class="normal">2245</span>
+<span class="normal">2246</span>
+<span class="normal">2247</span>
+<span class="normal">2248</span>
+<span class="normal">2249</span>
+<span class="normal">2250</span>
+<span class="normal">2251</span>
+<span class="normal">2252</span>
+<span class="normal">2253</span>
+<span class="normal">2254</span>
+<span class="normal">2255</span>
+<span class="normal">2256</span>
+<span class="normal">2257</span>
+<span class="normal">2258</span>
+<span class="normal">2259</span>
+<span class="normal">2260</span>
+<span class="normal">2261</span>
+<span class="normal">2262</span>
+<span class="normal">2263</span>
+<span class="normal">2264</span>
+<span class="normal">2265</span>
+<span class="normal">2266</span>
+<span class="normal">2267</span>
+<span class="normal">2268</span>
+<span class="normal">2269</span>
+<span class="normal">2270</span>
+<span class="normal">2271</span>
+<span class="normal">2272</span>
+<span class="normal">2273</span>
+<span class="normal">2274</span>
+<span class="normal">2275</span>
+<span class="normal">2276</span>
+<span class="normal">2277</span>
+<span class="normal">2278</span>
+<span class="normal">2279</span>
+<span class="normal">2280</span>
+<span class="normal">2281</span>
+<span class="normal">2282</span>
+<span class="normal">2283</span>
+<span class="normal">2284</span>
+<span class="normal">2285</span>
+<span class="normal">2286</span>
+<span class="normal">2287</span>
+<span class="normal">2288</span>
+<span class="normal">2289</span>
+<span class="normal">2290</span>
+<span class="normal">2291</span>
+<span class="normal">2292</span>
+<span class="normal">2293</span>
+<span class="normal">2294</span>
+<span class="normal">2295</span>
+<span class="normal">2296</span>
+<span class="normal">2297</span>
+<span class="normal">2298</span>
+<span class="normal">2299</span>
+<span class="normal">2300</span>
+<span class="normal">2301</span>
+<span class="normal">2302</span>
+<span class="normal">2303</span>
+<span class="normal">2304</span>
+<span class="normal">2305</span>
+<span class="normal">2306</span>
+<span class="normal">2307</span>
+<span class="normal">2308</span>
+<span class="normal">2309</span>
+<span class="normal">2310</span>
+<span class="normal">2311</span>
+<span class="normal">2312</span>
+<span class="normal">2313</span>
+<span class="normal">2314</span>
+<span class="normal">2315</span>
+<span class="normal">2316</span>
+<span class="normal">2317</span>
+<span class="normal">2318</span>
+<span class="normal">2319</span>
+<span class="normal">2320</span>
+<span class="normal">2321</span>
+<span class="normal">2322</span>
+<span class="normal">2323</span>
+<span class="normal">2324</span>
+<span class="normal">2325</span>
+<span class="normal">2326</span>
+<span class="normal">2327</span>
+<span class="normal">2328</span>
+<span class="normal">2329</span>
+<span class="normal">2330</span>
+<span class="normal">2331</span>
+<span class="normal">2332</span>
+<span class="normal">2333</span>
+<span class="normal">2334</span>
+<span class="normal">2335</span>
+<span class="normal">2336</span>
+<span class="normal">2337</span>
+<span class="normal">2338</span>
+<span class="normal">2339</span>
+<span class="normal">2340</span>
+<span class="normal">2341</span>
+<span class="normal">2342</span>
+<span class="normal">2343</span>
+<span class="normal">2344</span>
+<span class="normal">2345</span>
+<span class="normal">2346</span>
+<span class="normal">2347</span>
+<span class="normal">2348</span>
+<span class="normal">2349</span>
+<span class="normal">2350</span>
+<span class="normal">2351</span>
+<span class="normal">2352</span>
+<span class="normal">2353</span>
+<span class="normal">2354</span>
+<span class="normal">2355</span>
+<span class="normal">2356</span>
+<span class="normal">2357</span>
+<span class="normal">2358</span>
+<span class="normal">2359</span>
+<span class="normal">2360</span>
+<span class="normal">2361</span>
+<span class="normal">2362</span>
+<span class="normal">2363</span>
+<span class="normal">2364</span>
+<span class="normal">2365</span>
+<span class="normal">2366</span>
+<span class="normal">2367</span>
+<span class="normal">2368</span>
+<span class="normal">2369</span>
+<span class="normal">2370</span>
+<span class="normal">2371</span>
+<span class="normal">2372</span>
+<span class="normal">2373</span>
+<span class="normal">2374</span>
+<span class="normal">2375</span>
+<span class="normal">2376</span>
+<span class="normal">2377</span>
+<span class="normal">2378</span>
+<span class="normal">2379</span>
+<span class="normal">2380</span>
+<span class="normal">2381</span>
+<span class="normal">2382</span>
+<span class="normal">2383</span>
+<span class="normal">2384</span>
+<span class="normal">2385</span>
+<span class="normal">2386</span>
+<span class="normal">2387</span>
+<span class="normal">2388</span>
+<span class="normal">2389</span>
+<span class="normal">2390</span>
+<span class="normal">2391</span>
+<span class="normal">2392</span>
+<span class="normal">2393</span>
+<span class="normal">2394</span>
+<span class="normal">2395</span>
+<span class="normal">2396</span>
+<span class="normal">2397</span>
+<span class="normal">2398</span>
+<span class="normal">2399</span>
+<span class="normal">2400</span>
+<span class="normal">2401</span>
+<span class="normal">2402</span>
+<span class="normal">2403</span>
+<span class="normal">2404</span>
+<span class="normal">2405</span>
+<span class="normal">2406</span>
+<span class="normal">2407</span>
+<span class="normal">2408</span>
+<span class="normal">2409</span>
+<span class="normal">2410</span>
+<span class="normal">2411</span>
+<span class="normal">2412</span>
+<span class="normal">2413</span>
+<span class="normal">2414</span>
+<span class="normal">2415</span>
+<span class="normal">2416</span>
+<span class="normal">2417</span>
+<span class="normal">2418</span>
+<span class="normal">2419</span>
+<span class="normal">2420</span>
+<span class="normal">2421</span>
+<span class="normal">2422</span>
+<span class="normal">2423</span>
+<span class="normal">2424</span>
+<span class="normal">2425</span>
+<span class="normal">2426</span>
+<span class="normal">2427</span>
+<span class="normal">2428</span>
+<span class="normal">2429</span>
+<span class="normal">2430</span>
+<span class="normal">2431</span>
+<span class="normal">2432</span>
+<span class="normal">2433</span>
+<span class="normal">2434</span>
+<span class="normal">2435</span>
+<span class="normal">2436</span>
+<span class="normal">2437</span>
+<span class="normal">2438</span>
+<span class="normal">2439</span>
+<span class="normal">2440</span>
+<span class="normal">2441</span>
+<span class="normal">2442</span>
+<span class="normal">2443</span>
+<span class="normal">2444</span>
+<span class="normal">2445</span>
+<span class="normal">2446</span>
+<span class="normal">2447</span>
+<span class="normal">2448</span>
+<span class="normal">2449</span>
+<span class="normal">2450</span>
+<span class="normal">2451</span>
+<span class="normal">2452</span>
+<span class="normal">2453</span>
+<span class="normal">2454</span>
+<span class="normal">2455</span>
+<span class="normal">2456</span>
+<span class="normal">2457</span>
+<span class="normal">2458</span>
+<span class="normal">2459</span>
+<span class="normal">2460</span>
+<span class="normal">2461</span>
+<span class="normal">2462</span>
+<span class="normal">2463</span>
+<span class="normal">2464</span>
+<span class="normal">2465</span>
+<span class="normal">2466</span>
+<span class="normal">2467</span>
+<span class="normal">2468</span>
+<span class="normal">2469</span>
+<span class="normal">2470</span>
+<span class="normal">2471</span>
+<span class="normal">2472</span>
+<span class="normal">2473</span>
+<span class="normal">2474</span>
+<span class="normal">2475</span>
+<span class="normal">2476</span>
+<span class="normal">2477</span>
+<span class="normal">2478</span>
+<span class="normal">2479</span>
+<span class="normal">2480</span>
+<span class="normal">2481</span>
+<span class="normal">2482</span>
+<span class="normal">2483</span>
+<span class="normal">2484</span>
+<span class="normal">2485</span>
+<span class="normal">2486</span>
+<span class="normal">2487</span>
+<span class="normal">2488</span>
+<span class="normal">2489</span>
+<span class="normal">2490</span>
+<span class="normal">2491</span>
+<span class="normal">2492</span>
+<span class="normal">2493</span>
+<span class="normal">2494</span>
+<span class="normal">2495</span>
+<span class="normal">2496</span>
+<span class="normal">2497</span>
+<span class="normal">2498</span>
+<span class="normal">2499</span>
+<span class="normal">2500</span>
+<span class="normal">2501</span>
+<span class="normal">2502</span>
+<span class="normal">2503</span>
+<span class="normal">2504</span>
+<span class="normal">2505</span>
+<span class="normal">2506</span>
+<span class="normal">2507</span>
+<span class="normal">2508</span>
+<span class="normal">2509</span>
+<span class="normal">2510</span>
+<span class="normal">2511</span>
+<span class="normal">2512</span>
+<span class="normal">2513</span>
+<span class="normal">2514</span>
+<span class="normal">2515</span>
+<span class="normal">2516</span>
+<span class="normal">2517</span>
+<span class="normal">2518</span>
+<span class="normal">2519</span>
+<span class="normal">2520</span>
+<span class="normal">2521</span>
+<span class="normal">2522</span>
+<span class="normal">2523</span>
+<span class="normal">2524</span>
+<span class="normal">2525</span>
+<span class="normal">2526</span>
+<span class="normal">2527</span>
+<span class="normal">2528</span>
+<span class="normal">2529</span>
+<span class="normal">2530</span>
+<span class="normal">2531</span>
+<span class="normal">2532</span>
+<span class="normal">2533</span>
+<span class="normal">2534</span>
+<span class="normal">2535</span>
+<span class="normal">2536</span>
+<span class="normal">2537</span>
+<span class="normal">2538</span>
+<span class="normal">2539</span>
+<span class="normal">2540</span>
+<span class="normal">2541</span>
+<span class="normal">2542</span>
+<span class="normal">2543</span>
+<span class="normal">2544</span>
+<span class="normal">2545</span>
+<span class="normal">2546</span>
+<span class="normal">2547</span>
+<span class="normal">2548</span>
+<span class="normal">2549</span>
+<span class="normal">2550</span>
+<span class="normal">2551</span>
+<span class="normal">2552</span>
+<span class="normal">2553</span>
+<span class="normal">2554</span>
+<span class="normal">2555</span>
+<span class="normal">2556</span>
+<span class="normal">2557</span>
+<span class="normal">2558</span>
+<span class="normal">2559</span>
+<span class="normal">2560</span>
+<span class="normal">2561</span>
+<span class="normal">2562</span>
+<span class="normal">2563</span>
+<span class="normal">2564</span>
+<span class="normal">2565</span>
+<span class="normal">2566</span>
+<span class="normal">2567</span>
+<span class="normal">2568</span>
+<span class="normal">2569</span>
+<span class="normal">2570</span>
+<span class="normal">2571</span>
+<span class="normal">2572</span>
+<span class="normal">2573</span>
+<span class="normal">2574</span>
+<span class="normal">2575</span>
+<span class="normal">2576</span>
+<span class="normal">2577</span>
+<span class="normal">2578</span>
+<span class="normal">2579</span>
+<span class="normal">2580</span>
+<span class="normal">2581</span>
+<span class="normal">2582</span>
+<span class="normal">2583</span>
+<span class="normal">2584</span>
+<span class="normal">2585</span>
+<span class="normal">2586</span>
+<span class="normal">2587</span>
+<span class="normal">2588</span>
+<span class="normal">2589</span>
+<span class="normal">2590</span>
+<span class="normal">2591</span>
+<span class="normal">2592</span>
+<span class="normal">2593</span>
+<span class="normal">2594</span>
+<span class="normal">2595</span>
+<span class="normal">2596</span>
+<span class="normal">2597</span>
+<span class="normal">2598</span>
+<span class="normal">2599</span>
+<span class="normal">2600</span>
+<span class="normal">2601</span>
+<span class="normal">2602</span>
+<span class="normal">2603</span>
+<span class="normal">2604</span>
+<span class="normal">2605</span>
+<span class="normal">2606</span>
+<span class="normal">2607</span>
+<span class="normal">2608</span>
+<span class="normal">2609</span>
+<span class="normal">2610</span>
+<span class="normal">2611</span>
+<span class="normal">2612</span>
+<span class="normal">2613</span>
+<span class="normal">2614</span>
+<span class="normal">2615</span>
+<span class="normal">2616</span>
+<span class="normal">2617</span>
+<span class="normal">2618</span>
+<span class="normal">2619</span>
+<span class="normal">2620</span>
+<span class="normal">2621</span>
+<span class="normal">2622</span>
+<span class="normal">2623</span>
+<span class="normal">2624</span>
+<span class="normal">2625</span>
+<span class="normal">2626</span>
+<span class="normal">2627</span>
+<span class="normal">2628</span>
+<span class="normal">2629</span>
+<span class="normal">2630</span>
+<span class="normal">2631</span>
+<span class="normal">2632</span>
+<span class="normal">2633</span>
+<span class="normal">2634</span>
+<span class="normal">2635</span>
+<span class="normal">2636</span>
+<span class="normal">2637</span>
+<span class="normal">2638</span>
+<span class="normal">2639</span>
+<span class="normal">2640</span>
+<span class="normal">2641</span>
+<span class="normal">2642</span>
+<span class="normal">2643</span>
+<span class="normal">2644</span>
+<span class="normal">2645</span>
+<span class="normal">2646</span>
+<span class="normal">2647</span>
+<span class="normal">2648</span>
+<span class="normal">2649</span>
+<span class="normal">2650</span>
+<span class="normal">2651</span>
+<span class="normal">2652</span>
+<span class="normal">2653</span>
+<span class="normal">2654</span>
+<span class="normal">2655</span>
+<span class="normal">2656</span>
+<span class="normal">2657</span>
+<span class="normal">2658</span>
+<span class="normal">2659</span>
+<span class="normal">2660</span>
+<span class="normal">2661</span>
+<span class="normal">2662</span>
+<span class="normal">2663</span>
+<span class="normal">2664</span>
+<span class="normal">2665</span>
+<span class="normal">2666</span>
+<span class="normal">2667</span>
+<span class="normal">2668</span>
+<span class="normal">2669</span>
+<span class="normal">2670</span>
+<span class="normal">2671</span>
+<span class="normal">2672</span>
+<span class="normal">2673</span>
+<span class="normal">2674</span>
+<span class="normal">2675</span>
+<span class="normal">2676</span>
+<span class="normal">2677</span>
+<span class="normal">2678</span>
+<span class="normal">2679</span>
+<span class="normal">2680</span>
+<span class="normal">2681</span>
+<span class="normal">2682</span>
+<span class="normal">2683</span>
+<span class="normal">2684</span>
+<span class="normal">2685</span>
+<span class="normal">2686</span>
+<span class="normal">2687</span>
+<span class="normal">2688</span>
+<span class="normal">2689</span>
+<span class="normal">2690</span>
+<span class="normal">2691</span>
+<span class="normal">2692</span>
+<span class="normal">2693</span>
+<span class="normal">2694</span>
+<span class="normal">2695</span>
+<span class="normal">2696</span>
+<span class="normal">2697</span>
+<span class="normal">2698</span>
+<span class="normal">2699</span>
+<span class="normal">2700</span>
+<span class="normal">2701</span>
+<span class="normal">2702</span>
+<span class="normal">2703</span>
+<span class="normal">2704</span>
+<span class="normal">2705</span>
+<span class="normal">2706</span>
+<span class="normal">2707</span>
+<span class="normal">2708</span>
+<span class="normal">2709</span>
+<span class="normal">2710</span>
+<span class="normal">2711</span>
+<span class="normal">2712</span>
+<span class="normal">2713</span>
+<span class="normal">2714</span>
+<span class="normal">2715</span>
+<span class="normal">2716</span>
+<span class="normal">2717</span>
+<span class="normal">2718</span>
+<span class="normal">2719</span>
+<span class="normal">2720</span>
+<span class="normal">2721</span>
+<span class="normal">2722</span>
+<span class="normal">2723</span>
+<span class="normal">2724</span>
+<span class="normal">2725</span>
+<span class="normal">2726</span>
+<span class="normal">2727</span>
+<span class="normal">2728</span>
+<span class="normal">2729</span>
+<span class="normal">2730</span>
+<span class="normal">2731</span>
+<span class="normal">2732</span>
+<span class="normal">2733</span>
+<span class="normal">2734</span>
+<span class="normal">2735</span>
+<span class="normal">2736</span>
+<span class="normal">2737</span>
+<span class="normal">2738</span>
+<span class="normal">2739</span>
+<span class="normal">2740</span>
+<span class="normal">2741</span>
+<span class="normal">2742</span>
+<span class="normal">2743</span>
+<span class="normal">2744</span>
+<span class="normal">2745</span>
+<span class="normal">2746</span>
+<span class="normal">2747</span>
+<span class="normal">2748</span>
+<span class="normal">2749</span>
+<span class="normal">2750</span>
+<span class="normal">2751</span>
+<span class="normal">2752</span>
+<span class="normal">2753</span>
+<span class="normal">2754</span>
+<span class="normal">2755</span>
+<span class="normal">2756</span>
+<span class="normal">2757</span>
+<span class="normal">2758</span>
+<span class="normal">2759</span>
+<span class="normal">2760</span>
+<span class="normal">2761</span>
+<span class="normal">2762</span>
+<span class="normal">2763</span>
+<span class="normal">2764</span>
+<span class="normal">2765</span>
+<span class="normal">2766</span>
+<span class="normal">2767</span>
+<span class="normal">2768</span>
+<span class="normal">2769</span>
+<span class="normal">2770</span>
+<span class="normal">2771</span>
+<span class="normal">2772</span>
+<span class="normal">2773</span>
+<span class="normal">2774</span>
+<span class="normal">2775</span>
+<span class="normal">2776</span>
+<span class="normal">2777</span>
+<span class="normal">2778</span>
+<span class="normal">2779</span>
+<span class="normal">2780</span>
+<span class="normal">2781</span>
+<span class="normal">2782</span>
+<span class="normal">2783</span>
+<span class="normal">2784</span>
+<span class="normal">2785</span>
+<span class="normal">2786</span>
+<span class="normal">2787</span>
+<span class="normal">2788</span>
+<span class="normal">2789</span>
+<span class="normal">2790</span>
+<span class="normal">2791</span>
+<span class="normal">2792</span>
+<span class="normal">2793</span>
+<span class="normal">2794</span>
+<span class="normal">2795</span>
+<span class="normal">2796</span>
+<span class="normal">2797</span>
+<span class="normal">2798</span>
+<span class="normal">2799</span>
+<span class="normal">2800</span>
+<span class="normal">2801</span>
+<span class="normal">2802</span>
+<span class="normal">2803</span>
+<span class="normal">2804</span>
+<span class="normal">2805</span>
+<span class="normal">2806</span>
+<span class="normal">2807</span>
+<span class="normal">2808</span>
+<span class="normal">2809</span>
+<span class="normal">2810</span>
+<span class="normal">2811</span>
+<span class="normal">2812</span>
+<span class="normal">2813</span>
+<span class="normal">2814</span>
+<span class="normal">2815</span>
+<span class="normal">2816</span>
+<span class="normal">2817</span>
+<span class="normal">2818</span>
+<span class="normal">2819</span>
+<span class="normal">2820</span>
+<span class="normal">2821</span>
+<span class="normal">2822</span>
+<span class="normal">2823</span>
+<span class="normal">2824</span>
+<span class="normal">2825</span>
+<span class="normal">2826</span>
+<span class="normal">2827</span>
+<span class="normal">2828</span>
+<span class="normal">2829</span>
+<span class="normal">2830</span>
+<span class="normal">2831</span>
+<span class="normal">2832</span>
+<span class="normal">2833</span>
+<span class="normal">2834</span>
+<span class="normal">2835</span>
+<span class="normal">2836</span>
+<span class="normal">2837</span>
+<span class="normal">2838</span>
+<span class="normal">2839</span>
+<span class="normal">2840</span>
+<span class="normal">2841</span>
+<span class="normal">2842</span>
+<span class="normal">2843</span>
+<span class="normal">2844</span>
+<span class="normal">2845</span>
+<span class="normal">2846</span>
+<span class="normal">2847</span>
+<span class="normal">2848</span>
+<span class="normal">2849</span>
+<span class="normal">2850</span>
+<span class="normal">2851</span>
+<span class="normal">2852</span>
+<span class="normal">2853</span>
+<span class="normal">2854</span>
+<span class="normal">2855</span>
+<span class="normal">2856</span>
+<span class="normal">2857</span>
+<span class="normal">2858</span>
+<span class="normal">2859</span>
+<span class="normal">2860</span>
+<span class="normal">2861</span>
+<span class="normal">2862</span>
+<span class="normal">2863</span>
+<span class="normal">2864</span>
+<span class="normal">2865</span>
+<span class="normal">2866</span>
+<span class="normal">2867</span>
+<span class="normal">2868</span>
+<span class="normal">2869</span>
+<span class="normal">2870</span>
+<span class="normal">2871</span>
+<span class="normal">2872</span>
+<span class="normal">2873</span>
+<span class="normal">2874</span>
+<span class="normal">2875</span>
+<span class="normal">2876</span>
+<span class="normal">2877</span>
+<span class="normal">2878</span>
+<span class="normal">2879</span>
+<span class="normal">2880</span>
+<span class="normal">2881</span>
+<span class="normal">2882</span>
+<span class="normal">2883</span>
+<span class="normal">2884</span>
+<span class="normal">2885</span>
+<span class="normal">2886</span>
+<span class="normal">2887</span>
+<span class="normal">2888</span>
+<span class="normal">2889</span>
+<span class="normal">2890</span>
+<span class="normal">2891</span>
+<span class="normal">2892</span>
+<span class="normal">2893</span>
+<span class="normal">2894</span>
+<span class="normal">2895</span>
+<span class="normal">2896</span>
+<span class="normal">2897</span>
+<span class="normal">2898</span>
+<span class="normal">2899</span>
+<span class="normal">2900</span>
+<span class="normal">2901</span>
+<span class="normal">2902</span>
+<span class="normal">2903</span>
+<span class="normal">2904</span>
+<span class="normal">2905</span>
+<span class="normal">2906</span>
+<span class="normal">2907</span>
+<span class="normal">2908</span>
+<span class="normal">2909</span>
+<span class="normal">2910</span>
+<span class="normal">2911</span>
+<span class="normal">2912</span>
+<span class="normal">2913</span>
+<span class="normal">2914</span>
+<span class="normal">2915</span>
+<span class="normal">2916</span>
+<span class="normal">2917</span>
+<span class="normal">2918</span>
+<span class="normal">2919</span>
+<span class="normal">2920</span>
+<span class="normal">2921</span>
+<span class="normal">2922</span>
+<span class="normal">2923</span>
+<span class="normal">2924</span>
+<span class="normal">2925</span>
+<span class="normal">2926</span>
+<span class="normal">2927</span>
+<span class="normal">2928</span>
+<span class="normal">2929</span>
+<span class="normal">2930</span>
+<span class="normal">2931</span>
+<span class="normal">2932</span>
+<span class="normal">2933</span>
+<span class="normal">2934</span>
+<span class="normal">2935</span>
+<span class="normal">2936</span>
+<span class="normal">2937</span>
+<span class="normal">2938</span>
+<span class="normal">2939</span>
+<span class="normal">2940</span>
+<span class="normal">2941</span>
+<span class="normal">2942</span>
+<span class="normal">2943</span>
+<span class="normal">2944</span>
+<span class="normal">2945</span>
+<span class="normal">2946</span>
+<span class="normal">2947</span>
+<span class="normal">2948</span>
+<span class="normal">2949</span>
+<span class="normal">2950</span>
+<span class="normal">2951</span>
+<span class="normal">2952</span>
+<span class="normal">2953</span>
+<span class="normal">2954</span>
+<span class="normal">2955</span>
+<span class="normal">2956</span>
+<span class="normal">2957</span>
+<span class="normal">2958</span>
+<span class="normal">2959</span>
+<span class="normal">2960</span>
+<span class="normal">2961</span>
+<span class="normal">2962</span>
+<span class="normal">2963</span>
+<span class="normal">2964</span>
+<span class="normal">2965</span>
+<span class="normal">2966</span>
+<span class="normal">2967</span>
+<span class="normal">2968</span>
+<span class="normal">2969</span>
+<span class="normal">2970</span>
+<span class="normal">2971</span>
+<span class="normal">2972</span>
+<span class="normal">2973</span>
+<span class="normal">2974</span>
+<span class="normal">2975</span>
+<span class="normal">2976</span>
+<span class="normal">2977</span>
+<span class="normal">2978</span>
+<span class="normal">2979</span>
+<span class="normal">2980</span>
+<span class="normal">2981</span>
+<span class="normal">2982</span>
+<span class="normal">2983</span>
+<span class="normal">2984</span>
+<span class="normal">2985</span>
+<span class="normal">2986</span>
+<span class="normal">2987</span>
+<span class="normal">2988</span>
+<span class="normal">2989</span>
+<span class="normal">2990</span>
+<span class="normal">2991</span>
+<span class="normal">2992</span>
+<span class="normal">2993</span>
+<span class="normal">2994</span>
+<span class="normal">2995</span>
+<span class="normal">2996</span>
+<span class="normal">2997</span>
+<span class="normal">2998</span>
+<span class="normal">2999</span>
+<span class="normal">3000</span>
+<span class="normal">3001</span>
+<span class="normal">3002</span>
+<span class="normal">3003</span>
+<span class="normal">3004</span>
+<span class="normal">3005</span>
+<span class="normal">3006</span>
+<span class="normal">3007</span>
+<span class="normal">3008</span>
+<span class="normal">3009</span>
+<span class="normal">3010</span>
+<span class="normal">3011</span>
+<span class="normal">3012</span>
+<span class="normal">3013</span>
+<span class="normal">3014</span>
+<span class="normal">3015</span>
+<span class="normal">3016</span>
+<span class="normal">3017</span>
+<span class="normal">3018</span>
+<span class="normal">3019</span>
+<span class="normal">3020</span>
+<span class="normal">3021</span>
+<span class="normal">3022</span>
+<span class="normal">3023</span>
+<span class="normal">3024</span>
+<span class="normal">3025</span>
+<span class="normal">3026</span>
+<span class="normal">3027</span>
+<span class="normal">3028</span>
+<span class="normal">3029</span>
+<span class="normal">3030</span>
+<span class="normal">3031</span>
+<span class="normal">3032</span>
+<span class="normal">3033</span>
+<span class="normal">3034</span>
+<span class="normal">3035</span>
+<span class="normal">3036</span>
+<span class="normal">3037</span>
+<span class="normal">3038</span>
+<span class="normal">3039</span>
+<span class="normal">3040</span>
+<span class="normal">3041</span>
+<span class="normal">3042</span>
+<span class="normal">3043</span>
+<span class="normal">3044</span>
+<span class="normal">3045</span>
+<span class="normal">3046</span>
+<span class="normal">3047</span>
+<span class="normal">3048</span>
+<span class="normal">3049</span>
+<span class="normal">3050</span>
+<span class="normal">3051</span>
+<span class="normal">3052</span>
+<span class="normal">3053</span>
+<span class="normal">3054</span>
+<span class="normal">3055</span>
+<span class="normal">3056</span>
+<span class="normal">3057</span>
+<span class="normal">3058</span>
+<span class="normal">3059</span>
+<span class="normal">3060</span>
+<span class="normal">3061</span>
+<span class="normal">3062</span>
+<span class="normal">3063</span>
+<span class="normal">3064</span>
+<span class="normal">3065</span>
+<span class="normal">3066</span>
+<span class="normal">3067</span>
+<span class="normal">3068</span>
+<span class="normal">3069</span>
+<span class="normal">3070</span>
+<span class="normal">3071</span>
+<span class="normal">3072</span>
+<span class="normal">3073</span>
+<span class="normal">3074</span>
+<span class="normal">3075</span>
+<span class="normal">3076</span>
+<span class="normal">3077</span>
+<span class="normal">3078</span>
+<span class="normal">3079</span>
+<span class="normal">3080</span>
+<span class="normal">3081</span>
+<span class="normal">3082</span>
+<span class="normal">3083</span>
+<span class="normal">3084</span>
+<span class="normal">3085</span>
+<span class="normal">3086</span>
+<span class="normal">3087</span>
+<span class="normal">3088</span>
+<span class="normal">3089</span>
+<span class="normal">3090</span>
+<span class="normal">3091</span>
+<span class="normal">3092</span>
+<span class="normal">3093</span>
+<span class="normal">3094</span>
+<span class="normal">3095</span>
+<span class="normal">3096</span>
+<span class="normal">3097</span>
+<span class="normal">3098</span>
+<span class="normal">3099</span>
+<span class="normal">3100</span>
+<span class="normal">3101</span>
+<span class="normal">3102</span>
+<span class="normal">3103</span>
+<span class="normal">3104</span>
+<span class="normal">3105</span>
+<span class="normal">3106</span>
+<span class="normal">3107</span>
+<span class="normal">3108</span>
+<span class="normal">3109</span>
+<span class="normal">3110</span>
+<span class="normal">3111</span>
+<span class="normal">3112</span>
+<span class="normal">3113</span>
+<span class="normal">3114</span>
+<span class="normal">3115</span>
+<span class="normal">3116</span>
+<span class="normal">3117</span>
+<span class="normal">3118</span>
+<span class="normal">3119</span>
+<span class="normal">3120</span>
+<span class="normal">3121</span>
+<span class="normal">3122</span>
+<span class="normal">3123</span>
+<span class="normal">3124</span>
+<span class="normal">3125</span>
+<span class="normal">3126</span>
+<span class="normal">3127</span>
+<span class="normal">3128</span>
+<span class="normal">3129</span>
+<span class="normal">3130</span>
+<span class="normal">3131</span>
+<span class="normal">3132</span>
+<span class="normal">3133</span>
+<span class="normal">3134</span>
+<span class="normal">3135</span>
+<span class="normal">3136</span>
+<span class="normal">3137</span>
+<span class="normal">3138</span>
+<span class="normal">3139</span>
+<span class="normal">3140</span>
+<span class="normal">3141</span>
+<span class="normal">3142</span>
+<span class="normal">3143</span>
+<span class="normal">3144</span>
+<span class="normal">3145</span>
+<span class="normal">3146</span>
+<span class="normal">3147</span>
+<span class="normal">3148</span>
+<span class="normal">3149</span>
+<span class="normal">3150</span>
+<span class="normal">3151</span>
+<span class="normal">3152</span>
+<span class="normal">3153</span>
+<span class="normal">3154</span>
+<span class="normal">3155</span>
+<span class="normal">3156</span>
+<span class="normal">3157</span>
+<span class="normal">3158</span>
+<span class="normal">3159</span>
+<span class="normal">3160</span>
+<span class="normal">3161</span>
+<span class="normal">3162</span>
+<span class="normal">3163</span>
+<span class="normal">3164</span>
+<span class="normal">3165</span>
+<span class="normal">3166</span>
+<span class="normal">3167</span>
+<span class="normal">3168</span>
+<span class="normal">3169</span>
+<span class="normal">3170</span>
+<span class="normal">3171</span>
+<span class="normal">3172</span>
+<span class="normal">3173</span>
+<span class="normal">3174</span>
+<span class="normal">3175</span>
+<span class="normal">3176</span>
+<span class="normal">3177</span>
+<span class="normal">3178</span>
+<span class="normal">3179</span>
+<span class="normal">3180</span>
+<span class="normal">3181</span>
+<span class="normal">3182</span>
+<span class="normal">3183</span>
+<span class="normal">3184</span>
+<span class="normal">3185</span>
+<span class="normal">3186</span>
+<span class="normal">3187</span>
+<span class="normal">3188</span>
+<span class="normal">3189</span>
+<span class="normal">3190</span>
+<span class="normal">3191</span>
+<span class="normal">3192</span>
+<span class="normal">3193</span>
+<span class="normal">3194</span>
+<span class="normal">3195</span>
+<span class="normal">3196</span>
+<span class="normal">3197</span>
+<span class="normal">3198</span>
+<span class="normal">3199</span>
+<span class="normal">3200</span>
+<span class="normal">3201</span>
+<span class="normal">3202</span>
+<span class="normal">3203</span>
+<span class="normal">3204</span>
+<span class="normal">3205</span>
+<span class="normal">3206</span>
+<span class="normal">3207</span>
+<span class="normal">3208</span>
+<span class="normal">3209</span>
+<span class="normal">3210</span>
+<span class="normal">3211</span>
+<span class="normal">3212</span>
+<span class="normal">3213</span>
+<span class="normal">3214</span>
+<span class="normal">3215</span>
+<span class="normal">3216</span>
+<span class="normal">3217</span>
+<span class="normal">3218</span>
+<span class="normal">3219</span>
+<span class="normal">3220</span>
+<span class="normal">3221</span>
+<span class="normal">3222</span>
+<span class="normal">3223</span>
+<span class="normal">3224</span>
+<span class="normal">3225</span>
+<span class="normal">3226</span>
+<span class="normal">3227</span>
+<span class="normal">3228</span>
+<span class="normal">3229</span>
+<span class="normal">3230</span>
+<span class="normal">3231</span>
+<span class="normal">3232</span>
+<span class="normal">3233</span>
+<span class="normal">3234</span>
+<span class="normal">3235</span>
+<span class="normal">3236</span>
+<span class="normal">3237</span>
+<span class="normal">3238</span>
+<span class="normal">3239</span>
+<span class="normal">3240</span>
+<span class="normal">3241</span>
+<span class="normal">3242</span>
+<span class="normal">3243</span>
+<span class="normal">3244</span>
+<span class="normal">3245</span>
+<span class="normal">3246</span>
+<span class="normal">3247</span>
+<span class="normal">3248</span>
+<span class="normal">3249</span>
+<span class="normal">3250</span>
+<span class="normal">3251</span>
+<span class="normal">3252</span>
+<span class="normal">3253</span>
+<span class="normal">3254</span>
+<span class="normal">3255</span>
+<span class="normal">3256</span>
+<span class="normal">3257</span>
+<span class="normal">3258</span>
+<span class="normal">3259</span>
+<span class="normal">3260</span>
+<span class="normal">3261</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-</span>
+<a id="line-2" name="line-2"></a>
+<a id="line-3" name="line-3"></a><span class="cm">matebg.c: Object for the desktop background.</span>
+<a id="line-4" name="line-4"></a>
+<a id="line-5" name="line-5"></a><span class="cm">Copyright (C) 2000 Eazel, Inc.</span>
+<a id="line-6" name="line-6"></a><span class="cm">Copyright (C) 2007-2008 Red Hat, Inc.</span>
+<a id="line-7" name="line-7"></a><span class="cm">Copyright (C) 2012 Jasmine Hassan &lt;[email protected]&gt;</span>
+<a id="line-8" name="line-8"></a><span class="cm">Copyright (C) 2012-2021 MATE Developers</span>
+<a id="line-9" name="line-9"></a>
+<a id="line-10" name="line-10"></a><span class="cm">This program is free software; you can redistribute it and/or</span>
+<a id="line-11" name="line-11"></a><span class="cm">modify it under the terms of the GNU Library General Public License as</span>
+<a id="line-12" name="line-12"></a><span class="cm">published by the Free Software Foundation; either version 2 of the</span>
+<a id="line-13" name="line-13"></a><span class="cm">License, or (at your option) any later version.</span>
+<a id="line-14" name="line-14"></a>
+<a id="line-15" name="line-15"></a><span class="cm">This program is distributed in the hope that it will be useful,</span>
+<a id="line-16" name="line-16"></a><span class="cm">but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-17" name="line-17"></a><span class="cm">MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-18" name="line-18"></a><span class="cm">Library General Public License for more details.</span>
+<a id="line-19" name="line-19"></a>
+<a id="line-20" name="line-20"></a><span class="cm">You should have received a copy of the GNU Library General Public</span>
+<a id="line-21" name="line-21"></a><span class="cm">License along with this program; if not, write to the</span>
+<a id="line-22" name="line-22"></a><span class="cm">Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,</span>
+<a id="line-23" name="line-23"></a><span class="cm">Boston, MA 02110-1301, USA.</span>
+<a id="line-24" name="line-24"></a>
+<a id="line-25" name="line-25"></a><span class="cm">Derived from eel-background.c and eel-gdk-pixbuf-extensions.c by</span>
+<a id="line-26" name="line-26"></a><span class="cm">Darin Adler &lt;[email protected]&gt; and Ramiro Estrugo &lt;[email protected]&gt;</span>
+<a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="cm">Authors: Soren Sandmann &lt;[email protected]&gt;</span>
+<a id="line-29" name="line-29"></a><span class="cm"> Jasmine Hassan &lt;[email protected]&gt;</span>
+<a id="line-30" name="line-30"></a>
+<a id="line-31" name="line-31"></a><span class="cm">*/</span>
+<a id="line-32" name="line-32"></a>
+<a id="line-33" name="line-33"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-34" name="line-34"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;math.h&gt;</span><span class="error2">&lt;--- Include file: <math.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-35" name="line-35"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdarg.h&gt;</span><span class="error2">&lt;--- Include file: <stdarg.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-36" name="line-36"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdlib.h&gt;</span><span class="error2">&lt;--- Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-37" name="line-37"></a>
+<a id="line-38" name="line-38"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gstdio.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gstdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-39" name="line-39"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gio/gio.h&gt;</span><span class="error2">&lt;--- Include file: <gio/gio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-40" name="line-40"></a>
+<a id="line-41" name="line-41"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdkx.h&gt;</span><span class="error2">&lt;--- Include file: <gdk/gdkx.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-42" name="line-42"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;X11/Xlib.h&gt;</span><span class="error2">&lt;--- Include file: <X11/Xlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-43" name="line-43"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;X11/Xatom.h&gt;</span><span class="error2">&lt;--- Include file: <X11/Xatom.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-44" name="line-44"></a>
+<a id="line-45" name="line-45"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;cairo.h&gt;</span><span class="error2">&lt;--- Include file: <cairo.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-46" name="line-46"></a>
+<a id="line-47" name="line-47"></a><span class="cp">#define MATE_DESKTOP_USE_UNSTABLE_API</span>
+<a id="line-48" name="line-48"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;mate-bg.h&gt;</span><span class="error2">&lt;--- Include file: <mate-bg.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-49" name="line-49"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;mate-bg-crossfade.h&gt;</span><span class="error2">&lt;--- Include file: <mate-bg-crossfade.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-50" name="line-50"></a>
+<a id="line-51" name="line-51"></a><span class="hll"><span class="cp">#</span><span class="w"> </span><span class="cp">include</span><span class="w"> </span><span class="cpf">&lt;cairo-xlib.h&gt;</span><span class="error2">&lt;--- Include file: <cairo-xlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-52" name="line-52"></a>
+<a id="line-53" name="line-53"></a><span class="cp">#define MATE_BG_CACHE_DIR &quot;mate/background&quot;</span>
+<a id="line-54" name="line-54"></a>
+<a id="line-55" name="line-55"></a><span class="cm">/* We keep the large pixbufs around if the next update</span>
+<a id="line-56" name="line-56"></a><span class="cm"> in the slideshow is less than 60 seconds away */</span>
+<a id="line-57" name="line-57"></a><span class="cp">#define KEEP_EXPENSIVE_CACHE_SECS 60</span>
+<a id="line-58" name="line-58"></a>
+<a id="line-59" name="line-59"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_SlideShow</span><span class="w"> </span><span class="n">SlideShow</span><span class="p">;</span>
+<a id="line-60" name="line-60"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_Slide</span><span class="w"> </span><span class="n">Slide</span><span class="p">;</span>
+<a id="line-61" name="line-61"></a>
+<a id="line-62" name="line-62"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_Slide</span><span class="w"> </span><span class="p">{</span>
+<a id="line-63" name="line-63"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">duration</span><span class="p">;</span><span class="w"> </span><span class="cm">/* in seconds */</span>
+<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">fixed</span><span class="p">;</span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">GSList</span><span class="o">*</span><span class="w"> </span><span class="n">file1</span><span class="p">;</span>
+<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">GSList</span><span class="o">*</span><span class="w"> </span><span class="n">file2</span><span class="p">;</span><span class="w"> </span><span class="cm">/* NULL if fixed is TRUE */</span>
+<a id="line-68" name="line-68"></a><span class="p">};</span>
+<a id="line-69" name="line-69"></a>
+<a id="line-70" name="line-70"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_FileSize</span><span class="w"> </span><span class="n">FileSize</span><span class="p">;</span>
+<a id="line-71" name="line-71"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_FileSize</span><span class="w"> </span><span class="p">{</span>
+<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">width</span><span class="p">;</span>
+<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">height</span><span class="p">;</span>
+<a id="line-74" name="line-74"></a>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="n">file</span><span class="p">;</span>
+<a id="line-76" name="line-76"></a><span class="p">};</span>
+<a id="line-77" name="line-77"></a>
+<a id="line-78" name="line-78"></a><span class="cp">#define THUMBNAIL_SIZE 256</span>
+<a id="line-79" name="line-79"></a>
+<a id="line-80" name="line-80"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">FileCacheEntry</span><span class="w"> </span><span class="n">FileCacheEntry</span><span class="p">;</span>
+<a id="line-81" name="line-81"></a><span class="cp">#define CACHE_SIZE 4</span>
+<a id="line-82" name="line-82"></a>
+<a id="line-83" name="line-83"></a><span class="cm">/*</span>
+<a id="line-84" name="line-84"></a><span class="cm"> * Implementation of the MateBG class</span>
+<a id="line-85" name="line-85"></a><span class="cm"> */</span>
+<a id="line-86" name="line-86"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_MateBG</span><span class="w"> </span><span class="p">{</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">GObject</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">;</span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="n">MateBGPlacement</span><span class="w"> </span><span class="n">placement</span><span class="p">;</span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">MateBGColorType</span><span class="w"> </span><span class="n">color_type</span><span class="p">;</span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="n">primary</span><span class="p">;</span>
+<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="n">secondary</span><span class="p">;</span>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_enabled</span><span class="p">;</span>
+<a id="line-94" name="line-94"></a>
+<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">GFileMonitor</span><span class="o">*</span><span class="w"> </span><span class="n">file_monitor</span><span class="p">;</span>
+<a id="line-96" name="line-96"></a>
+<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">changed_id</span><span class="p">;</span>
+<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">transitioned_id</span><span class="p">;</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">blow_caches_id</span><span class="p">;</span>
+<a id="line-100" name="line-100"></a>
+<a id="line-101" name="line-101"></a><span class="w"> </span><span class="cm">/* Cached information, only access through cache accessor functions */</span>
+<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">SlideShow</span><span class="o">*</span><span class="w"> </span><span class="n">slideshow</span><span class="p">;</span>
+<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">gint64</span><span class="w"> </span><span class="n">file_mtime</span><span class="p">;</span>
+<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="o">*</span><span class="w"> </span><span class="n">pixbuf_cache</span><span class="p">;</span>
+<a id="line-105" name="line-105"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">timeout_id</span><span class="p">;</span>
+<a id="line-106" name="line-106"></a>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">GList</span><span class="o">*</span><span class="w"> </span><span class="n">file_cache</span><span class="p">;</span>
+<a id="line-108" name="line-108"></a><span class="p">};</span>
+<a id="line-109" name="line-109"></a>
+<a id="line-110" name="line-110"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_MateBGClass</span><span class="w"> </span><span class="p">{</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="n">parent_class</span><span class="p">;</span>
+<a id="line-112" name="line-112"></a><span class="p">};</span>
+<a id="line-113" name="line-113"></a>
+<a id="line-114" name="line-114"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span>
+<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">CHANGED</span><span class="p">,</span>
+<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">TRANSITIONED</span><span class="p">,</span>
+<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">N_SIGNALS</span>
+<a id="line-118" name="line-118"></a><span class="p">};</span>
+<a id="line-119" name="line-119"></a>
+<a id="line-120" name="line-120"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">N_SIGNALS</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="mi">0</span><span class="p">};</span>
+<a id="line-121" name="line-121"></a>
+<a id="line-122" name="line-122"></a><span class="hll"><span class="n">G_DEFINE_TYPE</span><span class="p">(</span><span class="n">MateBG</span><span class="p">,</span><span class="w"> </span><span class="n">mate_bg</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">)</span><span class="error2">&lt;--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE is a macro then please configure it.</span>
+</span><a id="line-123" name="line-123"></a>
+<a id="line-124" name="line-124"></a><span class="k">static</span><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span><span class="n">make_root_pixmap</span><span class="w"> </span><span class="p">(</span><span class="n">GdkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span>
+<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">width</span><span class="p">,</span>
+<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">height</span><span class="p">);</span>
+<a id="line-127" name="line-127"></a>
+<a id="line-128" name="line-128"></a><span class="cm">/* Pixbuf utils */</span>
+<a id="line-129" name="line-129"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">pixbuf_average_value</span><span class="w"> </span><span class="p">(</span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">,</span>
+<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="p">);</span>
+<a id="line-131" name="line-131"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="nf">pixbuf_scale_to_fit</span><span class="w"> </span><span class="p">(</span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">src</span><span class="p">,</span>
+<a id="line-132" name="line-132"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">max_width</span><span class="p">,</span>
+<a id="line-133" name="line-133"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">max_height</span><span class="p">);</span>
+<a id="line-134" name="line-134"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="nf">pixbuf_scale_to_min</span><span class="w"> </span><span class="p">(</span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">src</span><span class="p">,</span>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">min_width</span><span class="p">,</span>
+<a id="line-136" name="line-136"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">min_height</span><span class="p">);</span>
+<a id="line-137" name="line-137"></a>
+<a id="line-138" name="line-138"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">pixbuf_draw_gradient</span><span class="w"> </span><span class="p">(</span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">,</span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">horizontal</span><span class="p">,</span>
+<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">c1</span><span class="p">,</span>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">c2</span><span class="p">,</span>
+<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">GdkRectangle</span><span class="w"> </span><span class="o">*</span><span class="n">rect</span><span class="p">);</span>
+<a id="line-143" name="line-143"></a>
+<a id="line-144" name="line-144"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">pixbuf_tile</span><span class="w"> </span><span class="p">(</span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">src</span><span class="p">,</span>
+<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">dest</span><span class="p">);</span>
+<a id="line-146" name="line-146"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">pixbuf_blend</span><span class="w"> </span><span class="p">(</span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">src</span><span class="p">,</span>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">dest</span><span class="p">,</span>
+<a id="line-148" name="line-148"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">src_x</span><span class="p">,</span>
+<a id="line-149" name="line-149"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">src_y</span><span class="p">,</span>
+<a id="line-150" name="line-150"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">,</span>
+<a id="line-151" name="line-151"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">height</span><span class="p">,</span>
+<a id="line-152" name="line-152"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dest_x</span><span class="p">,</span>
+<a id="line-153" name="line-153"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dest_y</span><span class="p">,</span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">alpha</span><span class="p">);</span>
+<a id="line-155" name="line-155"></a>
+<a id="line-156" name="line-156"></a><span class="cm">/* Thumbnail utilities */</span>
+<a id="line-157" name="line-157"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="nf">create_thumbnail_for_filename</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">,</span>
+<a id="line-158" name="line-158"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-159" name="line-159"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">get_thumb_annotations</span><span class="w"> </span><span class="p">(</span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">thumb</span><span class="p">,</span>
+<a id="line-160" name="line-160"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">orig_width</span><span class="p">,</span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">orig_height</span><span class="p">);</span>
+<a id="line-162" name="line-162"></a>
+<a id="line-163" name="line-163"></a><span class="cm">/* Cache */</span>
+<a id="line-164" name="line-164"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="nf">get_pixbuf_for_size</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">num_monitor</span><span class="p">,</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">height</span><span class="p">);</span>
+<a id="line-168" name="line-168"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">clear_cache</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">);</span>
+<a id="line-169" name="line-169"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">is_different</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-171" name="line-171"></a><span class="k">static</span><span class="w"> </span><span class="n">gint64</span><span class="w"> </span><span class="nf">get_mtime</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-172" name="line-172"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="nf">create_img_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-173" name="line-173"></a><span class="w"> </span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">,</span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dest_width</span><span class="p">,</span>
+<a id="line-176" name="line-176"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dest_height</span><span class="p">,</span>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">frame_num</span><span class="p">);</span>
+<a id="line-178" name="line-178"></a><span class="k">static</span><span class="w"> </span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nf">get_as_slideshow</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-180" name="line-180"></a><span class="k">static</span><span class="w"> </span><span class="n">Slide</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nf">get_current_slide</span><span class="w"> </span><span class="p">(</span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span><span class="n">show</span><span class="p">,</span>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="o">*</span><span class="n">alpha</span><span class="p">);</span>
+<a id="line-182" name="line-182"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">slideshow_has_multiple_sizes</span><span class="w"> </span><span class="p">(</span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span><span class="n">show</span><span class="p">);</span>
+<a id="line-183" name="line-183"></a>
+<a id="line-184" name="line-184"></a><span class="k">static</span><span class="w"> </span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span><span class="nf">read_slideshow_file</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">,</span>
+<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">err</span><span class="p">);</span>
+<a id="line-186" name="line-186"></a><span class="k">static</span><span class="w"> </span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span><span class="nf">slideshow_ref</span><span class="w"> </span><span class="p">(</span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span><span class="n">show</span><span class="p">);</span>
+<a id="line-187" name="line-187"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">slideshow_unref</span><span class="w"> </span><span class="p">(</span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span><span class="n">show</span><span class="p">);</span>
+<a id="line-188" name="line-188"></a>
+<a id="line-189" name="line-189"></a><span class="k">static</span><span class="w"> </span><span class="n">FileSize</span><span class="w"> </span><span class="o">*</span><span class="nf">find_best_size</span><span class="w"> </span><span class="p">(</span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">sizes</span><span class="p">,</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">width</span><span class="p">,</span>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">height</span><span class="p">);</span>
+<a id="line-192" name="line-192"></a>
+<a id="line-193" name="line-193"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-194" name="line-194"></a><span class="nf">color_from_string</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">string</span><span class="p">,</span>
+<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">colorp</span><span class="p">)</span>
+<a id="line-196" name="line-196"></a><span class="p">{</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">string</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">*</span><span class="n">string</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">gdk_rgba_parse</span><span class="w"> </span><span class="p">(</span><span class="n">colorp</span><span class="p">,</span><span class="w"> </span><span class="n">string</span><span class="p">))</span>
+<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">gdk_rgba_parse</span><span class="w"> </span><span class="p">(</span><span class="n">colorp</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;#000000&quot;</span><span class="p">);</span><span class="w"> </span><span class="cm">/* If all else fails use black */</span>
+<a id="line-199" name="line-199"></a><span class="p">}</span>
+<a id="line-200" name="line-200"></a>
+<a id="line-201" name="line-201"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-202" name="line-202"></a><span class="nf">color_to_string</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">)</span>
+<a id="line-203" name="line-203"></a><span class="p">{</span>
+<a id="line-204" name="line-204"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;#%02x%02x%02x&quot;</span><span class="p">,</span>
+<a id="line-205" name="line-205"></a><span class="w"> </span><span class="p">((</span><span class="n">guint</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">color</span><span class="o">-&gt;</span><span class="n">red</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">65535</span><span class="p">))</span><span class="w"> </span><span class="o">&gt;&gt;</span><span class="w"> </span><span class="mi">8</span><span class="p">,</span>
+<a id="line-206" name="line-206"></a><span class="w"> </span><span class="p">((</span><span class="n">guint</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">color</span><span class="o">-&gt;</span><span class="n">green</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">65535</span><span class="p">))</span><span class="w"> </span><span class="o">&gt;&gt;</span><span class="w"> </span><span class="mi">8</span><span class="p">,</span>
+<a id="line-207" name="line-207"></a><span class="w"> </span><span class="p">((</span><span class="n">guint</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">color</span><span class="o">-&gt;</span><span class="n">blue</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">65535</span><span class="p">))</span><span class="w"> </span><span class="o">&gt;&gt;</span><span class="w"> </span><span class="mi">8</span><span class="p">);</span>
+<a id="line-208" name="line-208"></a><span class="p">}</span>
+<a id="line-209" name="line-209"></a>
+<a id="line-210" name="line-210"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-211" name="line-211"></a><span class="nf">do_changed</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">)</span>
+<a id="line-212" name="line-212"></a><span class="p">{</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">changed_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-214" name="line-214"></a>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">),</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">CHANGED</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-216" name="line-216"></a>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-218" name="line-218"></a><span class="p">}</span>
+<a id="line-219" name="line-219"></a>
+<a id="line-220" name="line-220"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-221" name="line-221"></a><span class="nf">queue_changed</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">)</span>
+<a id="line-222" name="line-222"></a><span class="p">{</span>
+<a id="line-223" name="line-223"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">changed_id</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">g_source_remove</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">changed_id</span><span class="p">);</span>
+<a id="line-225" name="line-225"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-226" name="line-226"></a>
+<a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">changed_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_timeout_add_full</span><span class="w"> </span><span class="p">(</span><span class="n">G_PRIORITY_LOW</span><span class="p">,</span>
+<a id="line-228" name="line-228"></a><span class="w"> </span><span class="mi">100</span><span class="p">,</span>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="p">(</span><span class="n">GSourceFunc</span><span class="p">)</span><span class="n">do_changed</span><span class="p">,</span>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">bg</span><span class="p">,</span>
+<a id="line-231" name="line-231"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-232" name="line-232"></a><span class="p">}</span>
+<a id="line-233" name="line-233"></a>
+<a id="line-234" name="line-234"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-235" name="line-235"></a><span class="nf">do_transitioned</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">)</span>
+<a id="line-236" name="line-236"></a><span class="p">{</span>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">transitioned_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-238" name="line-238"></a>
+<a id="line-239" name="line-239"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">pixbuf_cache</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-240" name="line-240"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">pixbuf_cache</span><span class="p">);</span>
+<a id="line-241" name="line-241"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">pixbuf_cache</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-242" name="line-242"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-243" name="line-243"></a>
+<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">),</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">TRANSITIONED</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-245" name="line-245"></a>
+<a id="line-246" name="line-246"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-247" name="line-247"></a><span class="p">}</span>
+<a id="line-248" name="line-248"></a>
+<a id="line-249" name="line-249"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-250" name="line-250"></a><span class="nf">queue_transitioned</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">)</span>
+<a id="line-251" name="line-251"></a><span class="p">{</span>
+<a id="line-252" name="line-252"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">transitioned_id</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-253" name="line-253"></a><span class="w"> </span><span class="n">g_source_remove</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">transitioned_id</span><span class="p">);</span>
+<a id="line-254" name="line-254"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-255" name="line-255"></a>
+<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">transitioned_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_timeout_add_full</span><span class="w"> </span><span class="p">(</span><span class="n">G_PRIORITY_LOW</span><span class="p">,</span>
+<a id="line-257" name="line-257"></a><span class="w"> </span><span class="mi">100</span><span class="p">,</span>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="p">(</span><span class="n">GSourceFunc</span><span class="p">)</span><span class="n">do_transitioned</span><span class="p">,</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">bg</span><span class="p">,</span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-261" name="line-261"></a><span class="p">}</span>
+<a id="line-262" name="line-262"></a>
+<a id="line-263" name="line-263"></a><span class="cm">/* This function loads the user&#39;s preferences */</span>
+<a id="line-264" name="line-264"></a><span class="kt">void</span>
+<a id="line-265" name="line-265"></a><span class="nf">mate_bg_load_from_preferences</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">)</span>
+<a id="line-266" name="line-266"></a><span class="p">{</span>
+<a id="line-267" name="line-267"></a><span class="w"> </span><span class="n">GSettings</span><span class="w"> </span><span class="o">*</span><span class="n">settings</span><span class="p">;</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">settings</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_new</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_BG_SCHEMA</span><span class="p">);</span>
+<a id="line-269" name="line-269"></a>
+<a id="line-270" name="line-270"></a><span class="w"> </span><span class="n">mate_bg_load_from_gsettings</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">settings</span><span class="p">);</span>
+<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">);</span>
+<a id="line-272" name="line-272"></a>
+<a id="line-273" name="line-273"></a><span class="w"> </span><span class="cm">/* Queue change to force background redraw */</span>
+<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">queue_changed</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">);</span>
+<a id="line-275" name="line-275"></a><span class="p">}</span>
+<a id="line-276" name="line-276"></a>
+<a id="line-277" name="line-277"></a><span class="cm">/* This function loads default system settings */</span>
+<a id="line-278" name="line-278"></a><span class="kt">void</span>
+<a id="line-279" name="line-279"></a><span class="nf">mate_bg_load_from_system_preferences</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">)</span>
+<a id="line-280" name="line-280"></a><span class="p">{</span>
+<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">GSettings</span><span class="w"> </span><span class="o">*</span><span class="n">settings</span><span class="p">;</span>
+<a id="line-282" name="line-282"></a>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="cm">/* FIXME: we need to bind system settings instead of user but</span>
+<a id="line-284" name="line-284"></a><span class="cm"> * that&#39;s currently impossible, not implemented yet.</span>
+<a id="line-285" name="line-285"></a><span class="cm"> * Hence, reset to system default values.</span>
+<a id="line-286" name="line-286"></a><span class="cm"> */</span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">settings</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_new</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_BG_SCHEMA</span><span class="p">);</span>
+<a id="line-288" name="line-288"></a>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="n">mate_bg_load_from_system_gsettings</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-290" name="line-290"></a>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">);</span>
+<a id="line-292" name="line-292"></a><span class="p">}</span>
+<a id="line-293" name="line-293"></a>
+<a id="line-294" name="line-294"></a><span class="cm">/* This function loads (and optionally resets to) default system settings */</span>
+<a id="line-295" name="line-295"></a><span class="kt">void</span>
+<a id="line-296" name="line-296"></a><span class="nf">mate_bg_load_from_system_gsettings</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">GSettings</span><span class="w"> </span><span class="o">*</span><span class="n">settings</span><span class="p">,</span>
+<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">reset_apply</span><span class="p">)</span>
+<a id="line-299" name="line-299"></a><span class="p">{</span>
+<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">GSettingsSchema</span><span class="w"> </span><span class="o">*</span><span class="n">schema</span><span class="p">;</span>
+<a id="line-301" name="line-301"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">keys</span><span class="p">;</span>
+<a id="line-302" name="line-302"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">k</span><span class="p">;</span>
+<a id="line-303" name="line-303"></a>
+<a id="line-304" name="line-304"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_BG</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">));</span>
+<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">G_IS_SETTINGS</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">));</span>
+<a id="line-306" name="line-306"></a>
+<a id="line-307" name="line-307"></a><span class="w"> </span><span class="n">g_settings_delay</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">);</span>
+<a id="line-308" name="line-308"></a>
+<a id="line-309" name="line-309"></a><span class="w"> </span><span class="n">g_object_get</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;settings-schema&quot;</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">schema</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-310" name="line-310"></a><span class="w"> </span><span class="n">keys</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_schema_list_keys</span><span class="w"> </span><span class="p">(</span><span class="n">schema</span><span class="p">);</span>
+<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">g_settings_schema_unref</span><span class="w"> </span><span class="p">(</span><span class="n">schema</span><span class="p">);</span>
+<a id="line-312" name="line-312"></a>
+<a id="line-313" name="line-313"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">k</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">keys</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">k</span><span class="p">;</span><span class="w"> </span><span class="n">k</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">g_settings_reset</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">k</span><span class="p">);</span>
+<a id="line-315" name="line-315"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">keys</span><span class="p">);</span>
+<a id="line-317" name="line-317"></a>
+<a id="line-318" name="line-318"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">reset_apply</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-319" name="line-319"></a><span class="w"> </span><span class="cm">/* Apply changes atomically. */</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">g_settings_apply</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">);</span>
+<a id="line-321" name="line-321"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">mate_bg_load_from_gsettings</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">settings</span><span class="p">);</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">g_settings_revert</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">);</span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-325" name="line-325"></a><span class="p">}</span>
+<a id="line-326" name="line-326"></a>
+<a id="line-327" name="line-327"></a><span class="kt">void</span>
+<a id="line-328" name="line-328"></a><span class="nf">mate_bg_load_from_gsettings</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-329" name="line-329"></a><span class="w"> </span><span class="n">GSettings</span><span class="w"> </span><span class="o">*</span><span class="n">settings</span><span class="p">)</span>
+<a id="line-330" name="line-330"></a><span class="p">{</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">tmp</span><span class="p">;</span>
+<a id="line-332" name="line-332"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">;</span>
+<a id="line-333" name="line-333"></a><span class="w"> </span><span class="n">MateBGColorType</span><span class="w"> </span><span class="n">ctype</span><span class="p">;</span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="n">c1</span><span class="p">,</span><span class="w"> </span><span class="n">c2</span><span class="p">;</span>
+<a id="line-335" name="line-335"></a><span class="w"> </span><span class="n">MateBGPlacement</span><span class="w"> </span><span class="n">placement</span><span class="p">;</span>
+<a id="line-336" name="line-336"></a>
+<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_BG</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">));</span>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">G_IS_SETTINGS</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">));</span>
+<a id="line-339" name="line-339"></a>
+<a id="line-340" name="line-340"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">is_enabled</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_BG_KEY_DRAW_BACKGROUND</span><span class="p">);</span>
+<a id="line-341" name="line-341"></a>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="cm">/* Filename */</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_BG_KEY_PICTURE_FILENAME</span><span class="p">);</span>
+<a id="line-345" name="line-345"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">tmp</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">*</span><span class="n">tmp</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="cm">/* FIXME: UTF-8 checks should go away.</span>
+<a id="line-347" name="line-347"></a><span class="cm"> * picture-filename is of type string, which can only be used for</span>
+<a id="line-348" name="line-348"></a><span class="cm"> * UTF-8 strings, and some filenames are not, dependending on the</span>
+<a id="line-349" name="line-349"></a><span class="cm"> * locale used.</span>
+<a id="line-350" name="line-350"></a><span class="cm"> * It would be better (and simpler) to change to a URI instead,</span>
+<a id="line-351" name="line-351"></a><span class="cm"> * as URIs are UTF-8 encoded strings.</span>
+<a id="line-352" name="line-352"></a><span class="cm"> */</span>
+<a id="line-353" name="line-353"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_utf8_validate</span><span class="w"> </span><span class="p">(</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">g_file_test</span><span class="w"> </span><span class="p">(</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="n">G_FILE_TEST_EXISTS</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-355" name="line-355"></a><span class="w"> </span><span class="n">filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_filename_from_utf8</span><span class="w"> </span><span class="p">(</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-359" name="line-359"></a>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="cm">/* Fallback to default BG if the filename set is non-existent */</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">!</span><span class="n">g_file_test</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="n">G_FILE_TEST_EXISTS</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-362" name="line-362"></a>
+<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-364" name="line-364"></a>
+<a id="line-365" name="line-365"></a><span class="w"> </span><span class="n">g_settings_delay</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">);</span>
+<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">g_settings_reset</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_BG_KEY_PICTURE_FILENAME</span><span class="p">);</span>
+<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_BG_KEY_PICTURE_FILENAME</span><span class="p">);</span>
+<a id="line-368" name="line-368"></a><span class="w"> </span><span class="n">g_settings_revert</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">);</span>
+<a id="line-369" name="line-369"></a>
+<a id="line-370" name="line-370"></a><span class="w"> </span><span class="c1">//* Check if default background exists, also */</span>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">!</span><span class="n">g_file_test</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="n">G_FILE_TEST_EXISTS</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-373" name="line-373"></a><span class="w"> </span><span class="n">filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-374" name="line-374"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-375" name="line-375"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-376" name="line-376"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-377" name="line-377"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span>
+<a id="line-378" name="line-378"></a>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="cm">/* Colors */</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_BG_KEY_PRIMARY_COLOR</span><span class="p">);</span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">color_from_string</span><span class="w"> </span><span class="p">(</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">c1</span><span class="p">);</span>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span>
+<a id="line-383" name="line-383"></a>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_string</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_BG_KEY_SECONDARY_COLOR</span><span class="p">);</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">color_from_string</span><span class="w"> </span><span class="p">(</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">c2</span><span class="p">);</span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span>
+<a id="line-387" name="line-387"></a>
+<a id="line-388" name="line-388"></a><span class="w"> </span><span class="cm">/* Color type */</span>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">ctype</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_enum</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_BG_KEY_COLOR_TYPE</span><span class="p">);</span>
+<a id="line-390" name="line-390"></a>
+<a id="line-391" name="line-391"></a><span class="w"> </span><span class="cm">/* Placement */</span>
+<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">placement</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_enum</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_BG_KEY_PICTURE_PLACEMENT</span><span class="p">);</span>
+<a id="line-393" name="line-393"></a>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">mate_bg_set_color</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">ctype</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">c1</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">c2</span><span class="p">);</span>
+<a id="line-395" name="line-395"></a><span class="w"> </span><span class="n">mate_bg_set_placement</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">placement</span><span class="p">);</span>
+<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">mate_bg_set_filename</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">filename</span><span class="p">);</span>
+<a id="line-397" name="line-397"></a>
+<a id="line-398" name="line-398"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-399" name="line-399"></a><span class="p">}</span>
+<a id="line-400" name="line-400"></a>
+<a id="line-401" name="line-401"></a><span class="kt">void</span>
+<a id="line-402" name="line-402"></a><span class="nf">mate_bg_save_to_preferences</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">)</span>
+<a id="line-403" name="line-403"></a><span class="p">{</span>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">GSettings</span><span class="w"> </span><span class="o">*</span><span class="n">settings</span><span class="p">;</span>
+<a id="line-405" name="line-405"></a><span class="w"> </span><span class="n">settings</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_new</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_BG_SCHEMA</span><span class="p">);</span>
+<a id="line-406" name="line-406"></a>
+<a id="line-407" name="line-407"></a><span class="w"> </span><span class="n">mate_bg_save_to_gsettings</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">settings</span><span class="p">);</span>
+<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">);</span>
+<a id="line-409" name="line-409"></a><span class="p">}</span>
+<a id="line-410" name="line-410"></a>
+<a id="line-411" name="line-411"></a><span class="kt">void</span>
+<a id="line-412" name="line-412"></a><span class="nf">mate_bg_save_to_gsettings</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-413" name="line-413"></a><span class="w"> </span><span class="n">GSettings</span><span class="w"> </span><span class="o">*</span><span class="n">settings</span><span class="p">)</span>
+<a id="line-414" name="line-414"></a><span class="p">{</span>
+<a id="line-415" name="line-415"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">primary</span><span class="p">;</span>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">secondary</span><span class="p">;</span>
+<a id="line-417" name="line-417"></a>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_BG</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">));</span>
+<a id="line-419" name="line-419"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">G_IS_SETTINGS</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">));</span>
+<a id="line-420" name="line-420"></a>
+<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">primary</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color_to_string</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">primary</span><span class="p">);</span>
+<a id="line-422" name="line-422"></a><span class="w"> </span><span class="n">secondary</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color_to_string</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">secondary</span><span class="p">);</span>
+<a id="line-423" name="line-423"></a>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">g_settings_delay</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">);</span>
+<a id="line-425" name="line-425"></a>
+<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">g_settings_set_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_BG_KEY_DRAW_BACKGROUND</span><span class="p">,</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">is_enabled</span><span class="p">);</span>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">g_settings_set_string</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_BG_KEY_PICTURE_FILENAME</span><span class="p">,</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">g_settings_set_enum</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_BG_KEY_PICTURE_PLACEMENT</span><span class="p">,</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">placement</span><span class="p">);</span>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">g_settings_set_string</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_BG_KEY_PRIMARY_COLOR</span><span class="p">,</span><span class="w"> </span><span class="n">primary</span><span class="p">);</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">g_settings_set_string</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_BG_KEY_SECONDARY_COLOR</span><span class="p">,</span><span class="w"> </span><span class="n">secondary</span><span class="p">);</span>
+<a id="line-431" name="line-431"></a><span class="w"> </span><span class="n">g_settings_set_enum</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="n">MATE_BG_KEY_COLOR_TYPE</span><span class="p">,</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">color_type</span><span class="p">);</span>
+<a id="line-432" name="line-432"></a>
+<a id="line-433" name="line-433"></a><span class="w"> </span><span class="cm">/* Apply changes atomically. */</span>
+<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">g_settings_apply</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">);</span>
+<a id="line-435" name="line-435"></a>
+<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">primary</span><span class="p">);</span>
+<a id="line-437" name="line-437"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">secondary</span><span class="p">);</span>
+<a id="line-438" name="line-438"></a><span class="p">}</span>
+<a id="line-439" name="line-439"></a>
+<a id="line-440" name="line-440"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-441" name="line-441"></a><span class="nf">mate_bg_init</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">)</span>
+<a id="line-442" name="line-442"></a><span class="p">{</span>
+<a id="line-443" name="line-443"></a><span class="p">}</span>
+<a id="line-444" name="line-444"></a>
+<a id="line-445" name="line-445"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-446" name="line-446"></a><span class="nf">mate_bg_dispose</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span>
+<a id="line-447" name="line-447"></a><span class="p">{</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_BG</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-449" name="line-449"></a>
+<a id="line-450" name="line-450"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">file_monitor</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-451" name="line-451"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">file_monitor</span><span class="p">);</span>
+<a id="line-452" name="line-452"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">file_monitor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-453" name="line-453"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-454" name="line-454"></a>
+<a id="line-455" name="line-455"></a><span class="w"> </span><span class="n">clear_cache</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">);</span>
+<a id="line-456" name="line-456"></a>
+<a id="line-457" name="line-457"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">mate_bg_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">dispose</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-458" name="line-458"></a><span class="p">}</span>
+<a id="line-459" name="line-459"></a>
+<a id="line-460" name="line-460"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-461" name="line-461"></a><span class="nf">mate_bg_finalize</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span>
+<a id="line-462" name="line-462"></a><span class="p">{</span>
+<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_BG</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-464" name="line-464"></a>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">changed_id</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-466" name="line-466"></a><span class="w"> </span><span class="n">g_source_remove</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">changed_id</span><span class="p">);</span>
+<a id="line-467" name="line-467"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">changed_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-469" name="line-469"></a>
+<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">transitioned_id</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-471" name="line-471"></a><span class="w"> </span><span class="n">g_source_remove</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">transitioned_id</span><span class="p">);</span>
+<a id="line-472" name="line-472"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">transitioned_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-474" name="line-474"></a>
+<a id="line-475" name="line-475"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">blow_caches_id</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-476" name="line-476"></a><span class="w"> </span><span class="n">g_source_remove</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">blow_caches_id</span><span class="p">);</span>
+<a id="line-477" name="line-477"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">blow_caches_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-478" name="line-478"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-479" name="line-479"></a>
+<a id="line-480" name="line-480"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-481" name="line-481"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-482" name="line-482"></a>
+<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">mate_bg_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-484" name="line-484"></a><span class="p">}</span>
+<a id="line-485" name="line-485"></a>
+<a id="line-486" name="line-486"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-487" name="line-487"></a><span class="nf">mate_bg_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">MateBGClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span>
+<a id="line-488" name="line-488"></a><span class="p">{</span>
+<a id="line-489" name="line-489"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">object_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">klass</span><span class="p">);</span>
+<a id="line-490" name="line-490"></a>
+<a id="line-491" name="line-491"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-&gt;</span><span class="n">dispose</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_bg_dispose</span><span class="p">;</span>
+<a id="line-492" name="line-492"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_bg_finalize</span><span class="p">;</span>
+<a id="line-493" name="line-493"></a>
+<a id="line-494" name="line-494"></a><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">CHANGED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;changed&quot;</span><span class="p">,</span>
+<a id="line-495" name="line-495"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">object_class</span><span class="p">),</span>
+<a id="line-496" name="line-496"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span>
+<a id="line-497" name="line-497"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
+<a id="line-498" name="line-498"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-499" name="line-499"></a><span class="w"> </span><span class="n">g_cclosure_marshal_VOID__VOID</span><span class="p">,</span>
+<a id="line-500" name="line-500"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-501" name="line-501"></a>
+<a id="line-502" name="line-502"></a><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">TRANSITIONED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;transitioned&quot;</span><span class="p">,</span>
+<a id="line-503" name="line-503"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">object_class</span><span class="p">),</span>
+<a id="line-504" name="line-504"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span>
+<a id="line-505" name="line-505"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
+<a id="line-506" name="line-506"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-507" name="line-507"></a><span class="w"> </span><span class="n">g_cclosure_marshal_VOID__VOID</span><span class="p">,</span>
+<a id="line-508" name="line-508"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-509" name="line-509"></a><span class="p">}</span>
+<a id="line-510" name="line-510"></a>
+<a id="line-511" name="line-511"></a><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span>
+<a id="line-512" name="line-512"></a><span class="nf">mate_bg_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-513" name="line-513"></a><span class="p">{</span>
+<a id="line-514" name="line-514"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_TYPE_BG</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-515" name="line-515"></a><span class="p">}</span>
+<a id="line-516" name="line-516"></a>
+<a id="line-517" name="line-517"></a><span class="kt">void</span>
+<a id="line-518" name="line-518"></a><span class="nf">mate_bg_set_color</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-519" name="line-519"></a><span class="w"> </span><span class="n">MateBGColorType</span><span class="w"> </span><span class="n">type</span><span class="p">,</span>
+<a id="line-520" name="line-520"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">primary</span><span class="p">,</span>
+<a id="line-521" name="line-521"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">secondary</span><span class="p">)</span>
+<a id="line-522" name="line-522"></a><span class="p">{</span>
+<a id="line-523" name="line-523"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-524" name="line-524"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">primary</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-525" name="line-525"></a>
+<a id="line-526" name="line-526"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">color_type</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">||</span>
+<a id="line-527" name="line-527"></a><span class="w"> </span><span class="o">!</span><span class="n">gdk_rgba_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">primary</span><span class="p">,</span><span class="w"> </span><span class="n">primary</span><span class="p">)</span><span class="w"> </span><span class="o">||</span>
+<a id="line-528" name="line-528"></a><span class="w"> </span><span class="p">(</span><span class="n">secondary</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">!</span><span class="n">gdk_rgba_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">secondary</span><span class="p">,</span><span class="w"> </span><span class="n">secondary</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-529" name="line-529"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">color_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">type</span><span class="p">;</span>
+<a id="line-530" name="line-530"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">primary</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">primary</span><span class="p">;</span>
+<a id="line-531" name="line-531"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">secondary</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-532" name="line-532"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">secondary</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">secondary</span><span class="p">;</span>
+<a id="line-533" name="line-533"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-534" name="line-534"></a>
+<a id="line-535" name="line-535"></a><span class="w"> </span><span class="n">queue_changed</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">);</span>
+<a id="line-536" name="line-536"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-537" name="line-537"></a><span class="p">}</span>
+<a id="line-538" name="line-538"></a>
+<a id="line-539" name="line-539"></a><span class="kt">void</span>
+<a id="line-540" name="line-540"></a><span class="nf">mate_bg_set_placement</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-541" name="line-541"></a><span class="w"> </span><span class="n">MateBGPlacement</span><span class="w"> </span><span class="n">placement</span><span class="p">)</span>
+<a id="line-542" name="line-542"></a><span class="p">{</span>
+<a id="line-543" name="line-543"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-544" name="line-544"></a>
+<a id="line-545" name="line-545"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">placement</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">placement</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-546" name="line-546"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">placement</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">placement</span><span class="p">;</span>
+<a id="line-547" name="line-547"></a>
+<a id="line-548" name="line-548"></a><span class="w"> </span><span class="n">queue_changed</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">);</span>
+<a id="line-549" name="line-549"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-550" name="line-550"></a><span class="p">}</span>
+<a id="line-551" name="line-551"></a>
+<a id="line-552" name="line-552"></a><span class="n">MateBGPlacement</span>
+<a id="line-553" name="line-553"></a><span class="nf">mate_bg_get_placement</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">)</span>
+<a id="line-554" name="line-554"></a><span class="p">{</span>
+<a id="line-555" name="line-555"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span>
+<a id="line-556" name="line-556"></a>
+<a id="line-557" name="line-557"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">placement</span><span class="p">;</span>
+<a id="line-558" name="line-558"></a><span class="p">}</span>
+<a id="line-559" name="line-559"></a>
+<a id="line-560" name="line-560"></a><span class="kt">void</span>
+<a id="line-561" name="line-561"></a><span class="nf">mate_bg_get_color</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-562" name="line-562"></a><span class="w"> </span><span class="n">MateBGColorType</span><span class="w"> </span><span class="o">*</span><span class="n">type</span><span class="p">,</span>
+<a id="line-563" name="line-563"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">primary</span><span class="p">,</span>
+<a id="line-564" name="line-564"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">secondary</span><span class="p">)</span>
+<a id="line-565" name="line-565"></a><span class="p">{</span>
+<a id="line-566" name="line-566"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-567" name="line-567"></a>
+<a id="line-568" name="line-568"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">type</span><span class="p">)</span>
+<a id="line-569" name="line-569"></a><span class="w"> </span><span class="o">*</span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">color_type</span><span class="p">;</span>
+<a id="line-570" name="line-570"></a>
+<a id="line-571" name="line-571"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">primary</span><span class="p">)</span>
+<a id="line-572" name="line-572"></a><span class="w"> </span><span class="o">*</span><span class="n">primary</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">primary</span><span class="p">;</span>
+<a id="line-573" name="line-573"></a>
+<a id="line-574" name="line-574"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">secondary</span><span class="p">)</span>
+<a id="line-575" name="line-575"></a><span class="w"> </span><span class="o">*</span><span class="n">secondary</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">secondary</span><span class="p">;</span>
+<a id="line-576" name="line-576"></a><span class="p">}</span>
+<a id="line-577" name="line-577"></a>
+<a id="line-578" name="line-578"></a><span class="kt">void</span>
+<a id="line-579" name="line-579"></a><span class="nf">mate_bg_set_draw_background</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-580" name="line-580"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">draw_background</span><span class="p">)</span>
+<a id="line-581" name="line-581"></a><span class="p">{</span>
+<a id="line-582" name="line-582"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-583" name="line-583"></a>
+<a id="line-584" name="line-584"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">is_enabled</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">draw_background</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-585" name="line-585"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">is_enabled</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">draw_background</span><span class="p">;</span>
+<a id="line-586" name="line-586"></a>
+<a id="line-587" name="line-587"></a><span class="w"> </span><span class="n">queue_changed</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">);</span>
+<a id="line-588" name="line-588"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-589" name="line-589"></a><span class="p">}</span>
+<a id="line-590" name="line-590"></a>
+<a id="line-591" name="line-591"></a><span class="n">gboolean</span>
+<a id="line-592" name="line-592"></a><span class="nf">mate_bg_get_draw_background</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">)</span>
+<a id="line-593" name="line-593"></a><span class="p">{</span>
+<a id="line-594" name="line-594"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-595" name="line-595"></a>
+<a id="line-596" name="line-596"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">is_enabled</span><span class="p">;</span>
+<a id="line-597" name="line-597"></a><span class="p">}</span>
+<a id="line-598" name="line-598"></a>
+<a id="line-599" name="line-599"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span>
+<a id="line-600" name="line-600"></a><span class="nf">mate_bg_get_filename</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">)</span>
+<a id="line-601" name="line-601"></a><span class="p">{</span>
+<a id="line-602" name="line-602"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-603" name="line-603"></a>
+<a id="line-604" name="line-604"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">;</span>
+<a id="line-605" name="line-605"></a><span class="p">}</span>
+<a id="line-606" name="line-606"></a>
+<a id="line-607" name="line-607"></a><span class="k">static</span><span class="w"> </span><span class="kr">inline</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span>
+<a id="line-608" name="line-608"></a><span class="nf">get_wallpaper_cache_dir</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-609" name="line-609"></a><span class="p">{</span>
+<a id="line-610" name="line-610"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_build_filename</span><span class="w"> </span><span class="p">(</span><span class="n">g_get_user_cache_dir</span><span class="p">(),</span><span class="w"> </span><span class="n">MATE_BG_CACHE_DIR</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-611" name="line-611"></a><span class="p">}</span>
+<a id="line-612" name="line-612"></a>
+<a id="line-613" name="line-613"></a><span class="k">static</span><span class="w"> </span><span class="kr">inline</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span>
+<a id="line-614" name="line-614"></a><span class="nf">get_wallpaper_cache_prefix_name</span><span class="w"> </span><span class="p">(</span><span class="n">gint</span><span class="w"> </span><span class="n">num_monitor</span><span class="p">,</span>
+<a id="line-615" name="line-615"></a><span class="w"> </span><span class="n">MateBGPlacement</span><span class="w"> </span><span class="n">placement</span><span class="p">,</span>
+<a id="line-616" name="line-616"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">width</span><span class="p">,</span>
+<a id="line-617" name="line-617"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">height</span><span class="p">)</span>
+<a id="line-618" name="line-618"></a><span class="p">{</span>
+<a id="line-619" name="line-619"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;%i_%i_%i_%i&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">num_monitor</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gint</span><span class="p">)</span><span class="w"> </span><span class="n">placement</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">);</span>
+<a id="line-620" name="line-620"></a><span class="p">}</span>
+<a id="line-621" name="line-621"></a>
+<a id="line-622" name="line-622"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-623" name="line-623"></a><span class="nf">get_wallpaper_cache_filename</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">,</span>
+<a id="line-624" name="line-624"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">num_monitor</span><span class="p">,</span>
+<a id="line-625" name="line-625"></a><span class="w"> </span><span class="n">MateBGPlacement</span><span class="w"> </span><span class="n">placement</span><span class="p">,</span>
+<a id="line-626" name="line-626"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">width</span><span class="p">,</span>
+<a id="line-627" name="line-627"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">height</span><span class="p">)</span>
+<a id="line-628" name="line-628"></a><span class="p">{</span>
+<a id="line-629" name="line-629"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">cache_filename</span><span class="p">;</span>
+<a id="line-630" name="line-630"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">cache_prefix_name</span><span class="p">;</span>
+<a id="line-631" name="line-631"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">md5_filename</span><span class="p">;</span>
+<a id="line-632" name="line-632"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">cache_basename</span><span class="p">;</span>
+<a id="line-633" name="line-633"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">cache_dir</span><span class="p">;</span>
+<a id="line-634" name="line-634"></a>
+<a id="line-635" name="line-635"></a><span class="w"> </span><span class="n">md5_filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_compute_checksum_for_data</span><span class="w"> </span><span class="p">(</span><span class="n">G_CHECKSUM_MD5</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">filename</span><span class="p">,</span>
+<a id="line-636" name="line-636"></a><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">));</span>
+<a id="line-637" name="line-637"></a><span class="w"> </span><span class="n">cache_prefix_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_wallpaper_cache_prefix_name</span><span class="w"> </span><span class="p">(</span><span class="n">num_monitor</span><span class="p">,</span><span class="w"> </span><span class="n">placement</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">);</span>
+<a id="line-638" name="line-638"></a><span class="w"> </span><span class="n">cache_basename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;%s_%s&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">cache_prefix_name</span><span class="p">,</span><span class="w"> </span><span class="n">md5_filename</span><span class="p">);</span>
+<a id="line-639" name="line-639"></a><span class="w"> </span><span class="n">cache_dir</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_wallpaper_cache_dir</span><span class="w"> </span><span class="p">();</span>
+<a id="line-640" name="line-640"></a><span class="w"> </span><span class="n">cache_filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_build_filename</span><span class="w"> </span><span class="p">(</span><span class="n">cache_dir</span><span class="p">,</span><span class="w"> </span><span class="n">cache_basename</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-641" name="line-641"></a>
+<a id="line-642" name="line-642"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">cache_prefix_name</span><span class="p">);</span>
+<a id="line-643" name="line-643"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">md5_filename</span><span class="p">);</span>
+<a id="line-644" name="line-644"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">cache_basename</span><span class="p">);</span>
+<a id="line-645" name="line-645"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">cache_dir</span><span class="p">);</span>
+<a id="line-646" name="line-646"></a>
+<a id="line-647" name="line-647"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">cache_filename</span><span class="p">;</span>
+<a id="line-648" name="line-648"></a><span class="p">}</span>
+<a id="line-649" name="line-649"></a>
+<a id="line-650" name="line-650"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-651" name="line-651"></a><span class="nf">cleanup_cache_for_monitor</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">cache_dir</span><span class="p">,</span>
+<a id="line-652" name="line-652"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">num_monitor</span><span class="p">)</span>
+<a id="line-653" name="line-653"></a><span class="p">{</span>
+<a id="line-654" name="line-654"></a><span class="w"> </span><span class="n">GDir</span><span class="w"> </span><span class="o">*</span><span class="n">g_cache_dir</span><span class="p">;</span>
+<a id="line-655" name="line-655"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">monitor_prefix</span><span class="p">;</span>
+<a id="line-656" name="line-656"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span>
+<a id="line-657" name="line-657"></a>
+<a id="line-658" name="line-658"></a><span class="w"> </span><span class="n">g_cache_dir</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dir_open</span><span class="w"> </span><span class="p">(</span><span class="n">cache_dir</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-659" name="line-659"></a><span class="w"> </span><span class="n">monitor_prefix</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;%i_&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">num_monitor</span><span class="p">);</span>
+<a id="line-660" name="line-660"></a>
+<a id="line-661" name="line-661"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dir_read_name</span><span class="w"> </span><span class="p">(</span><span class="n">g_cache_dir</span><span class="p">);</span>
+<a id="line-662" name="line-662"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-663" name="line-663"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_build_filename</span><span class="w"> </span><span class="p">(</span><span class="n">cache_dir</span><span class="p">,</span><span class="w"> </span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-664" name="line-664"></a>
+<a id="line-665" name="line-665"></a><span class="w"> </span><span class="cm">/* purge files with same monitor id */</span>
+<a id="line-666" name="line-666"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_str_has_prefix</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="n">monitor_prefix</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-667" name="line-667"></a><span class="w"> </span><span class="n">g_file_test</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="n">G_FILE_TEST_IS_REGULAR</span><span class="p">))</span>
+<a id="line-668" name="line-668"></a><span class="w"> </span><span class="n">g_unlink</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span>
+<a id="line-669" name="line-669"></a>
+<a id="line-670" name="line-670"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">path</span><span class="p">);</span>
+<a id="line-671" name="line-671"></a>
+<a id="line-672" name="line-672"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_dir_read_name</span><span class="w"> </span><span class="p">(</span><span class="n">g_cache_dir</span><span class="p">);</span>
+<a id="line-673" name="line-673"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-674" name="line-674"></a>
+<a id="line-675" name="line-675"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">monitor_prefix</span><span class="p">);</span>
+<a id="line-676" name="line-676"></a><span class="w"> </span><span class="n">g_dir_close</span><span class="w"> </span><span class="p">(</span><span class="n">g_cache_dir</span><span class="p">);</span>
+<a id="line-677" name="line-677"></a><span class="p">}</span>
+<a id="line-678" name="line-678"></a>
+<a id="line-679" name="line-679"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-680" name="line-680"></a><span class="nf">cache_file_is_valid</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">,</span>
+<a id="line-681" name="line-681"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">cache_filename</span><span class="p">)</span>
+<a id="line-682" name="line-682"></a><span class="p">{</span>
+<a id="line-683" name="line-683"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_file_test</span><span class="w"> </span><span class="p">(</span><span class="n">cache_filename</span><span class="p">,</span><span class="w"> </span><span class="n">G_FILE_TEST_IS_REGULAR</span><span class="p">))</span>
+<a id="line-684" name="line-684"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-685" name="line-685"></a>
+<a id="line-686" name="line-686"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">get_mtime</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">get_mtime</span><span class="w"> </span><span class="p">(</span><span class="n">cache_filename</span><span class="p">));</span>
+<a id="line-687" name="line-687"></a><span class="p">}</span>
+<a id="line-688" name="line-688"></a>
+<a id="line-689" name="line-689"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-690" name="line-690"></a><span class="nf">refresh_cache_file</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-691" name="line-691"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">new_pixbuf</span><span class="p">,</span>
+<a id="line-692" name="line-692"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">num_monitor</span><span class="p">,</span>
+<a id="line-693" name="line-693"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">width</span><span class="p">,</span>
+<a id="line-694" name="line-694"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">height</span><span class="p">)</span>
+<a id="line-695" name="line-695"></a><span class="p">{</span>
+<a id="line-696" name="line-696"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">cache_filename</span><span class="p">;</span>
+<a id="line-697" name="line-697"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">cache_dir</span><span class="p">;</span>
+<a id="line-698" name="line-698"></a><span class="w"> </span><span class="n">GdkPixbufFormat</span><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="p">;</span>
+<a id="line-699" name="line-699"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">format_name</span><span class="p">;</span>
+<a id="line-700" name="line-700"></a>
+<a id="line-701" name="line-701"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">num_monitor</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">-1</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="p">(</span><span class="n">width</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="mi">300</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="p">(</span><span class="n">height</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="mi">300</span><span class="p">))</span>
+<a id="line-702" name="line-702"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-703" name="line-703"></a>
+<a id="line-704" name="line-704"></a><span class="w"> </span><span class="n">cache_filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_wallpaper_cache_filename</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="n">num_monitor</span><span class="p">,</span>
+<a id="line-705" name="line-705"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">placement</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">);</span>
+<a id="line-706" name="line-706"></a><span class="w"> </span><span class="n">cache_dir</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_wallpaper_cache_dir</span><span class="w"> </span><span class="p">();</span>
+<a id="line-707" name="line-707"></a>
+<a id="line-708" name="line-708"></a><span class="w"> </span><span class="cm">/* Only refresh scaled file on disk if useful (and don&#39;t cache slideshow) */</span>
+<a id="line-709" name="line-709"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">cache_file_is_valid</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="n">cache_filename</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-710" name="line-710"></a><span class="w"> </span><span class="n">format</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_file_info</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-711" name="line-711"></a>
+<a id="line-712" name="line-712"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">format</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-713" name="line-713"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_file_test</span><span class="w"> </span><span class="p">(</span><span class="n">cache_dir</span><span class="p">,</span><span class="w"> </span><span class="n">G_FILE_TEST_IS_DIR</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-714" name="line-714"></a><span class="w"> </span><span class="n">g_mkdir_with_parents</span><span class="w"> </span><span class="p">(</span><span class="n">cache_dir</span><span class="p">,</span><span class="w"> </span><span class="mo">0700</span><span class="p">);</span>
+<a id="line-715" name="line-715"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-716" name="line-716"></a><span class="w"> </span><span class="n">cleanup_cache_for_monitor</span><span class="w"> </span><span class="p">(</span><span class="n">cache_dir</span><span class="p">,</span><span class="w"> </span><span class="n">num_monitor</span><span class="p">);</span>
+<a id="line-717" name="line-717"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-718" name="line-718"></a>
+<a id="line-719" name="line-719"></a><span class="w"> </span><span class="n">format_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_format_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">format</span><span class="p">);</span>
+<a id="line-720" name="line-720"></a>
+<a id="line-721" name="line-721"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">format_name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;jpeg&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-722" name="line-722"></a><span class="w"> </span><span class="n">gdk_pixbuf_save</span><span class="w"> </span><span class="p">(</span><span class="n">new_pixbuf</span><span class="p">,</span><span class="w"> </span><span class="n">cache_filename</span><span class="p">,</span><span class="w"> </span><span class="n">format_name</span><span class="p">,</span>
+<a id="line-723" name="line-723"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;quality&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;100&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-724" name="line-724"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-725" name="line-725"></a><span class="w"> </span><span class="n">gdk_pixbuf_save</span><span class="w"> </span><span class="p">(</span><span class="n">new_pixbuf</span><span class="p">,</span><span class="w"> </span><span class="n">cache_filename</span><span class="p">,</span><span class="w"> </span><span class="n">format_name</span><span class="p">,</span>
+<a id="line-726" name="line-726"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-727" name="line-727"></a>
+<a id="line-728" name="line-728"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">format_name</span><span class="p">);</span>
+<a id="line-729" name="line-729"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-730" name="line-730"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-731" name="line-731"></a>
+<a id="line-732" name="line-732"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">cache_filename</span><span class="p">);</span>
+<a id="line-733" name="line-733"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">cache_dir</span><span class="p">);</span>
+<a id="line-734" name="line-734"></a><span class="p">}</span>
+<a id="line-735" name="line-735"></a>
+<a id="line-736" name="line-736"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-737" name="line-737"></a><span class="nf">file_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GFileMonitor</span><span class="w"> </span><span class="o">*</span><span class="n">file_monitor</span><span class="p">,</span>
+<a id="line-738" name="line-738"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">child</span><span class="p">,</span>
+<a id="line-739" name="line-739"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">other_file</span><span class="p">,</span>
+<a id="line-740" name="line-740"></a><span class="w"> </span><span class="n">GFileMonitorEvent</span><span class="w"> </span><span class="n">event_type</span><span class="p">,</span>
+<a id="line-741" name="line-741"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span>
+<a id="line-742" name="line-742"></a><span class="p">{</span>
+<a id="line-743" name="line-743"></a><span class="w"> </span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_BG</span><span class="w"> </span><span class="p">(</span><span class="n">user_data</span><span class="p">);</span>
+<a id="line-744" name="line-744"></a>
+<a id="line-745" name="line-745"></a><span class="w"> </span><span class="n">clear_cache</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">);</span>
+<a id="line-746" name="line-746"></a><span class="w"> </span><span class="n">queue_changed</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">);</span>
+<a id="line-747" name="line-747"></a><span class="p">}</span>
+<a id="line-748" name="line-748"></a>
+<a id="line-749" name="line-749"></a><span class="kt">void</span>
+<a id="line-750" name="line-750"></a><span class="nf">mate_bg_set_filename</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-751" name="line-751"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">)</span>
+<a id="line-752" name="line-752"></a><span class="p">{</span>
+<a id="line-753" name="line-753"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-754" name="line-754"></a>
+<a id="line-755" name="line-755"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">is_different</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">filename</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-756" name="line-756"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-757" name="line-757"></a>
+<a id="line-758" name="line-758"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-759" name="line-759"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">file_mtime</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_mtime</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-760" name="line-760"></a>
+<a id="line-761" name="line-761"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">file_monitor</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-762" name="line-762"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">file_monitor</span><span class="p">);</span>
+<a id="line-763" name="line-763"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">file_monitor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-764" name="line-764"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-765" name="line-765"></a>
+<a id="line-766" name="line-766"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-767" name="line-767"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">f</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_new_for_path</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-768" name="line-768"></a>
+<a id="line-769" name="line-769"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">file_monitor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_monitor_file</span><span class="w"> </span><span class="p">(</span><span class="n">f</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-770" name="line-770"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">file_monitor</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span>
+<a id="line-771" name="line-771"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">file_changed</span><span class="p">),</span><span class="w"> </span><span class="n">bg</span><span class="p">);</span>
+<a id="line-772" name="line-772"></a>
+<a id="line-773" name="line-773"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">f</span><span class="p">);</span>
+<a id="line-774" name="line-774"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-775" name="line-775"></a>
+<a id="line-776" name="line-776"></a><span class="w"> </span><span class="n">clear_cache</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">);</span>
+<a id="line-777" name="line-777"></a>
+<a id="line-778" name="line-778"></a><span class="w"> </span><span class="n">queue_changed</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">);</span>
+<a id="line-779" name="line-779"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-780" name="line-780"></a><span class="p">}</span>
+<a id="line-781" name="line-781"></a>
+<a id="line-782" name="line-782"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-783" name="line-783"></a><span class="nf">draw_color_area</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-784" name="line-784"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">dest</span><span class="p">,</span>
+<a id="line-785" name="line-785"></a><span class="w"> </span><span class="n">GdkRectangle</span><span class="w"> </span><span class="o">*</span><span class="n">rect</span><span class="p">)</span>
+<a id="line-786" name="line-786"></a><span class="p">{</span>
+<a id="line-787" name="line-787"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">pixel</span><span class="p">;</span>
+<a id="line-788" name="line-788"></a><span class="w"> </span><span class="n">GdkRectangle</span><span class="w"> </span><span class="n">extent</span><span class="p">;</span>
+<a id="line-789" name="line-789"></a>
+<a id="line-790" name="line-790"></a><span class="w"> </span><span class="n">extent</span><span class="p">.</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-791" name="line-791"></a><span class="w"> </span><span class="n">extent</span><span class="p">.</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-792" name="line-792"></a><span class="w"> </span><span class="n">extent</span><span class="p">.</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">dest</span><span class="p">);</span>
+<a id="line-793" name="line-793"></a><span class="w"> </span><span class="n">extent</span><span class="p">.</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">dest</span><span class="p">);</span>
+<a id="line-794" name="line-794"></a>
+<a id="line-795" name="line-795"></a><span class="w"> </span><span class="n">gdk_rectangle_intersect</span><span class="w"> </span><span class="p">(</span><span class="n">rect</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">extent</span><span class="p">,</span><span class="w"> </span><span class="n">rect</span><span class="p">);</span>
+<a id="line-796" name="line-796"></a>
+<a id="line-797" name="line-797"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">color_type</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-798" name="line-798"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MATE_BG_COLOR_SOLID</span><span class="p">:</span>
+<a id="line-799" name="line-799"></a><span class="w"> </span><span class="cm">/* not really a big deal to ignore the area of interest */</span>
+<a id="line-800" name="line-800"></a><span class="w"> </span><span class="n">pixel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">((</span><span class="n">guint</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">primary</span><span class="p">.</span><span class="n">red</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mh">0xff</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">24</span><span class="p">)</span><span class="w"> </span><span class="o">|</span>
+<a id="line-801" name="line-801"></a><span class="w"> </span><span class="p">((</span><span class="n">guint</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">primary</span><span class="p">.</span><span class="n">green</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mh">0xff</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">16</span><span class="p">)</span><span class="w"> </span><span class="o">|</span>
+<a id="line-802" name="line-802"></a><span class="w"> </span><span class="p">((</span><span class="n">guint</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">primary</span><span class="p">.</span><span class="n">blue</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mh">0xff</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">8</span><span class="p">)</span><span class="w"> </span><span class="o">|</span>
+<a id="line-803" name="line-803"></a><span class="w"> </span><span class="p">(</span><span class="mh">0xff</span><span class="p">);</span>
+<a id="line-804" name="line-804"></a>
+<a id="line-805" name="line-805"></a><span class="w"> </span><span class="n">gdk_pixbuf_fill</span><span class="w"> </span><span class="p">(</span><span class="n">dest</span><span class="p">,</span><span class="w"> </span><span class="n">pixel</span><span class="p">);</span>
+<a id="line-806" name="line-806"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-807" name="line-807"></a>
+<a id="line-808" name="line-808"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MATE_BG_COLOR_H_GRADIENT</span><span class="p">:</span>
+<a id="line-809" name="line-809"></a><span class="w"> </span><span class="n">pixbuf_draw_gradient</span><span class="w"> </span><span class="p">(</span><span class="n">dest</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">primary</span><span class="p">),</span><span class="w"> </span><span class="o">&amp;</span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">secondary</span><span class="p">),</span><span class="w"> </span><span class="n">rect</span><span class="p">);</span>
+<a id="line-810" name="line-810"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-811" name="line-811"></a>
+<a id="line-812" name="line-812"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MATE_BG_COLOR_V_GRADIENT</span><span class="p">:</span>
+<a id="line-813" name="line-813"></a><span class="w"> </span><span class="n">pixbuf_draw_gradient</span><span class="w"> </span><span class="p">(</span><span class="n">dest</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">primary</span><span class="p">),</span><span class="w"> </span><span class="o">&amp;</span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">secondary</span><span class="p">),</span><span class="w"> </span><span class="n">rect</span><span class="p">);</span>
+<a id="line-814" name="line-814"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-815" name="line-815"></a>
+<a id="line-816" name="line-816"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-817" name="line-817"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-818" name="line-818"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-819" name="line-819"></a><span class="p">}</span>
+<a id="line-820" name="line-820"></a>
+<a id="line-821" name="line-821"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-822" name="line-822"></a><span class="nf">draw_color</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-823" name="line-823"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">dest</span><span class="p">)</span>
+<a id="line-824" name="line-824"></a><span class="p">{</span>
+<a id="line-825" name="line-825"></a><span class="w"> </span><span class="n">GdkRectangle</span><span class="w"> </span><span class="n">rect</span><span class="p">;</span>
+<a id="line-826" name="line-826"></a>
+<a id="line-827" name="line-827"></a><span class="w"> </span><span class="n">rect</span><span class="p">.</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-828" name="line-828"></a><span class="w"> </span><span class="n">rect</span><span class="p">.</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-829" name="line-829"></a><span class="w"> </span><span class="n">rect</span><span class="p">.</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">dest</span><span class="p">);</span>
+<a id="line-830" name="line-830"></a><span class="w"> </span><span class="n">rect</span><span class="p">.</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">dest</span><span class="p">);</span>
+<a id="line-831" name="line-831"></a><span class="w"> </span><span class="n">draw_color_area</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">dest</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">rect</span><span class="p">);</span>
+<a id="line-832" name="line-832"></a><span class="p">}</span>
+<a id="line-833" name="line-833"></a>
+<a id="line-834" name="line-834"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-835" name="line-835"></a><span class="nf">draw_color_each_monitor</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-836" name="line-836"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">dest</span><span class="p">,</span>
+<a id="line-837" name="line-837"></a><span class="w"> </span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">)</span>
+<a id="line-838" name="line-838"></a><span class="p">{</span>
+<a id="line-839" name="line-839"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">;</span>
+<a id="line-840" name="line-840"></a><span class="w"> </span><span class="n">GdkRectangle</span><span class="w"> </span><span class="n">rect</span><span class="p">;</span>
+<a id="line-841" name="line-841"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">num_monitors</span><span class="p">;</span>
+<a id="line-842" name="line-842"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">monitor</span><span class="p">;</span>
+<a id="line-843" name="line-843"></a>
+<a id="line-844" name="line-844"></a><span class="w"> </span><span class="n">display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_screen_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">);</span>
+<a id="line-845" name="line-845"></a><span class="w"> </span><span class="n">num_monitors</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_display_get_n_monitors</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-846" name="line-846"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">monitor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">monitor</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">num_monitors</span><span class="p">;</span><span class="w"> </span><span class="n">monitor</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-847" name="line-847"></a><span class="w"> </span><span class="n">gdk_monitor_get_geometry</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_display_get_monitor</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="n">monitor</span><span class="p">),</span><span class="w"> </span><span class="o">&amp;</span><span class="n">rect</span><span class="p">);</span>
+<a id="line-848" name="line-848"></a><span class="w"> </span><span class="n">draw_color_area</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">dest</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">rect</span><span class="p">);</span>
+<a id="line-849" name="line-849"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-850" name="line-850"></a><span class="p">}</span>
+<a id="line-851" name="line-851"></a>
+<a id="line-852" name="line-852"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span>
+<a id="line-853" name="line-853"></a><span class="nf">pixbuf_clip_to_fit</span><span class="w"> </span><span class="p">(</span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">src</span><span class="p">,</span>
+<a id="line-854" name="line-854"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">max_width</span><span class="p">,</span>
+<a id="line-855" name="line-855"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">max_height</span><span class="p">)</span>
+<a id="line-856" name="line-856"></a><span class="p">{</span>
+<a id="line-857" name="line-857"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">src_width</span><span class="p">,</span><span class="w"> </span><span class="n">src_height</span><span class="p">;</span>
+<a id="line-858" name="line-858"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">w</span><span class="p">,</span><span class="w"> </span><span class="n">h</span><span class="p">;</span>
+<a id="line-859" name="line-859"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">src_x</span><span class="p">,</span><span class="w"> </span><span class="n">src_y</span><span class="p">;</span>
+<a id="line-860" name="line-860"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-861" name="line-861"></a>
+<a id="line-862" name="line-862"></a><span class="w"> </span><span class="n">src_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">src</span><span class="p">);</span>
+<a id="line-863" name="line-863"></a><span class="w"> </span><span class="n">src_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">src</span><span class="p">);</span>
+<a id="line-864" name="line-864"></a>
+<a id="line-865" name="line-865"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">src_width</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">max_width</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">src_height</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">max_height</span><span class="p">)</span>
+<a id="line-866" name="line-866"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">src</span><span class="p">);</span>
+<a id="line-867" name="line-867"></a>
+<a id="line-868" name="line-868"></a><span class="w"> </span><span class="n">w</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MIN</span><span class="p">(</span><span class="n">src_width</span><span class="p">,</span><span class="w"> </span><span class="n">max_width</span><span class="p">);</span>
+<a id="line-869" name="line-869"></a><span class="w"> </span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MIN</span><span class="p">(</span><span class="n">src_height</span><span class="p">,</span><span class="w"> </span><span class="n">max_height</span><span class="p">);</span>
+<a id="line-870" name="line-870"></a>
+<a id="line-871" name="line-871"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_COLORSPACE_RGB</span><span class="p">,</span>
+<a id="line-872" name="line-872"></a><span class="w"> </span><span class="n">gdk_pixbuf_get_has_alpha</span><span class="w"> </span><span class="p">(</span><span class="n">src</span><span class="p">),</span>
+<a id="line-873" name="line-873"></a><span class="w"> </span><span class="mi">8</span><span class="p">,</span><span class="w"> </span><span class="n">w</span><span class="p">,</span><span class="w"> </span><span class="n">h</span><span class="p">);</span>
+<a id="line-874" name="line-874"></a>
+<a id="line-875" name="line-875"></a><span class="w"> </span><span class="n">src_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">src_width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">w</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span>
+<a id="line-876" name="line-876"></a><span class="w"> </span><span class="n">src_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">src_height</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">h</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span>
+<a id="line-877" name="line-877"></a><span class="w"> </span><span class="n">gdk_pixbuf_copy_area</span><span class="w"> </span><span class="p">(</span><span class="n">src</span><span class="p">,</span>
+<a id="line-878" name="line-878"></a><span class="w"> </span><span class="n">src_x</span><span class="p">,</span><span class="w"> </span><span class="n">src_y</span><span class="p">,</span>
+<a id="line-879" name="line-879"></a><span class="w"> </span><span class="n">w</span><span class="p">,</span><span class="w"> </span><span class="n">h</span><span class="p">,</span>
+<a id="line-880" name="line-880"></a><span class="w"> </span><span class="n">pixbuf</span><span class="p">,</span>
+<a id="line-881" name="line-881"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-882" name="line-882"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-883" name="line-883"></a><span class="p">}</span>
+<a id="line-884" name="line-884"></a>
+<a id="line-885" name="line-885"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span>
+<a id="line-886" name="line-886"></a><span class="nf">get_scaled_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">MateBGPlacement</span><span class="w"> </span><span class="n">placement</span><span class="p">,</span>
+<a id="line-887" name="line-887"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">,</span>
+<a id="line-888" name="line-888"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">height</span><span class="p">,</span>
+<a id="line-889" name="line-889"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">,</span>
+<a id="line-890" name="line-890"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">w</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">h</span><span class="p">)</span>
+<a id="line-891" name="line-891"></a><span class="p">{</span>
+<a id="line-892" name="line-892"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">new</span><span class="p">;</span>
+<a id="line-893" name="line-893"></a>
+<a id="line-894" name="line-894"></a><span class="cp">#if 0</span>
+<a id="line-895" name="line-895"></a><span class="c"> g_print (&quot;original_width: %d %d\n&quot;,</span>
+<a id="line-896" name="line-896"></a><span class="c"> gdk_pixbuf_get_width (pixbuf),</span>
+<a id="line-897" name="line-897"></a><span class="c"> gdk_pixbuf_get_height (pixbuf));</span>
+<a id="line-898" name="line-898"></a><span class="cp">#endif</span>
+<a id="line-899" name="line-899"></a>
+<a id="line-900" name="line-900"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">placement</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-901" name="line-901"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MATE_BG_PLACEMENT_SPANNED</span><span class="p">:</span>
+<a id="line-902" name="line-902"></a><span class="w"> </span><span class="n">new</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pixbuf_scale_to_fit</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">);</span>
+<a id="line-903" name="line-903"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-904" name="line-904"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MATE_BG_PLACEMENT_ZOOMED</span><span class="p">:</span>
+<a id="line-905" name="line-905"></a><span class="w"> </span><span class="n">new</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pixbuf_scale_to_min</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">);</span>
+<a id="line-906" name="line-906"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-907" name="line-907"></a>
+<a id="line-908" name="line-908"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MATE_BG_PLACEMENT_FILL_SCREEN</span><span class="p">:</span>
+<a id="line-909" name="line-909"></a><span class="w"> </span><span class="n">new</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_scale_simple</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">,</span>
+<a id="line-910" name="line-910"></a><span class="w"> </span><span class="n">GDK_INTERP_BILINEAR</span><span class="p">);</span>
+<a id="line-911" name="line-911"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-912" name="line-912"></a>
+<a id="line-913" name="line-913"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MATE_BG_PLACEMENT_SCALED</span><span class="p">:</span>
+<a id="line-914" name="line-914"></a><span class="w"> </span><span class="n">new</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pixbuf_scale_to_fit</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">);</span>
+<a id="line-915" name="line-915"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-916" name="line-916"></a>
+<a id="line-917" name="line-917"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MATE_BG_PLACEMENT_CENTERED</span><span class="p">:</span>
+<a id="line-918" name="line-918"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MATE_BG_PLACEMENT_TILED</span><span class="p">:</span>
+<a id="line-919" name="line-919"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-920" name="line-920"></a><span class="w"> </span><span class="n">new</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pixbuf_clip_to_fit</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">);</span>
+<a id="line-921" name="line-921"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-922" name="line-922"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-923" name="line-923"></a>
+<a id="line-924" name="line-924"></a><span class="w"> </span><span class="o">*</span><span class="n">w</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">new</span><span class="p">);</span>
+<a id="line-925" name="line-925"></a><span class="w"> </span><span class="o">*</span><span class="n">h</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">new</span><span class="p">);</span>
+<a id="line-926" name="line-926"></a><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="o">*</span><span class="n">w</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span>
+<a id="line-927" name="line-927"></a><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">height</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="o">*</span><span class="n">h</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span>
+<a id="line-928" name="line-928"></a>
+<a id="line-929" name="line-929"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">new</span><span class="p">;</span>
+<a id="line-930" name="line-930"></a><span class="p">}</span>
+<a id="line-931" name="line-931"></a>
+<a id="line-932" name="line-932"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-933" name="line-933"></a><span class="nf">draw_image_area</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-934" name="line-934"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">num_monitor</span><span class="p">,</span>
+<a id="line-935" name="line-935"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">,</span>
+<a id="line-936" name="line-936"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">dest</span><span class="p">,</span>
+<a id="line-937" name="line-937"></a><span class="w"> </span><span class="n">GdkRectangle</span><span class="w"> </span><span class="o">*</span><span class="n">area</span><span class="p">)</span>
+<a id="line-938" name="line-938"></a><span class="p">{</span>
+<a id="line-939" name="line-939"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dest_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">area</span><span class="o">-&gt;</span><span class="n">width</span><span class="p">;</span>
+<a id="line-940" name="line-940"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dest_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">area</span><span class="o">-&gt;</span><span class="n">height</span><span class="p">;</span>
+<a id="line-941" name="line-941"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">w</span><span class="p">,</span><span class="w"> </span><span class="n">h</span><span class="p">;</span>
+<a id="line-942" name="line-942"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">scaled</span><span class="p">;</span>
+<a id="line-943" name="line-943"></a>
+<a id="line-944" name="line-944"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">pixbuf</span><span class="p">)</span>
+<a id="line-945" name="line-945"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-946" name="line-946"></a>
+<a id="line-947" name="line-947"></a><span class="w"> </span><span class="n">scaled</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_scaled_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">placement</span><span class="p">,</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="n">dest_width</span><span class="p">,</span><span class="w"> </span><span class="n">dest_height</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">w</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">h</span><span class="p">);</span>
+<a id="line-948" name="line-948"></a>
+<a id="line-949" name="line-949"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">placement</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-950" name="line-950"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MATE_BG_PLACEMENT_TILED</span><span class="p">:</span>
+<a id="line-951" name="line-951"></a><span class="w"> </span><span class="n">pixbuf_tile</span><span class="w"> </span><span class="p">(</span><span class="n">scaled</span><span class="p">,</span><span class="w"> </span><span class="n">dest</span><span class="p">);</span>
+<a id="line-952" name="line-952"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-953" name="line-953"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MATE_BG_PLACEMENT_ZOOMED</span><span class="p">:</span>
+<a id="line-954" name="line-954"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MATE_BG_PLACEMENT_CENTERED</span><span class="p">:</span>
+<a id="line-955" name="line-955"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MATE_BG_PLACEMENT_FILL_SCREEN</span><span class="p">:</span>
+<a id="line-956" name="line-956"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MATE_BG_PLACEMENT_SCALED</span><span class="p">:</span>
+<a id="line-957" name="line-957"></a><span class="w"> </span><span class="n">pixbuf_blend</span><span class="w"> </span><span class="p">(</span><span class="n">scaled</span><span class="p">,</span><span class="w"> </span><span class="n">dest</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">w</span><span class="p">,</span><span class="w"> </span><span class="n">h</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">area</span><span class="o">-&gt;</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">area</span><span class="o">-&gt;</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="p">);</span>
+<a id="line-958" name="line-958"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-959" name="line-959"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MATE_BG_PLACEMENT_SPANNED</span><span class="p">:</span>
+<a id="line-960" name="line-960"></a><span class="w"> </span><span class="n">pixbuf_blend</span><span class="w"> </span><span class="p">(</span><span class="n">scaled</span><span class="p">,</span><span class="w"> </span><span class="n">dest</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">w</span><span class="p">,</span><span class="w"> </span><span class="n">h</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="p">);</span>
+<a id="line-961" name="line-961"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-962" name="line-962"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-963" name="line-963"></a><span class="w"> </span><span class="n">g_assert_not_reached</span><span class="w"> </span><span class="p">();</span>
+<a id="line-964" name="line-964"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-965" name="line-965"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-966" name="line-966"></a>
+<a id="line-967" name="line-967"></a><span class="w"> </span><span class="n">refresh_cache_file</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">scaled</span><span class="p">,</span><span class="w"> </span><span class="n">num_monitor</span><span class="p">,</span><span class="w"> </span><span class="n">dest_width</span><span class="p">,</span><span class="w"> </span><span class="n">dest_height</span><span class="p">);</span>
+<a id="line-968" name="line-968"></a>
+<a id="line-969" name="line-969"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">scaled</span><span class="p">);</span>
+<a id="line-970" name="line-970"></a><span class="p">}</span>
+<a id="line-971" name="line-971"></a>
+<a id="line-972" name="line-972"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-973" name="line-973"></a><span class="nf">draw_image_for_thumb</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-974" name="line-974"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">,</span>
+<a id="line-975" name="line-975"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">dest</span><span class="p">)</span>
+<a id="line-976" name="line-976"></a><span class="p">{</span>
+<a id="line-977" name="line-977"></a><span class="w"> </span><span class="n">GdkRectangle</span><span class="w"> </span><span class="n">rect</span><span class="p">;</span>
+<a id="line-978" name="line-978"></a>
+<a id="line-979" name="line-979"></a><span class="w"> </span><span class="n">rect</span><span class="p">.</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-980" name="line-980"></a><span class="w"> </span><span class="n">rect</span><span class="p">.</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-981" name="line-981"></a><span class="w"> </span><span class="n">rect</span><span class="p">.</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">dest</span><span class="p">);</span>
+<a id="line-982" name="line-982"></a><span class="w"> </span><span class="n">rect</span><span class="p">.</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">dest</span><span class="p">);</span>
+<a id="line-983" name="line-983"></a>
+<a id="line-984" name="line-984"></a><span class="w"> </span><span class="n">draw_image_area</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="n">dest</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">rect</span><span class="p">);</span>
+<a id="line-985" name="line-985"></a><span class="p">}</span>
+<a id="line-986" name="line-986"></a>
+<a id="line-987" name="line-987"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-988" name="line-988"></a><span class="nf">draw_once</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-989" name="line-989"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">dest</span><span class="p">,</span>
+<a id="line-990" name="line-990"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_root</span><span class="p">)</span>
+<a id="line-991" name="line-991"></a><span class="p">{</span>
+<a id="line-992" name="line-992"></a><span class="w"> </span><span class="n">GdkRectangle</span><span class="w"> </span><span class="n">rect</span><span class="p">;</span>
+<a id="line-993" name="line-993"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-994" name="line-994"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">monitor</span><span class="p">;</span>
+<a id="line-995" name="line-995"></a>
+<a id="line-996" name="line-996"></a><span class="w"> </span><span class="cm">/* whether we&#39;re drawing on root window or normal (Caja) window */</span>
+<a id="line-997" name="line-997"></a><span class="w"> </span><span class="n">monitor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">is_root</span><span class="p">)</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-998" name="line-998"></a>
+<a id="line-999" name="line-999"></a><span class="w"> </span><span class="n">rect</span><span class="p">.</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-1000" name="line-1000"></a><span class="w"> </span><span class="n">rect</span><span class="p">.</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-1001" name="line-1001"></a><span class="w"> </span><span class="n">rect</span><span class="p">.</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">dest</span><span class="p">);</span>
+<a id="line-1002" name="line-1002"></a><span class="w"> </span><span class="n">rect</span><span class="p">.</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">dest</span><span class="p">);</span>
+<a id="line-1003" name="line-1003"></a>
+<a id="line-1004" name="line-1004"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_pixbuf_for_size</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">monitor</span><span class="p">,</span><span class="w"> </span><span class="n">rect</span><span class="p">.</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">rect</span><span class="p">.</span><span class="n">height</span><span class="p">);</span>
+<a id="line-1005" name="line-1005"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1006" name="line-1006"></a><span class="w"> </span><span class="n">draw_image_area</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">monitor</span><span class="p">,</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="n">dest</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">rect</span><span class="p">);</span>
+<a id="line-1007" name="line-1007"></a>
+<a id="line-1008" name="line-1008"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span>
+<a id="line-1009" name="line-1009"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1010" name="line-1010"></a><span class="p">}</span>
+<a id="line-1011" name="line-1011"></a>
+<a id="line-1012" name="line-1012"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1013" name="line-1013"></a><span class="nf">draw_each_monitor</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-1014" name="line-1014"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">dest</span><span class="p">,</span>
+<a id="line-1015" name="line-1015"></a><span class="w"> </span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">)</span>
+<a id="line-1016" name="line-1016"></a><span class="p">{</span>
+<a id="line-1017" name="line-1017"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">;</span>
+<a id="line-1018" name="line-1018"></a>
+<a id="line-1019" name="line-1019"></a><span class="w"> </span><span class="n">display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_screen_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">);</span>
+<a id="line-1020" name="line-1020"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">num_monitors</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_display_get_n_monitors</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-1021" name="line-1021"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">monitor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-1022" name="line-1022"></a>
+<a id="line-1023" name="line-1023"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(;</span><span class="w"> </span><span class="n">monitor</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">num_monitors</span><span class="p">;</span><span class="w"> </span><span class="n">monitor</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1024" name="line-1024"></a><span class="w"> </span><span class="n">GdkRectangle</span><span class="w"> </span><span class="n">rect</span><span class="p">;</span>
+<a id="line-1025" name="line-1025"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-1026" name="line-1026"></a>
+<a id="line-1027" name="line-1027"></a><span class="w"> </span><span class="n">gdk_monitor_get_geometry</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_display_get_monitor</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="n">monitor</span><span class="p">),</span><span class="w"> </span><span class="o">&amp;</span><span class="n">rect</span><span class="p">);</span>
+<a id="line-1028" name="line-1028"></a>
+<a id="line-1029" name="line-1029"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_pixbuf_for_size</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">monitor</span><span class="p">,</span><span class="w"> </span><span class="n">rect</span><span class="p">.</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">rect</span><span class="p">.</span><span class="n">height</span><span class="p">);</span>
+<a id="line-1030" name="line-1030"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1031" name="line-1031"></a><span class="w"> </span><span class="n">draw_image_area</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">monitor</span><span class="p">,</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="n">dest</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">rect</span><span class="p">);</span>
+<a id="line-1032" name="line-1032"></a>
+<a id="line-1033" name="line-1033"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span>
+<a id="line-1034" name="line-1034"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1035" name="line-1035"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1036" name="line-1036"></a><span class="p">}</span>
+<a id="line-1037" name="line-1037"></a>
+<a id="line-1038" name="line-1038"></a><span class="kt">void</span>
+<a id="line-1039" name="line-1039"></a><span class="nf">mate_bg_draw</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-1040" name="line-1040"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">dest</span><span class="p">,</span>
+<a id="line-1041" name="line-1041"></a><span class="w"> </span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-1042" name="line-1042"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_root</span><span class="p">)</span>
+<a id="line-1043" name="line-1043"></a><span class="p">{</span>
+<a id="line-1044" name="line-1044"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">bg</span><span class="p">)</span>
+<a id="line-1045" name="line-1045"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-1046" name="line-1046"></a>
+<a id="line-1047" name="line-1047"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">is_root</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">placement</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">MATE_BG_PLACEMENT_SPANNED</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1048" name="line-1048"></a><span class="w"> </span><span class="n">draw_color_each_monitor</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">dest</span><span class="p">,</span><span class="w"> </span><span class="n">screen</span><span class="p">);</span>
+<a id="line-1049" name="line-1049"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1050" name="line-1050"></a><span class="w"> </span><span class="n">draw_each_monitor</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">dest</span><span class="p">,</span><span class="w"> </span><span class="n">screen</span><span class="p">);</span>
+<a id="line-1051" name="line-1051"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1052" name="line-1052"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1053" name="line-1053"></a><span class="w"> </span><span class="n">draw_color</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">dest</span><span class="p">);</span>
+<a id="line-1054" name="line-1054"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1055" name="line-1055"></a><span class="w"> </span><span class="n">draw_once</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">dest</span><span class="p">,</span><span class="w"> </span><span class="n">is_root</span><span class="p">);</span>
+<a id="line-1056" name="line-1056"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1057" name="line-1057"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1058" name="line-1058"></a><span class="p">}</span>
+<a id="line-1059" name="line-1059"></a>
+<a id="line-1060" name="line-1060"></a><span class="n">gboolean</span>
+<a id="line-1061" name="line-1061"></a><span class="nf">mate_bg_has_multiple_sizes</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">)</span>
+<a id="line-1062" name="line-1062"></a><span class="p">{</span>
+<a id="line-1063" name="line-1063"></a><span class="w"> </span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span><span class="n">show</span><span class="p">;</span>
+<a id="line-1064" name="line-1064"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-1065" name="line-1065"></a>
+<a id="line-1066" name="line-1066"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1067" name="line-1067"></a>
+<a id="line-1068" name="line-1068"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1069" name="line-1069"></a>
+<a id="line-1070" name="line-1070"></a><span class="w"> </span><span class="n">show</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_as_slideshow</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-1071" name="line-1071"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1072" name="line-1072"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">slideshow_has_multiple_sizes</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="p">);</span>
+<a id="line-1073" name="line-1073"></a><span class="w"> </span><span class="n">slideshow_unref</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="p">);</span>
+<a id="line-1074" name="line-1074"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1075" name="line-1075"></a>
+<a id="line-1076" name="line-1076"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span>
+<a id="line-1077" name="line-1077"></a><span class="p">}</span>
+<a id="line-1078" name="line-1078"></a>
+<a id="line-1079" name="line-1079"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1080" name="line-1080"></a><span class="nf">mate_bg_get_pixmap_size</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-1081" name="line-1081"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">,</span>
+<a id="line-1082" name="line-1082"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">height</span><span class="p">,</span>
+<a id="line-1083" name="line-1083"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">pixmap_width</span><span class="p">,</span>
+<a id="line-1084" name="line-1084"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">pixmap_height</span><span class="p">)</span>
+<a id="line-1085" name="line-1085"></a><span class="p">{</span>
+<a id="line-1086" name="line-1086"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dummy</span><span class="p">;</span>
+<a id="line-1087" name="line-1087"></a>
+<a id="line-1088" name="line-1088"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">pixmap_width</span><span class="p">)</span>
+<a id="line-1089" name="line-1089"></a><span class="w"> </span><span class="n">pixmap_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&amp;</span><span class="n">dummy</span><span class="p">;</span>
+<a id="line-1090" name="line-1090"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">pixmap_height</span><span class="p">)</span>
+<a id="line-1091" name="line-1091"></a><span class="w"> </span><span class="n">pixmap_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&amp;</span><span class="n">dummy</span><span class="p">;</span>
+<a id="line-1092" name="line-1092"></a>
+<a id="line-1093" name="line-1093"></a><span class="w"> </span><span class="o">*</span><span class="n">pixmap_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">width</span><span class="p">;</span>
+<a id="line-1094" name="line-1094"></a><span class="w"> </span><span class="o">*</span><span class="n">pixmap_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">height</span><span class="p">;</span>
+<a id="line-1095" name="line-1095"></a>
+<a id="line-1096" name="line-1096"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1097" name="line-1097"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">color_type</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1098" name="line-1098"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MATE_BG_COLOR_SOLID</span><span class="p">:</span>
+<a id="line-1099" name="line-1099"></a><span class="w"> </span><span class="o">*</span><span class="n">pixmap_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-1100" name="line-1100"></a><span class="w"> </span><span class="o">*</span><span class="n">pixmap_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-1101" name="line-1101"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1102" name="line-1102"></a>
+<a id="line-1103" name="line-1103"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MATE_BG_COLOR_H_GRADIENT</span><span class="p">:</span>
+<a id="line-1104" name="line-1104"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MATE_BG_COLOR_V_GRADIENT</span><span class="p">:</span>
+<a id="line-1105" name="line-1105"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1106" name="line-1106"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1107" name="line-1107"></a>
+<a id="line-1108" name="line-1108"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-1109" name="line-1109"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1110" name="line-1110"></a><span class="p">}</span>
+<a id="line-1111" name="line-1111"></a>
+<a id="line-1112" name="line-1112"></a><span class="cm">/**</span>
+<a id="line-1113" name="line-1113"></a><span class="cm"> * mate_bg_create_surface:</span>
+<a id="line-1114" name="line-1114"></a><span class="cm"> * @bg: MateBG</span>
+<a id="line-1115" name="line-1115"></a><span class="cm"> * @window:</span>
+<a id="line-1116" name="line-1116"></a><span class="cm"> * @width:</span>
+<a id="line-1117" name="line-1117"></a><span class="cm"> * @height:</span>
+<a id="line-1118" name="line-1118"></a><span class="cm"> * @root:</span>
+<a id="line-1119" name="line-1119"></a><span class="cm"> *</span>
+<a id="line-1120" name="line-1120"></a><span class="cm"> * Create a surface that can be set as background for @window. If @root is</span>
+<a id="line-1121" name="line-1121"></a><span class="cm"> * TRUE, the surface created will be created by a temporary X server connection</span>
+<a id="line-1122" name="line-1122"></a><span class="cm"> * so that if someone calls XKillClient on it, it won&#39;t affect the application</span>
+<a id="line-1123" name="line-1123"></a><span class="cm"> * who created it.</span>
+<a id="line-1124" name="line-1124"></a><span class="cm"> **/</span>
+<a id="line-1125" name="line-1125"></a><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1126" name="line-1126"></a><span class="nf">mate_bg_create_surface</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-1127" name="line-1127"></a><span class="w"> </span><span class="n">GdkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span>
+<a id="line-1128" name="line-1128"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">,</span>
+<a id="line-1129" name="line-1129"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">height</span><span class="p">,</span>
+<a id="line-1130" name="line-1130"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">root</span><span class="p">)</span>
+<a id="line-1131" name="line-1131"></a><span class="p">{</span>
+<a id="line-1132" name="line-1132"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mate_bg_create_surface_scale</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-1133" name="line-1133"></a><span class="w"> </span><span class="n">window</span><span class="p">,</span>
+<a id="line-1134" name="line-1134"></a><span class="w"> </span><span class="n">width</span><span class="p">,</span>
+<a id="line-1135" name="line-1135"></a><span class="w"> </span><span class="n">height</span><span class="p">,</span>
+<a id="line-1136" name="line-1136"></a><span class="w"> </span><span class="mi">1</span><span class="p">,</span>
+<a id="line-1137" name="line-1137"></a><span class="w"> </span><span class="n">root</span><span class="p">);</span>
+<a id="line-1138" name="line-1138"></a><span class="p">}</span>
+<a id="line-1139" name="line-1139"></a>
+<a id="line-1140" name="line-1140"></a><span class="cm">/**</span>
+<a id="line-1141" name="line-1141"></a><span class="cm"> * mate_bg_create_surface_scale:</span>
+<a id="line-1142" name="line-1142"></a><span class="cm"> * @bg: MateBG</span>
+<a id="line-1143" name="line-1143"></a><span class="cm"> * @window:</span>
+<a id="line-1144" name="line-1144"></a><span class="cm"> * @width:</span>
+<a id="line-1145" name="line-1145"></a><span class="cm"> * @height:</span>
+<a id="line-1146" name="line-1146"></a><span class="cm"> * @scale:</span>
+<a id="line-1147" name="line-1147"></a><span class="cm"> * @root:</span>
+<a id="line-1148" name="line-1148"></a><span class="cm"> *</span>
+<a id="line-1149" name="line-1149"></a><span class="cm"> * Create a scaled surface that can be set as background for @window. If @root is</span>
+<a id="line-1150" name="line-1150"></a><span class="cm"> * TRUE, the surface created will be created by a temporary X server connection</span>
+<a id="line-1151" name="line-1151"></a><span class="cm"> * so that if someone calls XKillClient on it, it won&#39;t affect the application</span>
+<a id="line-1152" name="line-1152"></a><span class="cm"> * who created it.</span>
+<a id="line-1153" name="line-1153"></a><span class="cm"> **/</span>
+<a id="line-1154" name="line-1154"></a><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1155" name="line-1155"></a><span class="nf">mate_bg_create_surface_scale</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-1156" name="line-1156"></a><span class="w"> </span><span class="n">GdkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span>
+<a id="line-1157" name="line-1157"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">,</span>
+<a id="line-1158" name="line-1158"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">height</span><span class="p">,</span>
+<a id="line-1159" name="line-1159"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">scale</span><span class="p">,</span>
+<a id="line-1160" name="line-1160"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">root</span><span class="p">)</span>
+<a id="line-1161" name="line-1161"></a><span class="p">{</span>
+<a id="line-1162" name="line-1162"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">pm_width</span><span class="p">,</span><span class="w"> </span><span class="n">pm_height</span><span class="p">;</span>
+<a id="line-1163" name="line-1163"></a>
+<a id="line-1164" name="line-1164"></a><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span><span class="n">surface</span><span class="p">;</span>
+<a id="line-1165" name="line-1165"></a><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">cr</span><span class="p">;</span>
+<a id="line-1166" name="line-1166"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">;</span>
+<a id="line-1167" name="line-1167"></a>
+<a id="line-1168" name="line-1168"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1169" name="line-1169"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1170" name="line-1170"></a>
+<a id="line-1171" name="line-1171"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">pixbuf_cache</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-1172" name="line-1172"></a><span class="w"> </span><span class="p">(</span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">pixbuf_cache</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">||</span>
+<a id="line-1173" name="line-1173"></a><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">pixbuf_cache</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">height</span><span class="p">))</span>
+<a id="line-1174" name="line-1174"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1175" name="line-1175"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">pixbuf_cache</span><span class="p">);</span>
+<a id="line-1176" name="line-1176"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">pixbuf_cache</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1177" name="line-1177"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1178" name="line-1178"></a>
+<a id="line-1179" name="line-1179"></a><span class="w"> </span><span class="n">mate_bg_get_pixmap_size</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">pm_width</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">pm_height</span><span class="p">);</span>
+<a id="line-1180" name="line-1180"></a>
+<a id="line-1181" name="line-1181"></a><span class="w"> </span><span class="n">display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_display_get_default</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1182" name="line-1182"></a>
+<a id="line-1183" name="line-1183"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">root</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">GDK_IS_X11_DISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">))</span>
+<a id="line-1184" name="line-1184"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1185" name="line-1185"></a><span class="w"> </span><span class="n">surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">make_root_pixmap</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">pm_width</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">scale</span><span class="p">,</span><span class="w"> </span><span class="n">pm_height</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">scale</span><span class="p">);</span>
+<a id="line-1186" name="line-1186"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1187" name="line-1187"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1188" name="line-1188"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1189" name="line-1189"></a><span class="w"> </span><span class="n">surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_window_create_similar_surface</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">CAIRO_CONTENT_COLOR</span><span class="p">,</span>
+<a id="line-1190" name="line-1190"></a><span class="w"> </span><span class="n">pm_width</span><span class="p">,</span><span class="w"> </span><span class="n">pm_height</span><span class="p">);</span>
+<a id="line-1191" name="line-1191"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1192" name="line-1192"></a>
+<a id="line-1193" name="line-1193"></a><span class="w"> </span><span class="n">cr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cairo_create</span><span class="w"> </span><span class="p">(</span><span class="n">surface</span><span class="p">);</span>
+<a id="line-1194" name="line-1194"></a><span class="w"> </span><span class="n">cairo_scale</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="n">scale</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="n">scale</span><span class="p">);</span>
+<a id="line-1195" name="line-1195"></a>
+<a id="line-1196" name="line-1196"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">color_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">MATE_BG_COLOR_SOLID</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1197" name="line-1197"></a><span class="w"> </span><span class="n">gdk_cairo_set_source_rgba</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">primary</span><span class="p">));</span>
+<a id="line-1198" name="line-1198"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1199" name="line-1199"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1200" name="line-1200"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1201" name="line-1201"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-1202" name="line-1202"></a>
+<a id="line-1203" name="line-1203"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_COLORSPACE_RGB</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">8</span><span class="p">,</span>
+<a id="line-1204" name="line-1204"></a><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">);</span>
+<a id="line-1205" name="line-1205"></a><span class="w"> </span><span class="n">mate_bg_draw</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="n">gdk_window_get_screen</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="n">root</span><span class="p">);</span>
+<a id="line-1206" name="line-1206"></a><span class="w"> </span><span class="n">gdk_cairo_set_source_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-1207" name="line-1207"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span>
+<a id="line-1208" name="line-1208"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1209" name="line-1209"></a>
+<a id="line-1210" name="line-1210"></a><span class="w"> </span><span class="n">cairo_paint</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-1211" name="line-1211"></a>
+<a id="line-1212" name="line-1212"></a><span class="w"> </span><span class="n">cairo_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-1213" name="line-1213"></a>
+<a id="line-1214" name="line-1214"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">surface</span><span class="p">;</span>
+<a id="line-1215" name="line-1215"></a><span class="p">}</span>
+<a id="line-1216" name="line-1216"></a>
+<a id="line-1217" name="line-1217"></a><span class="cm">/* determine if a background is darker or lighter than average, to help</span>
+<a id="line-1218" name="line-1218"></a><span class="cm"> * clients know what colors to draw on top with</span>
+<a id="line-1219" name="line-1219"></a><span class="cm"> */</span>
+<a id="line-1220" name="line-1220"></a><span class="n">gboolean</span>
+<a id="line-1221" name="line-1221"></a><span class="nf">mate_bg_is_dark</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-1222" name="line-1222"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">,</span>
+<a id="line-1223" name="line-1223"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">height</span><span class="p">)</span>
+<a id="line-1224" name="line-1224"></a><span class="p">{</span>
+<a id="line-1225" name="line-1225"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="n">color</span><span class="p">;</span>
+<a id="line-1226" name="line-1226"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">intensity</span><span class="p">;</span>
+<a id="line-1227" name="line-1227"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-1228" name="line-1228"></a>
+<a id="line-1229" name="line-1229"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1230" name="line-1230"></a>
+<a id="line-1231" name="line-1231"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">color_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">MATE_BG_COLOR_SOLID</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1232" name="line-1232"></a><span class="w"> </span><span class="n">color</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">primary</span><span class="p">;</span>
+<a id="line-1233" name="line-1233"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1234" name="line-1234"></a><span class="w"> </span><span class="n">color</span><span class="p">.</span><span class="n">red</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">primary</span><span class="p">.</span><span class="n">red</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">secondary</span><span class="p">.</span><span class="n">red</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span>
+<a id="line-1235" name="line-1235"></a><span class="w"> </span><span class="n">color</span><span class="p">.</span><span class="n">green</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">primary</span><span class="p">.</span><span class="n">green</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">secondary</span><span class="p">.</span><span class="n">green</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span>
+<a id="line-1236" name="line-1236"></a><span class="w"> </span><span class="n">color</span><span class="p">.</span><span class="n">blue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">primary</span><span class="p">.</span><span class="n">blue</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">secondary</span><span class="p">.</span><span class="n">blue</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span>
+<a id="line-1237" name="line-1237"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1238" name="line-1238"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_pixbuf_for_size</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">);</span>
+<a id="line-1239" name="line-1239"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1240" name="line-1240"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="n">argb</span><span class="p">;</span>
+<a id="line-1241" name="line-1241"></a><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="n">r</span><span class="p">,</span><span class="w"> </span><span class="n">g</span><span class="p">,</span><span class="w"> </span><span class="n">b</span><span class="p">;</span>
+<a id="line-1242" name="line-1242"></a>
+<a id="line-1243" name="line-1243"></a><span class="w"> </span><span class="n">pixbuf_average_value</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">argb</span><span class="p">);</span>
+<a id="line-1244" name="line-1244"></a><span class="w"> </span><span class="n">a</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">argb</span><span class="p">.</span><span class="n">alpha</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mh">0xff</span><span class="p">;</span>
+<a id="line-1245" name="line-1245"></a><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">argb</span><span class="p">.</span><span class="n">red</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mh">0xff</span><span class="p">;</span>
+<a id="line-1246" name="line-1246"></a><span class="w"> </span><span class="n">g</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">argb</span><span class="p">.</span><span class="n">green</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mh">0xff</span><span class="p">;</span>
+<a id="line-1247" name="line-1247"></a><span class="w"> </span><span class="n">b</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">argb</span><span class="p">.</span><span class="n">blue</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mh">0xff</span><span class="p">;</span>
+<a id="line-1248" name="line-1248"></a>
+<a id="line-1249" name="line-1249"></a><span class="w"> </span><span class="n">color</span><span class="p">.</span><span class="n">red</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">color</span><span class="p">.</span><span class="n">red</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="mh">0xFF</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">a</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mh">0x101</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">a</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mh">0xFF</span><span class="p">;</span>
+<a id="line-1250" name="line-1250"></a><span class="w"> </span><span class="n">color</span><span class="p">.</span><span class="n">green</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">color</span><span class="p">.</span><span class="n">green</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="mh">0xFF</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">a</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">g</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mh">0x101</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">a</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mh">0xFF</span><span class="p">;</span>
+<a id="line-1251" name="line-1251"></a><span class="w"> </span><span class="n">color</span><span class="p">.</span><span class="n">blue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">color</span><span class="p">.</span><span class="n">blue</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="mh">0xFF</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">a</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">b</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mh">0x101</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">a</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mh">0xFF</span><span class="p">;</span>
+<a id="line-1252" name="line-1252"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span>
+<a id="line-1253" name="line-1253"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1254" name="line-1254"></a>
+<a id="line-1255" name="line-1255"></a><span class="w"> </span><span class="n">intensity</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">((</span><span class="n">guint</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">color</span><span class="p">.</span><span class="n">red</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">65535</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">77</span><span class="w"> </span><span class="o">+</span>
+<a id="line-1256" name="line-1256"></a><span class="w"> </span><span class="p">(</span><span class="n">guint</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">color</span><span class="p">.</span><span class="n">green</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">65535</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">150</span><span class="w"> </span><span class="o">+</span>
+<a id="line-1257" name="line-1257"></a><span class="w"> </span><span class="p">(</span><span class="n">guint</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">color</span><span class="p">.</span><span class="n">blue</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">65535</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">28</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;&gt;</span><span class="w"> </span><span class="mi">16</span><span class="p">;</span>
+<a id="line-1258" name="line-1258"></a>
+<a id="line-1259" name="line-1259"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">intensity</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">160</span><span class="p">;</span><span class="w"> </span><span class="cm">/* biased slightly to be dark */</span>
+<a id="line-1260" name="line-1260"></a><span class="p">}</span>
+<a id="line-1261" name="line-1261"></a>
+<a id="line-1262" name="line-1262"></a><span class="cm">/*</span>
+<a id="line-1263" name="line-1263"></a><span class="cm"> * Create a persistent pixmap. We create a separate display</span>
+<a id="line-1264" name="line-1264"></a><span class="cm"> * and set the closedown mode on it to RetainPermanent.</span>
+<a id="line-1265" name="line-1265"></a><span class="cm"> */</span>
+<a id="line-1266" name="line-1266"></a><span class="k">static</span><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1267" name="line-1267"></a><span class="nf">make_root_pixmap</span><span class="w"> </span><span class="p">(</span><span class="n">GdkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">height</span><span class="p">)</span>
+<a id="line-1268" name="line-1268"></a><span class="p">{</span>
+<a id="line-1269" name="line-1269"></a><span class="w"> </span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_window_get_screen</span><span class="p">(</span><span class="n">window</span><span class="p">);</span>
+<a id="line-1270" name="line-1270"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">disp_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">DisplayString</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_WINDOW_XDISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">));</span>
+<a id="line-1271" name="line-1271"></a><span class="w"> </span><span class="n">Display</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">;</span>
+<a id="line-1272" name="line-1272"></a><span class="w"> </span><span class="n">Pixmap</span><span class="w"> </span><span class="n">xpixmap</span><span class="p">;</span>
+<a id="line-1273" name="line-1273"></a><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span><span class="n">surface</span><span class="p">;</span>
+<a id="line-1274" name="line-1274"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">depth</span><span class="p">;</span>
+<a id="line-1275" name="line-1275"></a>
+<a id="line-1276" name="line-1276"></a><span class="w"> </span><span class="cm">/* Desktop background pixmap should be created from dummy X client since most</span>
+<a id="line-1277" name="line-1277"></a><span class="cm"> * applications will try to kill it with XKillClient later when changing pixmap</span>
+<a id="line-1278" name="line-1278"></a><span class="cm"> */</span>
+<a id="line-1279" name="line-1279"></a><span class="w"> </span><span class="n">display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XOpenDisplay</span><span class="w"> </span><span class="p">(</span><span class="n">disp_name</span><span class="p">);</span>
+<a id="line-1280" name="line-1280"></a>
+<a id="line-1281" name="line-1281"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1282" name="line-1282"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Unable to open display &#39;%s&#39; when setting background pixmap</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span>
+<a id="line-1283" name="line-1283"></a><span class="w"> </span><span class="p">(</span><span class="n">disp_name</span><span class="p">)</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">disp_name</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="s">&quot;NULL&quot;</span><span class="p">);</span>
+<a id="line-1284" name="line-1284"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1285" name="line-1285"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1286" name="line-1286"></a>
+<a id="line-1287" name="line-1287"></a><span class="w"> </span><span class="n">depth</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">DefaultDepth</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="n">gdk_x11_screen_get_screen_number</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">));</span>
+<a id="line-1288" name="line-1288"></a><span class="w"> </span><span class="n">xpixmap</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XCreatePixmap</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_WINDOW_XID</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">,</span><span class="w"> </span><span class="n">depth</span><span class="p">);</span>
+<a id="line-1289" name="line-1289"></a>
+<a id="line-1290" name="line-1290"></a><span class="w"> </span><span class="n">XFlush</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-1291" name="line-1291"></a><span class="w"> </span><span class="n">XSetCloseDownMode</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="n">RetainPermanent</span><span class="p">);</span>
+<a id="line-1292" name="line-1292"></a><span class="w"> </span><span class="n">XCloseDisplay</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-1293" name="line-1293"></a>
+<a id="line-1294" name="line-1294"></a><span class="w"> </span><span class="n">surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cairo_xlib_surface_create</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_SCREEN_XDISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">),</span><span class="w"> </span><span class="n">xpixmap</span><span class="p">,</span>
+<a id="line-1295" name="line-1295"></a><span class="w"> </span><span class="n">GDK_VISUAL_XVISUAL</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_screen_get_system_visual</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">)),</span>
+<a id="line-1296" name="line-1296"></a><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">);</span>
+<a id="line-1297" name="line-1297"></a>
+<a id="line-1298" name="line-1298"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">surface</span><span class="p">;</span>
+<a id="line-1299" name="line-1299"></a><span class="p">}</span>
+<a id="line-1300" name="line-1300"></a>
+<a id="line-1301" name="line-1301"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-1302" name="line-1302"></a><span class="nf">get_original_size</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">,</span>
+<a id="line-1303" name="line-1303"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">orig_width</span><span class="p">,</span>
+<a id="line-1304" name="line-1304"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">orig_height</span><span class="p">)</span>
+<a id="line-1305" name="line-1305"></a><span class="p">{</span>
+<a id="line-1306" name="line-1306"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-1307" name="line-1307"></a>
+<a id="line-1308" name="line-1308"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_pixbuf_get_file_info</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="n">orig_width</span><span class="p">,</span><span class="w"> </span><span class="n">orig_height</span><span class="p">))</span>
+<a id="line-1309" name="line-1309"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1310" name="line-1310"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1311" name="line-1311"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1312" name="line-1312"></a>
+<a id="line-1313" name="line-1313"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-1314" name="line-1314"></a><span class="p">}</span>
+<a id="line-1315" name="line-1315"></a>
+<a id="line-1316" name="line-1316"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1317" name="line-1317"></a><span class="nf">get_filename_for_size</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">best_width</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">best_height</span><span class="p">)</span>
+<a id="line-1318" name="line-1318"></a><span class="p">{</span>
+<a id="line-1319" name="line-1319"></a><span class="w"> </span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span><span class="n">show</span><span class="p">;</span>
+<a id="line-1320" name="line-1320"></a><span class="w"> </span><span class="n">Slide</span><span class="w"> </span><span class="o">*</span><span class="n">slide</span><span class="p">;</span>
+<a id="line-1321" name="line-1321"></a><span class="w"> </span><span class="n">FileSize</span><span class="w"> </span><span class="o">*</span><span class="n">size</span><span class="p">;</span>
+<a id="line-1322" name="line-1322"></a>
+<a id="line-1323" name="line-1323"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">)</span>
+<a id="line-1324" name="line-1324"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1325" name="line-1325"></a>
+<a id="line-1326" name="line-1326"></a><span class="w"> </span><span class="n">show</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_as_slideshow</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-1327" name="line-1327"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">show</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1328" name="line-1328"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">;</span>
+<a id="line-1329" name="line-1329"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1330" name="line-1330"></a>
+<a id="line-1331" name="line-1331"></a><span class="w"> </span><span class="n">slide</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_current_slide</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1332" name="line-1332"></a><span class="w"> </span><span class="n">slideshow_unref</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="p">);</span>
+<a id="line-1333" name="line-1333"></a><span class="w"> </span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">find_best_size</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">file1</span><span class="p">,</span><span class="w"> </span><span class="n">best_width</span><span class="p">,</span><span class="w"> </span><span class="n">best_height</span><span class="p">);</span>
+<a id="line-1334" name="line-1334"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">size</span><span class="o">-&gt;</span><span class="n">file</span><span class="p">;</span>
+<a id="line-1335" name="line-1335"></a><span class="p">}</span>
+<a id="line-1336" name="line-1336"></a>
+<a id="line-1337" name="line-1337"></a><span class="n">gboolean</span>
+<a id="line-1338" name="line-1338"></a><span class="nf">mate_bg_get_image_size</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-1339" name="line-1339"></a><span class="w"> </span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">,</span>
+<a id="line-1340" name="line-1340"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">best_width</span><span class="p">,</span>
+<a id="line-1341" name="line-1341"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">best_height</span><span class="p">,</span>
+<a id="line-1342" name="line-1342"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">width</span><span class="p">,</span>
+<a id="line-1343" name="line-1343"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">height</span><span class="p">)</span>
+<a id="line-1344" name="line-1344"></a><span class="p">{</span>
+<a id="line-1345" name="line-1345"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">thumb</span><span class="p">;</span>
+<a id="line-1346" name="line-1346"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1347" name="line-1347"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">;</span>
+<a id="line-1348" name="line-1348"></a>
+<a id="line-1349" name="line-1349"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1350" name="line-1350"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">factory</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-1351" name="line-1351"></a>
+<a id="line-1352" name="line-1352"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">)</span>
+<a id="line-1353" name="line-1353"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1354" name="line-1354"></a>
+<a id="line-1355" name="line-1355"></a><span class="w"> </span><span class="n">filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_filename_for_size</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">best_width</span><span class="p">,</span><span class="w"> </span><span class="n">best_height</span><span class="p">);</span>
+<a id="line-1356" name="line-1356"></a><span class="w"> </span><span class="n">thumb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">create_thumbnail_for_filename</span><span class="w"> </span><span class="p">(</span><span class="n">factory</span><span class="p">,</span><span class="w"> </span><span class="n">filename</span><span class="p">);</span>
+<a id="line-1357" name="line-1357"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1358" name="line-1358"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">get_thumb_annotations</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">))</span>
+<a id="line-1359" name="line-1359"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1360" name="line-1360"></a>
+<a id="line-1361" name="line-1361"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">);</span>
+<a id="line-1362" name="line-1362"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1363" name="line-1363"></a>
+<a id="line-1364" name="line-1364"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">result</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1365" name="line-1365"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">get_original_size</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">))</span>
+<a id="line-1366" name="line-1366"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1367" name="line-1367"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1368" name="line-1368"></a>
+<a id="line-1369" name="line-1369"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-1370" name="line-1370"></a><span class="p">}</span>
+<a id="line-1371" name="line-1371"></a>
+<a id="line-1372" name="line-1372"></a><span class="k">static</span><span class="w"> </span><span class="kt">double</span>
+<a id="line-1373" name="line-1373"></a><span class="nf">fit_factor</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">from_width</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">from_height</span><span class="p">,</span>
+<a id="line-1374" name="line-1374"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">to_width</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">to_height</span><span class="p">)</span>
+<a id="line-1375" name="line-1375"></a><span class="p">{</span>
+<a id="line-1376" name="line-1376"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">MIN</span><span class="w"> </span><span class="p">(</span><span class="n">to_width</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="n">from_width</span><span class="p">,</span><span class="w"> </span><span class="n">to_height</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="n">from_height</span><span class="p">);</span>
+<a id="line-1377" name="line-1377"></a><span class="p">}</span>
+<a id="line-1378" name="line-1378"></a>
+<a id="line-1379" name="line-1379"></a><span class="cm">/**</span>
+<a id="line-1380" name="line-1380"></a><span class="cm"> * mate_bg_create_thumbnail:</span>
+<a id="line-1381" name="line-1381"></a><span class="cm"> *</span>
+<a id="line-1382" name="line-1382"></a><span class="cm"> * Returns: (transfer full): a #GdkPixbuf showing the background as a thumbnail</span>
+<a id="line-1383" name="line-1383"></a><span class="cm"> */</span>
+<a id="line-1384" name="line-1384"></a><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1385" name="line-1385"></a><span class="nf">mate_bg_create_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-1386" name="line-1386"></a><span class="w"> </span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">,</span>
+<a id="line-1387" name="line-1387"></a><span class="w"> </span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-1388" name="line-1388"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dest_width</span><span class="p">,</span>
+<a id="line-1389" name="line-1389"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dest_height</span><span class="p">)</span>
+<a id="line-1390" name="line-1390"></a><span class="p">{</span>
+<a id="line-1391" name="line-1391"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="p">;</span>
+<a id="line-1392" name="line-1392"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">thumb</span><span class="p">;</span>
+<a id="line-1393" name="line-1393"></a>
+<a id="line-1394" name="line-1394"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1395" name="line-1395"></a>
+<a id="line-1396" name="line-1396"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_COLORSPACE_RGB</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">8</span><span class="p">,</span><span class="w"> </span><span class="n">dest_width</span><span class="p">,</span><span class="w"> </span><span class="n">dest_height</span><span class="p">);</span>
+<a id="line-1397" name="line-1397"></a>
+<a id="line-1398" name="line-1398"></a><span class="w"> </span><span class="n">draw_color</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">result</span><span class="p">);</span>
+<a id="line-1399" name="line-1399"></a>
+<a id="line-1400" name="line-1400"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1401" name="line-1401"></a><span class="w"> </span><span class="n">thumb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">create_img_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">factory</span><span class="p">,</span><span class="w"> </span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">dest_width</span><span class="p">,</span><span class="w"> </span><span class="n">dest_height</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span>
+<a id="line-1402" name="line-1402"></a>
+<a id="line-1403" name="line-1403"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1404" name="line-1404"></a><span class="w"> </span><span class="n">draw_image_for_thumb</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">thumb</span><span class="p">,</span><span class="w"> </span><span class="n">result</span><span class="p">);</span>
+<a id="line-1405" name="line-1405"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">);</span>
+<a id="line-1406" name="line-1406"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1407" name="line-1407"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1408" name="line-1408"></a>
+<a id="line-1409" name="line-1409"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-1410" name="line-1410"></a><span class="p">}</span>
+<a id="line-1411" name="line-1411"></a>
+<a id="line-1412" name="line-1412"></a><span class="cm">/**</span>
+<a id="line-1413" name="line-1413"></a><span class="cm"> * mate_bg_get_surface_from_root:</span>
+<a id="line-1414" name="line-1414"></a><span class="cm"> * @screen: a #GdkScreen</span>
+<a id="line-1415" name="line-1415"></a><span class="cm"> *</span>
+<a id="line-1416" name="line-1416"></a><span class="cm"> * This function queries the _XROOTPMAP_ID property from</span>
+<a id="line-1417" name="line-1417"></a><span class="cm"> * the root window associated with @screen to determine</span>
+<a id="line-1418" name="line-1418"></a><span class="cm"> * the current root window background surface and returns</span>
+<a id="line-1419" name="line-1419"></a><span class="cm"> * a copy of it. If the _XROOTPMAP_ID is not set, then</span>
+<a id="line-1420" name="line-1420"></a><span class="cm"> * a black surface is returned.</span>
+<a id="line-1421" name="line-1421"></a><span class="cm"> *</span>
+<a id="line-1422" name="line-1422"></a><span class="cm"> * Return value: a #cairo_surface_t if successful or %NULL</span>
+<a id="line-1423" name="line-1423"></a><span class="cm"> **/</span>
+<a id="line-1424" name="line-1424"></a><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1425" name="line-1425"></a><span class="nf">mate_bg_get_surface_from_root</span><span class="w"> </span><span class="p">(</span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">)</span>
+<a id="line-1426" name="line-1426"></a><span class="p">{</span>
+<a id="line-1427" name="line-1427"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-1428" name="line-1428"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">format</span><span class="p">;</span>
+<a id="line-1429" name="line-1429"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">nitems</span><span class="p">;</span>
+<a id="line-1430" name="line-1430"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">bytes_after</span><span class="p">;</span>
+<a id="line-1431" name="line-1431"></a><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">;</span>
+<a id="line-1432" name="line-1432"></a><span class="w"> </span><span class="n">Atom</span><span class="w"> </span><span class="n">type</span><span class="p">;</span>
+<a id="line-1433" name="line-1433"></a><span class="w"> </span><span class="n">Display</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">;</span>
+<a id="line-1434" name="line-1434"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">screen_num</span><span class="p">;</span>
+<a id="line-1435" name="line-1435"></a><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span><span class="n">surface</span><span class="p">;</span>
+<a id="line-1436" name="line-1436"></a><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span><span class="n">source_pixmap</span><span class="p">;</span>
+<a id="line-1437" name="line-1437"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">gdkdisplay</span><span class="p">;</span>
+<a id="line-1438" name="line-1438"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">;</span>
+<a id="line-1439" name="line-1439"></a><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">cr</span><span class="p">;</span>
+<a id="line-1440" name="line-1440"></a>
+<a id="line-1441" name="line-1441"></a><span class="w"> </span><span class="n">display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_DISPLAY_XDISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_screen_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">));</span>
+<a id="line-1442" name="line-1442"></a><span class="w"> </span><span class="n">screen_num</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_x11_screen_get_screen_number</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">);</span>
+<a id="line-1443" name="line-1443"></a>
+<a id="line-1444" name="line-1444"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XGetWindowProperty</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span>
+<a id="line-1445" name="line-1445"></a><span class="w"> </span><span class="n">RootWindow</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="n">screen_num</span><span class="p">),</span>
+<a id="line-1446" name="line-1446"></a><span class="w"> </span><span class="n">gdk_x11_get_xatom_by_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;_XROOTPMAP_ID&quot;</span><span class="p">),</span>
+<a id="line-1447" name="line-1447"></a><span class="w"> </span><span class="mf">0L</span><span class="p">,</span><span class="w"> </span><span class="mf">1L</span><span class="p">,</span><span class="w"> </span><span class="n">False</span><span class="p">,</span><span class="w"> </span><span class="n">XA_PIXMAP</span><span class="p">,</span>
+<a id="line-1448" name="line-1448"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">type</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">nitems</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">bytes_after</span><span class="p">,</span>
+<a id="line-1449" name="line-1449"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">data</span><span class="p">);</span>
+<a id="line-1450" name="line-1450"></a><span class="w"> </span><span class="n">surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1451" name="line-1451"></a><span class="w"> </span><span class="n">source_pixmap</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1452" name="line-1452"></a>
+<a id="line-1453" name="line-1453"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">Success</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">XA_PIXMAP</span><span class="w"> </span><span class="o">||</span>
+<a id="line-1454" name="line-1454"></a><span class="w"> </span><span class="n">format</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">32</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">nitems</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1455" name="line-1455"></a><span class="w"> </span><span class="n">XFree</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span>
+<a id="line-1456" name="line-1456"></a><span class="w"> </span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1457" name="line-1457"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1458" name="line-1458"></a>
+<a id="line-1459" name="line-1459"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1460" name="line-1460"></a><span class="w"> </span><span class="n">gdkdisplay</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_screen_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">);</span>
+<a id="line-1461" name="line-1461"></a><span class="w"> </span><span class="n">gdk_x11_display_error_trap_push</span><span class="w"> </span><span class="p">(</span><span class="n">gdkdisplay</span><span class="p">);</span>
+<a id="line-1462" name="line-1462"></a>
+<a id="line-1463" name="line-1463"></a><span class="w"> </span><span class="n">Pixmap</span><span class="w"> </span><span class="n">xpixmap</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="p">(</span><span class="n">Pixmap</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">data</span><span class="p">;</span>
+<a id="line-1464" name="line-1464"></a><span class="w"> </span><span class="n">Window</span><span class="w"> </span><span class="n">root_return</span><span class="p">;</span>
+<a id="line-1465" name="line-1465"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x_ret</span><span class="p">,</span><span class="w"> </span><span class="n">y_ret</span><span class="p">;</span>
+<a id="line-1466" name="line-1466"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">w_ret</span><span class="p">,</span><span class="w"> </span><span class="n">h_ret</span><span class="p">,</span><span class="w"> </span><span class="n">bw_ret</span><span class="p">,</span><span class="w"> </span><span class="n">depth_ret</span><span class="p">;</span>
+<a id="line-1467" name="line-1467"></a>
+<a id="line-1468" name="line-1468"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">XGetGeometry</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_SCREEN_XDISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">),</span>
+<a id="line-1469" name="line-1469"></a><span class="w"> </span><span class="n">xpixmap</span><span class="p">,</span>
+<a id="line-1470" name="line-1470"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">root_return</span><span class="p">,</span>
+<a id="line-1471" name="line-1471"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">x_ret</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">y_ret</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">w_ret</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">h_ret</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">bw_ret</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">depth_ret</span><span class="p">))</span>
+<a id="line-1472" name="line-1472"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1473" name="line-1473"></a><span class="w"> </span><span class="n">source_pixmap</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cairo_xlib_surface_create</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_SCREEN_XDISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">),</span>
+<a id="line-1474" name="line-1474"></a><span class="w"> </span><span class="n">xpixmap</span><span class="p">,</span>
+<a id="line-1475" name="line-1475"></a><span class="w"> </span><span class="n">GDK_VISUAL_XVISUAL</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_screen_get_system_visual</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">)),</span>
+<a id="line-1476" name="line-1476"></a><span class="w"> </span><span class="n">w_ret</span><span class="p">,</span><span class="w"> </span><span class="n">h_ret</span><span class="p">);</span>
+<a id="line-1477" name="line-1477"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1478" name="line-1478"></a>
+<a id="line-1479" name="line-1479"></a><span class="w"> </span><span class="n">gdk_x11_display_error_trap_pop_ignored</span><span class="w"> </span><span class="p">(</span><span class="n">gdkdisplay</span><span class="p">);</span>
+<a id="line-1480" name="line-1480"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1481" name="line-1481"></a>
+<a id="line-1482" name="line-1482"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">WidthOfScreen</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_x11_screen_get_xscreen</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">));</span>
+<a id="line-1483" name="line-1483"></a><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">HeightOfScreen</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_x11_screen_get_xscreen</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">));</span>
+<a id="line-1484" name="line-1484"></a>
+<a id="line-1485" name="line-1485"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">source_pixmap</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1486" name="line-1486"></a><span class="w"> </span><span class="n">surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cairo_surface_create_similar</span><span class="w"> </span><span class="p">(</span><span class="n">source_pixmap</span><span class="p">,</span>
+<a id="line-1487" name="line-1487"></a><span class="w"> </span><span class="n">CAIRO_CONTENT_COLOR</span><span class="p">,</span>
+<a id="line-1488" name="line-1488"></a><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">);</span>
+<a id="line-1489" name="line-1489"></a>
+<a id="line-1490" name="line-1490"></a><span class="w"> </span><span class="n">cr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cairo_create</span><span class="w"> </span><span class="p">(</span><span class="n">surface</span><span class="p">);</span>
+<a id="line-1491" name="line-1491"></a><span class="w"> </span><span class="n">cairo_set_source_surface</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">source_pixmap</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-1492" name="line-1492"></a><span class="w"> </span><span class="n">cairo_paint</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-1493" name="line-1493"></a>
+<a id="line-1494" name="line-1494"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">cairo_status</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">CAIRO_STATUS_SUCCESS</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1495" name="line-1495"></a><span class="w"> </span><span class="n">cairo_surface_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">surface</span><span class="p">);</span>
+<a id="line-1496" name="line-1496"></a><span class="w"> </span><span class="n">surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1497" name="line-1497"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1498" name="line-1498"></a>
+<a id="line-1499" name="line-1499"></a><span class="w"> </span><span class="n">cairo_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-1500" name="line-1500"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1501" name="line-1501"></a>
+<a id="line-1502" name="line-1502"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">surface</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1503" name="line-1503"></a><span class="w"> </span><span class="n">surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_window_create_similar_surface</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_screen_get_root_window</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">),</span>
+<a id="line-1504" name="line-1504"></a><span class="w"> </span><span class="n">CAIRO_CONTENT_COLOR</span><span class="p">,</span>
+<a id="line-1505" name="line-1505"></a><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">);</span>
+<a id="line-1506" name="line-1506"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1507" name="line-1507"></a>
+<a id="line-1508" name="line-1508"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">source_pixmap</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1509" name="line-1509"></a><span class="w"> </span><span class="n">cairo_surface_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">source_pixmap</span><span class="p">);</span>
+<a id="line-1510" name="line-1510"></a>
+<a id="line-1511" name="line-1511"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1512" name="line-1512"></a><span class="w"> </span><span class="n">XFree</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span>
+<a id="line-1513" name="line-1513"></a>
+<a id="line-1514" name="line-1514"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">surface</span><span class="p">;</span>
+<a id="line-1515" name="line-1515"></a><span class="p">}</span>
+<a id="line-1516" name="line-1516"></a>
+<a id="line-1517" name="line-1517"></a><span class="cm">/* Sets the &quot;ESETROOT_PMAP_ID&quot; property to later be used to free the pixmap,</span>
+<a id="line-1518" name="line-1518"></a><span class="cm"> */</span>
+<a id="line-1519" name="line-1519"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1520" name="line-1520"></a><span class="nf">mate_bg_set_root_pixmap_id</span><span class="w"> </span><span class="p">(</span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-1521" name="line-1521"></a><span class="w"> </span><span class="n">Display</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">,</span>
+<a id="line-1522" name="line-1522"></a><span class="w"> </span><span class="n">Pixmap</span><span class="w"> </span><span class="n">xpixmap</span><span class="p">)</span>
+<a id="line-1523" name="line-1523"></a><span class="p">{</span>
+<a id="line-1524" name="line-1524"></a><span class="w"> </span><span class="n">Window</span><span class="w"> </span><span class="n">xroot</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">RootWindow</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="n">gdk_x11_screen_get_screen_number</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">));</span>
+<a id="line-1525" name="line-1525"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">atom_names</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="s">&quot;_XROOTPMAP_ID&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ESETROOT_PMAP_ID&quot;</span><span class="p">};</span>
+<a id="line-1526" name="line-1526"></a><span class="w"> </span><span class="n">Atom</span><span class="w"> </span><span class="n">atoms</span><span class="p">[</span><span class="n">G_N_ELEMENTS</span><span class="p">(</span><span class="n">atom_names</span><span class="p">)]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="mi">0</span><span class="p">};</span>
+<a id="line-1527" name="line-1527"></a>
+<a id="line-1528" name="line-1528"></a><span class="w"> </span><span class="n">Atom</span><span class="w"> </span><span class="n">type</span><span class="p">;</span>
+<a id="line-1529" name="line-1529"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-1530" name="line-1530"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="n">nitems</span><span class="p">,</span><span class="w"> </span><span class="n">after</span><span class="p">;</span>
+<a id="line-1531" name="line-1531"></a><span class="w"> </span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">data_root</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">data_esetroot</span><span class="p">;</span>
+<a id="line-1532" name="line-1532"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">gdkdisplay</span><span class="p">;</span>
+<a id="line-1533" name="line-1533"></a>
+<a id="line-1534" name="line-1534"></a><span class="w"> </span><span class="cm">/* Get atoms for both properties in an array, only if they exist.</span>
+<a id="line-1535" name="line-1535"></a><span class="cm"> * This method is to avoid multiple round-trips to Xserver</span>
+<a id="line-1536" name="line-1536"></a><span class="cm"> */</span>
+<a id="line-1537" name="line-1537"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">XInternAtoms</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="n">atom_names</span><span class="p">,</span><span class="w"> </span><span class="n">G_N_ELEMENTS</span><span class="p">(</span><span class="n">atom_names</span><span class="p">),</span><span class="w"> </span><span class="n">True</span><span class="p">,</span><span class="w"> </span><span class="n">atoms</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-1538" name="line-1538"></a><span class="w"> </span><span class="n">atoms</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">None</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">atoms</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">None</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1539" name="line-1539"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XGetWindowProperty</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="n">xroot</span><span class="p">,</span><span class="w"> </span><span class="n">atoms</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span><span class="w"> </span><span class="mf">0L</span><span class="p">,</span><span class="w"> </span><span class="mf">1L</span><span class="p">,</span>
+<a id="line-1540" name="line-1540"></a><span class="w"> </span><span class="n">False</span><span class="p">,</span><span class="w"> </span><span class="n">AnyPropertyType</span><span class="p">,</span>
+<a id="line-1541" name="line-1541"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">type</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">nitems</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">after</span><span class="p">,</span>
+<a id="line-1542" name="line-1542"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">data_root</span><span class="p">);</span>
+<a id="line-1543" name="line-1543"></a>
+<a id="line-1544" name="line-1544"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">data_root</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">Success</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-1545" name="line-1545"></a><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">XA_PIXMAP</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">format</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">32</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">nitems</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1546" name="line-1546"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">XGetWindowProperty</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="n">xroot</span><span class="p">,</span><span class="w"> </span><span class="n">atoms</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span>
+<a id="line-1547" name="line-1547"></a><span class="w"> </span><span class="mf">0L</span><span class="p">,</span><span class="w"> </span><span class="mf">1L</span><span class="p">,</span><span class="w"> </span><span class="n">False</span><span class="p">,</span>
+<a id="line-1548" name="line-1548"></a><span class="w"> </span><span class="n">AnyPropertyType</span><span class="p">,</span>
+<a id="line-1549" name="line-1549"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">type</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">nitems</span><span class="p">,</span>
+<a id="line-1550" name="line-1550"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">after</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">data_esetroot</span><span class="p">);</span>
+<a id="line-1551" name="line-1551"></a>
+<a id="line-1552" name="line-1552"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">data_esetroot</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">Success</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-1553" name="line-1553"></a><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">XA_PIXMAP</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">format</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">32</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">nitems</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1554" name="line-1554"></a><span class="w"> </span><span class="n">Pixmap</span><span class="w"> </span><span class="n">xrootpmap</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="p">((</span><span class="n">Pixmap</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">data_root</span><span class="p">);</span>
+<a id="line-1555" name="line-1555"></a><span class="w"> </span><span class="n">Pixmap</span><span class="w"> </span><span class="n">esetrootpmap</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="p">((</span><span class="n">Pixmap</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">data_esetroot</span><span class="p">);</span>
+<a id="line-1556" name="line-1556"></a>
+<a id="line-1557" name="line-1557"></a><span class="w"> </span><span class="n">gdkdisplay</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_screen_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">);</span>
+<a id="line-1558" name="line-1558"></a><span class="w"> </span><span class="n">gdk_x11_display_error_trap_push</span><span class="w"> </span><span class="p">(</span><span class="n">gdkdisplay</span><span class="p">);</span>
+<a id="line-1559" name="line-1559"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">xrootpmap</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">xrootpmap</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">esetrootpmap</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1560" name="line-1560"></a><span class="w"> </span><span class="n">XKillClient</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="n">xrootpmap</span><span class="p">);</span>
+<a id="line-1561" name="line-1561"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1562" name="line-1562"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">esetrootpmap</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">esetrootpmap</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">xrootpmap</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1563" name="line-1563"></a><span class="w"> </span><span class="n">XKillClient</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="n">esetrootpmap</span><span class="p">);</span>
+<a id="line-1564" name="line-1564"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1565" name="line-1565"></a><span class="w"> </span><span class="n">gdk_x11_display_error_trap_pop_ignored</span><span class="w"> </span><span class="p">(</span><span class="n">gdkdisplay</span><span class="p">);</span>
+<a id="line-1566" name="line-1566"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1567" name="line-1567"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">data_esetroot</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1568" name="line-1568"></a><span class="w"> </span><span class="n">XFree</span><span class="w"> </span><span class="p">(</span><span class="n">data_esetroot</span><span class="p">);</span>
+<a id="line-1569" name="line-1569"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1570" name="line-1570"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1571" name="line-1571"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">data_root</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1572" name="line-1572"></a><span class="w"> </span><span class="n">XFree</span><span class="w"> </span><span class="p">(</span><span class="n">data_root</span><span class="p">);</span>
+<a id="line-1573" name="line-1573"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1574" name="line-1574"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1575" name="line-1575"></a>
+<a id="line-1576" name="line-1576"></a><span class="w"> </span><span class="cm">/* Get atoms for both properties in an array, create them if needed.</span>
+<a id="line-1577" name="line-1577"></a><span class="cm"> * This method is to avoid multiple round-trips to Xserver</span>
+<a id="line-1578" name="line-1578"></a><span class="cm"> */</span>
+<a id="line-1579" name="line-1579"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">XInternAtoms</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="n">atom_names</span><span class="p">,</span><span class="w"> </span><span class="n">G_N_ELEMENTS</span><span class="p">(</span><span class="n">atom_names</span><span class="p">),</span><span class="w"> </span><span class="n">False</span><span class="p">,</span><span class="w"> </span><span class="n">atoms</span><span class="p">)</span><span class="w"> </span><span class="o">||</span>
+<a id="line-1580" name="line-1580"></a><span class="w"> </span><span class="n">atoms</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">None</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">atoms</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">None</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1581" name="line-1581"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Could not create atoms needed to set root pixmap id/properties.</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">);</span>
+<a id="line-1582" name="line-1582"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-1583" name="line-1583"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1584" name="line-1584"></a>
+<a id="line-1585" name="line-1585"></a><span class="w"> </span><span class="cm">/* Set new _XROOTMAP_ID and ESETROOT_PMAP_ID properties */</span>
+<a id="line-1586" name="line-1586"></a><span class="w"> </span><span class="n">XChangeProperty</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="n">xroot</span><span class="p">,</span><span class="w"> </span><span class="n">atoms</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span><span class="w"> </span><span class="n">XA_PIXMAP</span><span class="p">,</span><span class="w"> </span><span class="mi">32</span><span class="p">,</span>
+<a id="line-1587" name="line-1587"></a><span class="w"> </span><span class="n">PropModeReplace</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;</span><span class="n">xpixmap</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-1588" name="line-1588"></a>
+<a id="line-1589" name="line-1589"></a><span class="w"> </span><span class="n">XChangeProperty</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="n">xroot</span><span class="p">,</span><span class="w"> </span><span class="n">atoms</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span><span class="w"> </span><span class="n">XA_PIXMAP</span><span class="p">,</span><span class="w"> </span><span class="mi">32</span><span class="p">,</span>
+<a id="line-1590" name="line-1590"></a><span class="w"> </span><span class="n">PropModeReplace</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;</span><span class="n">xpixmap</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-1591" name="line-1591"></a><span class="p">}</span>
+<a id="line-1592" name="line-1592"></a>
+<a id="line-1593" name="line-1593"></a><span class="cm">/**</span>
+<a id="line-1594" name="line-1594"></a><span class="cm"> * mate_bg_set_surface_as_root:</span>
+<a id="line-1595" name="line-1595"></a><span class="cm"> * @screen: the #GdkScreen to change root background on</span>
+<a id="line-1596" name="line-1596"></a><span class="cm"> * @surface: the #cairo_surface_t to set root background from.</span>
+<a id="line-1597" name="line-1597"></a><span class="cm"> * Must be an xlib surface backing a pixmap.</span>
+<a id="line-1598" name="line-1598"></a><span class="cm"> *</span>
+<a id="line-1599" name="line-1599"></a><span class="cm"> * Set the root pixmap, and properties pointing to it. We</span>
+<a id="line-1600" name="line-1600"></a><span class="cm"> * do this atomically with a server grab to make sure that</span>
+<a id="line-1601" name="line-1601"></a><span class="cm"> * we won&#39;t leak the pixmap if somebody else it setting</span>
+<a id="line-1602" name="line-1602"></a><span class="cm"> * it at the same time. (This assumes that they follow the</span>
+<a id="line-1603" name="line-1603"></a><span class="cm"> * same conventions we do). @surface should come from a call</span>
+<a id="line-1604" name="line-1604"></a><span class="cm"> * to mate_bg_create_surface().</span>
+<a id="line-1605" name="line-1605"></a><span class="cm"> **/</span>
+<a id="line-1606" name="line-1606"></a><span class="kt">void</span>
+<a id="line-1607" name="line-1607"></a><span class="nf">mate_bg_set_surface_as_root</span><span class="w"> </span><span class="p">(</span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span><span class="n">surface</span><span class="p">)</span>
+<a id="line-1608" name="line-1608"></a><span class="p">{</span>
+<a id="line-1609" name="line-1609"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1610" name="line-1610"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">cairo_surface_get_type</span><span class="w"> </span><span class="p">(</span><span class="n">surface</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">CAIRO_SURFACE_TYPE_XLIB</span><span class="p">);</span>
+<a id="line-1611" name="line-1611"></a>
+<a id="line-1612" name="line-1612"></a><span class="w"> </span><span class="cm">/* Desktop background pixmap should be created from dummy X client since most</span>
+<a id="line-1613" name="line-1613"></a><span class="cm"> * applications will try to kill it with XKillClient later when changing pixmap</span>
+<a id="line-1614" name="line-1614"></a><span class="cm"> */</span>
+<a id="line-1615" name="line-1615"></a><span class="w"> </span><span class="n">Display</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_DISPLAY_XDISPLAY</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_screen_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">));</span>
+<a id="line-1616" name="line-1616"></a><span class="w"> </span><span class="n">Pixmap</span><span class="w"> </span><span class="n">pixmap_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cairo_xlib_surface_get_drawable</span><span class="w"> </span><span class="p">(</span><span class="n">surface</span><span class="p">);</span>
+<a id="line-1617" name="line-1617"></a><span class="w"> </span><span class="n">Window</span><span class="w"> </span><span class="n">xroot</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">RootWindow</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="n">gdk_x11_screen_get_screen_number</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">));</span>
+<a id="line-1618" name="line-1618"></a>
+<a id="line-1619" name="line-1619"></a><span class="w"> </span><span class="n">XGrabServer</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-1620" name="line-1620"></a><span class="w"> </span><span class="n">mate_bg_set_root_pixmap_id</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="n">pixmap_id</span><span class="p">);</span>
+<a id="line-1621" name="line-1621"></a>
+<a id="line-1622" name="line-1622"></a><span class="w"> </span><span class="n">XSetWindowBackgroundPixmap</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="n">xroot</span><span class="p">,</span><span class="w"> </span><span class="n">pixmap_id</span><span class="p">);</span>
+<a id="line-1623" name="line-1623"></a><span class="w"> </span><span class="n">XClearWindow</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="n">xroot</span><span class="p">);</span>
+<a id="line-1624" name="line-1624"></a>
+<a id="line-1625" name="line-1625"></a><span class="w"> </span><span class="n">XFlush</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-1626" name="line-1626"></a><span class="w"> </span><span class="n">XUngrabServer</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-1627" name="line-1627"></a><span class="p">}</span>
+<a id="line-1628" name="line-1628"></a>
+<a id="line-1629" name="line-1629"></a><span class="cm">/**</span>
+<a id="line-1630" name="line-1630"></a><span class="cm"> * mate_bg_set_surface_as_root_with_crossfade:</span>
+<a id="line-1631" name="line-1631"></a><span class="cm"> * @screen: the #GdkScreen to change root background on</span>
+<a id="line-1632" name="line-1632"></a><span class="cm"> * @surface: the cairo xlib surface to set root background from</span>
+<a id="line-1633" name="line-1633"></a><span class="cm"> *</span>
+<a id="line-1634" name="line-1634"></a><span class="cm"> * Set the root pixmap, and properties pointing to it.</span>
+<a id="line-1635" name="line-1635"></a><span class="cm"> * This function differs from mate_bg_set_surface_as_root()</span>
+<a id="line-1636" name="line-1636"></a><span class="cm"> * in that it adds a subtle crossfade animation from the</span>
+<a id="line-1637" name="line-1637"></a><span class="cm"> * current root pixmap to the new one.</span>
+<a id="line-1638" name="line-1638"></a><span class="cm"> *</span>
+<a id="line-1639" name="line-1639"></a><span class="cm"> * Return value: (transfer full): a #MateBGCrossfade object</span>
+<a id="line-1640" name="line-1640"></a><span class="cm"> **/</span>
+<a id="line-1641" name="line-1641"></a><span class="n">MateBGCrossfade</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1642" name="line-1642"></a><span class="nf">mate_bg_set_surface_as_root_with_crossfade</span><span class="w"> </span><span class="p">(</span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-1643" name="line-1643"></a><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span><span class="n">surface</span><span class="p">)</span>
+<a id="line-1644" name="line-1644"></a><span class="p">{</span>
+<a id="line-1645" name="line-1645"></a><span class="w"> </span><span class="n">GdkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">root_window</span><span class="p">;</span>
+<a id="line-1646" name="line-1646"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">;</span>
+<a id="line-1647" name="line-1647"></a><span class="w"> </span><span class="n">MateBGCrossfade</span><span class="w"> </span><span class="o">*</span><span class="n">fade</span><span class="p">;</span>
+<a id="line-1648" name="line-1648"></a><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">cr</span><span class="p">;</span>
+<a id="line-1649" name="line-1649"></a><span class="w"> </span><span class="n">cairo_surface_t</span><span class="w"> </span><span class="o">*</span><span class="n">old_surface</span><span class="p">;</span>
+<a id="line-1650" name="line-1650"></a>
+<a id="line-1651" name="line-1651"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1652" name="line-1652"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">surface</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1653" name="line-1653"></a>
+<a id="line-1654" name="line-1654"></a><span class="w"> </span><span class="n">root_window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_screen_get_root_window</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">);</span>
+<a id="line-1655" name="line-1655"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_window_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">root_window</span><span class="p">);</span>
+<a id="line-1656" name="line-1656"></a><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_window_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">root_window</span><span class="p">);</span>
+<a id="line-1657" name="line-1657"></a><span class="w"> </span><span class="n">fade</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_bg_crossfade_new</span><span class="w"> </span><span class="p">(</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">);</span>
+<a id="line-1658" name="line-1658"></a><span class="w"> </span><span class="n">old_surface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_bg_get_surface_from_root</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">);</span>
+<a id="line-1659" name="line-1659"></a>
+<a id="line-1660" name="line-1660"></a><span class="w"> </span><span class="n">mate_bg_crossfade_set_start_surface</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="p">,</span><span class="w"> </span><span class="n">old_surface</span><span class="p">);</span>
+<a id="line-1661" name="line-1661"></a><span class="w"> </span><span class="n">mate_bg_crossfade_set_end_surface</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="p">,</span><span class="w"> </span><span class="n">surface</span><span class="p">);</span>
+<a id="line-1662" name="line-1662"></a>
+<a id="line-1663" name="line-1663"></a><span class="w"> </span><span class="cm">/* Before setting the surface as a root pixmap, let&#39;s have it draw</span>
+<a id="line-1664" name="line-1664"></a><span class="cm"> * the old stuff, just so it won&#39;t be noticable</span>
+<a id="line-1665" name="line-1665"></a><span class="cm"> * (crossfade will later get it back)</span>
+<a id="line-1666" name="line-1666"></a><span class="cm"> */</span>
+<a id="line-1667" name="line-1667"></a><span class="w"> </span><span class="n">cr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cairo_create</span><span class="w"> </span><span class="p">(</span><span class="n">surface</span><span class="p">);</span>
+<a id="line-1668" name="line-1668"></a><span class="w"> </span><span class="n">cairo_set_source_surface</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">old_surface</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-1669" name="line-1669"></a><span class="w"> </span><span class="n">cairo_pattern_set_extend</span><span class="w"> </span><span class="p">(</span><span class="n">cairo_get_source</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">),</span><span class="w"> </span><span class="n">CAIRO_EXTEND_REPEAT</span><span class="p">);</span>
+<a id="line-1670" name="line-1670"></a><span class="w"> </span><span class="n">cairo_paint</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-1671" name="line-1671"></a><span class="w"> </span><span class="n">cairo_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-1672" name="line-1672"></a><span class="w"> </span><span class="n">cairo_surface_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">old_surface</span><span class="p">);</span>
+<a id="line-1673" name="line-1673"></a>
+<a id="line-1674" name="line-1674"></a><span class="w"> </span><span class="n">mate_bg_set_surface_as_root</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">surface</span><span class="p">);</span>
+<a id="line-1675" name="line-1675"></a><span class="w"> </span><span class="n">mate_bg_crossfade_start</span><span class="w"> </span><span class="p">(</span><span class="n">fade</span><span class="p">,</span><span class="w"> </span><span class="n">root_window</span><span class="p">);</span>
+<a id="line-1676" name="line-1676"></a>
+<a id="line-1677" name="line-1677"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">fade</span><span class="p">;</span>
+<a id="line-1678" name="line-1678"></a><span class="p">}</span>
+<a id="line-1679" name="line-1679"></a>
+<a id="line-1680" name="line-1680"></a><span class="cm">/* Implementation of the pixbuf cache */</span>
+<a id="line-1681" name="line-1681"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_SlideShow</span>
+<a id="line-1682" name="line-1682"></a><span class="p">{</span>
+<a id="line-1683" name="line-1683"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ref_count</span><span class="p">;</span>
+<a id="line-1684" name="line-1684"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">start_time</span><span class="p">;</span>
+<a id="line-1685" name="line-1685"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">total_duration</span><span class="p">;</span>
+<a id="line-1686" name="line-1686"></a>
+<a id="line-1687" name="line-1687"></a><span class="w"> </span><span class="n">GQueue</span><span class="w"> </span><span class="o">*</span><span class="n">slides</span><span class="p">;</span>
+<a id="line-1688" name="line-1688"></a>
+<a id="line-1689" name="line-1689"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">has_multiple_sizes</span><span class="p">;</span>
+<a id="line-1690" name="line-1690"></a>
+<a id="line-1691" name="line-1691"></a><span class="w"> </span><span class="cm">/* used during parsing */</span>
+<a id="line-1692" name="line-1692"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">tm</span><span class="w"> </span><span class="n">start_tm</span><span class="p">;</span>
+<a id="line-1693" name="line-1693"></a><span class="w"> </span><span class="n">GQueue</span><span class="w"> </span><span class="o">*</span><span class="n">stack</span><span class="p">;</span>
+<a id="line-1694" name="line-1694"></a><span class="p">};</span>
+<a id="line-1695" name="line-1695"></a>
+<a id="line-1696" name="line-1696"></a><span class="cp">#if GLIB_CHECK_VERSION(2,61,2)</span>
+<a id="line-1697" name="line-1697"></a><span class="k">static</span><span class="w"> </span><span class="kt">double</span>
+<a id="line-1698" name="line-1698"></a><span class="nf">now</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-1699" name="line-1699"></a><span class="p">{</span>
+<a id="line-1700" name="line-1700"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">microseconds_per_second</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="n">G_USEC_PER_SEC</span><span class="p">;</span>
+<a id="line-1701" name="line-1701"></a><span class="w"> </span><span class="n">gint64</span><span class="w"> </span><span class="n">tv</span><span class="p">;</span>
+<a id="line-1702" name="line-1702"></a>
+<a id="line-1703" name="line-1703"></a><span class="w"> </span><span class="n">tv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_get_real_time</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1704" name="line-1704"></a>
+<a id="line-1705" name="line-1705"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">tv</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">microseconds_per_second</span><span class="p">);</span>
+<a id="line-1706" name="line-1706"></a><span class="p">}</span>
+<a id="line-1707" name="line-1707"></a><span class="cp">#else</span>
+<a id="line-1708" name="line-1708"></a><span class="k">static</span><span class="w"> </span><span class="kt">double</span>
+<a id="line-1709" name="line-1709"></a><span class="nf">now</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-1710" name="line-1710"></a><span class="p">{</span>
+<a id="line-1711" name="line-1711"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">microseconds_per_second</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="n">G_USEC_PER_SEC</span><span class="p">;</span>
+<a id="line-1712" name="line-1712"></a><span class="w"> </span><span class="n">GTimeVal</span><span class="w"> </span><span class="n">tv</span><span class="p">;</span>
+<a id="line-1713" name="line-1713"></a>
+<a id="line-1714" name="line-1714"></a><span class="w"> </span><span class="n">g_get_current_time</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">tv</span><span class="p">);</span>
+<a id="line-1715" name="line-1715"></a>
+<a id="line-1716" name="line-1716"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="n">tv</span><span class="p">.</span><span class="n">tv_sec</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">tv</span><span class="p">.</span><span class="n">tv_usec</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">microseconds_per_second</span><span class="p">);</span>
+<a id="line-1717" name="line-1717"></a><span class="p">}</span>
+<a id="line-1718" name="line-1718"></a><span class="cp">#endif</span>
+<a id="line-1719" name="line-1719"></a>
+<a id="line-1720" name="line-1720"></a><span class="k">static</span><span class="w"> </span><span class="n">Slide</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1721" name="line-1721"></a><span class="nf">get_current_slide</span><span class="w"> </span><span class="p">(</span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span><span class="n">show</span><span class="p">,</span>
+<a id="line-1722" name="line-1722"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="o">*</span><span class="n">alpha</span><span class="p">)</span>
+<a id="line-1723" name="line-1723"></a><span class="p">{</span>
+<a id="line-1724" name="line-1724"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">delta</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">fmod</span><span class="w"> </span><span class="p">(</span><span class="n">now</span><span class="p">()</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">show</span><span class="o">-&gt;</span><span class="n">start_time</span><span class="p">,</span><span class="w"> </span><span class="n">show</span><span class="o">-&gt;</span><span class="n">total_duration</span><span class="p">);</span>
+<a id="line-1725" name="line-1725"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="p">;</span>
+<a id="line-1726" name="line-1726"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">elapsed</span><span class="p">;</span>
+<a id="line-1727" name="line-1727"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-1728" name="line-1728"></a>
+<a id="line-1729" name="line-1729"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">delta</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-1730" name="line-1730"></a><span class="w"> </span><span class="n">delta</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">show</span><span class="o">-&gt;</span><span class="n">total_duration</span><span class="p">;</span>
+<a id="line-1731" name="line-1731"></a>
+<a id="line-1732" name="line-1732"></a><span class="w"> </span><span class="n">elapsed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-1733" name="line-1733"></a><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-1734" name="line-1734"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">show</span><span class="o">-&gt;</span><span class="n">slides</span><span class="o">-&gt;</span><span class="n">head</span><span class="p">;</span><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">list</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1735" name="line-1735"></a><span class="w"> </span><span class="n">Slide</span><span class="w"> </span><span class="o">*</span><span class="n">slide</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">list</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-1736" name="line-1736"></a>
+<a id="line-1737" name="line-1737"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">elapsed</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">duration</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="n">delta</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1738" name="line-1738"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">alpha</span><span class="p">)</span>
+<a id="line-1739" name="line-1739"></a><span class="w"> </span><span class="o">*</span><span class="n">alpha</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">delta</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">elapsed</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">duration</span><span class="p">;</span>
+<a id="line-1740" name="line-1740"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">slide</span><span class="p">;</span>
+<a id="line-1741" name="line-1741"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1742" name="line-1742"></a>
+<a id="line-1743" name="line-1743"></a><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">;</span>
+<a id="line-1744" name="line-1744"></a><span class="w"> </span><span class="n">elapsed</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">duration</span><span class="p">;</span>
+<a id="line-1745" name="line-1745"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1746" name="line-1746"></a>
+<a id="line-1747" name="line-1747"></a><span class="w"> </span><span class="cm">/* this should never happen since we have slides and we should always</span>
+<a id="line-1748" name="line-1748"></a><span class="cm"> * find a current slide for the elapsed time since beginning -- we&#39;re</span>
+<a id="line-1749" name="line-1749"></a><span class="cm"> * looping with fmod() */</span>
+<a id="line-1750" name="line-1750"></a><span class="w"> </span><span class="n">g_assert_not_reached</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1751" name="line-1751"></a>
+<a id="line-1752" name="line-1752"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1753" name="line-1753"></a><span class="p">}</span>
+<a id="line-1754" name="line-1754"></a>
+<a id="line-1755" name="line-1755"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1756" name="line-1756"></a><span class="nf">blend</span><span class="w"> </span><span class="p">(</span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">p1</span><span class="p">,</span>
+<a id="line-1757" name="line-1757"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">p2</span><span class="p">,</span>
+<a id="line-1758" name="line-1758"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">alpha</span><span class="p">)</span>
+<a id="line-1759" name="line-1759"></a><span class="p">{</span>
+<a id="line-1760" name="line-1760"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_copy</span><span class="w"> </span><span class="p">(</span><span class="n">p1</span><span class="p">);</span>
+<a id="line-1761" name="line-1761"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">tmp</span><span class="p">;</span>
+<a id="line-1762" name="line-1762"></a>
+<a id="line-1763" name="line-1763"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">p2</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">p1</span><span class="p">)</span><span class="w"> </span><span class="o">||</span>
+<a id="line-1764" name="line-1764"></a><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">p2</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">p1</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1765" name="line-1765"></a><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_scale_simple</span><span class="w"> </span><span class="p">(</span><span class="n">p2</span><span class="p">,</span>
+<a id="line-1766" name="line-1766"></a><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">p1</span><span class="p">),</span>
+<a id="line-1767" name="line-1767"></a><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">p1</span><span class="p">),</span>
+<a id="line-1768" name="line-1768"></a><span class="w"> </span><span class="n">GDK_INTERP_BILINEAR</span><span class="p">);</span>
+<a id="line-1769" name="line-1769"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1770" name="line-1770"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1771" name="line-1771"></a><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">p2</span><span class="p">);</span>
+<a id="line-1772" name="line-1772"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1773" name="line-1773"></a>
+<a id="line-1774" name="line-1774"></a><span class="w"> </span><span class="n">pixbuf_blend</span><span class="w"> </span><span class="p">(</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">alpha</span><span class="p">);</span>
+<a id="line-1775" name="line-1775"></a>
+<a id="line-1776" name="line-1776"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span>
+<a id="line-1777" name="line-1777"></a>
+<a id="line-1778" name="line-1778"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-1779" name="line-1779"></a><span class="p">}</span>
+<a id="line-1780" name="line-1780"></a>
+<a id="line-1781" name="line-1781"></a><span class="k">typedef</span><span class="w"> </span><span class="k">enum</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1782" name="line-1782"></a><span class="w"> </span><span class="n">PIXBUF</span><span class="p">,</span>
+<a id="line-1783" name="line-1783"></a><span class="w"> </span><span class="n">SLIDESHOW</span><span class="p">,</span>
+<a id="line-1784" name="line-1784"></a><span class="w"> </span><span class="n">THUMBNAIL</span>
+<a id="line-1785" name="line-1785"></a><span class="p">}</span><span class="w"> </span><span class="n">FileType</span><span class="p">;</span>
+<a id="line-1786" name="line-1786"></a>
+<a id="line-1787" name="line-1787"></a><span class="k">struct</span><span class="w"> </span><span class="nc">FileCacheEntry</span>
+<a id="line-1788" name="line-1788"></a><span class="p">{</span>
+<a id="line-1789" name="line-1789"></a><span class="w"> </span><span class="n">FileType</span><span class="w"> </span><span class="n">type</span><span class="p">;</span>
+<a id="line-1790" name="line-1790"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">;</span>
+<a id="line-1791" name="line-1791"></a><span class="w"> </span><span class="k">union</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1792" name="line-1792"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-1793" name="line-1793"></a><span class="w"> </span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span><span class="n">slideshow</span><span class="p">;</span>
+<a id="line-1794" name="line-1794"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">thumbnail</span><span class="p">;</span>
+<a id="line-1795" name="line-1795"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="n">u</span><span class="p">;</span>
+<a id="line-1796" name="line-1796"></a><span class="p">};</span>
+<a id="line-1797" name="line-1797"></a>
+<a id="line-1798" name="line-1798"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1799" name="line-1799"></a><span class="nf">file_cache_entry_delete</span><span class="w"> </span><span class="p">(</span><span class="n">FileCacheEntry</span><span class="w"> </span><span class="o">*</span><span class="n">ent</span><span class="p">)</span>
+<a id="line-1800" name="line-1800"></a><span class="p">{</span>
+<a id="line-1801" name="line-1801"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">ent</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-1802" name="line-1802"></a>
+<a id="line-1803" name="line-1803"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">ent</span><span class="o">-&gt;</span><span class="n">type</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1804" name="line-1804"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PIXBUF</span><span class="p">:</span>
+<a id="line-1805" name="line-1805"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">ent</span><span class="o">-&gt;</span><span class="n">u</span><span class="p">.</span><span class="n">pixbuf</span><span class="p">);</span>
+<a id="line-1806" name="line-1806"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1807" name="line-1807"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">SLIDESHOW</span><span class="p">:</span>
+<a id="line-1808" name="line-1808"></a><span class="w"> </span><span class="n">slideshow_unref</span><span class="w"> </span><span class="p">(</span><span class="n">ent</span><span class="o">-&gt;</span><span class="n">u</span><span class="p">.</span><span class="n">slideshow</span><span class="p">);</span>
+<a id="line-1809" name="line-1809"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1810" name="line-1810"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">THUMBNAIL</span><span class="p">:</span>
+<a id="line-1811" name="line-1811"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">ent</span><span class="o">-&gt;</span><span class="n">u</span><span class="p">.</span><span class="n">thumbnail</span><span class="p">);</span>
+<a id="line-1812" name="line-1812"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1813" name="line-1813"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1814" name="line-1814"></a>
+<a id="line-1815" name="line-1815"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">ent</span><span class="p">);</span>
+<a id="line-1816" name="line-1816"></a><span class="p">}</span>
+<a id="line-1817" name="line-1817"></a>
+<a id="line-1818" name="line-1818"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1819" name="line-1819"></a><span class="nf">bound_cache</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">)</span>
+<a id="line-1820" name="line-1820"></a><span class="p">{</span>
+<a id="line-1821" name="line-1821"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">g_list_length</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">file_cache</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;=</span><span class="w"> </span><span class="n">CACHE_SIZE</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1822" name="line-1822"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">last_link</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_last</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">file_cache</span><span class="p">);</span>
+<a id="line-1823" name="line-1823"></a><span class="w"> </span><span class="n">FileCacheEntry</span><span class="w"> </span><span class="o">*</span><span class="n">ent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">last_link</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-1824" name="line-1824"></a>
+<a id="line-1825" name="line-1825"></a><span class="w"> </span><span class="n">file_cache_entry_delete</span><span class="w"> </span><span class="p">(</span><span class="n">ent</span><span class="p">);</span>
+<a id="line-1826" name="line-1826"></a>
+<a id="line-1827" name="line-1827"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">file_cache</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_delete_link</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">file_cache</span><span class="p">,</span><span class="w"> </span><span class="n">last_link</span><span class="p">);</span>
+<a id="line-1828" name="line-1828"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1829" name="line-1829"></a><span class="p">}</span>
+<a id="line-1830" name="line-1830"></a>
+<a id="line-1831" name="line-1831"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">FileCacheEntry</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1832" name="line-1832"></a><span class="nf">file_cache_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">FileType</span><span class="w"> </span><span class="n">type</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">)</span>
+<a id="line-1833" name="line-1833"></a><span class="p">{</span>
+<a id="line-1834" name="line-1834"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="p">;</span>
+<a id="line-1835" name="line-1835"></a>
+<a id="line-1836" name="line-1836"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">file_cache</span><span class="p">;</span><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">list</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1837" name="line-1837"></a><span class="w"> </span><span class="n">FileCacheEntry</span><span class="w"> </span><span class="o">*</span><span class="n">ent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">list</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-1838" name="line-1838"></a>
+<a id="line-1839" name="line-1839"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">ent</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">ent</span><span class="o">-&gt;</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-1840" name="line-1840"></a><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">ent</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="n">filename</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1841" name="line-1841"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ent</span><span class="p">;</span>
+<a id="line-1842" name="line-1842"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1843" name="line-1843"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1844" name="line-1844"></a>
+<a id="line-1845" name="line-1845"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1846" name="line-1846"></a><span class="p">}</span>
+<a id="line-1847" name="line-1847"></a>
+<a id="line-1848" name="line-1848"></a><span class="k">static</span><span class="w"> </span><span class="n">FileCacheEntry</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1849" name="line-1849"></a><span class="nf">file_cache_entry_new</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-1850" name="line-1850"></a><span class="w"> </span><span class="n">FileType</span><span class="w"> </span><span class="n">type</span><span class="p">,</span>
+<a id="line-1851" name="line-1851"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">)</span>
+<a id="line-1852" name="line-1852"></a><span class="p">{</span>
+<a id="line-1853" name="line-1853"></a><span class="w"> </span><span class="n">FileCacheEntry</span><span class="w"> </span><span class="o">*</span><span class="n">ent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new0</span><span class="w"> </span><span class="p">(</span><span class="n">FileCacheEntry</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-1854" name="line-1854"></a>
+<a id="line-1855" name="line-1855"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">file_cache_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">type</span><span class="p">,</span><span class="w"> </span><span class="n">filename</span><span class="p">));</span>
+<a id="line-1856" name="line-1856"></a>
+<a id="line-1857" name="line-1857"></a><span class="w"> </span><span class="n">ent</span><span class="o">-&gt;</span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">type</span><span class="p">;</span>
+<a id="line-1858" name="line-1858"></a><span class="w"> </span><span class="n">ent</span><span class="o">-&gt;</span><span class="n">filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-1859" name="line-1859"></a>
+<a id="line-1860" name="line-1860"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">file_cache</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">file_cache</span><span class="p">,</span><span class="w"> </span><span class="n">ent</span><span class="p">);</span>
+<a id="line-1861" name="line-1861"></a>
+<a id="line-1862" name="line-1862"></a><span class="w"> </span><span class="n">bound_cache</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">);</span>
+<a id="line-1863" name="line-1863"></a>
+<a id="line-1864" name="line-1864"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ent</span><span class="p">;</span>
+<a id="line-1865" name="line-1865"></a><span class="p">}</span>
+<a id="line-1866" name="line-1866"></a>
+<a id="line-1867" name="line-1867"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1868" name="line-1868"></a><span class="nf">file_cache_add_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-1869" name="line-1869"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">,</span>
+<a id="line-1870" name="line-1870"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">)</span>
+<a id="line-1871" name="line-1871"></a><span class="p">{</span>
+<a id="line-1872" name="line-1872"></a><span class="w"> </span><span class="n">FileCacheEntry</span><span class="w"> </span><span class="o">*</span><span class="n">ent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">file_cache_entry_new</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">PIXBUF</span><span class="p">,</span><span class="w"> </span><span class="n">filename</span><span class="p">);</span>
+<a id="line-1873" name="line-1873"></a><span class="w"> </span><span class="n">ent</span><span class="o">-&gt;</span><span class="n">u</span><span class="p">.</span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span>
+<a id="line-1874" name="line-1874"></a><span class="p">}</span>
+<a id="line-1875" name="line-1875"></a>
+<a id="line-1876" name="line-1876"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1877" name="line-1877"></a><span class="nf">file_cache_add_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-1878" name="line-1878"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">,</span>
+<a id="line-1879" name="line-1879"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">)</span>
+<a id="line-1880" name="line-1880"></a><span class="p">{</span>
+<a id="line-1881" name="line-1881"></a><span class="w"> </span><span class="n">FileCacheEntry</span><span class="w"> </span><span class="o">*</span><span class="n">ent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">file_cache_entry_new</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">THUMBNAIL</span><span class="p">,</span><span class="w"> </span><span class="n">filename</span><span class="p">);</span>
+<a id="line-1882" name="line-1882"></a><span class="w"> </span><span class="n">ent</span><span class="o">-&gt;</span><span class="n">u</span><span class="p">.</span><span class="n">thumbnail</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span>
+<a id="line-1883" name="line-1883"></a><span class="p">}</span>
+<a id="line-1884" name="line-1884"></a>
+<a id="line-1885" name="line-1885"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1886" name="line-1886"></a><span class="nf">file_cache_add_slide_show</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-1887" name="line-1887"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">,</span>
+<a id="line-1888" name="line-1888"></a><span class="w"> </span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span><span class="n">show</span><span class="p">)</span>
+<a id="line-1889" name="line-1889"></a><span class="p">{</span>
+<a id="line-1890" name="line-1890"></a><span class="w"> </span><span class="n">FileCacheEntry</span><span class="w"> </span><span class="o">*</span><span class="n">ent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">file_cache_entry_new</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">SLIDESHOW</span><span class="p">,</span><span class="w"> </span><span class="n">filename</span><span class="p">);</span>
+<a id="line-1891" name="line-1891"></a><span class="w"> </span><span class="n">ent</span><span class="o">-&gt;</span><span class="n">u</span><span class="p">.</span><span class="n">slideshow</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">slideshow_ref</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="p">);</span>
+<a id="line-1892" name="line-1892"></a><span class="p">}</span>
+<a id="line-1893" name="line-1893"></a>
+<a id="line-1894" name="line-1894"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1895" name="line-1895"></a><span class="nf">load_from_cache_file</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-1896" name="line-1896"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">,</span>
+<a id="line-1897" name="line-1897"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">num_monitor</span><span class="p">,</span>
+<a id="line-1898" name="line-1898"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">best_width</span><span class="p">,</span>
+<a id="line-1899" name="line-1899"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">best_height</span><span class="p">)</span>
+<a id="line-1900" name="line-1900"></a><span class="p">{</span>
+<a id="line-1901" name="line-1901"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1902" name="line-1902"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">cache_filename</span><span class="p">;</span>
+<a id="line-1903" name="line-1903"></a>
+<a id="line-1904" name="line-1904"></a><span class="w"> </span><span class="n">cache_filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_wallpaper_cache_filename</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="n">num_monitor</span><span class="p">,</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">placement</span><span class="p">,</span>
+<a id="line-1905" name="line-1905"></a><span class="w"> </span><span class="n">best_width</span><span class="p">,</span><span class="w"> </span><span class="n">best_height</span><span class="p">);</span>
+<a id="line-1906" name="line-1906"></a>
+<a id="line-1907" name="line-1907"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">cache_file_is_valid</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="n">cache_filename</span><span class="p">))</span>
+<a id="line-1908" name="line-1908"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new_from_file</span><span class="w"> </span><span class="p">(</span><span class="n">cache_filename</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1909" name="line-1909"></a>
+<a id="line-1910" name="line-1910"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">cache_filename</span><span class="p">);</span>
+<a id="line-1911" name="line-1911"></a>
+<a id="line-1912" name="line-1912"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-1913" name="line-1913"></a><span class="p">}</span>
+<a id="line-1914" name="line-1914"></a>
+<a id="line-1915" name="line-1915"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1916" name="line-1916"></a><span class="nf">get_as_pixbuf_for_size</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-1917" name="line-1917"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">,</span>
+<a id="line-1918" name="line-1918"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">monitor</span><span class="p">,</span>
+<a id="line-1919" name="line-1919"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">best_width</span><span class="p">,</span>
+<a id="line-1920" name="line-1920"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">best_height</span><span class="p">)</span>
+<a id="line-1921" name="line-1921"></a><span class="p">{</span>
+<a id="line-1922" name="line-1922"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">FileCacheEntry</span><span class="w"> </span><span class="o">*</span><span class="n">ent</span><span class="p">;</span>
+<a id="line-1923" name="line-1923"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">ent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">file_cache_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">PIXBUF</span><span class="p">,</span><span class="w"> </span><span class="n">filename</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1924" name="line-1924"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">ent</span><span class="o">-&gt;</span><span class="n">u</span><span class="p">.</span><span class="n">pixbuf</span><span class="p">);</span>
+<a id="line-1925" name="line-1925"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1926" name="line-1926"></a><span class="w"> </span><span class="n">GdkPixbufFormat</span><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="p">;</span>
+<a id="line-1927" name="line-1927"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1928" name="line-1928"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1929" name="line-1929"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">tmp_pixbuf</span><span class="p">;</span>
+<a id="line-1930" name="line-1930"></a>
+<a id="line-1931" name="line-1931"></a><span class="w"> </span><span class="cm">/* Try to hit local cache first if relevant */</span>
+<a id="line-1932" name="line-1932"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">monitor</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">-1</span><span class="p">)</span>
+<a id="line-1933" name="line-1933"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">load_from_cache_file</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="n">monitor</span><span class="p">,</span>
+<a id="line-1934" name="line-1934"></a><span class="w"> </span><span class="n">best_width</span><span class="p">,</span><span class="w"> </span><span class="n">best_height</span><span class="p">);</span>
+<a id="line-1935" name="line-1935"></a>
+<a id="line-1936" name="line-1936"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">pixbuf</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1937" name="line-1937"></a><span class="w"> </span><span class="cm">/* If scalable choose maximum size */</span>
+<a id="line-1938" name="line-1938"></a><span class="w"> </span><span class="n">format</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_file_info</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1939" name="line-1939"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">format</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1940" name="line-1940"></a><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_format_get_name</span><span class="w"> </span><span class="p">(</span><span class="n">format</span><span class="p">);</span>
+<a id="line-1941" name="line-1941"></a>
+<a id="line-1942" name="line-1942"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_strcmp0</span><span class="w"> </span><span class="p">(</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;svg&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-1943" name="line-1943"></a><span class="w"> </span><span class="p">(</span><span class="n">best_width</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">best_height</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-1944" name="line-1944"></a><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">placement</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">MATE_BG_PLACEMENT_FILL_SCREEN</span><span class="w"> </span><span class="o">||</span>
+<a id="line-1945" name="line-1945"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">placement</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">MATE_BG_PLACEMENT_SCALED</span><span class="w"> </span><span class="o">||</span>
+<a id="line-1946" name="line-1946"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">placement</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">MATE_BG_PLACEMENT_ZOOMED</span><span class="p">))</span>
+<a id="line-1947" name="line-1947"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1948" name="line-1948"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new_from_file_at_size</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">,</span>
+<a id="line-1949" name="line-1949"></a><span class="w"> </span><span class="n">best_width</span><span class="p">,</span>
+<a id="line-1950" name="line-1950"></a><span class="w"> </span><span class="n">best_height</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1951" name="line-1951"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1952" name="line-1952"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new_from_file</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1953" name="line-1953"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1954" name="line-1954"></a>
+<a id="line-1955" name="line-1955"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">tmp</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1956" name="line-1956"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span>
+<a id="line-1957" name="line-1957"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1958" name="line-1958"></a>
+<a id="line-1959" name="line-1959"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1960" name="line-1960"></a><span class="w"> </span><span class="n">tmp_pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_apply_embedded_orientation</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span>
+<a id="line-1961" name="line-1961"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span>
+<a id="line-1962" name="line-1962"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tmp_pixbuf</span><span class="p">;</span>
+<a id="line-1963" name="line-1963"></a><span class="w"> </span><span class="n">file_cache_add_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">);</span>
+<a id="line-1964" name="line-1964"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1965" name="line-1965"></a>
+<a id="line-1966" name="line-1966"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-1967" name="line-1967"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1968" name="line-1968"></a><span class="p">}</span>
+<a id="line-1969" name="line-1969"></a>
+<a id="line-1970" name="line-1970"></a><span class="k">static</span><span class="w"> </span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1971" name="line-1971"></a><span class="nf">get_as_slideshow</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">)</span>
+<a id="line-1972" name="line-1972"></a><span class="p">{</span>
+<a id="line-1973" name="line-1973"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">FileCacheEntry</span><span class="w"> </span><span class="o">*</span><span class="n">ent</span><span class="p">;</span>
+<a id="line-1974" name="line-1974"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">ent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">file_cache_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">SLIDESHOW</span><span class="p">,</span><span class="w"> </span><span class="n">filename</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1975" name="line-1975"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">slideshow_ref</span><span class="w"> </span><span class="p">(</span><span class="n">ent</span><span class="o">-&gt;</span><span class="n">u</span><span class="p">.</span><span class="n">slideshow</span><span class="p">);</span>
+<a id="line-1976" name="line-1976"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1977" name="line-1977"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1978" name="line-1978"></a><span class="w"> </span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span><span class="n">show</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">read_slideshow_file</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1979" name="line-1979"></a>
+<a id="line-1980" name="line-1980"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="p">)</span>
+<a id="line-1981" name="line-1981"></a><span class="w"> </span><span class="n">file_cache_add_slide_show</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="n">show</span><span class="p">);</span>
+<a id="line-1982" name="line-1982"></a>
+<a id="line-1983" name="line-1983"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">show</span><span class="p">;</span>
+<a id="line-1984" name="line-1984"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1985" name="line-1985"></a><span class="p">}</span>
+<a id="line-1986" name="line-1986"></a>
+<a id="line-1987" name="line-1987"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1988" name="line-1988"></a><span class="nf">get_as_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">)</span>
+<a id="line-1989" name="line-1989"></a><span class="p">{</span>
+<a id="line-1990" name="line-1990"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">FileCacheEntry</span><span class="w"> </span><span class="o">*</span><span class="n">ent</span><span class="p">;</span>
+<a id="line-1991" name="line-1991"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">ent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">file_cache_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">THUMBNAIL</span><span class="p">,</span><span class="w"> </span><span class="n">filename</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1992" name="line-1992"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">ent</span><span class="o">-&gt;</span><span class="n">u</span><span class="p">.</span><span class="n">thumbnail</span><span class="p">);</span>
+<a id="line-1993" name="line-1993"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1994" name="line-1994"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1995" name="line-1995"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">thumb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">create_thumbnail_for_filename</span><span class="w"> </span><span class="p">(</span><span class="n">factory</span><span class="p">,</span><span class="w"> </span><span class="n">filename</span><span class="p">);</span>
+<a id="line-1996" name="line-1996"></a>
+<a id="line-1997" name="line-1997"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">)</span>
+<a id="line-1998" name="line-1998"></a><span class="w"> </span><span class="n">file_cache_add_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="n">thumb</span><span class="p">);</span>
+<a id="line-1999" name="line-1999"></a>
+<a id="line-2000" name="line-2000"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">thumb</span><span class="p">;</span>
+<a id="line-2001" name="line-2001"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2002" name="line-2002"></a><span class="p">}</span>
+<a id="line-2003" name="line-2003"></a>
+<a id="line-2004" name="line-2004"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-2005" name="line-2005"></a><span class="nf">blow_expensive_caches</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-2006" name="line-2006"></a><span class="p">{</span>
+<a id="line-2007" name="line-2007"></a><span class="w"> </span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">data</span><span class="p">;</span>
+<a id="line-2008" name="line-2008"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">next</span><span class="p">;</span>
+<a id="line-2009" name="line-2009"></a>
+<a id="line-2010" name="line-2010"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">blow_caches_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-2011" name="line-2011"></a>
+<a id="line-2012" name="line-2012"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">file_cache</span><span class="p">;</span><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2013" name="line-2013"></a><span class="w"> </span><span class="n">FileCacheEntry</span><span class="w"> </span><span class="o">*</span><span class="n">ent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">list</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-2014" name="line-2014"></a><span class="w"> </span><span class="n">next</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">list</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">;</span>
+<a id="line-2015" name="line-2015"></a>
+<a id="line-2016" name="line-2016"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">ent</span><span class="o">-&gt;</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PIXBUF</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2017" name="line-2017"></a><span class="w"> </span><span class="n">file_cache_entry_delete</span><span class="w"> </span><span class="p">(</span><span class="n">ent</span><span class="p">);</span>
+<a id="line-2018" name="line-2018"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">file_cache</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_delete_link</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">file_cache</span><span class="p">,</span>
+<a id="line-2019" name="line-2019"></a><span class="w"> </span><span class="n">list</span><span class="p">);</span>
+<a id="line-2020" name="line-2020"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2021" name="line-2021"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2022" name="line-2022"></a>
+<a id="line-2023" name="line-2023"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">pixbuf_cache</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2024" name="line-2024"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">pixbuf_cache</span><span class="p">);</span>
+<a id="line-2025" name="line-2025"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">pixbuf_cache</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2026" name="line-2026"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2027" name="line-2027"></a>
+<a id="line-2028" name="line-2028"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-2029" name="line-2029"></a><span class="p">}</span>
+<a id="line-2030" name="line-2030"></a>
+<a id="line-2031" name="line-2031"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-2032" name="line-2032"></a><span class="nf">blow_expensive_caches_in_idle</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">)</span>
+<a id="line-2033" name="line-2033"></a><span class="p">{</span>
+<a id="line-2034" name="line-2034"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">blow_caches_id</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2035" name="line-2035"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">blow_caches_id</span><span class="w"> </span><span class="o">=</span>
+<a id="line-2036" name="line-2036"></a><span class="w"> </span><span class="n">g_idle_add</span><span class="w"> </span><span class="p">(</span><span class="n">blow_expensive_caches</span><span class="p">,</span>
+<a id="line-2037" name="line-2037"></a><span class="w"> </span><span class="n">bg</span><span class="p">);</span>
+<a id="line-2038" name="line-2038"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2039" name="line-2039"></a><span class="p">}</span>
+<a id="line-2040" name="line-2040"></a>
+<a id="line-2041" name="line-2041"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-2042" name="line-2042"></a><span class="nf">on_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-2043" name="line-2043"></a><span class="p">{</span>
+<a id="line-2044" name="line-2044"></a><span class="w"> </span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">data</span><span class="p">;</span>
+<a id="line-2045" name="line-2045"></a>
+<a id="line-2046" name="line-2046"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">timeout_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-2047" name="line-2047"></a>
+<a id="line-2048" name="line-2048"></a><span class="w"> </span><span class="n">queue_transitioned</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">);</span>
+<a id="line-2049" name="line-2049"></a>
+<a id="line-2050" name="line-2050"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-2051" name="line-2051"></a><span class="p">}</span>
+<a id="line-2052" name="line-2052"></a>
+<a id="line-2053" name="line-2053"></a><span class="k">static</span><span class="w"> </span><span class="kt">double</span>
+<a id="line-2054" name="line-2054"></a><span class="nf">get_slide_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">Slide</span><span class="w"> </span><span class="o">*</span><span class="n">slide</span><span class="p">)</span>
+<a id="line-2055" name="line-2055"></a><span class="p">{</span>
+<a id="line-2056" name="line-2056"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">timeout</span><span class="p">;</span>
+<a id="line-2057" name="line-2057"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">fixed</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2058" name="line-2058"></a><span class="w"> </span><span class="n">timeout</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">duration</span><span class="p">;</span>
+<a id="line-2059" name="line-2059"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2060" name="line-2060"></a><span class="w"> </span><span class="cm">/* Maybe the number of steps should be configurable? */</span>
+<a id="line-2061" name="line-2061"></a>
+<a id="line-2062" name="line-2062"></a><span class="w"> </span><span class="cm">/* In the worst case we will do a fade from 0 to 256, which mean</span>
+<a id="line-2063" name="line-2063"></a><span class="cm"> * we will never use more than 255 steps, however in most cases</span>
+<a id="line-2064" name="line-2064"></a><span class="cm"> * the first and last value are similar and users can&#39;t percieve</span>
+<a id="line-2065" name="line-2065"></a><span class="cm"> * changes in pixel values as small as 1/255th. So, lets not waste</span>
+<a id="line-2066" name="line-2066"></a><span class="cm"> * CPU cycles on transitioning to often.</span>
+<a id="line-2067" name="line-2067"></a><span class="cm"> *</span>
+<a id="line-2068" name="line-2068"></a><span class="cm"> * 64 steps is enough for each step to be just detectable in a 16bit</span>
+<a id="line-2069" name="line-2069"></a><span class="cm"> * color mode in the worst case, so we&#39;ll use this as an approximation</span>
+<a id="line-2070" name="line-2070"></a><span class="cm"> * of whats detectable.</span>
+<a id="line-2071" name="line-2071"></a><span class="cm"> */</span>
+<a id="line-2072" name="line-2072"></a><span class="w"> </span><span class="n">timeout</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">duration</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">64.0</span><span class="p">;</span>
+<a id="line-2073" name="line-2073"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2074" name="line-2074"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">timeout</span><span class="p">;</span>
+<a id="line-2075" name="line-2075"></a><span class="p">}</span>
+<a id="line-2076" name="line-2076"></a>
+<a id="line-2077" name="line-2077"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-2078" name="line-2078"></a><span class="nf">ensure_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-2079" name="line-2079"></a><span class="w"> </span><span class="n">Slide</span><span class="w"> </span><span class="o">*</span><span class="n">slide</span><span class="p">)</span>
+<a id="line-2080" name="line-2080"></a><span class="p">{</span>
+<a id="line-2081" name="line-2081"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">timeout_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2082" name="line-2082"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">timeout</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_slide_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="p">);</span>
+<a id="line-2083" name="line-2083"></a>
+<a id="line-2084" name="line-2084"></a><span class="w"> </span><span class="cm">/* G_MAXUINT means &quot;only one slide&quot; */</span>
+<a id="line-2085" name="line-2085"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">timeout</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">G_MAXUINT</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2086" name="line-2086"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">timeout_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_timeout_add_full</span><span class="w"> </span><span class="p">(</span>
+<a id="line-2087" name="line-2087"></a><span class="w"> </span><span class="n">G_PRIORITY_LOW</span><span class="p">,</span>
+<a id="line-2088" name="line-2088"></a><span class="w"> </span><span class="n">timeout</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">1000</span><span class="p">,</span><span class="w"> </span><span class="n">on_timeout</span><span class="p">,</span><span class="w"> </span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2089" name="line-2089"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2090" name="line-2090"></a>
+<a id="line-2091" name="line-2091"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2092" name="line-2092"></a><span class="p">}</span>
+<a id="line-2093" name="line-2093"></a>
+<a id="line-2094" name="line-2094"></a><span class="k">static</span><span class="w"> </span><span class="n">gint64</span>
+<a id="line-2095" name="line-2095"></a><span class="nf">get_mtime</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">)</span>
+<a id="line-2096" name="line-2096"></a><span class="p">{</span>
+<a id="line-2097" name="line-2097"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span>
+<a id="line-2098" name="line-2098"></a><span class="w"> </span><span class="n">GFileInfo</span><span class="w"> </span><span class="o">*</span><span class="n">info</span><span class="p">;</span>
+<a id="line-2099" name="line-2099"></a><span class="w"> </span><span class="n">gint64</span><span class="w"> </span><span class="n">mtime</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gint64</span><span class="p">)</span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-2100" name="line-2100"></a>
+<a id="line-2101" name="line-2101"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2102" name="line-2102"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_new_for_path</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-2103" name="line-2103"></a><span class="w"> </span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_query_info</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_TIME_MODIFIED</span><span class="p">,</span>
+<a id="line-2104" name="line-2104"></a><span class="w"> </span><span class="n">G_FILE_QUERY_INFO_NONE</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2105" name="line-2105"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2106" name="line-2106"></a><span class="w"> </span><span class="n">mtime</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_info_get_attribute_uint64</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">,</span>
+<a id="line-2107" name="line-2107"></a><span class="w"> </span><span class="n">G_FILE_ATTRIBUTE_TIME_MODIFIED</span><span class="p">);</span>
+<a id="line-2108" name="line-2108"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">info</span><span class="p">);</span>
+<a id="line-2109" name="line-2109"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2110" name="line-2110"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-2111" name="line-2111"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2112" name="line-2112"></a>
+<a id="line-2113" name="line-2113"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mtime</span><span class="p">;</span>
+<a id="line-2114" name="line-2114"></a><span class="p">}</span>
+<a id="line-2115" name="line-2115"></a>
+<a id="line-2116" name="line-2116"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span>
+<a id="line-2117" name="line-2117"></a><span class="nf">scale_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">MateBGPlacement</span><span class="w"> </span><span class="n">placement</span><span class="p">,</span>
+<a id="line-2118" name="line-2118"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">,</span>
+<a id="line-2119" name="line-2119"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">thumb</span><span class="p">,</span>
+<a id="line-2120" name="line-2120"></a><span class="w"> </span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-2121" name="line-2121"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dest_width</span><span class="p">,</span>
+<a id="line-2122" name="line-2122"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dest_height</span><span class="p">)</span>
+<a id="line-2123" name="line-2123"></a><span class="p">{</span>
+<a id="line-2124" name="line-2124"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">o_width</span><span class="p">;</span>
+<a id="line-2125" name="line-2125"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">o_height</span><span class="p">;</span>
+<a id="line-2126" name="line-2126"></a>
+<a id="line-2127" name="line-2127"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">placement</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">MATE_BG_PLACEMENT_TILED</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-2128" name="line-2128"></a><span class="w"> </span><span class="n">placement</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">MATE_BG_PLACEMENT_CENTERED</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2129" name="line-2129"></a>
+<a id="line-2130" name="line-2130"></a><span class="w"> </span><span class="cm">/* In this case, the pixbuf will be scaled to fit the screen anyway,</span>
+<a id="line-2131" name="line-2131"></a><span class="cm"> * so just return the pixbuf here</span>
+<a id="line-2132" name="line-2132"></a><span class="cm"> */</span>
+<a id="line-2133" name="line-2133"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">);</span>
+<a id="line-2134" name="line-2134"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2135" name="line-2135"></a>
+<a id="line-2136" name="line-2136"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">get_thumb_annotations</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">o_width</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">o_height</span><span class="p">)</span><span class="w"> </span><span class="o">||</span>
+<a id="line-2137" name="line-2137"></a><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">get_original_size</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">o_width</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">o_height</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2138" name="line-2138"></a>
+<a id="line-2139" name="line-2139"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">scr_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">HeightOfScreen</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_x11_screen_get_xscreen</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">));</span>
+<a id="line-2140" name="line-2140"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">scr_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">WidthOfScreen</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_x11_screen_get_xscreen</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">));</span>
+<a id="line-2141" name="line-2141"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">thumb_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">);</span>
+<a id="line-2142" name="line-2142"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">thumb_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">);</span>
+<a id="line-2143" name="line-2143"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">screen_to_dest</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">fit_factor</span><span class="w"> </span><span class="p">(</span><span class="n">scr_width</span><span class="p">,</span><span class="w"> </span><span class="n">scr_height</span><span class="p">,</span>
+<a id="line-2144" name="line-2144"></a><span class="w"> </span><span class="n">dest_width</span><span class="p">,</span><span class="w"> </span><span class="n">dest_height</span><span class="p">);</span>
+<a id="line-2145" name="line-2145"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">thumb_to_orig</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">fit_factor</span><span class="w"> </span><span class="p">(</span><span class="n">thumb_width</span><span class="p">,</span><span class="w"> </span><span class="n">thumb_height</span><span class="p">,</span>
+<a id="line-2146" name="line-2146"></a><span class="w"> </span><span class="n">o_width</span><span class="p">,</span><span class="w"> </span><span class="n">o_height</span><span class="p">);</span>
+<a id="line-2147" name="line-2147"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">f</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">thumb_to_orig</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">screen_to_dest</span><span class="p">;</span>
+<a id="line-2148" name="line-2148"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">new_width</span><span class="p">,</span><span class="w"> </span><span class="n">new_height</span><span class="p">;</span>
+<a id="line-2149" name="line-2149"></a>
+<a id="line-2150" name="line-2150"></a><span class="w"> </span><span class="n">new_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">floor</span><span class="w"> </span><span class="p">(</span><span class="n">thumb_width</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">f</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span>
+<a id="line-2151" name="line-2151"></a><span class="w"> </span><span class="n">new_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">floor</span><span class="w"> </span><span class="p">(</span><span class="n">thumb_height</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">f</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span>
+<a id="line-2152" name="line-2152"></a>
+<a id="line-2153" name="line-2153"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">placement</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">MATE_BG_PLACEMENT_TILED</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2154" name="line-2154"></a><span class="w"> </span><span class="cm">/* Heuristic to make sure tiles don&#39;t become so small that</span>
+<a id="line-2155" name="line-2155"></a><span class="cm"> * they turn into a blur.</span>
+<a id="line-2156" name="line-2156"></a><span class="cm"> *</span>
+<a id="line-2157" name="line-2157"></a><span class="cm"> * This is strictly speaking incorrect, but the resulting</span>
+<a id="line-2158" name="line-2158"></a><span class="cm"> * thumbnail gives a much better idea what the background</span>
+<a id="line-2159" name="line-2159"></a><span class="cm"> * will actually look like.</span>
+<a id="line-2160" name="line-2160"></a><span class="cm"> */</span>
+<a id="line-2161" name="line-2161"></a>
+<a id="line-2162" name="line-2162"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">new_width</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">32</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">new_height</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">32</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-2163" name="line-2163"></a><span class="w"> </span><span class="p">(</span><span class="n">new_width</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">o_width</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">4</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">new_height</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">o_height</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">4</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2164" name="line-2164"></a><span class="w"> </span><span class="n">new_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">o_width</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">4</span><span class="p">;</span>
+<a id="line-2165" name="line-2165"></a><span class="w"> </span><span class="n">new_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">o_height</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">4</span><span class="p">;</span>
+<a id="line-2166" name="line-2166"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2167" name="line-2167"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2168" name="line-2168"></a>
+<a id="line-2169" name="line-2169"></a><span class="w"> </span><span class="n">thumb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_scale_simple</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">,</span><span class="w"> </span><span class="n">new_width</span><span class="p">,</span><span class="w"> </span><span class="n">new_height</span><span class="p">,</span>
+<a id="line-2170" name="line-2170"></a><span class="w"> </span><span class="n">GDK_INTERP_BILINEAR</span><span class="p">);</span>
+<a id="line-2171" name="line-2171"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2172" name="line-2172"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-2173" name="line-2173"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">);</span>
+<a id="line-2174" name="line-2174"></a>
+<a id="line-2175" name="line-2175"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">thumb</span><span class="p">;</span>
+<a id="line-2176" name="line-2176"></a><span class="p">}</span>
+<a id="line-2177" name="line-2177"></a>
+<a id="line-2178" name="line-2178"></a><span class="cm">/* frame_num determines which slide to thumbnail.</span>
+<a id="line-2179" name="line-2179"></a><span class="cm"> * -1 means &#39;current slide&#39;.</span>
+<a id="line-2180" name="line-2180"></a><span class="cm"> */</span>
+<a id="line-2181" name="line-2181"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span>
+<a id="line-2182" name="line-2182"></a><span class="nf">create_img_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-2183" name="line-2183"></a><span class="w"> </span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">,</span>
+<a id="line-2184" name="line-2184"></a><span class="w"> </span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-2185" name="line-2185"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dest_width</span><span class="p">,</span>
+<a id="line-2186" name="line-2186"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dest_height</span><span class="p">,</span>
+<a id="line-2187" name="line-2187"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">frame_num</span><span class="p">)</span>
+<a id="line-2188" name="line-2188"></a><span class="p">{</span>
+<a id="line-2189" name="line-2189"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2190" name="line-2190"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">thumb</span><span class="p">;</span>
+<a id="line-2191" name="line-2191"></a>
+<a id="line-2192" name="line-2192"></a><span class="w"> </span><span class="n">thumb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_as_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">factory</span><span class="p">,</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-2193" name="line-2193"></a>
+<a id="line-2194" name="line-2194"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2195" name="line-2195"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="p">;</span>
+<a id="line-2196" name="line-2196"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">scale_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">placement</span><span class="p">,</span>
+<a id="line-2197" name="line-2197"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">,</span>
+<a id="line-2198" name="line-2198"></a><span class="w"> </span><span class="n">thumb</span><span class="p">,</span>
+<a id="line-2199" name="line-2199"></a><span class="w"> </span><span class="n">screen</span><span class="p">,</span>
+<a id="line-2200" name="line-2200"></a><span class="w"> </span><span class="n">dest_width</span><span class="p">,</span>
+<a id="line-2201" name="line-2201"></a><span class="w"> </span><span class="n">dest_height</span><span class="p">);</span>
+<a id="line-2202" name="line-2202"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">);</span>
+<a id="line-2203" name="line-2203"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-2204" name="line-2204"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2205" name="line-2205"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2206" name="line-2206"></a><span class="w"> </span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span><span class="n">show</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_as_slideshow</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-2207" name="line-2207"></a>
+<a id="line-2208" name="line-2208"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2209" name="line-2209"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">alpha</span><span class="p">;</span>
+<a id="line-2210" name="line-2210"></a><span class="w"> </span><span class="n">Slide</span><span class="w"> </span><span class="o">*</span><span class="n">slide</span><span class="p">;</span>
+<a id="line-2211" name="line-2211"></a>
+<a id="line-2212" name="line-2212"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">frame_num</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">-1</span><span class="p">)</span>
+<a id="line-2213" name="line-2213"></a><span class="w"> </span><span class="n">slide</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_current_slide</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">alpha</span><span class="p">);</span>
+<a id="line-2214" name="line-2214"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-2215" name="line-2215"></a><span class="w"> </span><span class="n">slide</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_queue_peek_nth</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="o">-&gt;</span><span class="n">slides</span><span class="p">,</span><span class="w"> </span><span class="n">frame_num</span><span class="p">);</span>
+<a id="line-2216" name="line-2216"></a>
+<a id="line-2217" name="line-2217"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">fixed</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2218" name="line-2218"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">tmp</span><span class="p">;</span>
+<a id="line-2219" name="line-2219"></a><span class="w"> </span><span class="n">FileSize</span><span class="w"> </span><span class="o">*</span><span class="n">fs</span><span class="p">;</span>
+<a id="line-2220" name="line-2220"></a><span class="w"> </span><span class="n">fs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">find_best_size</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">file1</span><span class="p">,</span><span class="w"> </span><span class="n">dest_width</span><span class="p">,</span><span class="w"> </span><span class="n">dest_height</span><span class="p">);</span>
+<a id="line-2221" name="line-2221"></a><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_as_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">factory</span><span class="p">,</span><span class="w"> </span><span class="n">fs</span><span class="o">-&gt;</span><span class="n">file</span><span class="p">);</span>
+<a id="line-2222" name="line-2222"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">tmp</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2223" name="line-2223"></a><span class="w"> </span><span class="n">thumb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">scale_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">placement</span><span class="p">,</span>
+<a id="line-2224" name="line-2224"></a><span class="w"> </span><span class="n">fs</span><span class="o">-&gt;</span><span class="n">file</span><span class="p">,</span>
+<a id="line-2225" name="line-2225"></a><span class="w"> </span><span class="n">tmp</span><span class="p">,</span>
+<a id="line-2226" name="line-2226"></a><span class="w"> </span><span class="n">screen</span><span class="p">,</span>
+<a id="line-2227" name="line-2227"></a><span class="w"> </span><span class="n">dest_width</span><span class="p">,</span>
+<a id="line-2228" name="line-2228"></a><span class="w"> </span><span class="n">dest_height</span><span class="p">);</span>
+<a id="line-2229" name="line-2229"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span>
+<a id="line-2230" name="line-2230"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2231" name="line-2231"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2232" name="line-2232"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2233" name="line-2233"></a><span class="w"> </span><span class="n">FileSize</span><span class="w"> </span><span class="o">*</span><span class="n">fs1</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">fs2</span><span class="p">;</span>
+<a id="line-2234" name="line-2234"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">p1</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">p2</span><span class="p">;</span>
+<a id="line-2235" name="line-2235"></a><span class="w"> </span><span class="n">fs1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">find_best_size</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">file1</span><span class="p">,</span><span class="w"> </span><span class="n">dest_width</span><span class="p">,</span><span class="w"> </span><span class="n">dest_height</span><span class="p">);</span>
+<a id="line-2236" name="line-2236"></a><span class="w"> </span><span class="n">p1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_as_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">factory</span><span class="p">,</span><span class="w"> </span><span class="n">fs1</span><span class="o">-&gt;</span><span class="n">file</span><span class="p">);</span>
+<a id="line-2237" name="line-2237"></a>
+<a id="line-2238" name="line-2238"></a><span class="w"> </span><span class="n">fs2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">find_best_size</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">file2</span><span class="p">,</span><span class="w"> </span><span class="n">dest_width</span><span class="p">,</span><span class="w"> </span><span class="n">dest_height</span><span class="p">);</span>
+<a id="line-2239" name="line-2239"></a><span class="w"> </span><span class="n">p2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_as_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">factory</span><span class="p">,</span><span class="w"> </span><span class="n">fs2</span><span class="o">-&gt;</span><span class="n">file</span><span class="p">);</span>
+<a id="line-2240" name="line-2240"></a>
+<a id="line-2241" name="line-2241"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">p1</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">p2</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2242" name="line-2242"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">thumb1</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">thumb2</span><span class="p">;</span>
+<a id="line-2243" name="line-2243"></a>
+<a id="line-2244" name="line-2244"></a><span class="w"> </span><span class="n">thumb1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">scale_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">placement</span><span class="p">,</span>
+<a id="line-2245" name="line-2245"></a><span class="w"> </span><span class="n">fs1</span><span class="o">-&gt;</span><span class="n">file</span><span class="p">,</span>
+<a id="line-2246" name="line-2246"></a><span class="w"> </span><span class="n">p1</span><span class="p">,</span>
+<a id="line-2247" name="line-2247"></a><span class="w"> </span><span class="n">screen</span><span class="p">,</span>
+<a id="line-2248" name="line-2248"></a><span class="w"> </span><span class="n">dest_width</span><span class="p">,</span>
+<a id="line-2249" name="line-2249"></a><span class="w"> </span><span class="n">dest_height</span><span class="p">);</span>
+<a id="line-2250" name="line-2250"></a>
+<a id="line-2251" name="line-2251"></a><span class="w"> </span><span class="n">thumb2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">scale_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">placement</span><span class="p">,</span>
+<a id="line-2252" name="line-2252"></a><span class="w"> </span><span class="n">fs2</span><span class="o">-&gt;</span><span class="n">file</span><span class="p">,</span>
+<a id="line-2253" name="line-2253"></a><span class="w"> </span><span class="n">p2</span><span class="p">,</span>
+<a id="line-2254" name="line-2254"></a><span class="w"> </span><span class="n">screen</span><span class="p">,</span>
+<a id="line-2255" name="line-2255"></a><span class="w"> </span><span class="n">dest_width</span><span class="p">,</span>
+<a id="line-2256" name="line-2256"></a><span class="w"> </span><span class="n">dest_height</span><span class="p">);</span>
+<a id="line-2257" name="line-2257"></a>
+<a id="line-2258" name="line-2258"></a><span class="w"> </span><span class="n">thumb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">blend</span><span class="w"> </span><span class="p">(</span><span class="n">thumb1</span><span class="p">,</span><span class="w"> </span><span class="n">thumb2</span><span class="p">,</span><span class="w"> </span><span class="n">alpha</span><span class="p">);</span>
+<a id="line-2259" name="line-2259"></a>
+<a id="line-2260" name="line-2260"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">thumb1</span><span class="p">);</span>
+<a id="line-2261" name="line-2261"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">thumb2</span><span class="p">);</span>
+<a id="line-2262" name="line-2262"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2263" name="line-2263"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">p1</span><span class="p">)</span>
+<a id="line-2264" name="line-2264"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">p1</span><span class="p">);</span>
+<a id="line-2265" name="line-2265"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">p2</span><span class="p">)</span>
+<a id="line-2266" name="line-2266"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">p2</span><span class="p">);</span>
+<a id="line-2267" name="line-2267"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2268" name="line-2268"></a>
+<a id="line-2269" name="line-2269"></a><span class="w"> </span><span class="n">ensure_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">slide</span><span class="p">);</span>
+<a id="line-2270" name="line-2270"></a>
+<a id="line-2271" name="line-2271"></a><span class="w"> </span><span class="n">slideshow_unref</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="p">);</span>
+<a id="line-2272" name="line-2272"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2273" name="line-2273"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2274" name="line-2274"></a>
+<a id="line-2275" name="line-2275"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">thumb</span><span class="p">;</span>
+<a id="line-2276" name="line-2276"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2277" name="line-2277"></a>
+<a id="line-2278" name="line-2278"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2279" name="line-2279"></a><span class="p">}</span>
+<a id="line-2280" name="line-2280"></a>
+<a id="line-2281" name="line-2281"></a><span class="cm">/*</span>
+<a id="line-2282" name="line-2282"></a><span class="cm"> * Find the FileSize that best matches the given size.</span>
+<a id="line-2283" name="line-2283"></a><span class="cm"> * Do two passes; the first pass only considers FileSizes</span>
+<a id="line-2284" name="line-2284"></a><span class="cm"> * that are larger than the given size.</span>
+<a id="line-2285" name="line-2285"></a><span class="cm"> * We are looking for the image that best matches the aspect ratio.</span>
+<a id="line-2286" name="line-2286"></a><span class="cm"> * When two images have the same aspect ratio, prefer the one whose</span>
+<a id="line-2287" name="line-2287"></a><span class="cm"> * width is closer to the given width.</span>
+<a id="line-2288" name="line-2288"></a><span class="cm"> */</span>
+<a id="line-2289" name="line-2289"></a><span class="k">static</span><span class="w"> </span><span class="n">FileSize</span><span class="w"> </span><span class="o">*</span>
+<a id="line-2290" name="line-2290"></a><span class="nf">find_best_size</span><span class="w"> </span><span class="p">(</span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">sizes</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">height</span><span class="p">)</span>
+<a id="line-2291" name="line-2291"></a><span class="p">{</span>
+<a id="line-2292" name="line-2292"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span>
+<a id="line-2293" name="line-2293"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="n">d</span><span class="p">,</span><span class="w"> </span><span class="n">distance</span><span class="p">;</span>
+<a id="line-2294" name="line-2294"></a><span class="w"> </span><span class="n">FileSize</span><span class="w"> </span><span class="o">*</span><span class="n">best</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2295" name="line-2295"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">pass</span><span class="p">;</span>
+<a id="line-2296" name="line-2296"></a>
+<a id="line-2297" name="line-2297"></a><span class="w"> </span><span class="n">a</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">width</span><span class="o">/</span><span class="p">(</span><span class="n">gdouble</span><span class="p">)</span><span class="n">height</span><span class="p">;</span>
+<a id="line-2298" name="line-2298"></a><span class="w"> </span><span class="n">distance</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">10000.0</span><span class="p">;</span>
+<a id="line-2299" name="line-2299"></a>
+<a id="line-2300" name="line-2300"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">pass</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">pass</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span><span class="w"> </span><span class="n">pass</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2301" name="line-2301"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">sizes</span><span class="p">;</span><span class="w"> </span><span class="n">s</span><span class="p">;</span><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">s</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2302" name="line-2302"></a><span class="w"> </span><span class="n">FileSize</span><span class="w"> </span><span class="o">*</span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">s</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-2303" name="line-2303"></a>
+<a id="line-2304" name="line-2304"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">pass</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="p">(</span><span class="n">size</span><span class="o">-&gt;</span><span class="n">width</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">size</span><span class="o">-&gt;</span><span class="n">height</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">height</span><span class="p">))</span>
+<a id="line-2305" name="line-2305"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span>
+<a id="line-2306" name="line-2306"></a>
+<a id="line-2307" name="line-2307"></a><span class="w"> </span><span class="n">d</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">fabs</span><span class="w"> </span><span class="p">(</span><span class="n">a</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">size</span><span class="o">-&gt;</span><span class="n">width</span><span class="o">/</span><span class="p">(</span><span class="n">gdouble</span><span class="p">)</span><span class="n">size</span><span class="o">-&gt;</span><span class="n">height</span><span class="p">);</span>
+<a id="line-2308" name="line-2308"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">d</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">distance</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2309" name="line-2309"></a><span class="w"> </span><span class="n">distance</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">d</span><span class="p">;</span>
+<a id="line-2310" name="line-2310"></a><span class="w"> </span><span class="n">best</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">size</span><span class="p">;</span>
+<a id="line-2311" name="line-2311"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2312" name="line-2312"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">d</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">distance</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2313" name="line-2313"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">best</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="p">(</span><span class="n">abs</span><span class="w"> </span><span class="p">(</span><span class="n">size</span><span class="o">-&gt;</span><span class="n">width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">width</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">abs</span><span class="w"> </span><span class="p">(</span><span class="n">best</span><span class="o">-&gt;</span><span class="n">width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">width</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2314" name="line-2314"></a><span class="w"> </span><span class="n">best</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">size</span><span class="p">;</span>
+<a id="line-2315" name="line-2315"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2316" name="line-2316"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2317" name="line-2317"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2318" name="line-2318"></a>
+<a id="line-2319" name="line-2319"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">best</span><span class="p">)</span>
+<a id="line-2320" name="line-2320"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-2321" name="line-2321"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2322" name="line-2322"></a>
+<a id="line-2323" name="line-2323"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">best</span><span class="p">;</span>
+<a id="line-2324" name="line-2324"></a><span class="p">}</span>
+<a id="line-2325" name="line-2325"></a>
+<a id="line-2326" name="line-2326"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span>
+<a id="line-2327" name="line-2327"></a><span class="nf">get_pixbuf_for_size</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-2328" name="line-2328"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">monitor</span><span class="p">,</span>
+<a id="line-2329" name="line-2329"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">best_width</span><span class="p">,</span>
+<a id="line-2330" name="line-2330"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">best_height</span><span class="p">)</span>
+<a id="line-2331" name="line-2331"></a><span class="p">{</span>
+<a id="line-2332" name="line-2332"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">time_until_next_change</span><span class="p">;</span>
+<a id="line-2333" name="line-2333"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">hit_cache</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-2334" name="line-2334"></a>
+<a id="line-2335" name="line-2335"></a><span class="w"> </span><span class="cm">/* only hit the cache if the aspect ratio matches */</span>
+<a id="line-2336" name="line-2336"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">pixbuf_cache</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2337" name="line-2337"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">;</span>
+<a id="line-2338" name="line-2338"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">pixbuf_cache</span><span class="p">);</span>
+<a id="line-2339" name="line-2339"></a><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">pixbuf_cache</span><span class="p">);</span>
+<a id="line-2340" name="line-2340"></a><span class="w"> </span><span class="n">hit_cache</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.2</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="n">fabs</span><span class="w"> </span><span class="p">((</span><span class="n">best_width</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="n">best_height</span><span class="p">)</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="p">(</span><span class="n">width</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="n">height</span><span class="p">));</span>
+<a id="line-2341" name="line-2341"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">hit_cache</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2342" name="line-2342"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">pixbuf_cache</span><span class="p">);</span>
+<a id="line-2343" name="line-2343"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">pixbuf_cache</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2344" name="line-2344"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2345" name="line-2345"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2346" name="line-2346"></a>
+<a id="line-2347" name="line-2347"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">hit_cache</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2348" name="line-2348"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">file_mtime</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_mtime</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-2349" name="line-2349"></a>
+<a id="line-2350" name="line-2350"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">pixbuf_cache</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_as_pixbuf_for_size</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="n">monitor</span><span class="p">,</span>
+<a id="line-2351" name="line-2351"></a><span class="w"> </span><span class="n">best_width</span><span class="p">,</span><span class="w"> </span><span class="n">best_height</span><span class="p">);</span>
+<a id="line-2352" name="line-2352"></a><span class="w"> </span><span class="n">time_until_next_change</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_MAXUINT</span><span class="p">;</span>
+<a id="line-2353" name="line-2353"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">pixbuf_cache</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2354" name="line-2354"></a><span class="w"> </span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span><span class="n">show</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_as_slideshow</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-2355" name="line-2355"></a>
+<a id="line-2356" name="line-2356"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2357" name="line-2357"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">alpha</span><span class="p">;</span>
+<a id="line-2358" name="line-2358"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">timeout</span><span class="p">;</span>
+<a id="line-2359" name="line-2359"></a><span class="w"> </span><span class="n">Slide</span><span class="w"> </span><span class="o">*</span><span class="n">slide</span><span class="p">;</span>
+<a id="line-2360" name="line-2360"></a>
+<a id="line-2361" name="line-2361"></a><span class="w"> </span><span class="n">slideshow_ref</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="p">);</span>
+<a id="line-2362" name="line-2362"></a>
+<a id="line-2363" name="line-2363"></a><span class="w"> </span><span class="n">slide</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_current_slide</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">alpha</span><span class="p">);</span>
+<a id="line-2364" name="line-2364"></a><span class="w"> </span><span class="n">timeout</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_slide_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="p">);</span>
+<a id="line-2365" name="line-2365"></a><span class="w"> </span><span class="n">time_until_next_change</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">guint</span><span class="p">)</span><span class="w"> </span><span class="n">timeout</span><span class="p">;</span>
+<a id="line-2366" name="line-2366"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">fixed</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2367" name="line-2367"></a><span class="w"> </span><span class="n">FileSize</span><span class="w"> </span><span class="o">*</span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">find_best_size</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">file1</span><span class="p">,</span>
+<a id="line-2368" name="line-2368"></a><span class="w"> </span><span class="n">best_width</span><span class="p">,</span><span class="w"> </span><span class="n">best_height</span><span class="p">);</span>
+<a id="line-2369" name="line-2369"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">pixbuf_cache</span><span class="w"> </span><span class="o">=</span>
+<a id="line-2370" name="line-2370"></a><span class="w"> </span><span class="n">get_as_pixbuf_for_size</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">size</span><span class="o">-&gt;</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="n">monitor</span><span class="p">,</span>
+<a id="line-2371" name="line-2371"></a><span class="w"> </span><span class="n">best_width</span><span class="p">,</span><span class="w"> </span><span class="n">best_height</span><span class="p">);</span>
+<a id="line-2372" name="line-2372"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2373" name="line-2373"></a><span class="w"> </span><span class="n">FileSize</span><span class="w"> </span><span class="o">*</span><span class="n">size</span><span class="p">;</span>
+<a id="line-2374" name="line-2374"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">p1</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">p2</span><span class="p">;</span>
+<a id="line-2375" name="line-2375"></a>
+<a id="line-2376" name="line-2376"></a><span class="w"> </span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">find_best_size</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">file1</span><span class="p">,</span>
+<a id="line-2377" name="line-2377"></a><span class="w"> </span><span class="n">best_width</span><span class="p">,</span><span class="w"> </span><span class="n">best_height</span><span class="p">);</span>
+<a id="line-2378" name="line-2378"></a><span class="w"> </span><span class="n">p1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_as_pixbuf_for_size</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">size</span><span class="o">-&gt;</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="n">monitor</span><span class="p">,</span>
+<a id="line-2379" name="line-2379"></a><span class="w"> </span><span class="n">best_width</span><span class="p">,</span><span class="w"> </span><span class="n">best_height</span><span class="p">);</span>
+<a id="line-2380" name="line-2380"></a>
+<a id="line-2381" name="line-2381"></a><span class="w"> </span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">find_best_size</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">file2</span><span class="p">,</span>
+<a id="line-2382" name="line-2382"></a><span class="w"> </span><span class="n">best_width</span><span class="p">,</span><span class="w"> </span><span class="n">best_height</span><span class="p">);</span>
+<a id="line-2383" name="line-2383"></a><span class="w"> </span><span class="n">p2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_as_pixbuf_for_size</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">size</span><span class="o">-&gt;</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="n">monitor</span><span class="p">,</span>
+<a id="line-2384" name="line-2384"></a><span class="w"> </span><span class="n">best_width</span><span class="p">,</span><span class="w"> </span><span class="n">best_height</span><span class="p">);</span>
+<a id="line-2385" name="line-2385"></a>
+<a id="line-2386" name="line-2386"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">p1</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">p2</span><span class="p">)</span>
+<a id="line-2387" name="line-2387"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">pixbuf_cache</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">blend</span><span class="w"> </span><span class="p">(</span><span class="n">p1</span><span class="p">,</span><span class="w"> </span><span class="n">p2</span><span class="p">,</span><span class="w"> </span><span class="n">alpha</span><span class="p">);</span>
+<a id="line-2388" name="line-2388"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">p1</span><span class="p">)</span>
+<a id="line-2389" name="line-2389"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">p1</span><span class="p">);</span>
+<a id="line-2390" name="line-2390"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">p2</span><span class="p">)</span>
+<a id="line-2391" name="line-2391"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">p2</span><span class="p">);</span>
+<a id="line-2392" name="line-2392"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2393" name="line-2393"></a>
+<a id="line-2394" name="line-2394"></a><span class="w"> </span><span class="n">ensure_timeout</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">slide</span><span class="p">);</span>
+<a id="line-2395" name="line-2395"></a>
+<a id="line-2396" name="line-2396"></a><span class="w"> </span><span class="n">slideshow_unref</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="p">);</span>
+<a id="line-2397" name="line-2397"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2398" name="line-2398"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2399" name="line-2399"></a>
+<a id="line-2400" name="line-2400"></a><span class="w"> </span><span class="cm">/* If the next slideshow step is a long time away then</span>
+<a id="line-2401" name="line-2401"></a><span class="cm"> we blow away the expensive stuff (large pixbufs) from</span>
+<a id="line-2402" name="line-2402"></a><span class="cm"> the cache */</span>
+<a id="line-2403" name="line-2403"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">time_until_next_change</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="n">KEEP_EXPENSIVE_CACHE_SECS</span><span class="p">)</span>
+<a id="line-2404" name="line-2404"></a><span class="w"> </span><span class="n">blow_expensive_caches_in_idle</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">);</span>
+<a id="line-2405" name="line-2405"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2406" name="line-2406"></a>
+<a id="line-2407" name="line-2407"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">pixbuf_cache</span><span class="p">)</span>
+<a id="line-2408" name="line-2408"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">pixbuf_cache</span><span class="p">);</span>
+<a id="line-2409" name="line-2409"></a>
+<a id="line-2410" name="line-2410"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">pixbuf_cache</span><span class="p">;</span>
+<a id="line-2411" name="line-2411"></a><span class="p">}</span>
+<a id="line-2412" name="line-2412"></a>
+<a id="line-2413" name="line-2413"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-2414" name="line-2414"></a><span class="nf">is_different</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-2415" name="line-2415"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">)</span>
+<a id="line-2416" name="line-2416"></a><span class="p">{</span>
+<a id="line-2417" name="line-2417"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">filename</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2418" name="line-2418"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-2419" name="line-2419"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2420" name="line-2420"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">!</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2421" name="line-2421"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-2422" name="line-2422"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2423" name="line-2423"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">filename</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">!</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2424" name="line-2424"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-2425" name="line-2425"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2426" name="line-2426"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2427" name="line-2427"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">get_mtime</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">file_mtime</span><span class="p">)</span>
+<a id="line-2428" name="line-2428"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-2429" name="line-2429"></a>
+<a id="line-2430" name="line-2430"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-2431" name="line-2431"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-2432" name="line-2432"></a>
+<a id="line-2433" name="line-2433"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-2434" name="line-2434"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2435" name="line-2435"></a><span class="p">}</span>
+<a id="line-2436" name="line-2436"></a>
+<a id="line-2437" name="line-2437"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-2438" name="line-2438"></a><span class="nf">clear_cache</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">)</span>
+<a id="line-2439" name="line-2439"></a><span class="p">{</span>
+<a id="line-2440" name="line-2440"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="p">;</span>
+<a id="line-2441" name="line-2441"></a>
+<a id="line-2442" name="line-2442"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">file_cache</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2443" name="line-2443"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">file_cache</span><span class="p">;</span><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">list</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2444" name="line-2444"></a><span class="w"> </span><span class="n">FileCacheEntry</span><span class="w"> </span><span class="o">*</span><span class="n">ent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">list</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-2445" name="line-2445"></a>
+<a id="line-2446" name="line-2446"></a><span class="w"> </span><span class="n">file_cache_entry_delete</span><span class="w"> </span><span class="p">(</span><span class="n">ent</span><span class="p">);</span>
+<a id="line-2447" name="line-2447"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2448" name="line-2448"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">file_cache</span><span class="p">);</span>
+<a id="line-2449" name="line-2449"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">file_cache</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2450" name="line-2450"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2451" name="line-2451"></a>
+<a id="line-2452" name="line-2452"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">pixbuf_cache</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2453" name="line-2453"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">pixbuf_cache</span><span class="p">);</span>
+<a id="line-2454" name="line-2454"></a>
+<a id="line-2455" name="line-2455"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">pixbuf_cache</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2456" name="line-2456"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2457" name="line-2457"></a>
+<a id="line-2458" name="line-2458"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">timeout_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2459" name="line-2459"></a><span class="w"> </span><span class="n">g_source_remove</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">timeout_id</span><span class="p">);</span>
+<a id="line-2460" name="line-2460"></a>
+<a id="line-2461" name="line-2461"></a><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">timeout_id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-2462" name="line-2462"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2463" name="line-2463"></a><span class="p">}</span>
+<a id="line-2464" name="line-2464"></a>
+<a id="line-2465" name="line-2465"></a><span class="cm">/* Pixbuf utilities */</span>
+<a id="line-2466" name="line-2466"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-2467" name="line-2467"></a><span class="nf">pixbuf_average_value</span><span class="w"> </span><span class="p">(</span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">,</span>
+<a id="line-2468" name="line-2468"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="p">)</span>
+<a id="line-2469" name="line-2469"></a><span class="p">{</span>
+<a id="line-2470" name="line-2470"></a><span class="w"> </span><span class="n">guint64</span><span class="w"> </span><span class="n">a_total</span><span class="p">,</span><span class="w"> </span><span class="n">r_total</span><span class="p">,</span><span class="w"> </span><span class="n">g_total</span><span class="p">,</span><span class="w"> </span><span class="n">b_total</span><span class="p">;</span>
+<a id="line-2471" name="line-2471"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">row</span><span class="p">,</span><span class="w"> </span><span class="n">column</span><span class="p">;</span>
+<a id="line-2472" name="line-2472"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">row_stride</span><span class="p">;</span>
+<a id="line-2473" name="line-2473"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">pixels</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">;</span>
+<a id="line-2474" name="line-2474"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">r</span><span class="p">,</span><span class="w"> </span><span class="n">g</span><span class="p">,</span><span class="w"> </span><span class="n">b</span><span class="p">,</span><span class="w"> </span><span class="n">a</span><span class="p">;</span>
+<a id="line-2475" name="line-2475"></a><span class="w"> </span><span class="n">guint64</span><span class="w"> </span><span class="n">dividend</span><span class="p">;</span>
+<a id="line-2476" name="line-2476"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">;</span>
+<a id="line-2477" name="line-2477"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">dd</span><span class="p">;</span>
+<a id="line-2478" name="line-2478"></a>
+<a id="line-2479" name="line-2479"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span>
+<a id="line-2480" name="line-2480"></a><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span>
+<a id="line-2481" name="line-2481"></a><span class="w"> </span><span class="n">row_stride</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_rowstride</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span>
+<a id="line-2482" name="line-2482"></a><span class="w"> </span><span class="n">pixels</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_pixels</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span>
+<a id="line-2483" name="line-2483"></a>
+<a id="line-2484" name="line-2484"></a><span class="w"> </span><span class="cm">/* iterate through the pixbuf, counting up each component */</span>
+<a id="line-2485" name="line-2485"></a><span class="w"> </span><span class="n">a_total</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-2486" name="line-2486"></a><span class="w"> </span><span class="n">r_total</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-2487" name="line-2487"></a><span class="w"> </span><span class="n">g_total</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-2488" name="line-2488"></a><span class="w"> </span><span class="n">b_total</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-2489" name="line-2489"></a>
+<a id="line-2490" name="line-2490"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_pixbuf_get_has_alpha</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2491" name="line-2491"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">row</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">row</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">height</span><span class="p">;</span><span class="w"> </span><span class="n">row</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2492" name="line-2492"></a><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pixels</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">row</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">row_stride</span><span class="p">);</span>
+<a id="line-2493" name="line-2493"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">column</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">column</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">width</span><span class="p">;</span><span class="w"> </span><span class="n">column</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2494" name="line-2494"></a><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="p">;</span>
+<a id="line-2495" name="line-2495"></a><span class="w"> </span><span class="n">g</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="p">;</span>
+<a id="line-2496" name="line-2496"></a><span class="w"> </span><span class="n">b</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="p">;</span>
+<a id="line-2497" name="line-2497"></a><span class="w"> </span><span class="n">a</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="p">;</span>
+<a id="line-2498" name="line-2498"></a>
+<a id="line-2499" name="line-2499"></a><span class="w"> </span><span class="n">a_total</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">a</span><span class="p">;</span>
+<a id="line-2500" name="line-2500"></a><span class="w"> </span><span class="n">r_total</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">a</span><span class="p">;</span>
+<a id="line-2501" name="line-2501"></a><span class="w"> </span><span class="n">g_total</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">g</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">a</span><span class="p">;</span>
+<a id="line-2502" name="line-2502"></a><span class="w"> </span><span class="n">b_total</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">b</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">a</span><span class="p">;</span>
+<a id="line-2503" name="line-2503"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2504" name="line-2504"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2505" name="line-2505"></a><span class="w"> </span><span class="n">dividend</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mh">0xFF</span><span class="p">;</span>
+<a id="line-2506" name="line-2506"></a><span class="w"> </span><span class="n">a_total</span><span class="w"> </span><span class="o">*=</span><span class="w"> </span><span class="mh">0xFF</span><span class="p">;</span>
+<a id="line-2507" name="line-2507"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2508" name="line-2508"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">row</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">row</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">height</span><span class="p">;</span><span class="w"> </span><span class="n">row</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2509" name="line-2509"></a><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pixels</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">row</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">row_stride</span><span class="p">);</span>
+<a id="line-2510" name="line-2510"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">column</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">column</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">width</span><span class="p">;</span><span class="w"> </span><span class="n">column</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2511" name="line-2511"></a><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="p">;</span>
+<a id="line-2512" name="line-2512"></a><span class="w"> </span><span class="n">g</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="p">;</span>
+<a id="line-2513" name="line-2513"></a><span class="w"> </span><span class="n">b</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="o">++</span><span class="p">;</span>
+<a id="line-2514" name="line-2514"></a>
+<a id="line-2515" name="line-2515"></a><span class="w"> </span><span class="n">r_total</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">r</span><span class="p">;</span>
+<a id="line-2516" name="line-2516"></a><span class="w"> </span><span class="n">g_total</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">g</span><span class="p">;</span>
+<a id="line-2517" name="line-2517"></a><span class="w"> </span><span class="n">b_total</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">b</span><span class="p">;</span>
+<a id="line-2518" name="line-2518"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2519" name="line-2519"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2520" name="line-2520"></a><span class="w"> </span><span class="n">dividend</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">width</span><span class="p">;</span>
+<a id="line-2521" name="line-2521"></a><span class="w"> </span><span class="n">a_total</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dividend</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mh">0xFF</span><span class="p">;</span>
+<a id="line-2522" name="line-2522"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2523" name="line-2523"></a>
+<a id="line-2524" name="line-2524"></a><span class="w"> </span><span class="n">dd</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dividend</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mh">0xFF</span><span class="p">;</span>
+<a id="line-2525" name="line-2525"></a><span class="w"> </span><span class="n">result</span><span class="o">-&gt;</span><span class="n">alpha</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">a_total</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">dd</span><span class="p">;</span>
+<a id="line-2526" name="line-2526"></a><span class="w"> </span><span class="n">result</span><span class="o">-&gt;</span><span class="n">red</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">r_total</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">dd</span><span class="p">;</span>
+<a id="line-2527" name="line-2527"></a><span class="w"> </span><span class="n">result</span><span class="o">-&gt;</span><span class="n">green</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_total</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">dd</span><span class="p">;</span>
+<a id="line-2528" name="line-2528"></a><span class="w"> </span><span class="n">result</span><span class="o">-&gt;</span><span class="n">blue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">b_total</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">dd</span><span class="p">;</span>
+<a id="line-2529" name="line-2529"></a><span class="p">}</span>
+<a id="line-2530" name="line-2530"></a>
+<a id="line-2531" name="line-2531"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span>
+<a id="line-2532" name="line-2532"></a><span class="nf">pixbuf_scale_to_fit</span><span class="w"> </span><span class="p">(</span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">src</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">max_width</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">max_height</span><span class="p">)</span>
+<a id="line-2533" name="line-2533"></a><span class="p">{</span>
+<a id="line-2534" name="line-2534"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">factor</span><span class="p">;</span>
+<a id="line-2535" name="line-2535"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">src_width</span><span class="p">,</span><span class="w"> </span><span class="n">src_height</span><span class="p">;</span>
+<a id="line-2536" name="line-2536"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">new_width</span><span class="p">,</span><span class="w"> </span><span class="n">new_height</span><span class="p">;</span>
+<a id="line-2537" name="line-2537"></a>
+<a id="line-2538" name="line-2538"></a><span class="w"> </span><span class="n">src_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">src</span><span class="p">);</span>
+<a id="line-2539" name="line-2539"></a><span class="w"> </span><span class="n">src_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">src</span><span class="p">);</span>
+<a id="line-2540" name="line-2540"></a>
+<a id="line-2541" name="line-2541"></a><span class="w"> </span><span class="n">factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MIN</span><span class="w"> </span><span class="p">(</span><span class="n">max_width</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="n">src_width</span><span class="p">,</span><span class="w"> </span><span class="n">max_height</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="n">src_height</span><span class="p">);</span>
+<a id="line-2542" name="line-2542"></a>
+<a id="line-2543" name="line-2543"></a><span class="w"> </span><span class="n">new_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">floor</span><span class="w"> </span><span class="p">(</span><span class="n">src_width</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">factor</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span>
+<a id="line-2544" name="line-2544"></a><span class="w"> </span><span class="n">new_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">floor</span><span class="w"> </span><span class="p">(</span><span class="n">src_height</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">factor</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span>
+<a id="line-2545" name="line-2545"></a>
+<a id="line-2546" name="line-2546"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">gdk_pixbuf_scale_simple</span><span class="w"> </span><span class="p">(</span><span class="n">src</span><span class="p">,</span><span class="w"> </span><span class="n">new_width</span><span class="p">,</span><span class="w"> </span><span class="n">new_height</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_INTERP_BILINEAR</span><span class="p">);</span>
+<a id="line-2547" name="line-2547"></a><span class="p">}</span>
+<a id="line-2548" name="line-2548"></a>
+<a id="line-2549" name="line-2549"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span>
+<a id="line-2550" name="line-2550"></a><span class="nf">pixbuf_scale_to_min</span><span class="w"> </span><span class="p">(</span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">src</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">min_width</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">min_height</span><span class="p">)</span>
+<a id="line-2551" name="line-2551"></a><span class="p">{</span>
+<a id="line-2552" name="line-2552"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">factor</span><span class="p">;</span>
+<a id="line-2553" name="line-2553"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">src_width</span><span class="p">,</span><span class="w"> </span><span class="n">src_height</span><span class="p">;</span>
+<a id="line-2554" name="line-2554"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">new_width</span><span class="p">,</span><span class="w"> </span><span class="n">new_height</span><span class="p">;</span>
+<a id="line-2555" name="line-2555"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">dest</span><span class="p">;</span>
+<a id="line-2556" name="line-2556"></a>
+<a id="line-2557" name="line-2557"></a><span class="w"> </span><span class="n">src_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">src</span><span class="p">);</span>
+<a id="line-2558" name="line-2558"></a><span class="w"> </span><span class="n">src_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">src</span><span class="p">);</span>
+<a id="line-2559" name="line-2559"></a>
+<a id="line-2560" name="line-2560"></a><span class="w"> </span><span class="n">factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MAX</span><span class="w"> </span><span class="p">(</span><span class="n">min_width</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="n">src_width</span><span class="p">,</span><span class="w"> </span><span class="n">min_height</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="w"> </span><span class="n">src_height</span><span class="p">);</span>
+<a id="line-2561" name="line-2561"></a>
+<a id="line-2562" name="line-2562"></a><span class="w"> </span><span class="n">new_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">floor</span><span class="w"> </span><span class="p">(</span><span class="n">src_width</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">factor</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span>
+<a id="line-2563" name="line-2563"></a><span class="w"> </span><span class="n">new_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">floor</span><span class="w"> </span><span class="p">(</span><span class="n">src_height</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">factor</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span>
+<a id="line-2564" name="line-2564"></a>
+<a id="line-2565" name="line-2565"></a><span class="w"> </span><span class="n">dest</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_COLORSPACE_RGB</span><span class="p">,</span>
+<a id="line-2566" name="line-2566"></a><span class="w"> </span><span class="n">gdk_pixbuf_get_has_alpha</span><span class="w"> </span><span class="p">(</span><span class="n">src</span><span class="p">),</span>
+<a id="line-2567" name="line-2567"></a><span class="w"> </span><span class="mi">8</span><span class="p">,</span><span class="w"> </span><span class="n">min_width</span><span class="p">,</span><span class="w"> </span><span class="n">min_height</span><span class="p">);</span>
+<a id="line-2568" name="line-2568"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">dest</span><span class="p">)</span>
+<a id="line-2569" name="line-2569"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2570" name="line-2570"></a>
+<a id="line-2571" name="line-2571"></a><span class="w"> </span><span class="cm">/* crop the result */</span>
+<a id="line-2572" name="line-2572"></a><span class="w"> </span><span class="n">gdk_pixbuf_scale</span><span class="w"> </span><span class="p">(</span><span class="n">src</span><span class="p">,</span><span class="w"> </span><span class="n">dest</span><span class="p">,</span>
+<a id="line-2573" name="line-2573"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
+<a id="line-2574" name="line-2574"></a><span class="w"> </span><span class="n">min_width</span><span class="p">,</span><span class="w"> </span><span class="n">min_height</span><span class="p">,</span>
+<a id="line-2575" name="line-2575"></a><span class="w"> </span><span class="p">(</span><span class="n">new_width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">min_width</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">-2</span><span class="p">,</span>
+<a id="line-2576" name="line-2576"></a><span class="w"> </span><span class="p">(</span><span class="n">new_height</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">min_height</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">-2</span><span class="p">,</span>
+<a id="line-2577" name="line-2577"></a><span class="w"> </span><span class="n">factor</span><span class="p">,</span>
+<a id="line-2578" name="line-2578"></a><span class="w"> </span><span class="n">factor</span><span class="p">,</span>
+<a id="line-2579" name="line-2579"></a><span class="w"> </span><span class="n">GDK_INTERP_BILINEAR</span><span class="p">);</span>
+<a id="line-2580" name="line-2580"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">dest</span><span class="p">;</span>
+<a id="line-2581" name="line-2581"></a><span class="p">}</span>
+<a id="line-2582" name="line-2582"></a>
+<a id="line-2583" name="line-2583"></a><span class="k">static</span><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span>
+<a id="line-2584" name="line-2584"></a><span class="nf">create_gradient</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">primary</span><span class="p">,</span>
+<a id="line-2585" name="line-2585"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">secondary</span><span class="p">,</span>
+<a id="line-2586" name="line-2586"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n_pixels</span><span class="p">)</span>
+<a id="line-2587" name="line-2587"></a><span class="p">{</span>
+<a id="line-2588" name="line-2588"></a><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_malloc</span><span class="w"> </span><span class="p">(</span><span class="n">n_pixels</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">3</span><span class="p">);</span>
+<a id="line-2589" name="line-2589"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-2590" name="line-2590"></a>
+<a id="line-2591" name="line-2591"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">n_pixels</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2592" name="line-2592"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">ratio</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">n_pixels</span><span class="p">;</span>
+<a id="line-2593" name="line-2593"></a>
+<a id="line-2594" name="line-2594"></a><span class="w"> </span><span class="n">result</span><span class="p">[</span><span class="mi">3</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">guchar</span><span class="p">)</span><span class="w"> </span><span class="p">((</span><span class="n">primary</span><span class="o">-&gt;</span><span class="n">red</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">ratio</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">secondary</span><span class="o">-&gt;</span><span class="n">red</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">ratio</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mh">0x100</span><span class="p">);</span>
+<a id="line-2595" name="line-2595"></a><span class="w"> </span><span class="n">result</span><span class="p">[</span><span class="mi">3</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">guchar</span><span class="p">)</span><span class="w"> </span><span class="p">((</span><span class="n">primary</span><span class="o">-&gt;</span><span class="n">green</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">ratio</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">secondary</span><span class="o">-&gt;</span><span class="n">green</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">ratio</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mh">0x100</span><span class="p">);</span>
+<a id="line-2596" name="line-2596"></a><span class="w"> </span><span class="n">result</span><span class="p">[</span><span class="mi">3</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">2</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">guchar</span><span class="p">)</span><span class="w"> </span><span class="p">((</span><span class="n">primary</span><span class="o">-&gt;</span><span class="n">blue</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">ratio</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">secondary</span><span class="o">-&gt;</span><span class="n">blue</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">ratio</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mh">0x100</span><span class="p">);</span>
+<a id="line-2597" name="line-2597"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2598" name="line-2598"></a>
+<a id="line-2599" name="line-2599"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-2600" name="line-2600"></a><span class="p">}</span>
+<a id="line-2601" name="line-2601"></a>
+<a id="line-2602" name="line-2602"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-2603" name="line-2603"></a><span class="nf">pixbuf_draw_gradient</span><span class="w"> </span><span class="p">(</span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">,</span>
+<a id="line-2604" name="line-2604"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">horizontal</span><span class="p">,</span>
+<a id="line-2605" name="line-2605"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">primary</span><span class="p">,</span>
+<a id="line-2606" name="line-2606"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">secondary</span><span class="p">,</span>
+<a id="line-2607" name="line-2607"></a><span class="w"> </span><span class="n">GdkRectangle</span><span class="w"> </span><span class="o">*</span><span class="n">rect</span><span class="p">)</span>
+<a id="line-2608" name="line-2608"></a><span class="p">{</span>
+<a id="line-2609" name="line-2609"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">;</span>
+<a id="line-2610" name="line-2610"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">height</span><span class="p">;</span>
+<a id="line-2611" name="line-2611"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">rowstride</span><span class="p">;</span>
+<a id="line-2612" name="line-2612"></a><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">dst</span><span class="p">;</span>
+<a id="line-2613" name="line-2613"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n_channels</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">3</span><span class="p">;</span>
+<a id="line-2614" name="line-2614"></a>
+<a id="line-2615" name="line-2615"></a><span class="w"> </span><span class="n">rowstride</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_rowstride</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span>
+<a id="line-2616" name="line-2616"></a><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">rect</span><span class="o">-&gt;</span><span class="n">width</span><span class="p">;</span>
+<a id="line-2617" name="line-2617"></a><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">rect</span><span class="o">-&gt;</span><span class="n">height</span><span class="p">;</span>
+<a id="line-2618" name="line-2618"></a><span class="w"> </span><span class="n">dst</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_pixels</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">rect</span><span class="o">-&gt;</span><span class="n">x</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">n_channels</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">rowstride</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">rect</span><span class="o">-&gt;</span><span class="n">y</span><span class="p">;</span>
+<a id="line-2619" name="line-2619"></a>
+<a id="line-2620" name="line-2620"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">horizontal</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2621" name="line-2621"></a><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">gradient</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">create_gradient</span><span class="w"> </span><span class="p">(</span><span class="n">primary</span><span class="p">,</span><span class="w"> </span><span class="n">secondary</span><span class="p">,</span><span class="w"> </span><span class="n">width</span><span class="p">);</span>
+<a id="line-2622" name="line-2622"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">copy_bytes_per_row</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">width</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">n_channels</span><span class="p">;</span>
+<a id="line-2623" name="line-2623"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-2624" name="line-2624"></a>
+<a id="line-2625" name="line-2625"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">height</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2626" name="line-2626"></a><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">d</span><span class="p">;</span>
+<a id="line-2627" name="line-2627"></a><span class="w"> </span><span class="n">d</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dst</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">rowstride</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-2628" name="line-2628"></a><span class="w"> </span><span class="n">memcpy</span><span class="w"> </span><span class="p">(</span><span class="n">d</span><span class="p">,</span><span class="w"> </span><span class="n">gradient</span><span class="p">,</span><span class="w"> </span><span class="n">copy_bytes_per_row</span><span class="p">);</span>
+<a id="line-2629" name="line-2629"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2630" name="line-2630"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">gradient</span><span class="p">);</span>
+<a id="line-2631" name="line-2631"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2632" name="line-2632"></a><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">gb</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">gradient</span><span class="p">;</span>
+<a id="line-2633" name="line-2633"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-2634" name="line-2634"></a>
+<a id="line-2635" name="line-2635"></a><span class="w"> </span><span class="n">gradient</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">create_gradient</span><span class="w"> </span><span class="p">(</span><span class="n">primary</span><span class="p">,</span><span class="w"> </span><span class="n">secondary</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">);</span>
+<a id="line-2636" name="line-2636"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">height</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2637" name="line-2637"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">j</span><span class="p">;</span>
+<a id="line-2638" name="line-2638"></a><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">d</span><span class="p">;</span>
+<a id="line-2639" name="line-2639"></a>
+<a id="line-2640" name="line-2640"></a><span class="w"> </span><span class="n">d</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dst</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">rowstride</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-2641" name="line-2641"></a><span class="w"> </span><span class="n">gb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gradient</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">n_channels</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-2642" name="line-2642"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">width</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">--</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2643" name="line-2643"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">k</span><span class="p">;</span>
+<a id="line-2644" name="line-2644"></a>
+<a id="line-2645" name="line-2645"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">k</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">k</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">n_channels</span><span class="p">;</span><span class="w"> </span><span class="n">k</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2646" name="line-2646"></a><span class="w"> </span><span class="o">*</span><span class="p">(</span><span class="n">d</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gb</span><span class="p">[</span><span class="n">k</span><span class="p">];</span>
+<a id="line-2647" name="line-2647"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2648" name="line-2648"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2649" name="line-2649"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2650" name="line-2650"></a>
+<a id="line-2651" name="line-2651"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">gradient</span><span class="p">);</span>
+<a id="line-2652" name="line-2652"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2653" name="line-2653"></a><span class="p">}</span>
+<a id="line-2654" name="line-2654"></a>
+<a id="line-2655" name="line-2655"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-2656" name="line-2656"></a><span class="nf">pixbuf_blend</span><span class="w"> </span><span class="p">(</span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">src</span><span class="p">,</span>
+<a id="line-2657" name="line-2657"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">dest</span><span class="p">,</span>
+<a id="line-2658" name="line-2658"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">src_x</span><span class="p">,</span>
+<a id="line-2659" name="line-2659"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">src_y</span><span class="p">,</span>
+<a id="line-2660" name="line-2660"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">src_width</span><span class="p">,</span>
+<a id="line-2661" name="line-2661"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">src_height</span><span class="p">,</span>
+<a id="line-2662" name="line-2662"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dest_x</span><span class="p">,</span>
+<a id="line-2663" name="line-2663"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dest_y</span><span class="p">,</span>
+<a id="line-2664" name="line-2664"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">alpha</span><span class="p">)</span>
+<a id="line-2665" name="line-2665"></a><span class="p">{</span>
+<a id="line-2666" name="line-2666"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dest_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">dest</span><span class="p">);</span>
+<a id="line-2667" name="line-2667"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dest_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">dest</span><span class="p">);</span>
+<a id="line-2668" name="line-2668"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">offset_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dest_x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">src_x</span><span class="p">;</span>
+<a id="line-2669" name="line-2669"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">offset_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dest_y</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">src_y</span><span class="p">;</span>
+<a id="line-2670" name="line-2670"></a>
+<a id="line-2671" name="line-2671"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">src_width</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-2672" name="line-2672"></a><span class="w"> </span><span class="n">src_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">src</span><span class="p">);</span>
+<a id="line-2673" name="line-2673"></a>
+<a id="line-2674" name="line-2674"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">src_height</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-2675" name="line-2675"></a><span class="w"> </span><span class="n">src_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">src</span><span class="p">);</span>
+<a id="line-2676" name="line-2676"></a>
+<a id="line-2677" name="line-2677"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dest_x</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-2678" name="line-2678"></a><span class="w"> </span><span class="n">dest_x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-2679" name="line-2679"></a>
+<a id="line-2680" name="line-2680"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dest_y</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-2681" name="line-2681"></a><span class="w"> </span><span class="n">dest_y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-2682" name="line-2682"></a>
+<a id="line-2683" name="line-2683"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dest_x</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">src_width</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="n">dest_width</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2684" name="line-2684"></a><span class="w"> </span><span class="n">src_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dest_width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">dest_x</span><span class="p">;</span>
+<a id="line-2685" name="line-2685"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2686" name="line-2686"></a>
+<a id="line-2687" name="line-2687"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dest_y</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">src_height</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="n">dest_height</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2688" name="line-2688"></a><span class="w"> </span><span class="n">src_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dest_height</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">dest_y</span><span class="p">;</span>
+<a id="line-2689" name="line-2689"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2690" name="line-2690"></a>
+<a id="line-2691" name="line-2691"></a><span class="w"> </span><span class="n">gdk_pixbuf_composite</span><span class="w"> </span><span class="p">(</span><span class="n">src</span><span class="p">,</span><span class="w"> </span><span class="n">dest</span><span class="p">,</span>
+<a id="line-2692" name="line-2692"></a><span class="w"> </span><span class="n">dest_x</span><span class="p">,</span><span class="w"> </span><span class="n">dest_y</span><span class="p">,</span>
+<a id="line-2693" name="line-2693"></a><span class="w"> </span><span class="n">src_width</span><span class="p">,</span><span class="w"> </span><span class="n">src_height</span><span class="p">,</span>
+<a id="line-2694" name="line-2694"></a><span class="w"> </span><span class="n">offset_x</span><span class="p">,</span><span class="w"> </span><span class="n">offset_y</span><span class="p">,</span>
+<a id="line-2695" name="line-2695"></a><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_INTERP_NEAREST</span><span class="p">,</span>
+<a id="line-2696" name="line-2696"></a><span class="w"> </span><span class="n">alpha</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mh">0xFF</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span>
+<a id="line-2697" name="line-2697"></a><span class="p">}</span>
+<a id="line-2698" name="line-2698"></a>
+<a id="line-2699" name="line-2699"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-2700" name="line-2700"></a><span class="nf">pixbuf_tile</span><span class="w"> </span><span class="p">(</span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">src</span><span class="p">,</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">dest</span><span class="p">)</span>
+<a id="line-2701" name="line-2701"></a><span class="p">{</span>
+<a id="line-2702" name="line-2702"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">;</span>
+<a id="line-2703" name="line-2703"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">tile_width</span><span class="p">,</span><span class="w"> </span><span class="n">tile_height</span><span class="p">;</span>
+<a id="line-2704" name="line-2704"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dest_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">dest</span><span class="p">);</span>
+<a id="line-2705" name="line-2705"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dest_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">dest</span><span class="p">);</span>
+<a id="line-2706" name="line-2706"></a>
+<a id="line-2707" name="line-2707"></a><span class="w"> </span><span class="n">tile_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">src</span><span class="p">);</span>
+<a id="line-2708" name="line-2708"></a><span class="w"> </span><span class="n">tile_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">src</span><span class="p">);</span>
+<a id="line-2709" name="line-2709"></a>
+<a id="line-2710" name="line-2710"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">dest_height</span><span class="p">;</span><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">tile_height</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2711" name="line-2711"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">dest_width</span><span class="p">;</span><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">tile_width</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2712" name="line-2712"></a><span class="w"> </span><span class="n">pixbuf_blend</span><span class="w"> </span><span class="p">(</span><span class="n">src</span><span class="p">,</span><span class="w"> </span><span class="n">dest</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
+<a id="line-2713" name="line-2713"></a><span class="w"> </span><span class="n">tile_width</span><span class="p">,</span><span class="w"> </span><span class="n">tile_height</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="p">);</span>
+<a id="line-2714" name="line-2714"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2715" name="line-2715"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2716" name="line-2716"></a><span class="p">}</span>
+<a id="line-2717" name="line-2717"></a>
+<a id="line-2718" name="line-2718"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">s1</span><span class="p">,</span><span class="w"> </span><span class="p">...);</span>
+<a id="line-2719" name="line-2719"></a>
+<a id="line-2720" name="line-2720"></a><span class="cm">/* Parser for fading background */</span>
+<a id="line-2721" name="line-2721"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-2722" name="line-2722"></a><span class="nf">handle_start_element</span><span class="w"> </span><span class="p">(</span><span class="n">GMarkupParseContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">,</span>
+<a id="line-2723" name="line-2723"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span>
+<a id="line-2724" name="line-2724"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">attr_names</span><span class="p">,</span>
+<a id="line-2725" name="line-2725"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">attr_values</span><span class="p">,</span>
+<a id="line-2726" name="line-2726"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">,</span>
+<a id="line-2727" name="line-2727"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">err</span><span class="p">)</span>
+<a id="line-2728" name="line-2728"></a><span class="p">{</span>
+<a id="line-2729" name="line-2729"></a><span class="w"> </span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span><span class="n">parser</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">user_data</span><span class="p">;</span>
+<a id="line-2730" name="line-2730"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-2731" name="line-2731"></a>
+<a id="line-2732" name="line-2732"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;static&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;transition&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2733" name="line-2733"></a><span class="w"> </span><span class="n">Slide</span><span class="w"> </span><span class="o">*</span><span class="n">slide</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new0</span><span class="w"> </span><span class="p">(</span><span class="n">Slide</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-2734" name="line-2734"></a>
+<a id="line-2735" name="line-2735"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;static&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-2736" name="line-2736"></a><span class="w"> </span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">fixed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-2737" name="line-2737"></a>
+<a id="line-2738" name="line-2738"></a><span class="w"> </span><span class="n">g_queue_push_tail</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">slides</span><span class="p">,</span><span class="w"> </span><span class="n">slide</span><span class="p">);</span>
+<a id="line-2739" name="line-2739"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2740" name="line-2740"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;size&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2741" name="line-2741"></a><span class="w"> </span><span class="n">Slide</span><span class="w"> </span><span class="o">*</span><span class="n">slide</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">slides</span><span class="o">-&gt;</span><span class="n">tail</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-2742" name="line-2742"></a><span class="w"> </span><span class="n">FileSize</span><span class="w"> </span><span class="o">*</span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new0</span><span class="w"> </span><span class="p">(</span><span class="n">FileSize</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-2743" name="line-2743"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">attr_names</span><span class="p">[</span><span class="n">i</span><span class="p">];</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2744" name="line-2744"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">attr_names</span><span class="p">[</span><span class="n">i</span><span class="p">],</span><span class="w"> </span><span class="s">&quot;width&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-2745" name="line-2745"></a><span class="w"> </span><span class="n">size</span><span class="o">-&gt;</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">atoi</span><span class="w"> </span><span class="p">(</span><span class="n">attr_values</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span>
+<a id="line-2746" name="line-2746"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">attr_names</span><span class="p">[</span><span class="n">i</span><span class="p">],</span><span class="w"> </span><span class="s">&quot;height&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-2747" name="line-2747"></a><span class="w"> </span><span class="n">size</span><span class="o">-&gt;</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">atoi</span><span class="w"> </span><span class="p">(</span><span class="n">attr_values</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span>
+<a id="line-2748" name="line-2748"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2749" name="line-2749"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">stack</span><span class="o">-&gt;</span><span class="n">tail</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-2750" name="line-2750"></a><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">stack</span><span class="o">-&gt;</span><span class="n">tail</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;file&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span>
+<a id="line-2751" name="line-2751"></a><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">stack</span><span class="o">-&gt;</span><span class="n">tail</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;from&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2752" name="line-2752"></a><span class="w"> </span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">file1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slist_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">file1</span><span class="p">,</span><span class="w"> </span><span class="n">size</span><span class="p">);</span>
+<a id="line-2753" name="line-2753"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2754" name="line-2754"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">stack</span><span class="o">-&gt;</span><span class="n">tail</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-2755" name="line-2755"></a><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">stack</span><span class="o">-&gt;</span><span class="n">tail</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;to&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2756" name="line-2756"></a><span class="w"> </span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">file2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slist_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">file2</span><span class="p">,</span><span class="w"> </span><span class="n">size</span><span class="p">);</span>
+<a id="line-2757" name="line-2757"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2758" name="line-2758"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-2759" name="line-2759"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">size</span><span class="p">);</span>
+<a id="line-2760" name="line-2760"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2761" name="line-2761"></a><span class="w"> </span><span class="n">g_queue_push_tail</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">stack</span><span class="p">,</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">));</span>
+<a id="line-2762" name="line-2762"></a><span class="p">}</span>
+<a id="line-2763" name="line-2763"></a>
+<a id="line-2764" name="line-2764"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-2765" name="line-2765"></a><span class="nf">handle_end_element</span><span class="w"> </span><span class="p">(</span><span class="n">GMarkupParseContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">,</span>
+<a id="line-2766" name="line-2766"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span>
+<a id="line-2767" name="line-2767"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">,</span>
+<a id="line-2768" name="line-2768"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">err</span><span class="p">)</span>
+<a id="line-2769" name="line-2769"></a><span class="p">{</span>
+<a id="line-2770" name="line-2770"></a><span class="w"> </span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span><span class="n">parser</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">user_data</span><span class="p">;</span>
+<a id="line-2771" name="line-2771"></a>
+<a id="line-2772" name="line-2772"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">g_queue_pop_tail</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">stack</span><span class="p">));</span>
+<a id="line-2773" name="line-2773"></a><span class="p">}</span>
+<a id="line-2774" name="line-2774"></a>
+<a id="line-2775" name="line-2775"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-2776" name="line-2776"></a><span class="nf">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span><span class="n">parser</span><span class="p">,</span>
+<a id="line-2777" name="line-2777"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">s1</span><span class="p">,</span>
+<a id="line-2778" name="line-2778"></a><span class="w"> </span><span class="p">...)</span>
+<a id="line-2779" name="line-2779"></a><span class="p">{</span>
+<a id="line-2780" name="line-2780"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">stack</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2781" name="line-2781"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span>
+<a id="line-2782" name="line-2782"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">l1</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">l2</span><span class="p">;</span>
+<a id="line-2783" name="line-2783"></a><span class="w"> </span><span class="kt">va_list</span><span class="w"> </span><span class="n">args</span><span class="p">;</span>
+<a id="line-2784" name="line-2784"></a>
+<a id="line-2785" name="line-2785"></a><span class="w"> </span><span class="n">stack</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">stack</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="p">)</span><span class="n">s1</span><span class="p">);</span>
+<a id="line-2786" name="line-2786"></a>
+<a id="line-2787" name="line-2787"></a><span class="w"> </span><span class="n">va_start</span><span class="w"> </span><span class="p">(</span><span class="n">args</span><span class="p">,</span><span class="w"> </span><span class="n">s1</span><span class="p">);</span>
+<a id="line-2788" name="line-2788"></a>
+<a id="line-2789" name="line-2789"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">va_arg</span><span class="w"> </span><span class="p">(</span><span class="n">args</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">);</span>
+<a id="line-2790" name="line-2790"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">s</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2791" name="line-2791"></a><span class="w"> </span><span class="n">stack</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">stack</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="p">)</span><span class="n">s</span><span class="p">);</span>
+<a id="line-2792" name="line-2792"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">va_arg</span><span class="w"> </span><span class="p">(</span><span class="n">args</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">);</span>
+<a id="line-2793" name="line-2793"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2794" name="line-2794"></a>
+<a id="line-2795" name="line-2795"></a><span class="w"> </span><span class="n">va_end</span><span class="w"> </span><span class="p">(</span><span class="n">args</span><span class="p">);</span>
+<a id="line-2796" name="line-2796"></a>
+<a id="line-2797" name="line-2797"></a><span class="w"> </span><span class="n">l1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">stack</span><span class="p">;</span>
+<a id="line-2798" name="line-2798"></a><span class="w"> </span><span class="n">l2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">stack</span><span class="o">-&gt;</span><span class="n">head</span><span class="p">;</span>
+<a id="line-2799" name="line-2799"></a>
+<a id="line-2800" name="line-2800"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">l1</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">l2</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2801" name="line-2801"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">l1</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">l2</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2802" name="line-2802"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">stack</span><span class="p">);</span>
+<a id="line-2803" name="line-2803"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-2804" name="line-2804"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2805" name="line-2805"></a>
+<a id="line-2806" name="line-2806"></a><span class="w"> </span><span class="n">l1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l1</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">;</span>
+<a id="line-2807" name="line-2807"></a><span class="w"> </span><span class="n">l2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l2</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">;</span>
+<a id="line-2808" name="line-2808"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2809" name="line-2809"></a>
+<a id="line-2810" name="line-2810"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">stack</span><span class="p">);</span>
+<a id="line-2811" name="line-2811"></a>
+<a id="line-2812" name="line-2812"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">l1</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">!</span><span class="n">l2</span><span class="p">);</span>
+<a id="line-2813" name="line-2813"></a><span class="p">}</span>
+<a id="line-2814" name="line-2814"></a>
+<a id="line-2815" name="line-2815"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span>
+<a id="line-2816" name="line-2816"></a><span class="nf">parse_int</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">)</span>
+<a id="line-2817" name="line-2817"></a><span class="p">{</span>
+<a id="line-2818" name="line-2818"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">strtol</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-2819" name="line-2819"></a><span class="p">}</span>
+<a id="line-2820" name="line-2820"></a>
+<a id="line-2821" name="line-2821"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-2822" name="line-2822"></a><span class="nf">handle_text</span><span class="w"> </span><span class="p">(</span><span class="n">GMarkupParseContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">,</span>
+<a id="line-2823" name="line-2823"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">,</span>
+<a id="line-2824" name="line-2824"></a><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">text_len</span><span class="p">,</span>
+<a id="line-2825" name="line-2825"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">,</span>
+<a id="line-2826" name="line-2826"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">err</span><span class="p">)</span>
+<a id="line-2827" name="line-2827"></a><span class="p">{</span>
+<a id="line-2828" name="line-2828"></a><span class="w"> </span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span><span class="n">parser</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">user_data</span><span class="p">;</span>
+<a id="line-2829" name="line-2829"></a><span class="w"> </span><span class="n">FileSize</span><span class="w"> </span><span class="o">*</span><span class="n">fs</span><span class="p">;</span>
+<a id="line-2830" name="line-2830"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-2831" name="line-2831"></a>
+<a id="line-2832" name="line-2832"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2833" name="line-2833"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">slides</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2834" name="line-2834"></a>
+<a id="line-2835" name="line-2835"></a><span class="w"> </span><span class="n">Slide</span><span class="w"> </span><span class="o">*</span><span class="n">slide</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">slides</span><span class="o">-&gt;</span><span class="n">tail</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">slides</span><span class="o">-&gt;</span><span class="n">tail</span><span class="o">-&gt;</span><span class="n">data</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2836" name="line-2836"></a>
+<a id="line-2837" name="line-2837"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;year&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;starttime&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;background&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2838" name="line-2838"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">start_tm</span><span class="p">.</span><span class="n">tm_year</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">parse_int</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">)</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1900</span><span class="p">;</span>
+<a id="line-2839" name="line-2839"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2840" name="line-2840"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;month&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;starttime&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;background&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2841" name="line-2841"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">start_tm</span><span class="p">.</span><span class="n">tm_mon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">parse_int</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">)</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-2842" name="line-2842"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2843" name="line-2843"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;day&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;starttime&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;background&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2844" name="line-2844"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">start_tm</span><span class="p">.</span><span class="n">tm_mday</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">parse_int</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">);</span>
+<a id="line-2845" name="line-2845"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2846" name="line-2846"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;hour&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;starttime&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;background&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2847" name="line-2847"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">start_tm</span><span class="p">.</span><span class="n">tm_hour</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">parse_int</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">)</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-2848" name="line-2848"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2849" name="line-2849"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;minute&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;starttime&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;background&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2850" name="line-2850"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">start_tm</span><span class="p">.</span><span class="n">tm_min</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">parse_int</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">);</span>
+<a id="line-2851" name="line-2851"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2852" name="line-2852"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;second&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;starttime&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;background&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2853" name="line-2853"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">start_tm</span><span class="p">.</span><span class="n">tm_sec</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">parse_int</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">);</span>
+<a id="line-2854" name="line-2854"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2855" name="line-2855"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;duration&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;static&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;background&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="o">||</span>
+<a id="line-2856" name="line-2856"></a><span class="w"> </span><span class="n">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;duration&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;transition&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;background&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2857" name="line-2857"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2858" name="line-2858"></a>
+<a id="line-2859" name="line-2859"></a><span class="w"> </span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">duration</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strtod</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2860" name="line-2860"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">total_duration</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">duration</span><span class="p">;</span>
+<a id="line-2861" name="line-2861"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2862" name="line-2862"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;file&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;static&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;background&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="o">||</span>
+<a id="line-2863" name="line-2863"></a><span class="w"> </span><span class="n">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;from&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;transition&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;background&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2864" name="line-2864"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2865" name="line-2865"></a>
+<a id="line-2866" name="line-2866"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">text</span><span class="p">[</span><span class="n">i</span><span class="p">];</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2867" name="line-2867"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_ascii_isspace</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">[</span><span class="n">i</span><span class="p">]))</span>
+<a id="line-2868" name="line-2868"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-2869" name="line-2869"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2870" name="line-2870"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-2871" name="line-2871"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-2872" name="line-2872"></a><span class="w"> </span><span class="n">fs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new</span><span class="w"> </span><span class="p">(</span><span class="n">FileSize</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-2873" name="line-2873"></a><span class="w"> </span><span class="n">fs</span><span class="o">-&gt;</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-2874" name="line-2874"></a><span class="w"> </span><span class="n">fs</span><span class="o">-&gt;</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-2875" name="line-2875"></a><span class="w"> </span><span class="n">fs</span><span class="o">-&gt;</span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">);</span>
+<a id="line-2876" name="line-2876"></a><span class="w"> </span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">file1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slist_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">file1</span><span class="p">,</span><span class="w"> </span><span class="n">fs</span><span class="p">);</span>
+<a id="line-2877" name="line-2877"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">file1</span><span class="o">-&gt;</span><span class="n">next</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-2878" name="line-2878"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">has_multiple_sizes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-2879" name="line-2879"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2880" name="line-2880"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;size&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;file&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;static&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;background&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="o">||</span>
+<a id="line-2881" name="line-2881"></a><span class="w"> </span><span class="n">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;size&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;from&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;transition&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;background&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2882" name="line-2882"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2883" name="line-2883"></a>
+<a id="line-2884" name="line-2884"></a><span class="w"> </span><span class="n">fs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">file1</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-2885" name="line-2885"></a><span class="w"> </span><span class="n">fs</span><span class="o">-&gt;</span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">);</span>
+<a id="line-2886" name="line-2886"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">file1</span><span class="o">-&gt;</span><span class="n">next</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-2887" name="line-2887"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">has_multiple_sizes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-2888" name="line-2888"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2889" name="line-2889"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;to&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;transition&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;background&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2890" name="line-2890"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2891" name="line-2891"></a>
+<a id="line-2892" name="line-2892"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">text</span><span class="p">[</span><span class="n">i</span><span class="p">];</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2893" name="line-2893"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_ascii_isspace</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">[</span><span class="n">i</span><span class="p">]))</span>
+<a id="line-2894" name="line-2894"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-2895" name="line-2895"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2896" name="line-2896"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-2897" name="line-2897"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-2898" name="line-2898"></a><span class="w"> </span><span class="n">fs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new</span><span class="w"> </span><span class="p">(</span><span class="n">FileSize</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-2899" name="line-2899"></a><span class="w"> </span><span class="n">fs</span><span class="o">-&gt;</span><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-2900" name="line-2900"></a><span class="w"> </span><span class="n">fs</span><span class="o">-&gt;</span><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-2901" name="line-2901"></a><span class="w"> </span><span class="n">fs</span><span class="o">-&gt;</span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">);</span>
+<a id="line-2902" name="line-2902"></a><span class="w"> </span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">file2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slist_prepend</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">file2</span><span class="p">,</span><span class="w"> </span><span class="n">fs</span><span class="p">);</span>
+<a id="line-2903" name="line-2903"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">file2</span><span class="o">-&gt;</span><span class="n">next</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-2904" name="line-2904"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">has_multiple_sizes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-2905" name="line-2905"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2906" name="line-2906"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">stack_is</span><span class="w"> </span><span class="p">(</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;size&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;to&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;transition&quot;</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;background&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2907" name="line-2907"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2908" name="line-2908"></a>
+<a id="line-2909" name="line-2909"></a><span class="w"> </span><span class="n">fs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">file2</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-2910" name="line-2910"></a><span class="w"> </span><span class="n">fs</span><span class="o">-&gt;</span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">);</span>
+<a id="line-2911" name="line-2911"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">file2</span><span class="o">-&gt;</span><span class="n">next</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-2912" name="line-2912"></a><span class="w"> </span><span class="n">parser</span><span class="o">-&gt;</span><span class="n">has_multiple_sizes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-2913" name="line-2913"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2914" name="line-2914"></a><span class="p">}</span>
+<a id="line-2915" name="line-2915"></a>
+<a id="line-2916" name="line-2916"></a><span class="k">static</span><span class="w"> </span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span>
+<a id="line-2917" name="line-2917"></a><span class="nf">slideshow_ref</span><span class="w"> </span><span class="p">(</span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span><span class="n">show</span><span class="p">)</span>
+<a id="line-2918" name="line-2918"></a><span class="p">{</span>
+<a id="line-2919" name="line-2919"></a><span class="w"> </span><span class="n">show</span><span class="o">-&gt;</span><span class="n">ref_count</span><span class="o">++</span><span class="p">;</span>
+<a id="line-2920" name="line-2920"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">show</span><span class="p">;</span>
+<a id="line-2921" name="line-2921"></a><span class="p">}</span>
+<a id="line-2922" name="line-2922"></a>
+<a id="line-2923" name="line-2923"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-2924" name="line-2924"></a><span class="nf">slideshow_unref</span><span class="w"> </span><span class="p">(</span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span><span class="n">show</span><span class="p">)</span>
+<a id="line-2925" name="line-2925"></a><span class="p">{</span>
+<a id="line-2926" name="line-2926"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="p">;</span>
+<a id="line-2927" name="line-2927"></a><span class="w"> </span><span class="n">GSList</span><span class="w"> </span><span class="o">*</span><span class="n">slist</span><span class="p">;</span>
+<a id="line-2928" name="line-2928"></a><span class="w"> </span><span class="n">FileSize</span><span class="w"> </span><span class="o">*</span><span class="n">size</span><span class="p">;</span>
+<a id="line-2929" name="line-2929"></a>
+<a id="line-2930" name="line-2930"></a><span class="w"> </span><span class="n">show</span><span class="o">-&gt;</span><span class="n">ref_count</span><span class="o">--</span><span class="p">;</span>
+<a id="line-2931" name="line-2931"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="o">-&gt;</span><span class="n">ref_count</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-2932" name="line-2932"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-2933" name="line-2933"></a>
+<a id="line-2934" name="line-2934"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">show</span><span class="o">-&gt;</span><span class="n">slides</span><span class="o">-&gt;</span><span class="n">head</span><span class="p">;</span><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">list</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2935" name="line-2935"></a><span class="w"> </span><span class="n">Slide</span><span class="w"> </span><span class="o">*</span><span class="n">slide</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">list</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-2936" name="line-2936"></a>
+<a id="line-2937" name="line-2937"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">slist</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">file1</span><span class="p">;</span><span class="w"> </span><span class="n">slist</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">slist</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">slist</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2938" name="line-2938"></a><span class="w"> </span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">slist</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-2939" name="line-2939"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">size</span><span class="o">-&gt;</span><span class="n">file</span><span class="p">);</span>
+<a id="line-2940" name="line-2940"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">size</span><span class="p">);</span>
+<a id="line-2941" name="line-2941"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2942" name="line-2942"></a><span class="w"> </span><span class="n">g_slist_free</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">file1</span><span class="p">);</span>
+<a id="line-2943" name="line-2943"></a>
+<a id="line-2944" name="line-2944"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">slist</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">file2</span><span class="p">;</span><span class="w"> </span><span class="n">slist</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">slist</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">slist</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2945" name="line-2945"></a><span class="w"> </span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">slist</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-2946" name="line-2946"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">size</span><span class="o">-&gt;</span><span class="n">file</span><span class="p">);</span>
+<a id="line-2947" name="line-2947"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">size</span><span class="p">);</span>
+<a id="line-2948" name="line-2948"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2949" name="line-2949"></a><span class="w"> </span><span class="n">g_slist_free</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">file2</span><span class="p">);</span>
+<a id="line-2950" name="line-2950"></a>
+<a id="line-2951" name="line-2951"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">slide</span><span class="p">);</span>
+<a id="line-2952" name="line-2952"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2953" name="line-2953"></a>
+<a id="line-2954" name="line-2954"></a><span class="w"> </span><span class="n">g_queue_free</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="o">-&gt;</span><span class="n">slides</span><span class="p">);</span>
+<a id="line-2955" name="line-2955"></a><span class="w"> </span><span class="n">g_queue_free_full</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="o">-&gt;</span><span class="n">stack</span><span class="p">,</span><span class="w"> </span><span class="n">g_free</span><span class="p">);</span>
+<a id="line-2956" name="line-2956"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="p">);</span>
+<a id="line-2957" name="line-2957"></a><span class="p">}</span>
+<a id="line-2958" name="line-2958"></a>
+<a id="line-2959" name="line-2959"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-2960" name="line-2960"></a><span class="nf">dump_bg</span><span class="w"> </span><span class="p">(</span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span><span class="n">show</span><span class="p">)</span>
+<a id="line-2961" name="line-2961"></a><span class="p">{</span>
+<a id="line-2962" name="line-2962"></a><span class="cp">#if 0</span>
+<a id="line-2963" name="line-2963"></a><span class="c"> GList *list;</span>
+<a id="line-2964" name="line-2964"></a><span class="c"> GSList *slist;</span>
+<a id="line-2965" name="line-2965"></a>
+<a id="line-2966" name="line-2966"></a><span class="c"> for (list = show-&gt;slides-&gt;head; list != NULL; list = list-&gt;next)</span>
+<a id="line-2967" name="line-2967"></a><span class="c"> {</span>
+<a id="line-2968" name="line-2968"></a><span class="c"> Slide *slide = list-&gt;data;</span>
+<a id="line-2969" name="line-2969"></a>
+<a id="line-2970" name="line-2970"></a><span class="c"> g_print (&quot;\nSlide: %s\n&quot;, slide-&gt;fixed? &quot;fixed&quot; : &quot;transition&quot;);</span>
+<a id="line-2971" name="line-2971"></a><span class="c"> g_print (&quot;duration: %f\n&quot;, slide-&gt;duration);</span>
+<a id="line-2972" name="line-2972"></a><span class="c"> g_print (&quot;File1:\n&quot;);</span>
+<a id="line-2973" name="line-2973"></a><span class="c"> for (slist = slide-&gt;file1; slist != NULL; slist = slist-&gt;next) {</span>
+<a id="line-2974" name="line-2974"></a><span class="c"> FileSize *size = slist-&gt;data;</span>
+<a id="line-2975" name="line-2975"></a><span class="c"> g_print (&quot;\t%s (%dx%d)\n&quot;,</span>
+<a id="line-2976" name="line-2976"></a><span class="c"> size-&gt;file, size-&gt;width, size-&gt;height);</span>
+<a id="line-2977" name="line-2977"></a><span class="c"> }</span>
+<a id="line-2978" name="line-2978"></a><span class="c"> g_print (&quot;File2:\n&quot;);</span>
+<a id="line-2979" name="line-2979"></a><span class="c"> for (slist = slide-&gt;file2; slist != NULL; slist = slist-&gt;next) {</span>
+<a id="line-2980" name="line-2980"></a><span class="c"> FileSize *size = slist-&gt;data;</span>
+<a id="line-2981" name="line-2981"></a><span class="c"> g_print (&quot;\t%s (%dx%d)\n&quot;,</span>
+<a id="line-2982" name="line-2982"></a><span class="c"> size-&gt;file, size-&gt;width, size-&gt;height);</span>
+<a id="line-2983" name="line-2983"></a><span class="c"> }</span>
+<a id="line-2984" name="line-2984"></a><span class="c"> }</span>
+<a id="line-2985" name="line-2985"></a><span class="cp">#endif</span>
+<a id="line-2986" name="line-2986"></a><span class="p">}</span>
+<a id="line-2987" name="line-2987"></a>
+<a id="line-2988" name="line-2988"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-2989" name="line-2989"></a><span class="nf">threadsafe_localtime</span><span class="w"> </span><span class="p">(</span><span class="kt">time_t</span><span class="w"> </span><span class="n">time</span><span class="p">,</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">tm</span><span class="w"> </span><span class="o">*</span><span class="n">tm</span><span class="p">)</span>
+<a id="line-2990" name="line-2990"></a><span class="p">{</span>
+<a id="line-2991" name="line-2991"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">tm</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">;</span>
+<a id="line-2992" name="line-2992"></a>
+<a id="line-2993" name="line-2993"></a><span class="w"> </span><span class="n">G_LOCK_DEFINE_STATIC</span><span class="w"> </span><span class="p">(</span><span class="n">localtime_mutex</span><span class="p">);</span>
+<a id="line-2994" name="line-2994"></a>
+<a id="line-2995" name="line-2995"></a><span class="w"> </span><span class="n">G_LOCK</span><span class="w"> </span><span class="p">(</span><span class="n">localtime_mutex</span><span class="p">);</span>
+<a id="line-2996" name="line-2996"></a>
+<a id="line-2997" name="line-2997"></a><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">localtime</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">time</span><span class="p">);</span>
+<a id="line-2998" name="line-2998"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">tm</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-2999" name="line-2999"></a><span class="w"> </span><span class="o">*</span><span class="n">tm</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">res</span><span class="p">;</span>
+<a id="line-3000" name="line-3000"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3001" name="line-3001"></a>
+<a id="line-3002" name="line-3002"></a><span class="w"> </span><span class="n">G_UNLOCK</span><span class="w"> </span><span class="p">(</span><span class="n">localtime_mutex</span><span class="p">);</span>
+<a id="line-3003" name="line-3003"></a><span class="p">}</span>
+<a id="line-3004" name="line-3004"></a>
+<a id="line-3005" name="line-3005"></a><span class="k">static</span><span class="w"> </span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span>
+<a id="line-3006" name="line-3006"></a><span class="nf">read_slideshow_file</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">,</span>
+<a id="line-3007" name="line-3007"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">**</span><span class="n">err</span><span class="p">)</span>
+<a id="line-3008" name="line-3008"></a><span class="p">{</span>
+<a id="line-3009" name="line-3009"></a><span class="w"> </span><span class="n">GMarkupParser</span><span class="w"> </span><span class="n">parser</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3010" name="line-3010"></a><span class="w"> </span><span class="n">handle_start_element</span><span class="p">,</span>
+<a id="line-3011" name="line-3011"></a><span class="w"> </span><span class="n">handle_end_element</span><span class="p">,</span>
+<a id="line-3012" name="line-3012"></a><span class="w"> </span><span class="n">handle_text</span><span class="p">,</span>
+<a id="line-3013" name="line-3013"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* passthrough */</span>
+<a id="line-3014" name="line-3014"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="cm">/* error */</span>
+<a id="line-3015" name="line-3015"></a><span class="w"> </span><span class="p">};</span>
+<a id="line-3016" name="line-3016"></a>
+<a id="line-3017" name="line-3017"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">file</span><span class="p">;</span>
+<a id="line-3018" name="line-3018"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">contents</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3019" name="line-3019"></a><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">len</span><span class="p">;</span>
+<a id="line-3020" name="line-3020"></a><span class="w"> </span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span><span class="n">show</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3021" name="line-3021"></a><span class="w"> </span><span class="n">GMarkupParseContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3022" name="line-3022"></a><span class="w"> </span><span class="kt">time_t</span><span class="w"> </span><span class="n">t</span><span class="p">;</span>
+<a id="line-3023" name="line-3023"></a>
+<a id="line-3024" name="line-3024"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">filename</span><span class="p">)</span>
+<a id="line-3025" name="line-3025"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3026" name="line-3026"></a>
+<a id="line-3027" name="line-3027"></a><span class="w"> </span><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_new_for_path</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-3028" name="line-3028"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_file_load_contents</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">contents</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">len</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3029" name="line-3029"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-3030" name="line-3030"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3031" name="line-3031"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3032" name="line-3032"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">file</span><span class="p">);</span>
+<a id="line-3033" name="line-3033"></a>
+<a id="line-3034" name="line-3034"></a><span class="w"> </span><span class="n">show</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new0</span><span class="w"> </span><span class="p">(</span><span class="n">SlideShow</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-3035" name="line-3035"></a><span class="w"> </span><span class="n">show</span><span class="o">-&gt;</span><span class="n">ref_count</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-3036" name="line-3036"></a><span class="w"> </span><span class="n">threadsafe_localtime</span><span class="w"> </span><span class="p">((</span><span class="kt">time_t</span><span class="p">)</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">show</span><span class="o">-&gt;</span><span class="n">start_tm</span><span class="p">);</span>
+<a id="line-3037" name="line-3037"></a><span class="w"> </span><span class="n">show</span><span class="o">-&gt;</span><span class="n">stack</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_queue_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-3038" name="line-3038"></a><span class="w"> </span><span class="n">show</span><span class="o">-&gt;</span><span class="n">slides</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_queue_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-3039" name="line-3039"></a>
+<a id="line-3040" name="line-3040"></a><span class="w"> </span><span class="n">context</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_markup_parse_context_new</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">parser</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">show</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-3041" name="line-3041"></a>
+<a id="line-3042" name="line-3042"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_markup_parse_context_parse</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">,</span><span class="w"> </span><span class="n">contents</span><span class="p">,</span><span class="w"> </span><span class="n">len</span><span class="p">,</span><span class="w"> </span><span class="n">err</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3043" name="line-3043"></a><span class="w"> </span><span class="n">slideshow_unref</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="p">);</span>
+<a id="line-3044" name="line-3044"></a><span class="w"> </span><span class="n">show</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3045" name="line-3045"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3046" name="line-3046"></a>
+<a id="line-3047" name="line-3047"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3048" name="line-3048"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_markup_parse_context_end_parse</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">,</span><span class="w"> </span><span class="n">err</span><span class="p">))</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3049" name="line-3049"></a><span class="w"> </span><span class="n">slideshow_unref</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="p">);</span>
+<a id="line-3050" name="line-3050"></a><span class="w"> </span><span class="n">show</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3051" name="line-3051"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3052" name="line-3052"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3053" name="line-3053"></a>
+<a id="line-3054" name="line-3054"></a><span class="w"> </span><span class="n">g_markup_parse_context_free</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">);</span>
+<a id="line-3055" name="line-3055"></a>
+<a id="line-3056" name="line-3056"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3057" name="line-3057"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">num_items</span><span class="p">;</span>
+<a id="line-3058" name="line-3058"></a>
+<a id="line-3059" name="line-3059"></a><span class="w"> </span><span class="n">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mktime</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">show</span><span class="o">-&gt;</span><span class="n">start_tm</span><span class="p">);</span>
+<a id="line-3060" name="line-3060"></a>
+<a id="line-3061" name="line-3061"></a><span class="w"> </span><span class="n">show</span><span class="o">-&gt;</span><span class="n">start_time</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">)</span><span class="n">t</span><span class="p">;</span>
+<a id="line-3062" name="line-3062"></a>
+<a id="line-3063" name="line-3063"></a><span class="w"> </span><span class="n">dump_bg</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="p">);</span>
+<a id="line-3064" name="line-3064"></a>
+<a id="line-3065" name="line-3065"></a><span class="w"> </span><span class="n">num_items</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_queue_get_length</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="o">-&gt;</span><span class="n">slides</span><span class="p">);</span>
+<a id="line-3066" name="line-3066"></a>
+<a id="line-3067" name="line-3067"></a><span class="w"> </span><span class="cm">/* no slides, that&#39;s not a slideshow */</span>
+<a id="line-3068" name="line-3068"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">num_items</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3069" name="line-3069"></a><span class="w"> </span><span class="n">slideshow_unref</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="p">);</span>
+<a id="line-3070" name="line-3070"></a><span class="w"> </span><span class="n">show</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3071" name="line-3071"></a><span class="w"> </span><span class="cm">/* one slide, there&#39;s no transition */</span>
+<a id="line-3072" name="line-3072"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">num_items</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3073" name="line-3073"></a><span class="w"> </span><span class="n">Slide</span><span class="w"> </span><span class="o">*</span><span class="n">slide</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">show</span><span class="o">-&gt;</span><span class="n">slides</span><span class="o">-&gt;</span><span class="n">head</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-3074" name="line-3074"></a><span class="w"> </span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">duration</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">show</span><span class="o">-&gt;</span><span class="n">total_duration</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_MAXUINT</span><span class="p">;</span>
+<a id="line-3075" name="line-3075"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3076" name="line-3076"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3077" name="line-3077"></a>
+<a id="line-3078" name="line-3078"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">contents</span><span class="p">);</span>
+<a id="line-3079" name="line-3079"></a>
+<a id="line-3080" name="line-3080"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">show</span><span class="p">;</span>
+<a id="line-3081" name="line-3081"></a><span class="p">}</span>
+<a id="line-3082" name="line-3082"></a>
+<a id="line-3083" name="line-3083"></a><span class="cm">/* Thumbnail utilities */</span>
+<a id="line-3084" name="line-3084"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span>
+<a id="line-3085" name="line-3085"></a><span class="nf">create_thumbnail_for_filename</span><span class="w"> </span><span class="p">(</span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">,</span>
+<a id="line-3086" name="line-3086"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">)</span>
+<a id="line-3087" name="line-3087"></a><span class="p">{</span>
+<a id="line-3088" name="line-3088"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">thumb</span><span class="p">;</span>
+<a id="line-3089" name="line-3089"></a><span class="w"> </span><span class="n">gint64</span><span class="w"> </span><span class="n">mtime</span><span class="p">;</span>
+<a id="line-3090" name="line-3090"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">orig</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3091" name="line-3091"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">;</span>
+<a id="line-3092" name="line-3092"></a>
+<a id="line-3093" name="line-3093"></a><span class="w"> </span><span class="n">mtime</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_mtime</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-3094" name="line-3094"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mtime</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="p">(</span><span class="n">gint64</span><span class="p">)</span><span class="mi">-1</span><span class="p">)</span>
+<a id="line-3095" name="line-3095"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3096" name="line-3096"></a>
+<a id="line-3097" name="line-3097"></a><span class="w"> </span><span class="n">uri</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_filename_to_uri</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-3098" name="line-3098"></a>
+<a id="line-3099" name="line-3099"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-3100" name="line-3100"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3101" name="line-3101"></a>
+<a id="line-3102" name="line-3102"></a><span class="w"> </span><span class="n">thumb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_desktop_thumbnail_factory_lookup</span><span class="w"> </span><span class="p">(</span><span class="n">factory</span><span class="p">,</span><span class="w"> </span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">mtime</span><span class="p">);</span>
+<a id="line-3103" name="line-3103"></a>
+<a id="line-3104" name="line-3104"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3105" name="line-3105"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new_from_file</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-3106" name="line-3106"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">);</span>
+<a id="line-3107" name="line-3107"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3108" name="line-3108"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3109" name="line-3109"></a><span class="w"> </span><span class="n">orig</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new_from_file</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-3110" name="line-3110"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">orig</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3111" name="line-3111"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">orig_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_width</span><span class="w"> </span><span class="p">(</span><span class="n">orig</span><span class="p">);</span>
+<a id="line-3112" name="line-3112"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">orig_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_height</span><span class="w"> </span><span class="p">(</span><span class="n">orig</span><span class="p">);</span>
+<a id="line-3113" name="line-3113"></a>
+<a id="line-3114" name="line-3114"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pixbuf_scale_to_fit</span><span class="w"> </span><span class="p">(</span><span class="n">orig</span><span class="p">,</span><span class="w"> </span><span class="n">THUMBNAIL_SIZE</span><span class="p">,</span><span class="w"> </span><span class="n">THUMBNAIL_SIZE</span><span class="p">);</span>
+<a id="line-3115" name="line-3115"></a>
+<a id="line-3116" name="line-3116"></a><span class="w"> </span><span class="n">g_object_set_data_full</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;mate-thumbnail-height&quot;</span><span class="p">,</span>
+<a id="line-3117" name="line-3117"></a><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;%d&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">orig_height</span><span class="p">),</span><span class="w"> </span><span class="n">g_free</span><span class="p">);</span>
+<a id="line-3118" name="line-3118"></a><span class="w"> </span><span class="n">g_object_set_data_full</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;mate-thumbnail-width&quot;</span><span class="p">,</span>
+<a id="line-3119" name="line-3119"></a><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;%d&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">orig_width</span><span class="p">),</span><span class="w"> </span><span class="n">g_free</span><span class="p">);</span>
+<a id="line-3120" name="line-3120"></a>
+<a id="line-3121" name="line-3121"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">orig</span><span class="p">);</span>
+<a id="line-3122" name="line-3122"></a>
+<a id="line-3123" name="line-3123"></a><span class="w"> </span><span class="n">mate_desktop_thumbnail_factory_save_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">factory</span><span class="p">,</span><span class="w"> </span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">mtime</span><span class="p">);</span>
+<a id="line-3124" name="line-3124"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3125" name="line-3125"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3126" name="line-3126"></a><span class="w"> </span><span class="n">mate_desktop_thumbnail_factory_create_failed_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">factory</span><span class="p">,</span><span class="w"> </span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">mtime</span><span class="p">);</span>
+<a id="line-3127" name="line-3127"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3128" name="line-3128"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3129" name="line-3129"></a>
+<a id="line-3130" name="line-3130"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">uri</span><span class="p">);</span>
+<a id="line-3131" name="line-3131"></a>
+<a id="line-3132" name="line-3132"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-3133" name="line-3133"></a><span class="p">}</span>
+<a id="line-3134" name="line-3134"></a>
+<a id="line-3135" name="line-3135"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-3136" name="line-3136"></a><span class="nf">get_thumb_annotations</span><span class="w"> </span><span class="p">(</span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">thumb</span><span class="p">,</span>
+<a id="line-3137" name="line-3137"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">orig_width</span><span class="p">,</span>
+<a id="line-3138" name="line-3138"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">orig_height</span><span class="p">)</span>
+<a id="line-3139" name="line-3139"></a><span class="p">{</span>
+<a id="line-3140" name="line-3140"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">end</span><span class="p">;</span>
+<a id="line-3141" name="line-3141"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">wstr</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">hstr</span><span class="p">;</span>
+<a id="line-3142" name="line-3142"></a>
+<a id="line-3143" name="line-3143"></a><span class="w"> </span><span class="n">wstr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_option</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;tEXt::Thumb::Image::Width&quot;</span><span class="p">);</span>
+<a id="line-3144" name="line-3144"></a><span class="w"> </span><span class="n">hstr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_option</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;tEXt::Thumb::Image::Height&quot;</span><span class="p">);</span>
+<a id="line-3145" name="line-3145"></a>
+<a id="line-3146" name="line-3146"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">hstr</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">wstr</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3147" name="line-3147"></a><span class="w"> </span><span class="o">*</span><span class="n">orig_width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strtol</span><span class="w"> </span><span class="p">(</span><span class="n">wstr</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">end</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">);</span>
+<a id="line-3148" name="line-3148"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">end</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-3149" name="line-3149"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-3150" name="line-3150"></a>
+<a id="line-3151" name="line-3151"></a><span class="w"> </span><span class="o">*</span><span class="n">orig_height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strtol</span><span class="w"> </span><span class="p">(</span><span class="n">hstr</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">end</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">);</span>
+<a id="line-3152" name="line-3152"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">end</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-3153" name="line-3153"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-3154" name="line-3154"></a>
+<a id="line-3155" name="line-3155"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-3156" name="line-3156"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3157" name="line-3157"></a>
+<a id="line-3158" name="line-3158"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-3159" name="line-3159"></a><span class="p">}</span>
+<a id="line-3160" name="line-3160"></a>
+<a id="line-3161" name="line-3161"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-3162" name="line-3162"></a><span class="nf">slideshow_has_multiple_sizes</span><span class="w"> </span><span class="p">(</span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span><span class="n">show</span><span class="p">)</span>
+<a id="line-3163" name="line-3163"></a><span class="p">{</span>
+<a id="line-3164" name="line-3164"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">show</span><span class="o">-&gt;</span><span class="n">has_multiple_sizes</span><span class="p">;</span>
+<a id="line-3165" name="line-3165"></a><span class="p">}</span>
+<a id="line-3166" name="line-3166"></a>
+<a id="line-3167" name="line-3167"></a><span class="cm">/*</span>
+<a id="line-3168" name="line-3168"></a><span class="cm"> * Returns whether the background is a slideshow.</span>
+<a id="line-3169" name="line-3169"></a><span class="cm"> */</span>
+<a id="line-3170" name="line-3170"></a><span class="n">gboolean</span>
+<a id="line-3171" name="line-3171"></a><span class="nf">mate_bg_changes_with_time</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">)</span>
+<a id="line-3172" name="line-3172"></a><span class="p">{</span>
+<a id="line-3173" name="line-3173"></a><span class="w"> </span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span><span class="n">show</span><span class="p">;</span>
+<a id="line-3174" name="line-3174"></a>
+<a id="line-3175" name="line-3175"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-3176" name="line-3176"></a>
+<a id="line-3177" name="line-3177"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">)</span>
+<a id="line-3178" name="line-3178"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-3179" name="line-3179"></a>
+<a id="line-3180" name="line-3180"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">show</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_as_slideshow</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">))</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3181" name="line-3181"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-3182" name="line-3182"></a>
+<a id="line-3183" name="line-3183"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">g_queue_get_length</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="o">-&gt;</span><span class="n">slides</span><span class="p">)</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">TRUE</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-3184" name="line-3184"></a><span class="w"> </span><span class="n">slideshow_unref</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="p">);</span>
+<a id="line-3185" name="line-3185"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-3186" name="line-3186"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3187" name="line-3187"></a>
+<a id="line-3188" name="line-3188"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-3189" name="line-3189"></a><span class="p">}</span>
+<a id="line-3190" name="line-3190"></a>
+<a id="line-3191" name="line-3191"></a><span class="cm">/**</span>
+<a id="line-3192" name="line-3192"></a><span class="cm"> * mate_bg_create_frame_thumbnail:</span>
+<a id="line-3193" name="line-3193"></a><span class="cm"> *</span>
+<a id="line-3194" name="line-3194"></a><span class="cm"> * Creates a thumbnail for a certain frame, where &#39;frame&#39; is somewhat</span>
+<a id="line-3195" name="line-3195"></a><span class="cm"> * vaguely defined as &#39;suitable point to show while single-stepping</span>
+<a id="line-3196" name="line-3196"></a><span class="cm"> * through the slideshow&#39;.</span>
+<a id="line-3197" name="line-3197"></a><span class="cm"> *</span>
+<a id="line-3198" name="line-3198"></a><span class="cm"> * Returns: (transfer full): the newly created thumbnail or</span>
+<a id="line-3199" name="line-3199"></a><span class="cm"> * or NULL if frame_num is out of bounds.</span>
+<a id="line-3200" name="line-3200"></a><span class="cm"> */</span>
+<a id="line-3201" name="line-3201"></a><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span>
+<a id="line-3202" name="line-3202"></a><span class="nf">mate_bg_create_frame_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">MateBG</span><span class="w"> </span><span class="o">*</span><span class="n">bg</span><span class="p">,</span>
+<a id="line-3203" name="line-3203"></a><span class="w"> </span><span class="n">MateDesktopThumbnailFactory</span><span class="w"> </span><span class="o">*</span><span class="n">factory</span><span class="p">,</span>
+<a id="line-3204" name="line-3204"></a><span class="w"> </span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-3205" name="line-3205"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dest_width</span><span class="p">,</span>
+<a id="line-3206" name="line-3206"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dest_height</span><span class="p">,</span>
+<a id="line-3207" name="line-3207"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">frame_num</span><span class="p">)</span>
+<a id="line-3208" name="line-3208"></a><span class="p">{</span>
+<a id="line-3209" name="line-3209"></a><span class="w"> </span><span class="n">SlideShow</span><span class="w"> </span><span class="o">*</span><span class="n">show</span><span class="p">;</span>
+<a id="line-3210" name="line-3210"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="p">;</span>
+<a id="line-3211" name="line-3211"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">thumb</span><span class="p">;</span>
+<a id="line-3212" name="line-3212"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">l</span><span class="p">;</span>
+<a id="line-3213" name="line-3213"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">skipped</span><span class="p">;</span>
+<a id="line-3214" name="line-3214"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">found</span><span class="p">;</span>
+<a id="line-3215" name="line-3215"></a>
+<a id="line-3216" name="line-3216"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-3217" name="line-3217"></a>
+<a id="line-3218" name="line-3218"></a><span class="w"> </span><span class="n">show</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_as_slideshow</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">);</span>
+<a id="line-3219" name="line-3219"></a>
+<a id="line-3220" name="line-3220"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">show</span><span class="p">)</span>
+<a id="line-3221" name="line-3221"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3222" name="line-3222"></a>
+<a id="line-3223" name="line-3223"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">frame_num</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="p">(</span><span class="n">guint</span><span class="p">)</span><span class="w"> </span><span class="n">frame_num</span><span class="w"> </span><span class="o">&gt;=</span><span class="w"> </span><span class="n">g_queue_get_length</span><span class="w"> </span><span class="p">(</span><span class="n">show</span><span class="o">-&gt;</span><span class="n">slides</span><span class="p">))</span>
+<a id="line-3224" name="line-3224"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3225" name="line-3225"></a>
+<a id="line-3226" name="line-3226"></a><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-3227" name="line-3227"></a><span class="w"> </span><span class="n">skipped</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-3228" name="line-3228"></a><span class="w"> </span><span class="n">found</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-3229" name="line-3229"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">show</span><span class="o">-&gt;</span><span class="n">slides</span><span class="o">-&gt;</span><span class="n">head</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="o">-&gt;</span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3230" name="line-3230"></a><span class="w"> </span><span class="n">Slide</span><span class="w"> </span><span class="o">*</span><span class="n">slide</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l</span><span class="o">-&gt;</span><span class="n">data</span><span class="p">;</span>
+<a id="line-3231" name="line-3231"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">slide</span><span class="o">-&gt;</span><span class="n">fixed</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3232" name="line-3232"></a><span class="w"> </span><span class="n">skipped</span><span class="o">++</span><span class="p">;</span>
+<a id="line-3233" name="line-3233"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span>
+<a id="line-3234" name="line-3234"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3235" name="line-3235"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">frame_num</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3236" name="line-3236"></a><span class="w"> </span><span class="n">found</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-3237" name="line-3237"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-3238" name="line-3238"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3239" name="line-3239"></a><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">;</span>
+<a id="line-3240" name="line-3240"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3241" name="line-3241"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">found</span><span class="p">)</span>
+<a id="line-3242" name="line-3242"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-3243" name="line-3243"></a>
+<a id="line-3244" name="line-3244"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_COLORSPACE_RGB</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">8</span><span class="p">,</span><span class="w"> </span><span class="n">dest_width</span><span class="p">,</span><span class="w"> </span><span class="n">dest_height</span><span class="p">);</span>
+<a id="line-3245" name="line-3245"></a>
+<a id="line-3246" name="line-3246"></a><span class="w"> </span><span class="n">draw_color</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">result</span><span class="p">);</span>
+<a id="line-3247" name="line-3247"></a>
+<a id="line-3248" name="line-3248"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="o">-&gt;</span><span class="n">filename</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3249" name="line-3249"></a><span class="w"> </span><span class="n">thumb</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">create_img_thumbnail</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">factory</span><span class="p">,</span><span class="w"> </span><span class="n">screen</span><span class="p">,</span>
+<a id="line-3250" name="line-3250"></a><span class="w"> </span><span class="n">dest_width</span><span class="p">,</span><span class="w"> </span><span class="n">dest_height</span><span class="p">,</span>
+<a id="line-3251" name="line-3251"></a><span class="w"> </span><span class="n">frame_num</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">skipped</span><span class="p">);</span>
+<a id="line-3252" name="line-3252"></a>
+<a id="line-3253" name="line-3253"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
+<a id="line-3254" name="line-3254"></a><span class="w"> </span><span class="n">draw_image_for_thumb</span><span class="w"> </span><span class="p">(</span><span class="n">bg</span><span class="p">,</span><span class="w"> </span><span class="n">thumb</span><span class="p">,</span><span class="w"> </span><span class="n">result</span><span class="p">);</span>
+<a id="line-3255" name="line-3255"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">thumb</span><span class="p">);</span>
+<a id="line-3256" name="line-3256"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3257" name="line-3257"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-3258" name="line-3258"></a>
+<a id="line-3259" name="line-3259"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span>
+<a id="line-3260" name="line-3260"></a><span class="p">}</span>
+<a id="line-3261" name="line-3261"></a>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/5.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/5.html
new file mode 100644
index 0000000..b0c3bf4
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/5.html
@@ -0,0 +1,5985 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/mate-colorsel.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-colorsel.c</p>
+<a href="5.html#line-28"> missingInclude 28</a><a href="5.html#line-30"> missingIncludeSystem 30</a><a href="5.html#line-31"> missingIncludeSystem 31</a><a href="5.html#line-33"> missingIncludeSystem 33</a><a href="5.html#line-34"> missingIncludeSystem 34</a><a href="5.html#line-35"> missingIncludeSystem 35</a><a href="5.html#line-36"> missingIncludeSystem 36</a><a href="5.html#line-243"> unknownMacro 243</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal"> 10</span>
+<span class="normal"> 11</span>
+<span class="normal"> 12</span>
+<span class="normal"> 13</span>
+<span class="normal"> 14</span>
+<span class="normal"> 15</span>
+<span class="normal"> 16</span>
+<span class="normal"> 17</span>
+<span class="normal"> 18</span>
+<span class="normal"> 19</span>
+<span class="normal"> 20</span>
+<span class="normal"> 21</span>
+<span class="normal"> 22</span>
+<span class="normal"> 23</span>
+<span class="normal"> 24</span>
+<span class="normal"> 25</span>
+<span class="normal"> 26</span>
+<span class="normal"> 27</span>
+<span class="normal"> 28</span>
+<span class="normal"> 29</span>
+<span class="normal"> 30</span>
+<span class="normal"> 31</span>
+<span class="normal"> 32</span>
+<span class="normal"> 33</span>
+<span class="normal"> 34</span>
+<span class="normal"> 35</span>
+<span class="normal"> 36</span>
+<span class="normal"> 37</span>
+<span class="normal"> 38</span>
+<span class="normal"> 39</span>
+<span class="normal"> 40</span>
+<span class="normal"> 41</span>
+<span class="normal"> 42</span>
+<span class="normal"> 43</span>
+<span class="normal"> 44</span>
+<span class="normal"> 45</span>
+<span class="normal"> 46</span>
+<span class="normal"> 47</span>
+<span class="normal"> 48</span>
+<span class="normal"> 49</span>
+<span class="normal"> 50</span>
+<span class="normal"> 51</span>
+<span class="normal"> 52</span>
+<span class="normal"> 53</span>
+<span class="normal"> 54</span>
+<span class="normal"> 55</span>
+<span class="normal"> 56</span>
+<span class="normal"> 57</span>
+<span class="normal"> 58</span>
+<span class="normal"> 59</span>
+<span class="normal"> 60</span>
+<span class="normal"> 61</span>
+<span class="normal"> 62</span>
+<span class="normal"> 63</span>
+<span class="normal"> 64</span>
+<span class="normal"> 65</span>
+<span class="normal"> 66</span>
+<span class="normal"> 67</span>
+<span class="normal"> 68</span>
+<span class="normal"> 69</span>
+<span class="normal"> 70</span>
+<span class="normal"> 71</span>
+<span class="normal"> 72</span>
+<span class="normal"> 73</span>
+<span class="normal"> 74</span>
+<span class="normal"> 75</span>
+<span class="normal"> 76</span>
+<span class="normal"> 77</span>
+<span class="normal"> 78</span>
+<span class="normal"> 79</span>
+<span class="normal"> 80</span>
+<span class="normal"> 81</span>
+<span class="normal"> 82</span>
+<span class="normal"> 83</span>
+<span class="normal"> 84</span>
+<span class="normal"> 85</span>
+<span class="normal"> 86</span>
+<span class="normal"> 87</span>
+<span class="normal"> 88</span>
+<span class="normal"> 89</span>
+<span class="normal"> 90</span>
+<span class="normal"> 91</span>
+<span class="normal"> 92</span>
+<span class="normal"> 93</span>
+<span class="normal"> 94</span>
+<span class="normal"> 95</span>
+<span class="normal"> 96</span>
+<span class="normal"> 97</span>
+<span class="normal"> 98</span>
+<span class="normal"> 99</span>
+<span class="normal"> 100</span>
+<span class="normal"> 101</span>
+<span class="normal"> 102</span>
+<span class="normal"> 103</span>
+<span class="normal"> 104</span>
+<span class="normal"> 105</span>
+<span class="normal"> 106</span>
+<span class="normal"> 107</span>
+<span class="normal"> 108</span>
+<span class="normal"> 109</span>
+<span class="normal"> 110</span>
+<span class="normal"> 111</span>
+<span class="normal"> 112</span>
+<span class="normal"> 113</span>
+<span class="normal"> 114</span>
+<span class="normal"> 115</span>
+<span class="normal"> 116</span>
+<span class="normal"> 117</span>
+<span class="normal"> 118</span>
+<span class="normal"> 119</span>
+<span class="normal"> 120</span>
+<span class="normal"> 121</span>
+<span class="normal"> 122</span>
+<span class="normal"> 123</span>
+<span class="normal"> 124</span>
+<span class="normal"> 125</span>
+<span class="normal"> 126</span>
+<span class="normal"> 127</span>
+<span class="normal"> 128</span>
+<span class="normal"> 129</span>
+<span class="normal"> 130</span>
+<span class="normal"> 131</span>
+<span class="normal"> 132</span>
+<span class="normal"> 133</span>
+<span class="normal"> 134</span>
+<span class="normal"> 135</span>
+<span class="normal"> 136</span>
+<span class="normal"> 137</span>
+<span class="normal"> 138</span>
+<span class="normal"> 139</span>
+<span class="normal"> 140</span>
+<span class="normal"> 141</span>
+<span class="normal"> 142</span>
+<span class="normal"> 143</span>
+<span class="normal"> 144</span>
+<span class="normal"> 145</span>
+<span class="normal"> 146</span>
+<span class="normal"> 147</span>
+<span class="normal"> 148</span>
+<span class="normal"> 149</span>
+<span class="normal"> 150</span>
+<span class="normal"> 151</span>
+<span class="normal"> 152</span>
+<span class="normal"> 153</span>
+<span class="normal"> 154</span>
+<span class="normal"> 155</span>
+<span class="normal"> 156</span>
+<span class="normal"> 157</span>
+<span class="normal"> 158</span>
+<span class="normal"> 159</span>
+<span class="normal"> 160</span>
+<span class="normal"> 161</span>
+<span class="normal"> 162</span>
+<span class="normal"> 163</span>
+<span class="normal"> 164</span>
+<span class="normal"> 165</span>
+<span class="normal"> 166</span>
+<span class="normal"> 167</span>
+<span class="normal"> 168</span>
+<span class="normal"> 169</span>
+<span class="normal"> 170</span>
+<span class="normal"> 171</span>
+<span class="normal"> 172</span>
+<span class="normal"> 173</span>
+<span class="normal"> 174</span>
+<span class="normal"> 175</span>
+<span class="normal"> 176</span>
+<span class="normal"> 177</span>
+<span class="normal"> 178</span>
+<span class="normal"> 179</span>
+<span class="normal"> 180</span>
+<span class="normal"> 181</span>
+<span class="normal"> 182</span>
+<span class="normal"> 183</span>
+<span class="normal"> 184</span>
+<span class="normal"> 185</span>
+<span class="normal"> 186</span>
+<span class="normal"> 187</span>
+<span class="normal"> 188</span>
+<span class="normal"> 189</span>
+<span class="normal"> 190</span>
+<span class="normal"> 191</span>
+<span class="normal"> 192</span>
+<span class="normal"> 193</span>
+<span class="normal"> 194</span>
+<span class="normal"> 195</span>
+<span class="normal"> 196</span>
+<span class="normal"> 197</span>
+<span class="normal"> 198</span>
+<span class="normal"> 199</span>
+<span class="normal"> 200</span>
+<span class="normal"> 201</span>
+<span class="normal"> 202</span>
+<span class="normal"> 203</span>
+<span class="normal"> 204</span>
+<span class="normal"> 205</span>
+<span class="normal"> 206</span>
+<span class="normal"> 207</span>
+<span class="normal"> 208</span>
+<span class="normal"> 209</span>
+<span class="normal"> 210</span>
+<span class="normal"> 211</span>
+<span class="normal"> 212</span>
+<span class="normal"> 213</span>
+<span class="normal"> 214</span>
+<span class="normal"> 215</span>
+<span class="normal"> 216</span>
+<span class="normal"> 217</span>
+<span class="normal"> 218</span>
+<span class="normal"> 219</span>
+<span class="normal"> 220</span>
+<span class="normal"> 221</span>
+<span class="normal"> 222</span>
+<span class="normal"> 223</span>
+<span class="normal"> 224</span>
+<span class="normal"> 225</span>
+<span class="normal"> 226</span>
+<span class="normal"> 227</span>
+<span class="normal"> 228</span>
+<span class="normal"> 229</span>
+<span class="normal"> 230</span>
+<span class="normal"> 231</span>
+<span class="normal"> 232</span>
+<span class="normal"> 233</span>
+<span class="normal"> 234</span>
+<span class="normal"> 235</span>
+<span class="normal"> 236</span>
+<span class="normal"> 237</span>
+<span class="normal"> 238</span>
+<span class="normal"> 239</span>
+<span class="normal"> 240</span>
+<span class="normal"> 241</span>
+<span class="normal"> 242</span>
+<span class="normal"> 243</span>
+<span class="normal"> 244</span>
+<span class="normal"> 245</span>
+<span class="normal"> 246</span>
+<span class="normal"> 247</span>
+<span class="normal"> 248</span>
+<span class="normal"> 249</span>
+<span class="normal"> 250</span>
+<span class="normal"> 251</span>
+<span class="normal"> 252</span>
+<span class="normal"> 253</span>
+<span class="normal"> 254</span>
+<span class="normal"> 255</span>
+<span class="normal"> 256</span>
+<span class="normal"> 257</span>
+<span class="normal"> 258</span>
+<span class="normal"> 259</span>
+<span class="normal"> 260</span>
+<span class="normal"> 261</span>
+<span class="normal"> 262</span>
+<span class="normal"> 263</span>
+<span class="normal"> 264</span>
+<span class="normal"> 265</span>
+<span class="normal"> 266</span>
+<span class="normal"> 267</span>
+<span class="normal"> 268</span>
+<span class="normal"> 269</span>
+<span class="normal"> 270</span>
+<span class="normal"> 271</span>
+<span class="normal"> 272</span>
+<span class="normal"> 273</span>
+<span class="normal"> 274</span>
+<span class="normal"> 275</span>
+<span class="normal"> 276</span>
+<span class="normal"> 277</span>
+<span class="normal"> 278</span>
+<span class="normal"> 279</span>
+<span class="normal"> 280</span>
+<span class="normal"> 281</span>
+<span class="normal"> 282</span>
+<span class="normal"> 283</span>
+<span class="normal"> 284</span>
+<span class="normal"> 285</span>
+<span class="normal"> 286</span>
+<span class="normal"> 287</span>
+<span class="normal"> 288</span>
+<span class="normal"> 289</span>
+<span class="normal"> 290</span>
+<span class="normal"> 291</span>
+<span class="normal"> 292</span>
+<span class="normal"> 293</span>
+<span class="normal"> 294</span>
+<span class="normal"> 295</span>
+<span class="normal"> 296</span>
+<span class="normal"> 297</span>
+<span class="normal"> 298</span>
+<span class="normal"> 299</span>
+<span class="normal"> 300</span>
+<span class="normal"> 301</span>
+<span class="normal"> 302</span>
+<span class="normal"> 303</span>
+<span class="normal"> 304</span>
+<span class="normal"> 305</span>
+<span class="normal"> 306</span>
+<span class="normal"> 307</span>
+<span class="normal"> 308</span>
+<span class="normal"> 309</span>
+<span class="normal"> 310</span>
+<span class="normal"> 311</span>
+<span class="normal"> 312</span>
+<span class="normal"> 313</span>
+<span class="normal"> 314</span>
+<span class="normal"> 315</span>
+<span class="normal"> 316</span>
+<span class="normal"> 317</span>
+<span class="normal"> 318</span>
+<span class="normal"> 319</span>
+<span class="normal"> 320</span>
+<span class="normal"> 321</span>
+<span class="normal"> 322</span>
+<span class="normal"> 323</span>
+<span class="normal"> 324</span>
+<span class="normal"> 325</span>
+<span class="normal"> 326</span>
+<span class="normal"> 327</span>
+<span class="normal"> 328</span>
+<span class="normal"> 329</span>
+<span class="normal"> 330</span>
+<span class="normal"> 331</span>
+<span class="normal"> 332</span>
+<span class="normal"> 333</span>
+<span class="normal"> 334</span>
+<span class="normal"> 335</span>
+<span class="normal"> 336</span>
+<span class="normal"> 337</span>
+<span class="normal"> 338</span>
+<span class="normal"> 339</span>
+<span class="normal"> 340</span>
+<span class="normal"> 341</span>
+<span class="normal"> 342</span>
+<span class="normal"> 343</span>
+<span class="normal"> 344</span>
+<span class="normal"> 345</span>
+<span class="normal"> 346</span>
+<span class="normal"> 347</span>
+<span class="normal"> 348</span>
+<span class="normal"> 349</span>
+<span class="normal"> 350</span>
+<span class="normal"> 351</span>
+<span class="normal"> 352</span>
+<span class="normal"> 353</span>
+<span class="normal"> 354</span>
+<span class="normal"> 355</span>
+<span class="normal"> 356</span>
+<span class="normal"> 357</span>
+<span class="normal"> 358</span>
+<span class="normal"> 359</span>
+<span class="normal"> 360</span>
+<span class="normal"> 361</span>
+<span class="normal"> 362</span>
+<span class="normal"> 363</span>
+<span class="normal"> 364</span>
+<span class="normal"> 365</span>
+<span class="normal"> 366</span>
+<span class="normal"> 367</span>
+<span class="normal"> 368</span>
+<span class="normal"> 369</span>
+<span class="normal"> 370</span>
+<span class="normal"> 371</span>
+<span class="normal"> 372</span>
+<span class="normal"> 373</span>
+<span class="normal"> 374</span>
+<span class="normal"> 375</span>
+<span class="normal"> 376</span>
+<span class="normal"> 377</span>
+<span class="normal"> 378</span>
+<span class="normal"> 379</span>
+<span class="normal"> 380</span>
+<span class="normal"> 381</span>
+<span class="normal"> 382</span>
+<span class="normal"> 383</span>
+<span class="normal"> 384</span>
+<span class="normal"> 385</span>
+<span class="normal"> 386</span>
+<span class="normal"> 387</span>
+<span class="normal"> 388</span>
+<span class="normal"> 389</span>
+<span class="normal"> 390</span>
+<span class="normal"> 391</span>
+<span class="normal"> 392</span>
+<span class="normal"> 393</span>
+<span class="normal"> 394</span>
+<span class="normal"> 395</span>
+<span class="normal"> 396</span>
+<span class="normal"> 397</span>
+<span class="normal"> 398</span>
+<span class="normal"> 399</span>
+<span class="normal"> 400</span>
+<span class="normal"> 401</span>
+<span class="normal"> 402</span>
+<span class="normal"> 403</span>
+<span class="normal"> 404</span>
+<span class="normal"> 405</span>
+<span class="normal"> 406</span>
+<span class="normal"> 407</span>
+<span class="normal"> 408</span>
+<span class="normal"> 409</span>
+<span class="normal"> 410</span>
+<span class="normal"> 411</span>
+<span class="normal"> 412</span>
+<span class="normal"> 413</span>
+<span class="normal"> 414</span>
+<span class="normal"> 415</span>
+<span class="normal"> 416</span>
+<span class="normal"> 417</span>
+<span class="normal"> 418</span>
+<span class="normal"> 419</span>
+<span class="normal"> 420</span>
+<span class="normal"> 421</span>
+<span class="normal"> 422</span>
+<span class="normal"> 423</span>
+<span class="normal"> 424</span>
+<span class="normal"> 425</span>
+<span class="normal"> 426</span>
+<span class="normal"> 427</span>
+<span class="normal"> 428</span>
+<span class="normal"> 429</span>
+<span class="normal"> 430</span>
+<span class="normal"> 431</span>
+<span class="normal"> 432</span>
+<span class="normal"> 433</span>
+<span class="normal"> 434</span>
+<span class="normal"> 435</span>
+<span class="normal"> 436</span>
+<span class="normal"> 437</span>
+<span class="normal"> 438</span>
+<span class="normal"> 439</span>
+<span class="normal"> 440</span>
+<span class="normal"> 441</span>
+<span class="normal"> 442</span>
+<span class="normal"> 443</span>
+<span class="normal"> 444</span>
+<span class="normal"> 445</span>
+<span class="normal"> 446</span>
+<span class="normal"> 447</span>
+<span class="normal"> 448</span>
+<span class="normal"> 449</span>
+<span class="normal"> 450</span>
+<span class="normal"> 451</span>
+<span class="normal"> 452</span>
+<span class="normal"> 453</span>
+<span class="normal"> 454</span>
+<span class="normal"> 455</span>
+<span class="normal"> 456</span>
+<span class="normal"> 457</span>
+<span class="normal"> 458</span>
+<span class="normal"> 459</span>
+<span class="normal"> 460</span>
+<span class="normal"> 461</span>
+<span class="normal"> 462</span>
+<span class="normal"> 463</span>
+<span class="normal"> 464</span>
+<span class="normal"> 465</span>
+<span class="normal"> 466</span>
+<span class="normal"> 467</span>
+<span class="normal"> 468</span>
+<span class="normal"> 469</span>
+<span class="normal"> 470</span>
+<span class="normal"> 471</span>
+<span class="normal"> 472</span>
+<span class="normal"> 473</span>
+<span class="normal"> 474</span>
+<span class="normal"> 475</span>
+<span class="normal"> 476</span>
+<span class="normal"> 477</span>
+<span class="normal"> 478</span>
+<span class="normal"> 479</span>
+<span class="normal"> 480</span>
+<span class="normal"> 481</span>
+<span class="normal"> 482</span>
+<span class="normal"> 483</span>
+<span class="normal"> 484</span>
+<span class="normal"> 485</span>
+<span class="normal"> 486</span>
+<span class="normal"> 487</span>
+<span class="normal"> 488</span>
+<span class="normal"> 489</span>
+<span class="normal"> 490</span>
+<span class="normal"> 491</span>
+<span class="normal"> 492</span>
+<span class="normal"> 493</span>
+<span class="normal"> 494</span>
+<span class="normal"> 495</span>
+<span class="normal"> 496</span>
+<span class="normal"> 497</span>
+<span class="normal"> 498</span>
+<span class="normal"> 499</span>
+<span class="normal"> 500</span>
+<span class="normal"> 501</span>
+<span class="normal"> 502</span>
+<span class="normal"> 503</span>
+<span class="normal"> 504</span>
+<span class="normal"> 505</span>
+<span class="normal"> 506</span>
+<span class="normal"> 507</span>
+<span class="normal"> 508</span>
+<span class="normal"> 509</span>
+<span class="normal"> 510</span>
+<span class="normal"> 511</span>
+<span class="normal"> 512</span>
+<span class="normal"> 513</span>
+<span class="normal"> 514</span>
+<span class="normal"> 515</span>
+<span class="normal"> 516</span>
+<span class="normal"> 517</span>
+<span class="normal"> 518</span>
+<span class="normal"> 519</span>
+<span class="normal"> 520</span>
+<span class="normal"> 521</span>
+<span class="normal"> 522</span>
+<span class="normal"> 523</span>
+<span class="normal"> 524</span>
+<span class="normal"> 525</span>
+<span class="normal"> 526</span>
+<span class="normal"> 527</span>
+<span class="normal"> 528</span>
+<span class="normal"> 529</span>
+<span class="normal"> 530</span>
+<span class="normal"> 531</span>
+<span class="normal"> 532</span>
+<span class="normal"> 533</span>
+<span class="normal"> 534</span>
+<span class="normal"> 535</span>
+<span class="normal"> 536</span>
+<span class="normal"> 537</span>
+<span class="normal"> 538</span>
+<span class="normal"> 539</span>
+<span class="normal"> 540</span>
+<span class="normal"> 541</span>
+<span class="normal"> 542</span>
+<span class="normal"> 543</span>
+<span class="normal"> 544</span>
+<span class="normal"> 545</span>
+<span class="normal"> 546</span>
+<span class="normal"> 547</span>
+<span class="normal"> 548</span>
+<span class="normal"> 549</span>
+<span class="normal"> 550</span>
+<span class="normal"> 551</span>
+<span class="normal"> 552</span>
+<span class="normal"> 553</span>
+<span class="normal"> 554</span>
+<span class="normal"> 555</span>
+<span class="normal"> 556</span>
+<span class="normal"> 557</span>
+<span class="normal"> 558</span>
+<span class="normal"> 559</span>
+<span class="normal"> 560</span>
+<span class="normal"> 561</span>
+<span class="normal"> 562</span>
+<span class="normal"> 563</span>
+<span class="normal"> 564</span>
+<span class="normal"> 565</span>
+<span class="normal"> 566</span>
+<span class="normal"> 567</span>
+<span class="normal"> 568</span>
+<span class="normal"> 569</span>
+<span class="normal"> 570</span>
+<span class="normal"> 571</span>
+<span class="normal"> 572</span>
+<span class="normal"> 573</span>
+<span class="normal"> 574</span>
+<span class="normal"> 575</span>
+<span class="normal"> 576</span>
+<span class="normal"> 577</span>
+<span class="normal"> 578</span>
+<span class="normal"> 579</span>
+<span class="normal"> 580</span>
+<span class="normal"> 581</span>
+<span class="normal"> 582</span>
+<span class="normal"> 583</span>
+<span class="normal"> 584</span>
+<span class="normal"> 585</span>
+<span class="normal"> 586</span>
+<span class="normal"> 587</span>
+<span class="normal"> 588</span>
+<span class="normal"> 589</span>
+<span class="normal"> 590</span>
+<span class="normal"> 591</span>
+<span class="normal"> 592</span>
+<span class="normal"> 593</span>
+<span class="normal"> 594</span>
+<span class="normal"> 595</span>
+<span class="normal"> 596</span>
+<span class="normal"> 597</span>
+<span class="normal"> 598</span>
+<span class="normal"> 599</span>
+<span class="normal"> 600</span>
+<span class="normal"> 601</span>
+<span class="normal"> 602</span>
+<span class="normal"> 603</span>
+<span class="normal"> 604</span>
+<span class="normal"> 605</span>
+<span class="normal"> 606</span>
+<span class="normal"> 607</span>
+<span class="normal"> 608</span>
+<span class="normal"> 609</span>
+<span class="normal"> 610</span>
+<span class="normal"> 611</span>
+<span class="normal"> 612</span>
+<span class="normal"> 613</span>
+<span class="normal"> 614</span>
+<span class="normal"> 615</span>
+<span class="normal"> 616</span>
+<span class="normal"> 617</span>
+<span class="normal"> 618</span>
+<span class="normal"> 619</span>
+<span class="normal"> 620</span>
+<span class="normal"> 621</span>
+<span class="normal"> 622</span>
+<span class="normal"> 623</span>
+<span class="normal"> 624</span>
+<span class="normal"> 625</span>
+<span class="normal"> 626</span>
+<span class="normal"> 627</span>
+<span class="normal"> 628</span>
+<span class="normal"> 629</span>
+<span class="normal"> 630</span>
+<span class="normal"> 631</span>
+<span class="normal"> 632</span>
+<span class="normal"> 633</span>
+<span class="normal"> 634</span>
+<span class="normal"> 635</span>
+<span class="normal"> 636</span>
+<span class="normal"> 637</span>
+<span class="normal"> 638</span>
+<span class="normal"> 639</span>
+<span class="normal"> 640</span>
+<span class="normal"> 641</span>
+<span class="normal"> 642</span>
+<span class="normal"> 643</span>
+<span class="normal"> 644</span>
+<span class="normal"> 645</span>
+<span class="normal"> 646</span>
+<span class="normal"> 647</span>
+<span class="normal"> 648</span>
+<span class="normal"> 649</span>
+<span class="normal"> 650</span>
+<span class="normal"> 651</span>
+<span class="normal"> 652</span>
+<span class="normal"> 653</span>
+<span class="normal"> 654</span>
+<span class="normal"> 655</span>
+<span class="normal"> 656</span>
+<span class="normal"> 657</span>
+<span class="normal"> 658</span>
+<span class="normal"> 659</span>
+<span class="normal"> 660</span>
+<span class="normal"> 661</span>
+<span class="normal"> 662</span>
+<span class="normal"> 663</span>
+<span class="normal"> 664</span>
+<span class="normal"> 665</span>
+<span class="normal"> 666</span>
+<span class="normal"> 667</span>
+<span class="normal"> 668</span>
+<span class="normal"> 669</span>
+<span class="normal"> 670</span>
+<span class="normal"> 671</span>
+<span class="normal"> 672</span>
+<span class="normal"> 673</span>
+<span class="normal"> 674</span>
+<span class="normal"> 675</span>
+<span class="normal"> 676</span>
+<span class="normal"> 677</span>
+<span class="normal"> 678</span>
+<span class="normal"> 679</span>
+<span class="normal"> 680</span>
+<span class="normal"> 681</span>
+<span class="normal"> 682</span>
+<span class="normal"> 683</span>
+<span class="normal"> 684</span>
+<span class="normal"> 685</span>
+<span class="normal"> 686</span>
+<span class="normal"> 687</span>
+<span class="normal"> 688</span>
+<span class="normal"> 689</span>
+<span class="normal"> 690</span>
+<span class="normal"> 691</span>
+<span class="normal"> 692</span>
+<span class="normal"> 693</span>
+<span class="normal"> 694</span>
+<span class="normal"> 695</span>
+<span class="normal"> 696</span>
+<span class="normal"> 697</span>
+<span class="normal"> 698</span>
+<span class="normal"> 699</span>
+<span class="normal"> 700</span>
+<span class="normal"> 701</span>
+<span class="normal"> 702</span>
+<span class="normal"> 703</span>
+<span class="normal"> 704</span>
+<span class="normal"> 705</span>
+<span class="normal"> 706</span>
+<span class="normal"> 707</span>
+<span class="normal"> 708</span>
+<span class="normal"> 709</span>
+<span class="normal"> 710</span>
+<span class="normal"> 711</span>
+<span class="normal"> 712</span>
+<span class="normal"> 713</span>
+<span class="normal"> 714</span>
+<span class="normal"> 715</span>
+<span class="normal"> 716</span>
+<span class="normal"> 717</span>
+<span class="normal"> 718</span>
+<span class="normal"> 719</span>
+<span class="normal"> 720</span>
+<span class="normal"> 721</span>
+<span class="normal"> 722</span>
+<span class="normal"> 723</span>
+<span class="normal"> 724</span>
+<span class="normal"> 725</span>
+<span class="normal"> 726</span>
+<span class="normal"> 727</span>
+<span class="normal"> 728</span>
+<span class="normal"> 729</span>
+<span class="normal"> 730</span>
+<span class="normal"> 731</span>
+<span class="normal"> 732</span>
+<span class="normal"> 733</span>
+<span class="normal"> 734</span>
+<span class="normal"> 735</span>
+<span class="normal"> 736</span>
+<span class="normal"> 737</span>
+<span class="normal"> 738</span>
+<span class="normal"> 739</span>
+<span class="normal"> 740</span>
+<span class="normal"> 741</span>
+<span class="normal"> 742</span>
+<span class="normal"> 743</span>
+<span class="normal"> 744</span>
+<span class="normal"> 745</span>
+<span class="normal"> 746</span>
+<span class="normal"> 747</span>
+<span class="normal"> 748</span>
+<span class="normal"> 749</span>
+<span class="normal"> 750</span>
+<span class="normal"> 751</span>
+<span class="normal"> 752</span>
+<span class="normal"> 753</span>
+<span class="normal"> 754</span>
+<span class="normal"> 755</span>
+<span class="normal"> 756</span>
+<span class="normal"> 757</span>
+<span class="normal"> 758</span>
+<span class="normal"> 759</span>
+<span class="normal"> 760</span>
+<span class="normal"> 761</span>
+<span class="normal"> 762</span>
+<span class="normal"> 763</span>
+<span class="normal"> 764</span>
+<span class="normal"> 765</span>
+<span class="normal"> 766</span>
+<span class="normal"> 767</span>
+<span class="normal"> 768</span>
+<span class="normal"> 769</span>
+<span class="normal"> 770</span>
+<span class="normal"> 771</span>
+<span class="normal"> 772</span>
+<span class="normal"> 773</span>
+<span class="normal"> 774</span>
+<span class="normal"> 775</span>
+<span class="normal"> 776</span>
+<span class="normal"> 777</span>
+<span class="normal"> 778</span>
+<span class="normal"> 779</span>
+<span class="normal"> 780</span>
+<span class="normal"> 781</span>
+<span class="normal"> 782</span>
+<span class="normal"> 783</span>
+<span class="normal"> 784</span>
+<span class="normal"> 785</span>
+<span class="normal"> 786</span>
+<span class="normal"> 787</span>
+<span class="normal"> 788</span>
+<span class="normal"> 789</span>
+<span class="normal"> 790</span>
+<span class="normal"> 791</span>
+<span class="normal"> 792</span>
+<span class="normal"> 793</span>
+<span class="normal"> 794</span>
+<span class="normal"> 795</span>
+<span class="normal"> 796</span>
+<span class="normal"> 797</span>
+<span class="normal"> 798</span>
+<span class="normal"> 799</span>
+<span class="normal"> 800</span>
+<span class="normal"> 801</span>
+<span class="normal"> 802</span>
+<span class="normal"> 803</span>
+<span class="normal"> 804</span>
+<span class="normal"> 805</span>
+<span class="normal"> 806</span>
+<span class="normal"> 807</span>
+<span class="normal"> 808</span>
+<span class="normal"> 809</span>
+<span class="normal"> 810</span>
+<span class="normal"> 811</span>
+<span class="normal"> 812</span>
+<span class="normal"> 813</span>
+<span class="normal"> 814</span>
+<span class="normal"> 815</span>
+<span class="normal"> 816</span>
+<span class="normal"> 817</span>
+<span class="normal"> 818</span>
+<span class="normal"> 819</span>
+<span class="normal"> 820</span>
+<span class="normal"> 821</span>
+<span class="normal"> 822</span>
+<span class="normal"> 823</span>
+<span class="normal"> 824</span>
+<span class="normal"> 825</span>
+<span class="normal"> 826</span>
+<span class="normal"> 827</span>
+<span class="normal"> 828</span>
+<span class="normal"> 829</span>
+<span class="normal"> 830</span>
+<span class="normal"> 831</span>
+<span class="normal"> 832</span>
+<span class="normal"> 833</span>
+<span class="normal"> 834</span>
+<span class="normal"> 835</span>
+<span class="normal"> 836</span>
+<span class="normal"> 837</span>
+<span class="normal"> 838</span>
+<span class="normal"> 839</span>
+<span class="normal"> 840</span>
+<span class="normal"> 841</span>
+<span class="normal"> 842</span>
+<span class="normal"> 843</span>
+<span class="normal"> 844</span>
+<span class="normal"> 845</span>
+<span class="normal"> 846</span>
+<span class="normal"> 847</span>
+<span class="normal"> 848</span>
+<span class="normal"> 849</span>
+<span class="normal"> 850</span>
+<span class="normal"> 851</span>
+<span class="normal"> 852</span>
+<span class="normal"> 853</span>
+<span class="normal"> 854</span>
+<span class="normal"> 855</span>
+<span class="normal"> 856</span>
+<span class="normal"> 857</span>
+<span class="normal"> 858</span>
+<span class="normal"> 859</span>
+<span class="normal"> 860</span>
+<span class="normal"> 861</span>
+<span class="normal"> 862</span>
+<span class="normal"> 863</span>
+<span class="normal"> 864</span>
+<span class="normal"> 865</span>
+<span class="normal"> 866</span>
+<span class="normal"> 867</span>
+<span class="normal"> 868</span>
+<span class="normal"> 869</span>
+<span class="normal"> 870</span>
+<span class="normal"> 871</span>
+<span class="normal"> 872</span>
+<span class="normal"> 873</span>
+<span class="normal"> 874</span>
+<span class="normal"> 875</span>
+<span class="normal"> 876</span>
+<span class="normal"> 877</span>
+<span class="normal"> 878</span>
+<span class="normal"> 879</span>
+<span class="normal"> 880</span>
+<span class="normal"> 881</span>
+<span class="normal"> 882</span>
+<span class="normal"> 883</span>
+<span class="normal"> 884</span>
+<span class="normal"> 885</span>
+<span class="normal"> 886</span>
+<span class="normal"> 887</span>
+<span class="normal"> 888</span>
+<span class="normal"> 889</span>
+<span class="normal"> 890</span>
+<span class="normal"> 891</span>
+<span class="normal"> 892</span>
+<span class="normal"> 893</span>
+<span class="normal"> 894</span>
+<span class="normal"> 895</span>
+<span class="normal"> 896</span>
+<span class="normal"> 897</span>
+<span class="normal"> 898</span>
+<span class="normal"> 899</span>
+<span class="normal"> 900</span>
+<span class="normal"> 901</span>
+<span class="normal"> 902</span>
+<span class="normal"> 903</span>
+<span class="normal"> 904</span>
+<span class="normal"> 905</span>
+<span class="normal"> 906</span>
+<span class="normal"> 907</span>
+<span class="normal"> 908</span>
+<span class="normal"> 909</span>
+<span class="normal"> 910</span>
+<span class="normal"> 911</span>
+<span class="normal"> 912</span>
+<span class="normal"> 913</span>
+<span class="normal"> 914</span>
+<span class="normal"> 915</span>
+<span class="normal"> 916</span>
+<span class="normal"> 917</span>
+<span class="normal"> 918</span>
+<span class="normal"> 919</span>
+<span class="normal"> 920</span>
+<span class="normal"> 921</span>
+<span class="normal"> 922</span>
+<span class="normal"> 923</span>
+<span class="normal"> 924</span>
+<span class="normal"> 925</span>
+<span class="normal"> 926</span>
+<span class="normal"> 927</span>
+<span class="normal"> 928</span>
+<span class="normal"> 929</span>
+<span class="normal"> 930</span>
+<span class="normal"> 931</span>
+<span class="normal"> 932</span>
+<span class="normal"> 933</span>
+<span class="normal"> 934</span>
+<span class="normal"> 935</span>
+<span class="normal"> 936</span>
+<span class="normal"> 937</span>
+<span class="normal"> 938</span>
+<span class="normal"> 939</span>
+<span class="normal"> 940</span>
+<span class="normal"> 941</span>
+<span class="normal"> 942</span>
+<span class="normal"> 943</span>
+<span class="normal"> 944</span>
+<span class="normal"> 945</span>
+<span class="normal"> 946</span>
+<span class="normal"> 947</span>
+<span class="normal"> 948</span>
+<span class="normal"> 949</span>
+<span class="normal"> 950</span>
+<span class="normal"> 951</span>
+<span class="normal"> 952</span>
+<span class="normal"> 953</span>
+<span class="normal"> 954</span>
+<span class="normal"> 955</span>
+<span class="normal"> 956</span>
+<span class="normal"> 957</span>
+<span class="normal"> 958</span>
+<span class="normal"> 959</span>
+<span class="normal"> 960</span>
+<span class="normal"> 961</span>
+<span class="normal"> 962</span>
+<span class="normal"> 963</span>
+<span class="normal"> 964</span>
+<span class="normal"> 965</span>
+<span class="normal"> 966</span>
+<span class="normal"> 967</span>
+<span class="normal"> 968</span>
+<span class="normal"> 969</span>
+<span class="normal"> 970</span>
+<span class="normal"> 971</span>
+<span class="normal"> 972</span>
+<span class="normal"> 973</span>
+<span class="normal"> 974</span>
+<span class="normal"> 975</span>
+<span class="normal"> 976</span>
+<span class="normal"> 977</span>
+<span class="normal"> 978</span>
+<span class="normal"> 979</span>
+<span class="normal"> 980</span>
+<span class="normal"> 981</span>
+<span class="normal"> 982</span>
+<span class="normal"> 983</span>
+<span class="normal"> 984</span>
+<span class="normal"> 985</span>
+<span class="normal"> 986</span>
+<span class="normal"> 987</span>
+<span class="normal"> 988</span>
+<span class="normal"> 989</span>
+<span class="normal"> 990</span>
+<span class="normal"> 991</span>
+<span class="normal"> 992</span>
+<span class="normal"> 993</span>
+<span class="normal"> 994</span>
+<span class="normal"> 995</span>
+<span class="normal"> 996</span>
+<span class="normal"> 997</span>
+<span class="normal"> 998</span>
+<span class="normal"> 999</span>
+<span class="normal">1000</span>
+<span class="normal">1001</span>
+<span class="normal">1002</span>
+<span class="normal">1003</span>
+<span class="normal">1004</span>
+<span class="normal">1005</span>
+<span class="normal">1006</span>
+<span class="normal">1007</span>
+<span class="normal">1008</span>
+<span class="normal">1009</span>
+<span class="normal">1010</span>
+<span class="normal">1011</span>
+<span class="normal">1012</span>
+<span class="normal">1013</span>
+<span class="normal">1014</span>
+<span class="normal">1015</span>
+<span class="normal">1016</span>
+<span class="normal">1017</span>
+<span class="normal">1018</span>
+<span class="normal">1019</span>
+<span class="normal">1020</span>
+<span class="normal">1021</span>
+<span class="normal">1022</span>
+<span class="normal">1023</span>
+<span class="normal">1024</span>
+<span class="normal">1025</span>
+<span class="normal">1026</span>
+<span class="normal">1027</span>
+<span class="normal">1028</span>
+<span class="normal">1029</span>
+<span class="normal">1030</span>
+<span class="normal">1031</span>
+<span class="normal">1032</span>
+<span class="normal">1033</span>
+<span class="normal">1034</span>
+<span class="normal">1035</span>
+<span class="normal">1036</span>
+<span class="normal">1037</span>
+<span class="normal">1038</span>
+<span class="normal">1039</span>
+<span class="normal">1040</span>
+<span class="normal">1041</span>
+<span class="normal">1042</span>
+<span class="normal">1043</span>
+<span class="normal">1044</span>
+<span class="normal">1045</span>
+<span class="normal">1046</span>
+<span class="normal">1047</span>
+<span class="normal">1048</span>
+<span class="normal">1049</span>
+<span class="normal">1050</span>
+<span class="normal">1051</span>
+<span class="normal">1052</span>
+<span class="normal">1053</span>
+<span class="normal">1054</span>
+<span class="normal">1055</span>
+<span class="normal">1056</span>
+<span class="normal">1057</span>
+<span class="normal">1058</span>
+<span class="normal">1059</span>
+<span class="normal">1060</span>
+<span class="normal">1061</span>
+<span class="normal">1062</span>
+<span class="normal">1063</span>
+<span class="normal">1064</span>
+<span class="normal">1065</span>
+<span class="normal">1066</span>
+<span class="normal">1067</span>
+<span class="normal">1068</span>
+<span class="normal">1069</span>
+<span class="normal">1070</span>
+<span class="normal">1071</span>
+<span class="normal">1072</span>
+<span class="normal">1073</span>
+<span class="normal">1074</span>
+<span class="normal">1075</span>
+<span class="normal">1076</span>
+<span class="normal">1077</span>
+<span class="normal">1078</span>
+<span class="normal">1079</span>
+<span class="normal">1080</span>
+<span class="normal">1081</span>
+<span class="normal">1082</span>
+<span class="normal">1083</span>
+<span class="normal">1084</span>
+<span class="normal">1085</span>
+<span class="normal">1086</span>
+<span class="normal">1087</span>
+<span class="normal">1088</span>
+<span class="normal">1089</span>
+<span class="normal">1090</span>
+<span class="normal">1091</span>
+<span class="normal">1092</span>
+<span class="normal">1093</span>
+<span class="normal">1094</span>
+<span class="normal">1095</span>
+<span class="normal">1096</span>
+<span class="normal">1097</span>
+<span class="normal">1098</span>
+<span class="normal">1099</span>
+<span class="normal">1100</span>
+<span class="normal">1101</span>
+<span class="normal">1102</span>
+<span class="normal">1103</span>
+<span class="normal">1104</span>
+<span class="normal">1105</span>
+<span class="normal">1106</span>
+<span class="normal">1107</span>
+<span class="normal">1108</span>
+<span class="normal">1109</span>
+<span class="normal">1110</span>
+<span class="normal">1111</span>
+<span class="normal">1112</span>
+<span class="normal">1113</span>
+<span class="normal">1114</span>
+<span class="normal">1115</span>
+<span class="normal">1116</span>
+<span class="normal">1117</span>
+<span class="normal">1118</span>
+<span class="normal">1119</span>
+<span class="normal">1120</span>
+<span class="normal">1121</span>
+<span class="normal">1122</span>
+<span class="normal">1123</span>
+<span class="normal">1124</span>
+<span class="normal">1125</span>
+<span class="normal">1126</span>
+<span class="normal">1127</span>
+<span class="normal">1128</span>
+<span class="normal">1129</span>
+<span class="normal">1130</span>
+<span class="normal">1131</span>
+<span class="normal">1132</span>
+<span class="normal">1133</span>
+<span class="normal">1134</span>
+<span class="normal">1135</span>
+<span class="normal">1136</span>
+<span class="normal">1137</span>
+<span class="normal">1138</span>
+<span class="normal">1139</span>
+<span class="normal">1140</span>
+<span class="normal">1141</span>
+<span class="normal">1142</span>
+<span class="normal">1143</span>
+<span class="normal">1144</span>
+<span class="normal">1145</span>
+<span class="normal">1146</span>
+<span class="normal">1147</span>
+<span class="normal">1148</span>
+<span class="normal">1149</span>
+<span class="normal">1150</span>
+<span class="normal">1151</span>
+<span class="normal">1152</span>
+<span class="normal">1153</span>
+<span class="normal">1154</span>
+<span class="normal">1155</span>
+<span class="normal">1156</span>
+<span class="normal">1157</span>
+<span class="normal">1158</span>
+<span class="normal">1159</span>
+<span class="normal">1160</span>
+<span class="normal">1161</span>
+<span class="normal">1162</span>
+<span class="normal">1163</span>
+<span class="normal">1164</span>
+<span class="normal">1165</span>
+<span class="normal">1166</span>
+<span class="normal">1167</span>
+<span class="normal">1168</span>
+<span class="normal">1169</span>
+<span class="normal">1170</span>
+<span class="normal">1171</span>
+<span class="normal">1172</span>
+<span class="normal">1173</span>
+<span class="normal">1174</span>
+<span class="normal">1175</span>
+<span class="normal">1176</span>
+<span class="normal">1177</span>
+<span class="normal">1178</span>
+<span class="normal">1179</span>
+<span class="normal">1180</span>
+<span class="normal">1181</span>
+<span class="normal">1182</span>
+<span class="normal">1183</span>
+<span class="normal">1184</span>
+<span class="normal">1185</span>
+<span class="normal">1186</span>
+<span class="normal">1187</span>
+<span class="normal">1188</span>
+<span class="normal">1189</span>
+<span class="normal">1190</span>
+<span class="normal">1191</span>
+<span class="normal">1192</span>
+<span class="normal">1193</span>
+<span class="normal">1194</span>
+<span class="normal">1195</span>
+<span class="normal">1196</span>
+<span class="normal">1197</span>
+<span class="normal">1198</span>
+<span class="normal">1199</span>
+<span class="normal">1200</span>
+<span class="normal">1201</span>
+<span class="normal">1202</span>
+<span class="normal">1203</span>
+<span class="normal">1204</span>
+<span class="normal">1205</span>
+<span class="normal">1206</span>
+<span class="normal">1207</span>
+<span class="normal">1208</span>
+<span class="normal">1209</span>
+<span class="normal">1210</span>
+<span class="normal">1211</span>
+<span class="normal">1212</span>
+<span class="normal">1213</span>
+<span class="normal">1214</span>
+<span class="normal">1215</span>
+<span class="normal">1216</span>
+<span class="normal">1217</span>
+<span class="normal">1218</span>
+<span class="normal">1219</span>
+<span class="normal">1220</span>
+<span class="normal">1221</span>
+<span class="normal">1222</span>
+<span class="normal">1223</span>
+<span class="normal">1224</span>
+<span class="normal">1225</span>
+<span class="normal">1226</span>
+<span class="normal">1227</span>
+<span class="normal">1228</span>
+<span class="normal">1229</span>
+<span class="normal">1230</span>
+<span class="normal">1231</span>
+<span class="normal">1232</span>
+<span class="normal">1233</span>
+<span class="normal">1234</span>
+<span class="normal">1235</span>
+<span class="normal">1236</span>
+<span class="normal">1237</span>
+<span class="normal">1238</span>
+<span class="normal">1239</span>
+<span class="normal">1240</span>
+<span class="normal">1241</span>
+<span class="normal">1242</span>
+<span class="normal">1243</span>
+<span class="normal">1244</span>
+<span class="normal">1245</span>
+<span class="normal">1246</span>
+<span class="normal">1247</span>
+<span class="normal">1248</span>
+<span class="normal">1249</span>
+<span class="normal">1250</span>
+<span class="normal">1251</span>
+<span class="normal">1252</span>
+<span class="normal">1253</span>
+<span class="normal">1254</span>
+<span class="normal">1255</span>
+<span class="normal">1256</span>
+<span class="normal">1257</span>
+<span class="normal">1258</span>
+<span class="normal">1259</span>
+<span class="normal">1260</span>
+<span class="normal">1261</span>
+<span class="normal">1262</span>
+<span class="normal">1263</span>
+<span class="normal">1264</span>
+<span class="normal">1265</span>
+<span class="normal">1266</span>
+<span class="normal">1267</span>
+<span class="normal">1268</span>
+<span class="normal">1269</span>
+<span class="normal">1270</span>
+<span class="normal">1271</span>
+<span class="normal">1272</span>
+<span class="normal">1273</span>
+<span class="normal">1274</span>
+<span class="normal">1275</span>
+<span class="normal">1276</span>
+<span class="normal">1277</span>
+<span class="normal">1278</span>
+<span class="normal">1279</span>
+<span class="normal">1280</span>
+<span class="normal">1281</span>
+<span class="normal">1282</span>
+<span class="normal">1283</span>
+<span class="normal">1284</span>
+<span class="normal">1285</span>
+<span class="normal">1286</span>
+<span class="normal">1287</span>
+<span class="normal">1288</span>
+<span class="normal">1289</span>
+<span class="normal">1290</span>
+<span class="normal">1291</span>
+<span class="normal">1292</span>
+<span class="normal">1293</span>
+<span class="normal">1294</span>
+<span class="normal">1295</span>
+<span class="normal">1296</span>
+<span class="normal">1297</span>
+<span class="normal">1298</span>
+<span class="normal">1299</span>
+<span class="normal">1300</span>
+<span class="normal">1301</span>
+<span class="normal">1302</span>
+<span class="normal">1303</span>
+<span class="normal">1304</span>
+<span class="normal">1305</span>
+<span class="normal">1306</span>
+<span class="normal">1307</span>
+<span class="normal">1308</span>
+<span class="normal">1309</span>
+<span class="normal">1310</span>
+<span class="normal">1311</span>
+<span class="normal">1312</span>
+<span class="normal">1313</span>
+<span class="normal">1314</span>
+<span class="normal">1315</span>
+<span class="normal">1316</span>
+<span class="normal">1317</span>
+<span class="normal">1318</span>
+<span class="normal">1319</span>
+<span class="normal">1320</span>
+<span class="normal">1321</span>
+<span class="normal">1322</span>
+<span class="normal">1323</span>
+<span class="normal">1324</span>
+<span class="normal">1325</span>
+<span class="normal">1326</span>
+<span class="normal">1327</span>
+<span class="normal">1328</span>
+<span class="normal">1329</span>
+<span class="normal">1330</span>
+<span class="normal">1331</span>
+<span class="normal">1332</span>
+<span class="normal">1333</span>
+<span class="normal">1334</span>
+<span class="normal">1335</span>
+<span class="normal">1336</span>
+<span class="normal">1337</span>
+<span class="normal">1338</span>
+<span class="normal">1339</span>
+<span class="normal">1340</span>
+<span class="normal">1341</span>
+<span class="normal">1342</span>
+<span class="normal">1343</span>
+<span class="normal">1344</span>
+<span class="normal">1345</span>
+<span class="normal">1346</span>
+<span class="normal">1347</span>
+<span class="normal">1348</span>
+<span class="normal">1349</span>
+<span class="normal">1350</span>
+<span class="normal">1351</span>
+<span class="normal">1352</span>
+<span class="normal">1353</span>
+<span class="normal">1354</span>
+<span class="normal">1355</span>
+<span class="normal">1356</span>
+<span class="normal">1357</span>
+<span class="normal">1358</span>
+<span class="normal">1359</span>
+<span class="normal">1360</span>
+<span class="normal">1361</span>
+<span class="normal">1362</span>
+<span class="normal">1363</span>
+<span class="normal">1364</span>
+<span class="normal">1365</span>
+<span class="normal">1366</span>
+<span class="normal">1367</span>
+<span class="normal">1368</span>
+<span class="normal">1369</span>
+<span class="normal">1370</span>
+<span class="normal">1371</span>
+<span class="normal">1372</span>
+<span class="normal">1373</span>
+<span class="normal">1374</span>
+<span class="normal">1375</span>
+<span class="normal">1376</span>
+<span class="normal">1377</span>
+<span class="normal">1378</span>
+<span class="normal">1379</span>
+<span class="normal">1380</span>
+<span class="normal">1381</span>
+<span class="normal">1382</span>
+<span class="normal">1383</span>
+<span class="normal">1384</span>
+<span class="normal">1385</span>
+<span class="normal">1386</span>
+<span class="normal">1387</span>
+<span class="normal">1388</span>
+<span class="normal">1389</span>
+<span class="normal">1390</span>
+<span class="normal">1391</span>
+<span class="normal">1392</span>
+<span class="normal">1393</span>
+<span class="normal">1394</span>
+<span class="normal">1395</span>
+<span class="normal">1396</span>
+<span class="normal">1397</span>
+<span class="normal">1398</span>
+<span class="normal">1399</span>
+<span class="normal">1400</span>
+<span class="normal">1401</span>
+<span class="normal">1402</span>
+<span class="normal">1403</span>
+<span class="normal">1404</span>
+<span class="normal">1405</span>
+<span class="normal">1406</span>
+<span class="normal">1407</span>
+<span class="normal">1408</span>
+<span class="normal">1409</span>
+<span class="normal">1410</span>
+<span class="normal">1411</span>
+<span class="normal">1412</span>
+<span class="normal">1413</span>
+<span class="normal">1414</span>
+<span class="normal">1415</span>
+<span class="normal">1416</span>
+<span class="normal">1417</span>
+<span class="normal">1418</span>
+<span class="normal">1419</span>
+<span class="normal">1420</span>
+<span class="normal">1421</span>
+<span class="normal">1422</span>
+<span class="normal">1423</span>
+<span class="normal">1424</span>
+<span class="normal">1425</span>
+<span class="normal">1426</span>
+<span class="normal">1427</span>
+<span class="normal">1428</span>
+<span class="normal">1429</span>
+<span class="normal">1430</span>
+<span class="normal">1431</span>
+<span class="normal">1432</span>
+<span class="normal">1433</span>
+<span class="normal">1434</span>
+<span class="normal">1435</span>
+<span class="normal">1436</span>
+<span class="normal">1437</span>
+<span class="normal">1438</span>
+<span class="normal">1439</span>
+<span class="normal">1440</span>
+<span class="normal">1441</span>
+<span class="normal">1442</span>
+<span class="normal">1443</span>
+<span class="normal">1444</span>
+<span class="normal">1445</span>
+<span class="normal">1446</span>
+<span class="normal">1447</span>
+<span class="normal">1448</span>
+<span class="normal">1449</span>
+<span class="normal">1450</span>
+<span class="normal">1451</span>
+<span class="normal">1452</span>
+<span class="normal">1453</span>
+<span class="normal">1454</span>
+<span class="normal">1455</span>
+<span class="normal">1456</span>
+<span class="normal">1457</span>
+<span class="normal">1458</span>
+<span class="normal">1459</span>
+<span class="normal">1460</span>
+<span class="normal">1461</span>
+<span class="normal">1462</span>
+<span class="normal">1463</span>
+<span class="normal">1464</span>
+<span class="normal">1465</span>
+<span class="normal">1466</span>
+<span class="normal">1467</span>
+<span class="normal">1468</span>
+<span class="normal">1469</span>
+<span class="normal">1470</span>
+<span class="normal">1471</span>
+<span class="normal">1472</span>
+<span class="normal">1473</span>
+<span class="normal">1474</span>
+<span class="normal">1475</span>
+<span class="normal">1476</span>
+<span class="normal">1477</span>
+<span class="normal">1478</span>
+<span class="normal">1479</span>
+<span class="normal">1480</span>
+<span class="normal">1481</span>
+<span class="normal">1482</span>
+<span class="normal">1483</span>
+<span class="normal">1484</span>
+<span class="normal">1485</span>
+<span class="normal">1486</span>
+<span class="normal">1487</span>
+<span class="normal">1488</span>
+<span class="normal">1489</span>
+<span class="normal">1490</span>
+<span class="normal">1491</span>
+<span class="normal">1492</span>
+<span class="normal">1493</span>
+<span class="normal">1494</span>
+<span class="normal">1495</span>
+<span class="normal">1496</span>
+<span class="normal">1497</span>
+<span class="normal">1498</span>
+<span class="normal">1499</span>
+<span class="normal">1500</span>
+<span class="normal">1501</span>
+<span class="normal">1502</span>
+<span class="normal">1503</span>
+<span class="normal">1504</span>
+<span class="normal">1505</span>
+<span class="normal">1506</span>
+<span class="normal">1507</span>
+<span class="normal">1508</span>
+<span class="normal">1509</span>
+<span class="normal">1510</span>
+<span class="normal">1511</span>
+<span class="normal">1512</span>
+<span class="normal">1513</span>
+<span class="normal">1514</span>
+<span class="normal">1515</span>
+<span class="normal">1516</span>
+<span class="normal">1517</span>
+<span class="normal">1518</span>
+<span class="normal">1519</span>
+<span class="normal">1520</span>
+<span class="normal">1521</span>
+<span class="normal">1522</span>
+<span class="normal">1523</span>
+<span class="normal">1524</span>
+<span class="normal">1525</span>
+<span class="normal">1526</span>
+<span class="normal">1527</span>
+<span class="normal">1528</span>
+<span class="normal">1529</span>
+<span class="normal">1530</span>
+<span class="normal">1531</span>
+<span class="normal">1532</span>
+<span class="normal">1533</span>
+<span class="normal">1534</span>
+<span class="normal">1535</span>
+<span class="normal">1536</span>
+<span class="normal">1537</span>
+<span class="normal">1538</span>
+<span class="normal">1539</span>
+<span class="normal">1540</span>
+<span class="normal">1541</span>
+<span class="normal">1542</span>
+<span class="normal">1543</span>
+<span class="normal">1544</span>
+<span class="normal">1545</span>
+<span class="normal">1546</span>
+<span class="normal">1547</span>
+<span class="normal">1548</span>
+<span class="normal">1549</span>
+<span class="normal">1550</span>
+<span class="normal">1551</span>
+<span class="normal">1552</span>
+<span class="normal">1553</span>
+<span class="normal">1554</span>
+<span class="normal">1555</span>
+<span class="normal">1556</span>
+<span class="normal">1557</span>
+<span class="normal">1558</span>
+<span class="normal">1559</span>
+<span class="normal">1560</span>
+<span class="normal">1561</span>
+<span class="normal">1562</span>
+<span class="normal">1563</span>
+<span class="normal">1564</span>
+<span class="normal">1565</span>
+<span class="normal">1566</span>
+<span class="normal">1567</span>
+<span class="normal">1568</span>
+<span class="normal">1569</span>
+<span class="normal">1570</span>
+<span class="normal">1571</span>
+<span class="normal">1572</span>
+<span class="normal">1573</span>
+<span class="normal">1574</span>
+<span class="normal">1575</span>
+<span class="normal">1576</span>
+<span class="normal">1577</span>
+<span class="normal">1578</span>
+<span class="normal">1579</span>
+<span class="normal">1580</span>
+<span class="normal">1581</span>
+<span class="normal">1582</span>
+<span class="normal">1583</span>
+<span class="normal">1584</span>
+<span class="normal">1585</span>
+<span class="normal">1586</span>
+<span class="normal">1587</span>
+<span class="normal">1588</span>
+<span class="normal">1589</span>
+<span class="normal">1590</span>
+<span class="normal">1591</span>
+<span class="normal">1592</span>
+<span class="normal">1593</span>
+<span class="normal">1594</span>
+<span class="normal">1595</span>
+<span class="normal">1596</span>
+<span class="normal">1597</span>
+<span class="normal">1598</span>
+<span class="normal">1599</span>
+<span class="normal">1600</span>
+<span class="normal">1601</span>
+<span class="normal">1602</span>
+<span class="normal">1603</span>
+<span class="normal">1604</span>
+<span class="normal">1605</span>
+<span class="normal">1606</span>
+<span class="normal">1607</span>
+<span class="normal">1608</span>
+<span class="normal">1609</span>
+<span class="normal">1610</span>
+<span class="normal">1611</span>
+<span class="normal">1612</span>
+<span class="normal">1613</span>
+<span class="normal">1614</span>
+<span class="normal">1615</span>
+<span class="normal">1616</span>
+<span class="normal">1617</span>
+<span class="normal">1618</span>
+<span class="normal">1619</span>
+<span class="normal">1620</span>
+<span class="normal">1621</span>
+<span class="normal">1622</span>
+<span class="normal">1623</span>
+<span class="normal">1624</span>
+<span class="normal">1625</span>
+<span class="normal">1626</span>
+<span class="normal">1627</span>
+<span class="normal">1628</span>
+<span class="normal">1629</span>
+<span class="normal">1630</span>
+<span class="normal">1631</span>
+<span class="normal">1632</span>
+<span class="normal">1633</span>
+<span class="normal">1634</span>
+<span class="normal">1635</span>
+<span class="normal">1636</span>
+<span class="normal">1637</span>
+<span class="normal">1638</span>
+<span class="normal">1639</span>
+<span class="normal">1640</span>
+<span class="normal">1641</span>
+<span class="normal">1642</span>
+<span class="normal">1643</span>
+<span class="normal">1644</span>
+<span class="normal">1645</span>
+<span class="normal">1646</span>
+<span class="normal">1647</span>
+<span class="normal">1648</span>
+<span class="normal">1649</span>
+<span class="normal">1650</span>
+<span class="normal">1651</span>
+<span class="normal">1652</span>
+<span class="normal">1653</span>
+<span class="normal">1654</span>
+<span class="normal">1655</span>
+<span class="normal">1656</span>
+<span class="normal">1657</span>
+<span class="normal">1658</span>
+<span class="normal">1659</span>
+<span class="normal">1660</span>
+<span class="normal">1661</span>
+<span class="normal">1662</span>
+<span class="normal">1663</span>
+<span class="normal">1664</span>
+<span class="normal">1665</span>
+<span class="normal">1666</span>
+<span class="normal">1667</span>
+<span class="normal">1668</span>
+<span class="normal">1669</span>
+<span class="normal">1670</span>
+<span class="normal">1671</span>
+<span class="normal">1672</span>
+<span class="normal">1673</span>
+<span class="normal">1674</span>
+<span class="normal">1675</span>
+<span class="normal">1676</span>
+<span class="normal">1677</span>
+<span class="normal">1678</span>
+<span class="normal">1679</span>
+<span class="normal">1680</span>
+<span class="normal">1681</span>
+<span class="normal">1682</span>
+<span class="normal">1683</span>
+<span class="normal">1684</span>
+<span class="normal">1685</span>
+<span class="normal">1686</span>
+<span class="normal">1687</span>
+<span class="normal">1688</span>
+<span class="normal">1689</span>
+<span class="normal">1690</span>
+<span class="normal">1691</span>
+<span class="normal">1692</span>
+<span class="normal">1693</span>
+<span class="normal">1694</span>
+<span class="normal">1695</span>
+<span class="normal">1696</span>
+<span class="normal">1697</span>
+<span class="normal">1698</span>
+<span class="normal">1699</span>
+<span class="normal">1700</span>
+<span class="normal">1701</span>
+<span class="normal">1702</span>
+<span class="normal">1703</span>
+<span class="normal">1704</span>
+<span class="normal">1705</span>
+<span class="normal">1706</span>
+<span class="normal">1707</span>
+<span class="normal">1708</span>
+<span class="normal">1709</span>
+<span class="normal">1710</span>
+<span class="normal">1711</span>
+<span class="normal">1712</span>
+<span class="normal">1713</span>
+<span class="normal">1714</span>
+<span class="normal">1715</span>
+<span class="normal">1716</span>
+<span class="normal">1717</span>
+<span class="normal">1718</span>
+<span class="normal">1719</span>
+<span class="normal">1720</span>
+<span class="normal">1721</span>
+<span class="normal">1722</span>
+<span class="normal">1723</span>
+<span class="normal">1724</span>
+<span class="normal">1725</span>
+<span class="normal">1726</span>
+<span class="normal">1727</span>
+<span class="normal">1728</span>
+<span class="normal">1729</span>
+<span class="normal">1730</span>
+<span class="normal">1731</span>
+<span class="normal">1732</span>
+<span class="normal">1733</span>
+<span class="normal">1734</span>
+<span class="normal">1735</span>
+<span class="normal">1736</span>
+<span class="normal">1737</span>
+<span class="normal">1738</span>
+<span class="normal">1739</span>
+<span class="normal">1740</span>
+<span class="normal">1741</span>
+<span class="normal">1742</span>
+<span class="normal">1743</span>
+<span class="normal">1744</span>
+<span class="normal">1745</span>
+<span class="normal">1746</span>
+<span class="normal">1747</span>
+<span class="normal">1748</span>
+<span class="normal">1749</span>
+<span class="normal">1750</span>
+<span class="normal">1751</span>
+<span class="normal">1752</span>
+<span class="normal">1753</span>
+<span class="normal">1754</span>
+<span class="normal">1755</span>
+<span class="normal">1756</span>
+<span class="normal">1757</span>
+<span class="normal">1758</span>
+<span class="normal">1759</span>
+<span class="normal">1760</span>
+<span class="normal">1761</span>
+<span class="normal">1762</span>
+<span class="normal">1763</span>
+<span class="normal">1764</span>
+<span class="normal">1765</span>
+<span class="normal">1766</span>
+<span class="normal">1767</span>
+<span class="normal">1768</span>
+<span class="normal">1769</span>
+<span class="normal">1770</span>
+<span class="normal">1771</span>
+<span class="normal">1772</span>
+<span class="normal">1773</span>
+<span class="normal">1774</span>
+<span class="normal">1775</span>
+<span class="normal">1776</span>
+<span class="normal">1777</span>
+<span class="normal">1778</span>
+<span class="normal">1779</span>
+<span class="normal">1780</span>
+<span class="normal">1781</span>
+<span class="normal">1782</span>
+<span class="normal">1783</span>
+<span class="normal">1784</span>
+<span class="normal">1785</span>
+<span class="normal">1786</span>
+<span class="normal">1787</span>
+<span class="normal">1788</span>
+<span class="normal">1789</span>
+<span class="normal">1790</span>
+<span class="normal">1791</span>
+<span class="normal">1792</span>
+<span class="normal">1793</span>
+<span class="normal">1794</span>
+<span class="normal">1795</span>
+<span class="normal">1796</span>
+<span class="normal">1797</span>
+<span class="normal">1798</span>
+<span class="normal">1799</span>
+<span class="normal">1800</span>
+<span class="normal">1801</span>
+<span class="normal">1802</span>
+<span class="normal">1803</span>
+<span class="normal">1804</span>
+<span class="normal">1805</span>
+<span class="normal">1806</span>
+<span class="normal">1807</span>
+<span class="normal">1808</span>
+<span class="normal">1809</span>
+<span class="normal">1810</span>
+<span class="normal">1811</span>
+<span class="normal">1812</span>
+<span class="normal">1813</span>
+<span class="normal">1814</span>
+<span class="normal">1815</span>
+<span class="normal">1816</span>
+<span class="normal">1817</span>
+<span class="normal">1818</span>
+<span class="normal">1819</span>
+<span class="normal">1820</span>
+<span class="normal">1821</span>
+<span class="normal">1822</span>
+<span class="normal">1823</span>
+<span class="normal">1824</span>
+<span class="normal">1825</span>
+<span class="normal">1826</span>
+<span class="normal">1827</span>
+<span class="normal">1828</span>
+<span class="normal">1829</span>
+<span class="normal">1830</span>
+<span class="normal">1831</span>
+<span class="normal">1832</span>
+<span class="normal">1833</span>
+<span class="normal">1834</span>
+<span class="normal">1835</span>
+<span class="normal">1836</span>
+<span class="normal">1837</span>
+<span class="normal">1838</span>
+<span class="normal">1839</span>
+<span class="normal">1840</span>
+<span class="normal">1841</span>
+<span class="normal">1842</span>
+<span class="normal">1843</span>
+<span class="normal">1844</span>
+<span class="normal">1845</span>
+<span class="normal">1846</span>
+<span class="normal">1847</span>
+<span class="normal">1848</span>
+<span class="normal">1849</span>
+<span class="normal">1850</span>
+<span class="normal">1851</span>
+<span class="normal">1852</span>
+<span class="normal">1853</span>
+<span class="normal">1854</span>
+<span class="normal">1855</span>
+<span class="normal">1856</span>
+<span class="normal">1857</span>
+<span class="normal">1858</span>
+<span class="normal">1859</span>
+<span class="normal">1860</span>
+<span class="normal">1861</span>
+<span class="normal">1862</span>
+<span class="normal">1863</span>
+<span class="normal">1864</span>
+<span class="normal">1865</span>
+<span class="normal">1866</span>
+<span class="normal">1867</span>
+<span class="normal">1868</span>
+<span class="normal">1869</span>
+<span class="normal">1870</span>
+<span class="normal">1871</span>
+<span class="normal">1872</span>
+<span class="normal">1873</span>
+<span class="normal">1874</span>
+<span class="normal">1875</span>
+<span class="normal">1876</span>
+<span class="normal">1877</span>
+<span class="normal">1878</span>
+<span class="normal">1879</span>
+<span class="normal">1880</span>
+<span class="normal">1881</span>
+<span class="normal">1882</span>
+<span class="normal">1883</span>
+<span class="normal">1884</span>
+<span class="normal">1885</span>
+<span class="normal">1886</span>
+<span class="normal">1887</span>
+<span class="normal">1888</span>
+<span class="normal">1889</span>
+<span class="normal">1890</span>
+<span class="normal">1891</span>
+<span class="normal">1892</span>
+<span class="normal">1893</span>
+<span class="normal">1894</span>
+<span class="normal">1895</span>
+<span class="normal">1896</span>
+<span class="normal">1897</span>
+<span class="normal">1898</span>
+<span class="normal">1899</span>
+<span class="normal">1900</span>
+<span class="normal">1901</span>
+<span class="normal">1902</span>
+<span class="normal">1903</span>
+<span class="normal">1904</span>
+<span class="normal">1905</span>
+<span class="normal">1906</span>
+<span class="normal">1907</span>
+<span class="normal">1908</span>
+<span class="normal">1909</span>
+<span class="normal">1910</span>
+<span class="normal">1911</span>
+<span class="normal">1912</span>
+<span class="normal">1913</span>
+<span class="normal">1914</span>
+<span class="normal">1915</span>
+<span class="normal">1916</span>
+<span class="normal">1917</span>
+<span class="normal">1918</span>
+<span class="normal">1919</span>
+<span class="normal">1920</span>
+<span class="normal">1921</span>
+<span class="normal">1922</span>
+<span class="normal">1923</span>
+<span class="normal">1924</span>
+<span class="normal">1925</span>
+<span class="normal">1926</span>
+<span class="normal">1927</span>
+<span class="normal">1928</span>
+<span class="normal">1929</span>
+<span class="normal">1930</span>
+<span class="normal">1931</span>
+<span class="normal">1932</span>
+<span class="normal">1933</span>
+<span class="normal">1934</span>
+<span class="normal">1935</span>
+<span class="normal">1936</span>
+<span class="normal">1937</span>
+<span class="normal">1938</span>
+<span class="normal">1939</span>
+<span class="normal">1940</span>
+<span class="normal">1941</span>
+<span class="normal">1942</span>
+<span class="normal">1943</span>
+<span class="normal">1944</span>
+<span class="normal">1945</span>
+<span class="normal">1946</span>
+<span class="normal">1947</span>
+<span class="normal">1948</span>
+<span class="normal">1949</span>
+<span class="normal">1950</span>
+<span class="normal">1951</span>
+<span class="normal">1952</span>
+<span class="normal">1953</span>
+<span class="normal">1954</span>
+<span class="normal">1955</span>
+<span class="normal">1956</span>
+<span class="normal">1957</span>
+<span class="normal">1958</span>
+<span class="normal">1959</span>
+<span class="normal">1960</span>
+<span class="normal">1961</span>
+<span class="normal">1962</span>
+<span class="normal">1963</span>
+<span class="normal">1964</span>
+<span class="normal">1965</span>
+<span class="normal">1966</span>
+<span class="normal">1967</span>
+<span class="normal">1968</span>
+<span class="normal">1969</span>
+<span class="normal">1970</span>
+<span class="normal">1971</span>
+<span class="normal">1972</span>
+<span class="normal">1973</span>
+<span class="normal">1974</span>
+<span class="normal">1975</span>
+<span class="normal">1976</span>
+<span class="normal">1977</span>
+<span class="normal">1978</span>
+<span class="normal">1979</span>
+<span class="normal">1980</span>
+<span class="normal">1981</span>
+<span class="normal">1982</span>
+<span class="normal">1983</span>
+<span class="normal">1984</span>
+<span class="normal">1985</span>
+<span class="normal">1986</span>
+<span class="normal">1987</span>
+<span class="normal">1988</span>
+<span class="normal">1989</span>
+<span class="normal">1990</span>
+<span class="normal">1991</span>
+<span class="normal">1992</span>
+<span class="normal">1993</span>
+<span class="normal">1994</span>
+<span class="normal">1995</span>
+<span class="normal">1996</span>
+<span class="normal">1997</span>
+<span class="normal">1998</span>
+<span class="normal">1999</span>
+<span class="normal">2000</span>
+<span class="normal">2001</span>
+<span class="normal">2002</span>
+<span class="normal">2003</span>
+<span class="normal">2004</span>
+<span class="normal">2005</span>
+<span class="normal">2006</span>
+<span class="normal">2007</span>
+<span class="normal">2008</span>
+<span class="normal">2009</span>
+<span class="normal">2010</span>
+<span class="normal">2011</span>
+<span class="normal">2012</span>
+<span class="normal">2013</span>
+<span class="normal">2014</span>
+<span class="normal">2015</span>
+<span class="normal">2016</span>
+<span class="normal">2017</span>
+<span class="normal">2018</span>
+<span class="normal">2019</span>
+<span class="normal">2020</span>
+<span class="normal">2021</span>
+<span class="normal">2022</span>
+<span class="normal">2023</span>
+<span class="normal">2024</span>
+<span class="normal">2025</span>
+<span class="normal">2026</span>
+<span class="normal">2027</span>
+<span class="normal">2028</span>
+<span class="normal">2029</span>
+<span class="normal">2030</span>
+<span class="normal">2031</span>
+<span class="normal">2032</span>
+<span class="normal">2033</span>
+<span class="normal">2034</span>
+<span class="normal">2035</span>
+<span class="normal">2036</span>
+<span class="normal">2037</span>
+<span class="normal">2038</span>
+<span class="normal">2039</span>
+<span class="normal">2040</span>
+<span class="normal">2041</span>
+<span class="normal">2042</span>
+<span class="normal">2043</span>
+<span class="normal">2044</span>
+<span class="normal">2045</span>
+<span class="normal">2046</span>
+<span class="normal">2047</span>
+<span class="normal">2048</span>
+<span class="normal">2049</span>
+<span class="normal">2050</span>
+<span class="normal">2051</span>
+<span class="normal">2052</span>
+<span class="normal">2053</span>
+<span class="normal">2054</span>
+<span class="normal">2055</span>
+<span class="normal">2056</span>
+<span class="normal">2057</span>
+<span class="normal">2058</span>
+<span class="normal">2059</span>
+<span class="normal">2060</span>
+<span class="normal">2061</span>
+<span class="normal">2062</span>
+<span class="normal">2063</span>
+<span class="normal">2064</span>
+<span class="normal">2065</span>
+<span class="normal">2066</span>
+<span class="normal">2067</span>
+<span class="normal">2068</span>
+<span class="normal">2069</span>
+<span class="normal">2070</span>
+<span class="normal">2071</span>
+<span class="normal">2072</span>
+<span class="normal">2073</span>
+<span class="normal">2074</span>
+<span class="normal">2075</span>
+<span class="normal">2076</span>
+<span class="normal">2077</span>
+<span class="normal">2078</span>
+<span class="normal">2079</span>
+<span class="normal">2080</span>
+<span class="normal">2081</span>
+<span class="normal">2082</span>
+<span class="normal">2083</span>
+<span class="normal">2084</span>
+<span class="normal">2085</span>
+<span class="normal">2086</span>
+<span class="normal">2087</span>
+<span class="normal">2088</span>
+<span class="normal">2089</span>
+<span class="normal">2090</span>
+<span class="normal">2091</span>
+<span class="normal">2092</span>
+<span class="normal">2093</span>
+<span class="normal">2094</span>
+<span class="normal">2095</span>
+<span class="normal">2096</span>
+<span class="normal">2097</span>
+<span class="normal">2098</span>
+<span class="normal">2099</span>
+<span class="normal">2100</span>
+<span class="normal">2101</span>
+<span class="normal">2102</span>
+<span class="normal">2103</span>
+<span class="normal">2104</span>
+<span class="normal">2105</span>
+<span class="normal">2106</span>
+<span class="normal">2107</span>
+<span class="normal">2108</span>
+<span class="normal">2109</span>
+<span class="normal">2110</span>
+<span class="normal">2111</span>
+<span class="normal">2112</span>
+<span class="normal">2113</span>
+<span class="normal">2114</span>
+<span class="normal">2115</span>
+<span class="normal">2116</span>
+<span class="normal">2117</span>
+<span class="normal">2118</span>
+<span class="normal">2119</span>
+<span class="normal">2120</span>
+<span class="normal">2121</span>
+<span class="normal">2122</span>
+<span class="normal">2123</span>
+<span class="normal">2124</span>
+<span class="normal">2125</span>
+<span class="normal">2126</span>
+<span class="normal">2127</span>
+<span class="normal">2128</span>
+<span class="normal">2129</span>
+<span class="normal">2130</span>
+<span class="normal">2131</span>
+<span class="normal">2132</span>
+<span class="normal">2133</span>
+<span class="normal">2134</span>
+<span class="normal">2135</span>
+<span class="normal">2136</span>
+<span class="normal">2137</span>
+<span class="normal">2138</span>
+<span class="normal">2139</span>
+<span class="normal">2140</span>
+<span class="normal">2141</span>
+<span class="normal">2142</span>
+<span class="normal">2143</span>
+<span class="normal">2144</span>
+<span class="normal">2145</span>
+<span class="normal">2146</span>
+<span class="normal">2147</span>
+<span class="normal">2148</span>
+<span class="normal">2149</span>
+<span class="normal">2150</span>
+<span class="normal">2151</span>
+<span class="normal">2152</span>
+<span class="normal">2153</span>
+<span class="normal">2154</span>
+<span class="normal">2155</span>
+<span class="normal">2156</span>
+<span class="normal">2157</span>
+<span class="normal">2158</span>
+<span class="normal">2159</span>
+<span class="normal">2160</span>
+<span class="normal">2161</span>
+<span class="normal">2162</span>
+<span class="normal">2163</span>
+<span class="normal">2164</span>
+<span class="normal">2165</span>
+<span class="normal">2166</span>
+<span class="normal">2167</span>
+<span class="normal">2168</span>
+<span class="normal">2169</span>
+<span class="normal">2170</span>
+<span class="normal">2171</span>
+<span class="normal">2172</span>
+<span class="normal">2173</span>
+<span class="normal">2174</span>
+<span class="normal">2175</span>
+<span class="normal">2176</span>
+<span class="normal">2177</span>
+<span class="normal">2178</span>
+<span class="normal">2179</span>
+<span class="normal">2180</span>
+<span class="normal">2181</span>
+<span class="normal">2182</span>
+<span class="normal">2183</span>
+<span class="normal">2184</span>
+<span class="normal">2185</span>
+<span class="normal">2186</span>
+<span class="normal">2187</span>
+<span class="normal">2188</span>
+<span class="normal">2189</span>
+<span class="normal">2190</span>
+<span class="normal">2191</span>
+<span class="normal">2192</span>
+<span class="normal">2193</span>
+<span class="normal">2194</span>
+<span class="normal">2195</span>
+<span class="normal">2196</span>
+<span class="normal">2197</span>
+<span class="normal">2198</span>
+<span class="normal">2199</span>
+<span class="normal">2200</span>
+<span class="normal">2201</span>
+<span class="normal">2202</span>
+<span class="normal">2203</span>
+<span class="normal">2204</span>
+<span class="normal">2205</span>
+<span class="normal">2206</span>
+<span class="normal">2207</span>
+<span class="normal">2208</span>
+<span class="normal">2209</span>
+<span class="normal">2210</span>
+<span class="normal">2211</span>
+<span class="normal">2212</span>
+<span class="normal">2213</span>
+<span class="normal">2214</span>
+<span class="normal">2215</span>
+<span class="normal">2216</span>
+<span class="normal">2217</span>
+<span class="normal">2218</span>
+<span class="normal">2219</span>
+<span class="normal">2220</span>
+<span class="normal">2221</span>
+<span class="normal">2222</span>
+<span class="normal">2223</span>
+<span class="normal">2224</span>
+<span class="normal">2225</span>
+<span class="normal">2226</span>
+<span class="normal">2227</span>
+<span class="normal">2228</span>
+<span class="normal">2229</span>
+<span class="normal">2230</span>
+<span class="normal">2231</span>
+<span class="normal">2232</span>
+<span class="normal">2233</span>
+<span class="normal">2234</span>
+<span class="normal">2235</span>
+<span class="normal">2236</span>
+<span class="normal">2237</span>
+<span class="normal">2238</span>
+<span class="normal">2239</span>
+<span class="normal">2240</span>
+<span class="normal">2241</span>
+<span class="normal">2242</span>
+<span class="normal">2243</span>
+<span class="normal">2244</span>
+<span class="normal">2245</span>
+<span class="normal">2246</span>
+<span class="normal">2247</span>
+<span class="normal">2248</span>
+<span class="normal">2249</span>
+<span class="normal">2250</span>
+<span class="normal">2251</span>
+<span class="normal">2252</span>
+<span class="normal">2253</span>
+<span class="normal">2254</span>
+<span class="normal">2255</span>
+<span class="normal">2256</span>
+<span class="normal">2257</span>
+<span class="normal">2258</span>
+<span class="normal">2259</span>
+<span class="normal">2260</span>
+<span class="normal">2261</span>
+<span class="normal">2262</span>
+<span class="normal">2263</span>
+<span class="normal">2264</span>
+<span class="normal">2265</span>
+<span class="normal">2266</span>
+<span class="normal">2267</span>
+<span class="normal">2268</span>
+<span class="normal">2269</span>
+<span class="normal">2270</span>
+<span class="normal">2271</span>
+<span class="normal">2272</span>
+<span class="normal">2273</span>
+<span class="normal">2274</span>
+<span class="normal">2275</span>
+<span class="normal">2276</span>
+<span class="normal">2277</span>
+<span class="normal">2278</span>
+<span class="normal">2279</span>
+<span class="normal">2280</span>
+<span class="normal">2281</span>
+<span class="normal">2282</span>
+<span class="normal">2283</span>
+<span class="normal">2284</span>
+<span class="normal">2285</span>
+<span class="normal">2286</span>
+<span class="normal">2287</span>
+<span class="normal">2288</span>
+<span class="normal">2289</span>
+<span class="normal">2290</span>
+<span class="normal">2291</span>
+<span class="normal">2292</span>
+<span class="normal">2293</span>
+<span class="normal">2294</span>
+<span class="normal">2295</span>
+<span class="normal">2296</span>
+<span class="normal">2297</span>
+<span class="normal">2298</span>
+<span class="normal">2299</span>
+<span class="normal">2300</span>
+<span class="normal">2301</span>
+<span class="normal">2302</span>
+<span class="normal">2303</span>
+<span class="normal">2304</span>
+<span class="normal">2305</span>
+<span class="normal">2306</span>
+<span class="normal">2307</span>
+<span class="normal">2308</span>
+<span class="normal">2309</span>
+<span class="normal">2310</span>
+<span class="normal">2311</span>
+<span class="normal">2312</span>
+<span class="normal">2313</span>
+<span class="normal">2314</span>
+<span class="normal">2315</span>
+<span class="normal">2316</span>
+<span class="normal">2317</span>
+<span class="normal">2318</span>
+<span class="normal">2319</span>
+<span class="normal">2320</span>
+<span class="normal">2321</span>
+<span class="normal">2322</span>
+<span class="normal">2323</span>
+<span class="normal">2324</span>
+<span class="normal">2325</span>
+<span class="normal">2326</span>
+<span class="normal">2327</span>
+<span class="normal">2328</span>
+<span class="normal">2329</span>
+<span class="normal">2330</span>
+<span class="normal">2331</span>
+<span class="normal">2332</span>
+<span class="normal">2333</span>
+<span class="normal">2334</span>
+<span class="normal">2335</span>
+<span class="normal">2336</span>
+<span class="normal">2337</span>
+<span class="normal">2338</span>
+<span class="normal">2339</span>
+<span class="normal">2340</span>
+<span class="normal">2341</span>
+<span class="normal">2342</span>
+<span class="normal">2343</span>
+<span class="normal">2344</span>
+<span class="normal">2345</span>
+<span class="normal">2346</span>
+<span class="normal">2347</span>
+<span class="normal">2348</span>
+<span class="normal">2349</span>
+<span class="normal">2350</span>
+<span class="normal">2351</span>
+<span class="normal">2352</span>
+<span class="normal">2353</span>
+<span class="normal">2354</span>
+<span class="normal">2355</span>
+<span class="normal">2356</span>
+<span class="normal">2357</span>
+<span class="normal">2358</span>
+<span class="normal">2359</span>
+<span class="normal">2360</span>
+<span class="normal">2361</span>
+<span class="normal">2362</span>
+<span class="normal">2363</span>
+<span class="normal">2364</span>
+<span class="normal">2365</span>
+<span class="normal">2366</span>
+<span class="normal">2367</span>
+<span class="normal">2368</span>
+<span class="normal">2369</span>
+<span class="normal">2370</span>
+<span class="normal">2371</span>
+<span class="normal">2372</span>
+<span class="normal">2373</span>
+<span class="normal">2374</span>
+<span class="normal">2375</span>
+<span class="normal">2376</span>
+<span class="normal">2377</span>
+<span class="normal">2378</span>
+<span class="normal">2379</span>
+<span class="normal">2380</span>
+<span class="normal">2381</span>
+<span class="normal">2382</span>
+<span class="normal">2383</span>
+<span class="normal">2384</span>
+<span class="normal">2385</span>
+<span class="normal">2386</span>
+<span class="normal">2387</span>
+<span class="normal">2388</span>
+<span class="normal">2389</span>
+<span class="normal">2390</span>
+<span class="normal">2391</span>
+<span class="normal">2392</span>
+<span class="normal">2393</span>
+<span class="normal">2394</span>
+<span class="normal">2395</span>
+<span class="normal">2396</span>
+<span class="normal">2397</span>
+<span class="normal">2398</span>
+<span class="normal">2399</span>
+<span class="normal">2400</span>
+<span class="normal">2401</span>
+<span class="normal">2402</span>
+<span class="normal">2403</span>
+<span class="normal">2404</span>
+<span class="normal">2405</span>
+<span class="normal">2406</span>
+<span class="normal">2407</span>
+<span class="normal">2408</span>
+<span class="normal">2409</span>
+<span class="normal">2410</span>
+<span class="normal">2411</span>
+<span class="normal">2412</span>
+<span class="normal">2413</span>
+<span class="normal">2414</span>
+<span class="normal">2415</span>
+<span class="normal">2416</span>
+<span class="normal">2417</span>
+<span class="normal">2418</span>
+<span class="normal">2419</span>
+<span class="normal">2420</span>
+<span class="normal">2421</span>
+<span class="normal">2422</span>
+<span class="normal">2423</span>
+<span class="normal">2424</span>
+<span class="normal">2425</span>
+<span class="normal">2426</span>
+<span class="normal">2427</span>
+<span class="normal">2428</span>
+<span class="normal">2429</span>
+<span class="normal">2430</span>
+<span class="normal">2431</span>
+<span class="normal">2432</span>
+<span class="normal">2433</span>
+<span class="normal">2434</span>
+<span class="normal">2435</span>
+<span class="normal">2436</span>
+<span class="normal">2437</span>
+<span class="normal">2438</span>
+<span class="normal">2439</span>
+<span class="normal">2440</span>
+<span class="normal">2441</span>
+<span class="normal">2442</span>
+<span class="normal">2443</span>
+<span class="normal">2444</span>
+<span class="normal">2445</span>
+<span class="normal">2446</span>
+<span class="normal">2447</span>
+<span class="normal">2448</span>
+<span class="normal">2449</span>
+<span class="normal">2450</span>
+<span class="normal">2451</span>
+<span class="normal">2452</span>
+<span class="normal">2453</span>
+<span class="normal">2454</span>
+<span class="normal">2455</span>
+<span class="normal">2456</span>
+<span class="normal">2457</span>
+<span class="normal">2458</span>
+<span class="normal">2459</span>
+<span class="normal">2460</span>
+<span class="normal">2461</span>
+<span class="normal">2462</span>
+<span class="normal">2463</span>
+<span class="normal">2464</span>
+<span class="normal">2465</span>
+<span class="normal">2466</span>
+<span class="normal">2467</span>
+<span class="normal">2468</span>
+<span class="normal">2469</span>
+<span class="normal">2470</span>
+<span class="normal">2471</span>
+<span class="normal">2472</span>
+<span class="normal">2473</span>
+<span class="normal">2474</span>
+<span class="normal">2475</span>
+<span class="normal">2476</span>
+<span class="normal">2477</span>
+<span class="normal">2478</span>
+<span class="normal">2479</span>
+<span class="normal">2480</span>
+<span class="normal">2481</span>
+<span class="normal">2482</span>
+<span class="normal">2483</span>
+<span class="normal">2484</span>
+<span class="normal">2485</span>
+<span class="normal">2486</span>
+<span class="normal">2487</span>
+<span class="normal">2488</span>
+<span class="normal">2489</span>
+<span class="normal">2490</span>
+<span class="normal">2491</span>
+<span class="normal">2492</span>
+<span class="normal">2493</span>
+<span class="normal">2494</span>
+<span class="normal">2495</span>
+<span class="normal">2496</span>
+<span class="normal">2497</span>
+<span class="normal">2498</span>
+<span class="normal">2499</span>
+<span class="normal">2500</span>
+<span class="normal">2501</span>
+<span class="normal">2502</span>
+<span class="normal">2503</span>
+<span class="normal">2504</span>
+<span class="normal">2505</span>
+<span class="normal">2506</span>
+<span class="normal">2507</span>
+<span class="normal">2508</span>
+<span class="normal">2509</span>
+<span class="normal">2510</span>
+<span class="normal">2511</span>
+<span class="normal">2512</span>
+<span class="normal">2513</span>
+<span class="normal">2514</span>
+<span class="normal">2515</span>
+<span class="normal">2516</span>
+<span class="normal">2517</span>
+<span class="normal">2518</span>
+<span class="normal">2519</span>
+<span class="normal">2520</span>
+<span class="normal">2521</span>
+<span class="normal">2522</span>
+<span class="normal">2523</span>
+<span class="normal">2524</span>
+<span class="normal">2525</span>
+<span class="normal">2526</span>
+<span class="normal">2527</span>
+<span class="normal">2528</span>
+<span class="normal">2529</span>
+<span class="normal">2530</span>
+<span class="normal">2531</span>
+<span class="normal">2532</span>
+<span class="normal">2533</span>
+<span class="normal">2534</span>
+<span class="normal">2535</span>
+<span class="normal">2536</span>
+<span class="normal">2537</span>
+<span class="normal">2538</span>
+<span class="normal">2539</span>
+<span class="normal">2540</span>
+<span class="normal">2541</span>
+<span class="normal">2542</span>
+<span class="normal">2543</span>
+<span class="normal">2544</span>
+<span class="normal">2545</span>
+<span class="normal">2546</span>
+<span class="normal">2547</span>
+<span class="normal">2548</span>
+<span class="normal">2549</span>
+<span class="normal">2550</span>
+<span class="normal">2551</span>
+<span class="normal">2552</span>
+<span class="normal">2553</span>
+<span class="normal">2554</span>
+<span class="normal">2555</span>
+<span class="normal">2556</span>
+<span class="normal">2557</span>
+<span class="normal">2558</span>
+<span class="normal">2559</span>
+<span class="normal">2560</span>
+<span class="normal">2561</span>
+<span class="normal">2562</span>
+<span class="normal">2563</span>
+<span class="normal">2564</span>
+<span class="normal">2565</span>
+<span class="normal">2566</span>
+<span class="normal">2567</span>
+<span class="normal">2568</span>
+<span class="normal">2569</span>
+<span class="normal">2570</span>
+<span class="normal">2571</span>
+<span class="normal">2572</span>
+<span class="normal">2573</span>
+<span class="normal">2574</span>
+<span class="normal">2575</span>
+<span class="normal">2576</span>
+<span class="normal">2577</span>
+<span class="normal">2578</span>
+<span class="normal">2579</span>
+<span class="normal">2580</span>
+<span class="normal">2581</span>
+<span class="normal">2582</span>
+<span class="normal">2583</span>
+<span class="normal">2584</span>
+<span class="normal">2585</span>
+<span class="normal">2586</span>
+<span class="normal">2587</span>
+<span class="normal">2588</span>
+<span class="normal">2589</span>
+<span class="normal">2590</span>
+<span class="normal">2591</span>
+<span class="normal">2592</span>
+<span class="normal">2593</span>
+<span class="normal">2594</span>
+<span class="normal">2595</span>
+<span class="normal">2596</span>
+<span class="normal">2597</span>
+<span class="normal">2598</span>
+<span class="normal">2599</span>
+<span class="normal">2600</span>
+<span class="normal">2601</span>
+<span class="normal">2602</span>
+<span class="normal">2603</span>
+<span class="normal">2604</span>
+<span class="normal">2605</span>
+<span class="normal">2606</span>
+<span class="normal">2607</span>
+<span class="normal">2608</span>
+<span class="normal">2609</span>
+<span class="normal">2610</span>
+<span class="normal">2611</span>
+<span class="normal">2612</span>
+<span class="normal">2613</span>
+<span class="normal">2614</span>
+<span class="normal">2615</span>
+<span class="normal">2616</span>
+<span class="normal">2617</span>
+<span class="normal">2618</span>
+<span class="normal">2619</span>
+<span class="normal">2620</span>
+<span class="normal">2621</span>
+<span class="normal">2622</span>
+<span class="normal">2623</span>
+<span class="normal">2624</span>
+<span class="normal">2625</span>
+<span class="normal">2626</span>
+<span class="normal">2627</span>
+<span class="normal">2628</span>
+<span class="normal">2629</span>
+<span class="normal">2630</span>
+<span class="normal">2631</span>
+<span class="normal">2632</span>
+<span class="normal">2633</span>
+<span class="normal">2634</span>
+<span class="normal">2635</span>
+<span class="normal">2636</span>
+<span class="normal">2637</span>
+<span class="normal">2638</span>
+<span class="normal">2639</span>
+<span class="normal">2640</span>
+<span class="normal">2641</span>
+<span class="normal">2642</span>
+<span class="normal">2643</span>
+<span class="normal">2644</span>
+<span class="normal">2645</span>
+<span class="normal">2646</span>
+<span class="normal">2647</span>
+<span class="normal">2648</span>
+<span class="normal">2649</span>
+<span class="normal">2650</span>
+<span class="normal">2651</span>
+<span class="normal">2652</span>
+<span class="normal">2653</span>
+<span class="normal">2654</span>
+<span class="normal">2655</span>
+<span class="normal">2656</span>
+<span class="normal">2657</span>
+<span class="normal">2658</span>
+<span class="normal">2659</span>
+<span class="normal">2660</span>
+<span class="normal">2661</span>
+<span class="normal">2662</span>
+<span class="normal">2663</span>
+<span class="normal">2664</span>
+<span class="normal">2665</span>
+<span class="normal">2666</span>
+<span class="normal">2667</span>
+<span class="normal">2668</span>
+<span class="normal">2669</span>
+<span class="normal">2670</span>
+<span class="normal">2671</span>
+<span class="normal">2672</span>
+<span class="normal">2673</span>
+<span class="normal">2674</span>
+<span class="normal">2675</span>
+<span class="normal">2676</span>
+<span class="normal">2677</span>
+<span class="normal">2678</span>
+<span class="normal">2679</span>
+<span class="normal">2680</span>
+<span class="normal">2681</span>
+<span class="normal">2682</span>
+<span class="normal">2683</span>
+<span class="normal">2684</span>
+<span class="normal">2685</span>
+<span class="normal">2686</span>
+<span class="normal">2687</span>
+<span class="normal">2688</span>
+<span class="normal">2689</span>
+<span class="normal">2690</span>
+<span class="normal">2691</span>
+<span class="normal">2692</span>
+<span class="normal">2693</span>
+<span class="normal">2694</span>
+<span class="normal">2695</span>
+<span class="normal">2696</span>
+<span class="normal">2697</span>
+<span class="normal">2698</span>
+<span class="normal">2699</span>
+<span class="normal">2700</span>
+<span class="normal">2701</span>
+<span class="normal">2702</span>
+<span class="normal">2703</span>
+<span class="normal">2704</span>
+<span class="normal">2705</span>
+<span class="normal">2706</span>
+<span class="normal">2707</span>
+<span class="normal">2708</span>
+<span class="normal">2709</span>
+<span class="normal">2710</span>
+<span class="normal">2711</span>
+<span class="normal">2712</span>
+<span class="normal">2713</span>
+<span class="normal">2714</span>
+<span class="normal">2715</span>
+<span class="normal">2716</span>
+<span class="normal">2717</span>
+<span class="normal">2718</span>
+<span class="normal">2719</span>
+<span class="normal">2720</span>
+<span class="normal">2721</span>
+<span class="normal">2722</span>
+<span class="normal">2723</span>
+<span class="normal">2724</span>
+<span class="normal">2725</span>
+<span class="normal">2726</span>
+<span class="normal">2727</span>
+<span class="normal">2728</span>
+<span class="normal">2729</span>
+<span class="normal">2730</span>
+<span class="normal">2731</span>
+<span class="normal">2732</span>
+<span class="normal">2733</span>
+<span class="normal">2734</span>
+<span class="normal">2735</span>
+<span class="normal">2736</span>
+<span class="normal">2737</span>
+<span class="normal">2738</span>
+<span class="normal">2739</span>
+<span class="normal">2740</span>
+<span class="normal">2741</span>
+<span class="normal">2742</span>
+<span class="normal">2743</span>
+<span class="normal">2744</span>
+<span class="normal">2745</span>
+<span class="normal">2746</span>
+<span class="normal">2747</span>
+<span class="normal">2748</span>
+<span class="normal">2749</span>
+<span class="normal">2750</span>
+<span class="normal">2751</span>
+<span class="normal">2752</span>
+<span class="normal">2753</span>
+<span class="normal">2754</span>
+<span class="normal">2755</span>
+<span class="normal">2756</span>
+<span class="normal">2757</span>
+<span class="normal">2758</span>
+<span class="normal">2759</span>
+<span class="normal">2760</span>
+<span class="normal">2761</span>
+<span class="normal">2762</span>
+<span class="normal">2763</span>
+<span class="normal">2764</span>
+<span class="normal">2765</span>
+<span class="normal">2766</span>
+<span class="normal">2767</span>
+<span class="normal">2768</span>
+<span class="normal">2769</span>
+<span class="normal">2770</span>
+<span class="normal">2771</span>
+<span class="normal">2772</span>
+<span class="normal">2773</span>
+<span class="normal">2774</span>
+<span class="normal">2775</span>
+<span class="normal">2776</span>
+<span class="normal">2777</span>
+<span class="normal">2778</span>
+<span class="normal">2779</span>
+<span class="normal">2780</span>
+<span class="normal">2781</span>
+<span class="normal">2782</span>
+<span class="normal">2783</span>
+<span class="normal">2784</span>
+<span class="normal">2785</span>
+<span class="normal">2786</span>
+<span class="normal">2787</span>
+<span class="normal">2788</span>
+<span class="normal">2789</span>
+<span class="normal">2790</span>
+<span class="normal">2791</span>
+<span class="normal">2792</span>
+<span class="normal">2793</span>
+<span class="normal">2794</span>
+<span class="normal">2795</span>
+<span class="normal">2796</span>
+<span class="normal">2797</span>
+<span class="normal">2798</span>
+<span class="normal">2799</span>
+<span class="normal">2800</span>
+<span class="normal">2801</span>
+<span class="normal">2802</span>
+<span class="normal">2803</span>
+<span class="normal">2804</span>
+<span class="normal">2805</span>
+<span class="normal">2806</span>
+<span class="normal">2807</span>
+<span class="normal">2808</span>
+<span class="normal">2809</span>
+<span class="normal">2810</span>
+<span class="normal">2811</span>
+<span class="normal">2812</span>
+<span class="normal">2813</span>
+<span class="normal">2814</span>
+<span class="normal">2815</span>
+<span class="normal">2816</span>
+<span class="normal">2817</span>
+<span class="normal">2818</span>
+<span class="normal">2819</span>
+<span class="normal">2820</span>
+<span class="normal">2821</span>
+<span class="normal">2822</span>
+<span class="normal">2823</span>
+<span class="normal">2824</span>
+<span class="normal">2825</span>
+<span class="normal">2826</span>
+<span class="normal">2827</span>
+<span class="normal">2828</span>
+<span class="normal">2829</span>
+<span class="normal">2830</span>
+<span class="normal">2831</span>
+<span class="normal">2832</span>
+<span class="normal">2833</span>
+<span class="normal">2834</span>
+<span class="normal">2835</span>
+<span class="normal">2836</span>
+<span class="normal">2837</span>
+<span class="normal">2838</span>
+<span class="normal">2839</span>
+<span class="normal">2840</span>
+<span class="normal">2841</span>
+<span class="normal">2842</span>
+<span class="normal">2843</span>
+<span class="normal">2844</span>
+<span class="normal">2845</span>
+<span class="normal">2846</span>
+<span class="normal">2847</span>
+<span class="normal">2848</span>
+<span class="normal">2849</span>
+<span class="normal">2850</span>
+<span class="normal">2851</span>
+<span class="normal">2852</span>
+<span class="normal">2853</span>
+<span class="normal">2854</span>
+<span class="normal">2855</span>
+<span class="normal">2856</span>
+<span class="normal">2857</span>
+<span class="normal">2858</span>
+<span class="normal">2859</span>
+<span class="normal">2860</span>
+<span class="normal">2861</span>
+<span class="normal">2862</span>
+<span class="normal">2863</span>
+<span class="normal">2864</span>
+<span class="normal">2865</span>
+<span class="normal">2866</span>
+<span class="normal">2867</span>
+<span class="normal">2868</span>
+<span class="normal">2869</span>
+<span class="normal">2870</span>
+<span class="normal">2871</span>
+<span class="normal">2872</span>
+<span class="normal">2873</span>
+<span class="normal">2874</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* GTK - The GIMP Toolkit</span>
+<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2000 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General Public</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02111-1307, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> */</span>
+<a id="line-20" name="line-20"></a>
+<a id="line-21" name="line-21"></a><span class="cm">/*</span>
+<a id="line-22" name="line-22"></a><span class="cm"> * Modified by the GTK+ Team and others 1997-2001. See the AUTHORS</span>
+<a id="line-23" name="line-23"></a><span class="cm"> * file for a list of people on the GTK+ Team. See the ChangeLog</span>
+<a id="line-24" name="line-24"></a><span class="cm"> * files for a list of changes. These files are distributed with</span>
+<a id="line-25" name="line-25"></a><span class="cm"> * GTK+ at ftp://ftp.gtk.org/pub/gtk/.</span>
+<a id="line-26" name="line-26"></a><span class="cm"> */</span>
+<a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-29" name="line-29"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;private.h&quot;</span>
+<a id="line-30" name="line-30"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;math.h&gt;</span><span class="error2">&lt;--- Include file: <math.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-31" name="line-31"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-32" name="line-32"></a>
+<a id="line-33" name="line-33"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdkx.h&gt;</span><span class="error2">&lt;--- Include file: <gdk/gdkx.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-34" name="line-34"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gdk/gdkkeysyms.h&gt;</span><span class="error2">&lt;--- Include file: <gdk/gdkkeysyms.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-35" name="line-35"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-36" name="line-36"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n-lib.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n-lib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-37" name="line-37"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;mate-colorsel.h&quot;</span>
+<a id="line-38" name="line-38"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;mate-hsv.h&quot;</span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="cp">#define DEFAULT_COLOR_PALETTE &quot;#ef2929:#fcaf3e:#fce94f:#8ae234:#729fcf:#ad7fa8:#e9b96e:#888a85:#eeeeec:#cc0000:#f57900:#edd400:#73d216:#3465a4:#75507b:#c17d11:#555753:#d3d7cf:#a40000:#ce5c00:#c4a000:#4e9a06:#204a87:#5c3566:#8f5902:#2e3436:#babdb6:#000000:#2e3436:#555753:#888a85:#babdb6:#d3d7cf:#eeeeec:#f3f3f3:#ffffff&quot;</span>
+<a id="line-41" name="line-41"></a>
+<a id="line-42" name="line-42"></a><span class="cm">/* Number of elements in the custom palatte */</span>
+<a id="line-43" name="line-43"></a><span class="cp">#define GTK_CUSTOM_PALETTE_WIDTH 9</span>
+<a id="line-44" name="line-44"></a><span class="cp">#define GTK_CUSTOM_PALETTE_HEIGHT 4</span>
+<a id="line-45" name="line-45"></a>
+<a id="line-46" name="line-46"></a><span class="cp">#define CUSTOM_PALETTE_ENTRY_WIDTH 20</span>
+<a id="line-47" name="line-47"></a><span class="cp">#define CUSTOM_PALETTE_ENTRY_HEIGHT 20</span>
+<a id="line-48" name="line-48"></a>
+<a id="line-49" name="line-49"></a><span class="cm">/* The cursor for the dropper */</span>
+<a id="line-50" name="line-50"></a><span class="cp">#define DROPPER_WIDTH 16</span>
+<a id="line-51" name="line-51"></a><span class="cp">#define DROPPER_HEIGHT 16</span>
+<a id="line-52" name="line-52"></a><span class="cp">#define DROPPER_STRIDE 64</span>
+<a id="line-53" name="line-53"></a><span class="cp">#define DROPPER_X_HOT 2</span>
+<a id="line-54" name="line-54"></a><span class="cp">#define DROPPER_Y_HOT 16</span>
+<a id="line-55" name="line-55"></a>
+<a id="line-56" name="line-56"></a><span class="cp">#define CHECK_SIZE 16</span>
+<a id="line-57" name="line-57"></a><span class="cp">#define BIG_STEP 20</span>
+<a id="line-58" name="line-58"></a>
+<a id="line-59" name="line-59"></a><span class="cm">/* Conversion between 0-&gt;1 double and and guint16. See</span>
+<a id="line-60" name="line-60"></a><span class="cm"> * scale_round() below for more general conversions</span>
+<a id="line-61" name="line-61"></a><span class="cm"> */</span>
+<a id="line-62" name="line-62"></a><span class="cp">#define SCALE(i) (i / 65535.)</span>
+<a id="line-63" name="line-63"></a><span class="cp">#define UNSCALE(d) ((guint16)(d * 65535 + 0.5))</span>
+<a id="line-64" name="line-64"></a><span class="cp">#define INTENSITY(r, g, b) ((r) * 0.30 + (g) * 0.59 + (b) * 0.11)</span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span>
+<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">COLOR_CHANGED</span><span class="p">,</span>
+<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">LAST_SIGNAL</span>
+<a id="line-69" name="line-69"></a><span class="p">};</span>
+<a id="line-70" name="line-70"></a>
+<a id="line-71" name="line-71"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span>
+<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">PROP_0</span><span class="p">,</span>
+<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">PROP_HAS_PALETTE</span><span class="p">,</span>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">PROP_HAS_OPACITY_CONTROL</span><span class="p">,</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">PROP_CURRENT_RGBA</span><span class="p">,</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">PROP_CURRENT_ALPHA</span><span class="p">,</span>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">PROP_HEX_STRING</span>
+<a id="line-78" name="line-78"></a><span class="p">};</span>
+<a id="line-79" name="line-79"></a>
+<a id="line-80" name="line-80"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">COLORSEL_RED</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span>
+<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">COLORSEL_GREEN</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span>
+<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">COLORSEL_BLUE</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span>
+<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">COLORSEL_OPACITY</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">3</span><span class="p">,</span>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">COLORSEL_HUE</span><span class="p">,</span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">COLORSEL_SATURATION</span><span class="p">,</span>
+<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">COLORSEL_VALUE</span><span class="p">,</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">COLORSEL_NUM_CHANNELS</span>
+<a id="line-89" name="line-89"></a><span class="p">};</span>
+<a id="line-90" name="line-90"></a>
+<a id="line-91" name="line-91"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_MateColorSelectionPrivate</span>
+<a id="line-92" name="line-92"></a><span class="p">{</span>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">has_opacity</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-94" name="line-94"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">has_palette</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">changing</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-96" name="line-96"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">default_set</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">default_alpha_set</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">has_grab</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-99" name="line-99"></a>
+<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_NUM_CHANNELS</span><span class="p">];</span>
+<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">old_color</span><span class="p">[</span><span class="n">COLORSEL_NUM_CHANNELS</span><span class="p">];</span>
+<a id="line-102" name="line-102"></a>
+<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">triangle_colorsel</span><span class="p">;</span>
+<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">hue_spinbutton</span><span class="p">;</span>
+<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">sat_spinbutton</span><span class="p">;</span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">val_spinbutton</span><span class="p">;</span>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">red_spinbutton</span><span class="p">;</span>
+<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">green_spinbutton</span><span class="p">;</span>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">blue_spinbutton</span><span class="p">;</span>
+<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">opacity_slider</span><span class="p">;</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">opacity_label</span><span class="p">;</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">opacity_entry</span><span class="p">;</span>
+<a id="line-113" name="line-113"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">palette_frame</span><span class="p">;</span>
+<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">hex_entry</span><span class="p">;</span>
+<a id="line-115" name="line-115"></a>
+<a id="line-116" name="line-116"></a><span class="w"> </span><span class="cm">/* The Palette code */</span>
+<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">custom_palette</span><span class="w"> </span><span class="p">[</span><span class="n">GTK_CUSTOM_PALETTE_WIDTH</span><span class="p">][</span><span class="n">GTK_CUSTOM_PALETTE_HEIGHT</span><span class="p">];</span>
+<a id="line-118" name="line-118"></a>
+<a id="line-119" name="line-119"></a><span class="w"> </span><span class="cm">/* The color_sample stuff */</span>
+<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">sample_area</span><span class="p">;</span>
+<a id="line-121" name="line-121"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">old_sample</span><span class="p">;</span>
+<a id="line-122" name="line-122"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">cur_sample</span><span class="p">;</span>
+<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">;</span>
+<a id="line-124" name="line-124"></a>
+<a id="line-125" name="line-125"></a><span class="w"> </span><span class="cm">/* Window for grabbing on */</span>
+<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dropper_grab_widget</span><span class="p">;</span>
+<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">grab_time</span><span class="p">;</span>
+<a id="line-128" name="line-128"></a>
+<a id="line-129" name="line-129"></a><span class="w"> </span><span class="cm">/* Connection to settings */</span>
+<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">gulong</span><span class="w"> </span><span class="n">settings_connection</span><span class="p">;</span>
+<a id="line-131" name="line-131"></a><span class="p">};</span>
+<a id="line-132" name="line-132"></a>
+<a id="line-133" name="line-133"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">mate_color_selection_dispose</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">);</span>
+<a id="line-134" name="line-134"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">mate_color_selection_finalize</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">);</span>
+<a id="line-135" name="line-135"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">update_color</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-136" name="line-136"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">mate_color_selection_set_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span>
+<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span>
+<a id="line-138" name="line-138"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">);</span>
+<a id="line-140" name="line-140"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">mate_color_selection_get_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span>
+<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span>
+<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span>
+<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">);</span>
+<a id="line-144" name="line-144"></a>
+<a id="line-145" name="line-145"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">mate_color_selection_realize</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-146" name="line-146"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">mate_color_selection_unrealize</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-147" name="line-147"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">mate_color_selection_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-148" name="line-148"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_color_selection_grab_broken</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-149" name="line-149"></a><span class="w"> </span><span class="n">GdkEventGrabBroken</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">);</span>
+<a id="line-150" name="line-150"></a>
+<a id="line-151" name="line-151"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">mate_color_selection_set_palette_color</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">index</span><span class="p">,</span>
+<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">);</span>
+<a id="line-154" name="line-154"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">default_noscreen_change_palette_func</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">colors</span><span class="p">,</span>
+<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">n_colors</span><span class="p">);</span>
+<a id="line-156" name="line-156"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">default_change_palette_func</span><span class="w"> </span><span class="p">(</span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-157" name="line-157"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">colors</span><span class="p">,</span>
+<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">n_colors</span><span class="p">);</span>
+<a id="line-159" name="line-159"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">make_control_relations</span><span class="w"> </span><span class="p">(</span><span class="n">AtkObject</span><span class="w"> </span><span class="o">*</span><span class="n">atk_obj</span><span class="p">,</span>
+<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-161" name="line-161"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">make_all_relations</span><span class="w"> </span><span class="p">(</span><span class="n">AtkObject</span><span class="w"> </span><span class="o">*</span><span class="n">atk_obj</span><span class="p">,</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">);</span>
+<a id="line-163" name="line-163"></a>
+<a id="line-164" name="line-164"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">hsv_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="p">,</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">);</span>
+<a id="line-166" name="line-166"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">get_screen_color</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">button</span><span class="p">);</span>
+<a id="line-167" name="line-167"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">adjustment_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAdjustment</span><span class="w"> </span><span class="o">*</span><span class="n">adjustment</span><span class="p">,</span>
+<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">);</span>
+<a id="line-169" name="line-169"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">opacity_entry_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">opacity_entry</span><span class="p">,</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">);</span>
+<a id="line-171" name="line-171"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">hex_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">hex_entry</span><span class="p">,</span>
+<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">);</span>
+<a id="line-173" name="line-173"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">hex_focus_out</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">hex_entry</span><span class="p">,</span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">GdkEventFocus</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">);</span>
+<a id="line-176" name="line-176"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">color_sample_new</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-177" name="line-177"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">make_label_spinbutton</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">**</span><span class="n">spinbutton</span><span class="p">,</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">,</span>
+<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">grid</span><span class="p">,</span>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">i</span><span class="p">,</span>
+<a id="line-182" name="line-182"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">j</span><span class="p">,</span>
+<a id="line-183" name="line-183"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">channel_type</span><span class="p">,</span>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">tooltip</span><span class="p">);</span>
+<a id="line-185" name="line-185"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">make_palette_frame</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">grid</span><span class="p">,</span>
+<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">i</span><span class="p">,</span>
+<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">j</span><span class="p">);</span>
+<a id="line-189" name="line-189"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">set_selected_palette</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x</span><span class="p">,</span>
+<a id="line-191" name="line-191"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">y</span><span class="p">);</span>
+<a id="line-192" name="line-192"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">set_focus_line_attributes</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">drawing_area</span><span class="p">,</span>
+<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">cr</span><span class="p">,</span>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">focus_width</span><span class="p">);</span>
+<a id="line-195" name="line-195"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">mouse_press</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">invisible</span><span class="p">,</span>
+<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">GdkEventButton</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">);</span>
+<a id="line-198" name="line-198"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">palette_change_notify_instance</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">,</span>
+<a id="line-200" name="line-200"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">);</span>
+<a id="line-201" name="line-201"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">update_palette</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-202" name="line-202"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">shutdown_eyedropper</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-203" name="line-203"></a>
+<a id="line-204" name="line-204"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">color_selection_signals</span><span class="p">[</span><span class="n">LAST_SIGNAL</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="p">};</span>
+<a id="line-205" name="line-205"></a>
+<a id="line-206" name="line-206"></a><span class="k">static</span><span class="w"> </span><span class="n">MateColorSelectionChangePaletteFunc</span><span class="w"> </span><span class="n">noscreen_change_palette_hook</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">default_noscreen_change_palette_func</span><span class="p">;</span>
+<a id="line-207" name="line-207"></a><span class="k">static</span><span class="w"> </span><span class="n">MateColorSelectionChangePaletteWithScreenFunc</span><span class="w"> </span><span class="n">change_palette_hook</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">default_change_palette_func</span><span class="p">;</span>
+<a id="line-208" name="line-208"></a>
+<a id="line-209" name="line-209"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="n">dropper_bits</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span>
+<a id="line-210" name="line-210"></a><span class="s">&quot;</span><span class="se">\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0</span><span class="s">&quot;</span>
+<a id="line-211" name="line-211"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0</span><span class="s">&quot;</span>
+<a id="line-212" name="line-212"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0</span><span class="s">&quot;</span>
+<a id="line-213" name="line-213"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0</span><span class="s">&quot;</span>
+<a id="line-214" name="line-214"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0</span><span class="s">&quot;</span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\0</span><span class="s">U</span><span class="se">\35\35\35\373\40\40\40\350\0\0\0</span><span class="s">&quot;&quot;6</span><span class="se">\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0</span><span class="s">&quot;</span>
+<a id="line-216" name="line-216"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\&quot;\0\0\0\265</span><span class="s">&quot;</span>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\0\0\0\373\233\233\233\377\233\233\233\377\0\0\0\351\0\0\0\0\0\0\0\0</span><span class="s">&quot;</span>
+<a id="line-218" name="line-218"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0</span><span class="s">&quot;</span>
+<a id="line-219" name="line-219"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\0</span><span class="s">y</span><span class="se">\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\375\0\0\0\0\0\0\0\0</span><span class="s">&quot;</span>
+<a id="line-220" name="line-220"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0</span><span class="s">&quot;</span>
+<a id="line-221" name="line-221"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\0</span><span class="s">U555</span><span class="se">\374\0\0\0\377\0\0\0\377\0\0\0\366\0\0\0</span><span class="s">t</span><span class="se">\0\0\0\15\0\0\0\0\0\0</span><span class="s">&quot;</span>
+<a id="line-222" name="line-222"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0</span><span class="s">=EEE</span><span class="se">\377\362</span><span class="s">&quot;</span>
+<a id="line-223" name="line-223"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\362\362\377</span><span class="s">HHH</span><span class="se">\377\0\0\0\377\0\0\0\332\0\0\0</span><span class="s">.</span><span class="se">\0\0\0\6\0\0\0\0\0\0\0</span><span class="s">&quot;</span>
+<a id="line-224" name="line-224"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0</span><span class="s">=ddd</span><span class="se">\370\352\352\352</span><span class="s">&quot;</span>
+<a id="line-225" name="line-225"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\377</span><span class="s">xxx</span><span class="se">\377\5\5\5\305\0\0\0\256\0\0\0</span><span class="s">q</span><span class="se">\0\0\0\15\0\0\0\0\0\0\0\0\0\0\0</span><span class="s">&quot;</span>
+<a id="line-226" name="line-226"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0</span><span class="s">=EEE</span><span class="se">\377\353\353\353\377\206</span><span class="s">&quot;</span>
+<a id="line-227" name="line-227"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\206\206\377\2\2\2\311\1\1\1</span><span class="s">=</span><span class="se">\0\0\0</span><span class="s">@</span><span class="se">\0\0\0</span><span class="s">-</span><span class="se">\0\0\0\4\0\0\0\0\0\0\0\0\0</span><span class="s">&quot;</span>
+<a id="line-228" name="line-228"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0</span><span class="s">=ddd</span><span class="se">\370\354\354\354\377</span><span class="s">xxx</span><span class="se">\377\2</span><span class="s">&quot;</span>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\2\2\311\0\0\0\77\0\0\0\21\0\0\0\14\0\0\0\10\0\0\0\0\0\0\0\0\0\0\0\0</span><span class="s">&quot;</span>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0</span><span class="s">&lt;EEE</span><span class="se">\377\354\354\354\377\206\206\206\377</span><span class="s">&quot;</span>
+<a id="line-231" name="line-231"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\2\2\2\311\2\2\2</span><span class="s">&quot;&quot;6</span><span class="se">\0\0\0\20\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0</span><span class="s">&quot;</span>
+<a id="line-232" name="line-232"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\316\374\374\374\377</span><span class="s">yyy</span><span class="se">\377\2\2</span><span class="s">&quot;</span>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\2\311\0\0\0\77\0\0\0\20\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0</span><span class="s">&quot;</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\32</span><span class="s">)))</span><span class="se">\351</span><span class="s">111</span><span class="se">\362\0\0\0\306\2\2\2</span><span class="s">&quot;&quot;6&quot;</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\0\0\0\20\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0</span><span class="s">&quot;</span>
+<a id="line-236" name="line-236"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\0\0\0\0\0\0\0\0\0\0\0\0\0\21\0\0\0</span><span class="s">j</span><span class="se">\0\0\0</span><span class="s">g</span><span class="se">\0\0\0</span><span class="s">&lt;</span><span class="se">\0\0\0\20\0\0\0\1\0</span><span class="s">&quot;</span>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0</span><span class="s">&quot;</span>
+<a id="line-238" name="line-238"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\0\0\0\0\0\0\0\0\11\0\0\0</span><span class="s">(</span><span class="se">\0\0\0\40\0\0\0\14\0\0\0\1\0\0\0\0\0\0\0\0</span><span class="s">&quot;</span>
+<a id="line-239" name="line-239"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0</span><span class="s">&quot;</span>
+<a id="line-240" name="line-240"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\0\0\0\0\0\0\0\0\0\3\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0</span><span class="s">&quot;</span>
+<a id="line-241" name="line-241"></a><span class="w"> </span><span class="s">&quot;</span><span class="se">\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0</span><span class="s">&quot;</span><span class="p">};</span>
+<a id="line-242" name="line-242"></a>
+<a id="line-243" name="line-243"></a><span class="hll"><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="p">,</span><span class="w"> </span><span class="n">mate_color_selection</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_BOX</span><span class="p">)</span><span class="error2">&lt;--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</span>
+</span><a id="line-244" name="line-244"></a>
+<a id="line-245" name="line-245"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-246" name="line-246"></a><span class="n">mate_color_selection_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelectionClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span>
+<a id="line-247" name="line-247"></a><span class="p">{</span>
+<a id="line-248" name="line-248"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">gobject_class</span><span class="p">;</span>
+<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">GtkWidgetClass</span><span class="w"> </span><span class="o">*</span><span class="n">widget_class</span><span class="p">;</span>
+<a id="line-250" name="line-250"></a>
+<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">gobject_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">klass</span><span class="p">);</span>
+<a id="line-252" name="line-252"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_color_selection_finalize</span><span class="p">;</span>
+<a id="line-253" name="line-253"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_color_selection_set_property</span><span class="p">;</span>
+<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_color_selection_get_property</span><span class="p">;</span>
+<a id="line-255" name="line-255"></a>
+<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">dispose</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_color_selection_dispose</span><span class="p">;</span>
+<a id="line-257" name="line-257"></a>
+<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">widget_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_WIDGET_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">klass</span><span class="p">);</span>
+<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-&gt;</span><span class="n">realize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_color_selection_realize</span><span class="p">;</span>
+<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-&gt;</span><span class="n">unrealize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_color_selection_unrealize</span><span class="p">;</span>
+<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-&gt;</span><span class="n">show_all</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_color_selection_show_all</span><span class="p">;</span>
+<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">widget_class</span><span class="o">-&gt;</span><span class="n">grab_broken_event</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_color_selection_grab_broken</span><span class="p">;</span>
+<a id="line-263" name="line-263"></a>
+<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">,</span>
+<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">PROP_HAS_OPACITY_CONTROL</span><span class="p">,</span>
+<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">g_param_spec_boolean</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;has-opacity-control&quot;</span><span class="p">,</span>
+<a id="line-267" name="line-267"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Has Opacity Control&quot;</span><span class="p">),</span>
+<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Whether the color selector should allow setting opacity&quot;</span><span class="p">),</span>
+<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span>
+<a id="line-270" name="line-270"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span>
+<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">,</span>
+<a id="line-272" name="line-272"></a><span class="w"> </span><span class="n">PROP_HAS_PALETTE</span><span class="p">,</span>
+<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">g_param_spec_boolean</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;has-palette&quot;</span><span class="p">,</span>
+<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Has palette&quot;</span><span class="p">),</span>
+<a id="line-275" name="line-275"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Whether a palette should be used&quot;</span><span class="p">),</span>
+<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span>
+<a id="line-277" name="line-277"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span>
+<a id="line-278" name="line-278"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">,</span>
+<a id="line-279" name="line-279"></a><span class="w"> </span><span class="n">PROP_CURRENT_RGBA</span><span class="p">,</span>
+<a id="line-280" name="line-280"></a><span class="w"> </span><span class="n">g_param_spec_boxed</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;current-rgba&quot;</span><span class="p">,</span>
+<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Current RGBA&quot;</span><span class="p">),</span>
+<a id="line-282" name="line-282"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;The current RGBA color&quot;</span><span class="p">),</span>
+<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">GDK_TYPE_RGBA</span><span class="p">,</span>
+<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="o">|</span>
+<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NAME</span><span class="o">|</span>
+<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_NICK</span><span class="o">|</span>
+<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">G_PARAM_STATIC_BLURB</span><span class="p">));</span>
+<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">,</span>
+<a id="line-289" name="line-289"></a><span class="w"> </span><span class="n">PROP_CURRENT_ALPHA</span><span class="p">,</span>
+<a id="line-290" name="line-290"></a><span class="w"> </span><span class="n">g_param_spec_uint</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;current-alpha&quot;</span><span class="p">,</span>
+<a id="line-291" name="line-291"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Current Alpha&quot;</span><span class="p">),</span>
+<a id="line-292" name="line-292"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;The current opacity value (0 fully transparent, 65535 fully opaque)&quot;</span><span class="p">),</span>
+<a id="line-293" name="line-293"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">65535</span><span class="p">,</span><span class="w"> </span><span class="mi">65535</span><span class="p">,</span>
+<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span>
+<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">,</span>
+<a id="line-296" name="line-296"></a><span class="w"> </span><span class="n">PROP_HEX_STRING</span><span class="p">,</span>
+<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;hex-string&quot;</span><span class="p">,</span>
+<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;HEX String&quot;</span><span class="p">),</span>
+<a id="line-299" name="line-299"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;The hexadecimal string of current color&quot;</span><span class="p">),</span>
+<a id="line-300" name="line-300"></a><span class="w"> </span><span class="s">&quot;&quot;</span><span class="p">,</span>
+<a id="line-301" name="line-301"></a><span class="w"> </span><span class="n">G_PARAM_READABLE</span><span class="p">));</span>
+<a id="line-302" name="line-302"></a>
+<a id="line-303" name="line-303"></a><span class="w"> </span><span class="n">color_selection_signals</span><span class="p">[</span><span class="n">COLOR_CHANGED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span>
+<a id="line-304" name="line-304"></a><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;color-changed&quot;</span><span class="p">,</span>
+<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS_TYPE</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">),</span>
+<a id="line-306" name="line-306"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_FIRST</span><span class="p">,</span>
+<a id="line-307" name="line-307"></a><span class="w"> </span><span class="n">G_STRUCT_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelectionClass</span><span class="p">,</span><span class="w"> </span><span class="n">color_changed</span><span class="p">),</span>
+<a id="line-308" name="line-308"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-309" name="line-309"></a><span class="w"> </span><span class="n">g_cclosure_marshal_VOID__VOID</span><span class="p">,</span>
+<a id="line-310" name="line-310"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-311" name="line-311"></a><span class="p">}</span>
+<a id="line-312" name="line-312"></a>
+<a id="line-313" name="line-313"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-314" name="line-314"></a><span class="n">mate_color_selection_init</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">)</span>
+<a id="line-315" name="line-315"></a><span class="p">{</span>
+<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">top_hbox</span><span class="p">;</span>
+<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">top_right_vbox</span><span class="p">;</span>
+<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">grid</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">hbox</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">frame</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">vbox</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">button</span><span class="p">;</span>
+<a id="line-319" name="line-319"></a><span class="w"> </span><span class="n">GtkAdjustment</span><span class="w"> </span><span class="o">*</span><span class="n">adjust</span><span class="p">;</span>
+<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">picker_image</span><span class="p">;</span>
+<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">j</span><span class="p">;</span>
+<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">AtkObject</span><span class="w"> </span><span class="o">*</span><span class="n">atk_obj</span><span class="p">;</span>
+<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">focus_chain</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-325" name="line-325"></a>
+<a id="line-326" name="line-326"></a><span class="w"> </span><span class="n">_mate_desktop_init_i18n</span><span class="w"> </span><span class="p">();</span>
+<a id="line-327" name="line-327"></a>
+<a id="line-328" name="line-328"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_color_selection_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-329" name="line-329"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">changing</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-330" name="line-330"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">default_set</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">default_alpha_set</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-332" name="line-332"></a>
+<a id="line-333" name="line-333"></a><span class="w"> </span><span class="n">top_hbox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_HORIZONTAL</span><span class="p">,</span><span class="w"> </span><span class="mi">12</span><span class="p">);</span>
+<a id="line-334" name="line-334"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">),</span><span class="w"> </span><span class="n">top_hbox</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-335" name="line-335"></a>
+<a id="line-336" name="line-336"></a><span class="w"> </span><span class="n">vbox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span>
+<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">triangle_colorsel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_hsv_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">triangle_colorsel</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;changed&quot;</span><span class="p">,</span>
+<a id="line-339" name="line-339"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">hsv_changed</span><span class="p">),</span><span class="w"> </span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-340" name="line-340"></a><span class="w"> </span><span class="n">mate_hsv_set_metrics</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_HSV</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">triangle_colorsel</span><span class="p">),</span><span class="w"> </span><span class="mi">174</span><span class="p">,</span><span class="w"> </span><span class="mi">15</span><span class="p">);</span>
+<a id="line-341" name="line-341"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">top_hbox</span><span class="p">),</span><span class="w"> </span><span class="n">vbox</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-342" name="line-342"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">vbox</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">triangle_colorsel</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">triangle_colorsel</span><span class="p">,</span>
+<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Select the color you want from the outer ring. Select the darkness or lightness of that color using the inner triangle.&quot;</span><span class="p">));</span>
+<a id="line-345" name="line-345"></a>
+<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">hbox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_HORIZONTAL</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span>
+<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">gtk_box_pack_end</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">vbox</span><span class="p">),</span><span class="w"> </span><span class="n">hbox</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-348" name="line-348"></a>
+<a id="line-349" name="line-349"></a><span class="w"> </span><span class="n">frame</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_frame_new</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-350" name="line-350"></a><span class="w"> </span><span class="n">gtk_widget_set_size_request</span><span class="w"> </span><span class="p">(</span><span class="n">frame</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="mi">30</span><span class="p">);</span>
+<a id="line-351" name="line-351"></a><span class="w"> </span><span class="n">gtk_frame_set_shadow_type</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_FRAME</span><span class="w"> </span><span class="p">(</span><span class="n">frame</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_SHADOW_IN</span><span class="p">);</span>
+<a id="line-352" name="line-352"></a><span class="w"> </span><span class="n">color_sample_new</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-353" name="line-353"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">frame</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">sample_area</span><span class="p">);</span>
+<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">hbox</span><span class="p">),</span><span class="w"> </span><span class="n">frame</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-355" name="line-355"></a>
+<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">button</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_button_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-357" name="line-357"></a>
+<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">gtk_widget_set_events</span><span class="w"> </span><span class="p">(</span><span class="n">button</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_POINTER_MOTION_MASK</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_POINTER_MOTION_HINT_MASK</span><span class="p">);</span>
+<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">button</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;COLORSEL&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-360" name="line-360"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">button</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;clicked&quot;</span><span class="p">,</span>
+<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">get_screen_color</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-362" name="line-362"></a><span class="w"> </span><span class="n">picker_image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;gtk-color-picker&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_BUTTON</span><span class="p">);</span>
+<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">button</span><span class="p">),</span><span class="w"> </span><span class="n">picker_image</span><span class="p">);</span>
+<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">picker_image</span><span class="p">));</span>
+<a id="line-365" name="line-365"></a><span class="w"> </span><span class="n">gtk_box_pack_end</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">hbox</span><span class="p">),</span><span class="w"> </span><span class="n">button</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-366" name="line-366"></a>
+<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">button</span><span class="p">,</span>
+<a id="line-368" name="line-368"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click the eyedropper, then click a color anywhere on your screen to select that color.&quot;</span><span class="p">));</span>
+<a id="line-369" name="line-369"></a>
+<a id="line-370" name="line-370"></a><span class="w"> </span><span class="n">top_right_vbox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span>
+<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">top_hbox</span><span class="p">),</span><span class="w"> </span><span class="n">top_right_vbox</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">grid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_grid_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-373" name="line-373"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">top_right_vbox</span><span class="p">),</span><span class="w"> </span><span class="n">grid</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">gtk_grid_set_row_spacing</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span>
+<a id="line-375" name="line-375"></a><span class="w"> </span><span class="n">gtk_grid_set_column_spacing</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="mi">12</span><span class="p">);</span>
+<a id="line-376" name="line-376"></a>
+<a id="line-377" name="line-377"></a><span class="w"> </span><span class="n">make_label_spinbutton</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">hue_spinbutton</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Hue:&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">grid</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">COLORSEL_HUE</span><span class="p">,</span>
+<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Position on the color wheel.&quot;</span><span class="p">));</span>
+<a id="line-379" name="line-379"></a><span class="w"> </span><span class="n">gtk_spin_button_set_wrap</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">hue_spinbutton</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">make_label_spinbutton</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">sat_spinbutton</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Saturation:&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">grid</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">COLORSEL_SATURATION</span><span class="p">,</span>
+<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;</span><span class="se">\&quot;</span><span class="s">Deepness</span><span class="se">\&quot;</span><span class="s"> of the color.&quot;</span><span class="p">));</span>
+<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">make_label_spinbutton</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">val_spinbutton</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Value:&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">grid</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="n">COLORSEL_VALUE</span><span class="p">,</span>
+<a id="line-383" name="line-383"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Brightness of the color.&quot;</span><span class="p">));</span>
+<a id="line-384" name="line-384"></a><span class="w"> </span><span class="n">make_label_spinbutton</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">red_spinbutton</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Red:&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">grid</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">COLORSEL_RED</span><span class="p">,</span>
+<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Amount of red light in the color.&quot;</span><span class="p">));</span>
+<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">make_label_spinbutton</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">green_spinbutton</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Green:&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">grid</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">COLORSEL_GREEN</span><span class="p">,</span>
+<a id="line-387" name="line-387"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Amount of green light in the color.&quot;</span><span class="p">));</span>
+<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">make_label_spinbutton</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">blue_spinbutton</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Blue:&quot;</span><span class="p">),</span><span class="w"> </span><span class="n">grid</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="n">COLORSEL_BLUE</span><span class="p">,</span>
+<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Amount of blue light in the color.&quot;</span><span class="p">));</span>
+<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">gtk_grid_attach</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="n">gtk_separator_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_HORIZONTAL</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="mi">8</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-391" name="line-391"></a>
+<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new_with_mnemonic</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Op_acity:&quot;</span><span class="p">));</span>
+<a id="line-393" name="line-393"></a><span class="w"> </span><span class="n">gtk_label_set_xalign</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_label</span><span class="p">),</span><span class="w"> </span><span class="mf">0.0</span><span class="p">);</span>
+<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">gtk_grid_attach</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_label</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">4</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-395" name="line-395"></a><span class="w"> </span><span class="n">adjust</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_ADJUSTMENT</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_adjustment_new</span><span class="w"> </span><span class="p">(</span><span class="mf">0.0</span><span class="p">,</span><span class="w"> </span><span class="mf">0.0</span><span class="p">,</span><span class="w"> </span><span class="mf">255.0</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="p">,</span><span class="w"> </span><span class="mf">0.0</span><span class="p">));</span>
+<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">adjust</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;COLORSEL&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-397" name="line-397"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_slider</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_scale_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_HORIZONTAL</span><span class="p">,</span><span class="w"> </span><span class="n">adjust</span><span class="p">);</span>
+<a id="line-398" name="line-398"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_slider</span><span class="p">,</span>
+<a id="line-399" name="line-399"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Transparency of the color.&quot;</span><span class="p">));</span>
+<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">gtk_label_set_mnemonic_widget</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_label</span><span class="p">),</span>
+<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_slider</span><span class="p">);</span>
+<a id="line-402" name="line-402"></a><span class="w"> </span><span class="n">gtk_scale_set_draw_value</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_SCALE</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_slider</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-403" name="line-403"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">adjust</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;value-changed&quot;</span><span class="p">,</span>
+<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">adjustment_changed</span><span class="p">),</span>
+<a id="line-405" name="line-405"></a><span class="w"> </span><span class="n">GINT_TO_POINTER</span><span class="w"> </span><span class="p">(</span><span class="n">COLORSEL_OPACITY</span><span class="p">));</span>
+<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">gtk_grid_attach</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_slider</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">4</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-407" name="line-407"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_entry_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_entry</span><span class="p">,</span>
+<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Transparency of the color.&quot;</span><span class="p">));</span>
+<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">gtk_widget_set_size_request</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_entry</span><span class="p">,</span><span class="w"> </span><span class="mi">40</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span>
+<a id="line-411" name="line-411"></a>
+<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_entry</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span>
+<a id="line-413" name="line-413"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">opacity_entry_changed</span><span class="p">),</span><span class="w"> </span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">gtk_grid_attach</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_entry</span><span class="p">,</span><span class="w"> </span><span class="mi">7</span><span class="p">,</span><span class="w"> </span><span class="mi">4</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-415" name="line-415"></a>
+<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new_with_mnemonic</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Color _name:&quot;</span><span class="p">));</span>
+<a id="line-417" name="line-417"></a><span class="w"> </span><span class="n">gtk_grid_attach</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">5</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">gtk_label_set_xalign</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">),</span><span class="w"> </span><span class="mf">0.0</span><span class="p">);</span>
+<a id="line-419" name="line-419"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">hex_entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_entry_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-420" name="line-420"></a>
+<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">gtk_label_set_mnemonic_widget</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">hex_entry</span><span class="p">);</span>
+<a id="line-422" name="line-422"></a>
+<a id="line-423" name="line-423"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">hex_entry</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span>
+<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">hex_changed</span><span class="p">),</span><span class="w"> </span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-425" name="line-425"></a>
+<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">hex_entry</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;focus-out-event&quot;</span><span class="p">,</span>
+<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">hex_focus_out</span><span class="p">),</span><span class="w"> </span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-428" name="line-428"></a>
+<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">hex_entry</span><span class="p">,</span>
+<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;You can enter an HTML-style hexadecimal color value, or simply a color name such as &#39;orange&#39; in this entry.&quot;</span><span class="p">));</span>
+<a id="line-431" name="line-431"></a>
+<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">gtk_entry_set_width_chars</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ENTRY</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">hex_entry</span><span class="p">),</span><span class="w"> </span><span class="mi">7</span><span class="p">);</span>
+<a id="line-433" name="line-433"></a><span class="w"> </span><span class="n">gtk_grid_attach</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">hex_entry</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">5</span><span class="p">,</span><span class="w"> </span><span class="mi">4</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-434" name="line-434"></a>
+<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">focus_chain</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="w"> </span><span class="p">(</span><span class="n">focus_chain</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">hue_spinbutton</span><span class="p">);</span>
+<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">focus_chain</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="w"> </span><span class="p">(</span><span class="n">focus_chain</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">sat_spinbutton</span><span class="p">);</span>
+<a id="line-437" name="line-437"></a><span class="w"> </span><span class="n">focus_chain</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="w"> </span><span class="p">(</span><span class="n">focus_chain</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">val_spinbutton</span><span class="p">);</span>
+<a id="line-438" name="line-438"></a><span class="w"> </span><span class="n">focus_chain</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="w"> </span><span class="p">(</span><span class="n">focus_chain</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">red_spinbutton</span><span class="p">);</span>
+<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">focus_chain</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="w"> </span><span class="p">(</span><span class="n">focus_chain</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">green_spinbutton</span><span class="p">);</span>
+<a id="line-440" name="line-440"></a><span class="w"> </span><span class="n">focus_chain</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="w"> </span><span class="p">(</span><span class="n">focus_chain</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">blue_spinbutton</span><span class="p">);</span>
+<a id="line-441" name="line-441"></a><span class="w"> </span><span class="n">focus_chain</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="w"> </span><span class="p">(</span><span class="n">focus_chain</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_slider</span><span class="p">);</span>
+<a id="line-442" name="line-442"></a><span class="w"> </span><span class="n">focus_chain</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="w"> </span><span class="p">(</span><span class="n">focus_chain</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_entry</span><span class="p">);</span>
+<a id="line-443" name="line-443"></a><span class="w"> </span><span class="n">focus_chain</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="w"> </span><span class="p">(</span><span class="n">focus_chain</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">hex_entry</span><span class="p">);</span>
+<a id="line-444" name="line-444"></a><span class="w"> </span><span class="n">gtk_container_set_focus_chain</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="n">focus_chain</span><span class="p">);</span>
+<a id="line-445" name="line-445"></a><span class="w"> </span><span class="n">g_list_free</span><span class="w"> </span><span class="p">(</span><span class="n">focus_chain</span><span class="p">);</span>
+<a id="line-446" name="line-446"></a>
+<a id="line-447" name="line-447"></a><span class="w"> </span><span class="cm">/* Set up the palette */</span>
+<a id="line-448" name="line-448"></a><span class="w"> </span><span class="n">grid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_grid_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-449" name="line-449"></a><span class="w"> </span><span class="n">gtk_grid_set_row_spacing</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-450" name="line-450"></a><span class="w"> </span><span class="n">gtk_grid_set_column_spacing</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-451" name="line-451"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">GTK_CUSTOM_PALETTE_WIDTH</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span>
+<a id="line-452" name="line-452"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-453" name="line-453"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">GTK_CUSTOM_PALETTE_HEIGHT</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span>
+<a id="line-454" name="line-454"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-455" name="line-455"></a><span class="w"> </span><span class="n">make_palette_frame</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="n">grid</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">j</span><span class="p">);</span>
+<a id="line-456" name="line-456"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-457" name="line-457"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-458" name="line-458"></a><span class="w"> </span><span class="n">set_selected_palette</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">palette_frame</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span>
+<a id="line-460" name="line-460"></a><span class="w"> </span><span class="n">label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new_with_mnemonic</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Palette:&quot;</span><span class="p">));</span>
+<a id="line-461" name="line-461"></a>
+<a id="line-462" name="line-462"></a><span class="w"> </span><span class="n">gtk_label_set_xalign</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">),</span><span class="w"> </span><span class="mf">0.0</span><span class="p">);</span>
+<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">palette_frame</span><span class="p">),</span><span class="w"> </span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-464" name="line-464"></a>
+<a id="line-465" name="line-465"></a><span class="w"> </span><span class="n">gtk_label_set_mnemonic_widget</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">),</span>
+<a id="line-466" name="line-466"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">custom_palette</span><span class="p">[</span><span class="mi">0</span><span class="p">][</span><span class="mi">0</span><span class="p">]);</span>
+<a id="line-467" name="line-467"></a>
+<a id="line-468" name="line-468"></a><span class="w"> </span><span class="n">gtk_box_pack_end</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">top_right_vbox</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">palette_frame</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">palette_frame</span><span class="p">),</span><span class="w"> </span><span class="n">grid</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-470" name="line-470"></a>
+<a id="line-471" name="line-471"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">top_hbox</span><span class="p">);</span>
+<a id="line-472" name="line-472"></a>
+<a id="line-473" name="line-473"></a><span class="w"> </span><span class="cm">/* hide unused stuff */</span>
+<a id="line-474" name="line-474"></a>
+<a id="line-475" name="line-475"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">has_opacity</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">FALSE</span><span class="p">)</span>
+<a id="line-476" name="line-476"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-477" name="line-477"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_label</span><span class="p">);</span>
+<a id="line-478" name="line-478"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_slider</span><span class="p">);</span>
+<a id="line-479" name="line-479"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_entry</span><span class="p">);</span>
+<a id="line-480" name="line-480"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-481" name="line-481"></a>
+<a id="line-482" name="line-482"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">has_palette</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">FALSE</span><span class="p">)</span>
+<a id="line-483" name="line-483"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-484" name="line-484"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">palette_frame</span><span class="p">);</span>
+<a id="line-485" name="line-485"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-486" name="line-486"></a>
+<a id="line-487" name="line-487"></a><span class="w"> </span><span class="n">atk_obj</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_accessible</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">triangle_colorsel</span><span class="p">);</span>
+<a id="line-488" name="line-488"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_ACCESSIBLE</span><span class="w"> </span><span class="p">(</span><span class="n">atk_obj</span><span class="p">))</span>
+<a id="line-489" name="line-489"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-490" name="line-490"></a><span class="w"> </span><span class="n">atk_object_set_name</span><span class="w"> </span><span class="p">(</span><span class="n">atk_obj</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Color Wheel&quot;</span><span class="p">));</span>
+<a id="line-491" name="line-491"></a><span class="w"> </span><span class="n">atk_object_set_role</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_accessible</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">)),</span><span class="w"> </span><span class="n">ATK_ROLE_COLOR_CHOOSER</span><span class="p">);</span>
+<a id="line-492" name="line-492"></a><span class="w"> </span><span class="n">make_all_relations</span><span class="w"> </span><span class="p">(</span><span class="n">atk_obj</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="p">);</span>
+<a id="line-493" name="line-493"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-494" name="line-494"></a><span class="p">}</span>
+<a id="line-495" name="line-495"></a>
+<a id="line-496" name="line-496"></a><span class="cm">/* GObject methods */</span>
+<a id="line-497" name="line-497"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-498" name="line-498"></a><span class="n">mate_color_selection_finalize</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span>
+<a id="line-499" name="line-499"></a><span class="p">{</span>
+<a id="line-500" name="line-500"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">mate_color_selection_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-501" name="line-501"></a><span class="p">}</span>
+<a id="line-502" name="line-502"></a>
+<a id="line-503" name="line-503"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-504" name="line-504"></a><span class="n">mate_color_selection_set_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span>
+<a id="line-505" name="line-505"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span>
+<a id="line-506" name="line-506"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span>
+<a id="line-507" name="line-507"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span>
+<a id="line-508" name="line-508"></a><span class="p">{</span>
+<a id="line-509" name="line-509"></a><span class="w"> </span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-510" name="line-510"></a>
+<a id="line-511" name="line-511"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span>
+<a id="line-512" name="line-512"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-513" name="line-513"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_HAS_OPACITY_CONTROL</span><span class="p">:</span>
+<a id="line-514" name="line-514"></a><span class="w"> </span><span class="n">mate_color_selection_set_has_opacity_control</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-515" name="line-515"></a><span class="w"> </span><span class="n">g_value_get_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span>
+<a id="line-516" name="line-516"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-517" name="line-517"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_HAS_PALETTE</span><span class="p">:</span>
+<a id="line-518" name="line-518"></a><span class="w"> </span><span class="n">mate_color_selection_set_has_palette</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-519" name="line-519"></a><span class="w"> </span><span class="n">g_value_get_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span>
+<a id="line-520" name="line-520"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-521" name="line-521"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_CURRENT_RGBA</span><span class="p">:</span>
+<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">mate_color_selection_set_current_rgba</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_boxed</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span>
+<a id="line-523" name="line-523"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-524" name="line-524"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_CURRENT_ALPHA</span><span class="p">:</span>
+<a id="line-525" name="line-525"></a><span class="w"> </span><span class="n">mate_color_selection_set_current_alpha</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_uint</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">));</span>
+<a id="line-526" name="line-526"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-527" name="line-527"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-528" name="line-528"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span>
+<a id="line-529" name="line-529"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-530" name="line-530"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-531" name="line-531"></a>
+<a id="line-532" name="line-532"></a><span class="p">}</span>
+<a id="line-533" name="line-533"></a>
+<a id="line-534" name="line-534"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-535" name="line-535"></a><span class="n">mate_color_selection_get_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span>
+<a id="line-536" name="line-536"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span>
+<a id="line-537" name="line-537"></a><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span>
+<a id="line-538" name="line-538"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span>
+<a id="line-539" name="line-539"></a><span class="p">{</span>
+<a id="line-540" name="line-540"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="n">rgba</span><span class="p">;</span>
+<a id="line-541" name="line-541"></a><span class="w"> </span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-542" name="line-542"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-543" name="line-543"></a>
+<a id="line-544" name="line-544"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span>
+<a id="line-545" name="line-545"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-546" name="line-546"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_HAS_OPACITY_CONTROL</span><span class="p">:</span>
+<a id="line-547" name="line-547"></a><span class="w"> </span><span class="n">g_value_set_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">mate_color_selection_get_has_opacity_control</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">));</span>
+<a id="line-548" name="line-548"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-549" name="line-549"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_HAS_PALETTE</span><span class="p">:</span>
+<a id="line-550" name="line-550"></a><span class="w"> </span><span class="n">g_value_set_boolean</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">mate_color_selection_get_has_palette</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">));</span>
+<a id="line-551" name="line-551"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-552" name="line-552"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_CURRENT_RGBA</span><span class="p">:</span>
+<a id="line-553" name="line-553"></a><span class="w"> </span><span class="n">mate_color_selection_get_current_rgba</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">rgba</span><span class="p">);</span>
+<a id="line-554" name="line-554"></a><span class="w"> </span><span class="n">g_value_set_boxed</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">rgba</span><span class="p">);</span>
+<a id="line-555" name="line-555"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-556" name="line-556"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_CURRENT_ALPHA</span><span class="p">:</span>
+<a id="line-557" name="line-557"></a><span class="w"> </span><span class="n">g_value_set_uint</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">mate_color_selection_get_current_alpha</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">));</span>
+<a id="line-558" name="line-558"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-559" name="line-559"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_HEX_STRING</span><span class="p">:</span>
+<a id="line-560" name="line-560"></a><span class="w"> </span><span class="n">g_value_set_string</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_editable_get_chars</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_EDITABLE</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">hex_entry</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">));</span>
+<a id="line-561" name="line-561"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-562" name="line-562"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-563" name="line-563"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span>
+<a id="line-564" name="line-564"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-565" name="line-565"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-566" name="line-566"></a><span class="p">}</span>
+<a id="line-567" name="line-567"></a>
+<a id="line-568" name="line-568"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-569" name="line-569"></a><span class="n">mate_color_selection_dispose</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span>
+<a id="line-570" name="line-570"></a><span class="p">{</span>
+<a id="line-571" name="line-571"></a><span class="w"> </span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">cselection</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-572" name="line-572"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">cselection</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-573" name="line-573"></a>
+<a id="line-574" name="line-574"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">dropper_grab_widget</span><span class="p">)</span>
+<a id="line-575" name="line-575"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-576" name="line-576"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">dropper_grab_widget</span><span class="p">);</span>
+<a id="line-577" name="line-577"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">dropper_grab_widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-578" name="line-578"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-579" name="line-579"></a>
+<a id="line-580" name="line-580"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">mate_color_selection_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">dispose</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-581" name="line-581"></a><span class="p">}</span>
+<a id="line-582" name="line-582"></a>
+<a id="line-583" name="line-583"></a><span class="cm">/* GtkWidget methods */</span>
+<a id="line-584" name="line-584"></a>
+<a id="line-585" name="line-585"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-586" name="line-586"></a><span class="n">mate_color_selection_realize</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">)</span>
+<a id="line-587" name="line-587"></a><span class="p">{</span>
+<a id="line-588" name="line-588"></a><span class="w"> </span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-589" name="line-589"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-590" name="line-590"></a><span class="w"> </span><span class="n">GtkSettings</span><span class="w"> </span><span class="o">*</span><span class="n">settings</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_settings</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-591" name="line-591"></a>
+<a id="line-592" name="line-592"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">settings_connection</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">,</span>
+<a id="line-593" name="line-593"></a><span class="w"> </span><span class="s">&quot;notify::gtk-color-palette&quot;</span><span class="p">,</span>
+<a id="line-594" name="line-594"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">palette_change_notify_instance</span><span class="p">),</span>
+<a id="line-595" name="line-595"></a><span class="w"> </span><span class="n">widget</span><span class="p">);</span>
+<a id="line-596" name="line-596"></a><span class="w"> </span><span class="n">update_palette</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-597" name="line-597"></a>
+<a id="line-598" name="line-598"></a><span class="w"> </span><span class="n">GTK_WIDGET_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">mate_color_selection_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">realize</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-599" name="line-599"></a><span class="p">}</span>
+<a id="line-600" name="line-600"></a>
+<a id="line-601" name="line-601"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-602" name="line-602"></a><span class="n">mate_color_selection_unrealize</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">)</span>
+<a id="line-603" name="line-603"></a><span class="p">{</span>
+<a id="line-604" name="line-604"></a><span class="w"> </span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-605" name="line-605"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-606" name="line-606"></a><span class="w"> </span><span class="n">GtkSettings</span><span class="w"> </span><span class="o">*</span><span class="n">settings</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_settings</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-607" name="line-607"></a>
+<a id="line-608" name="line-608"></a><span class="w"> </span><span class="n">g_signal_handler_disconnect</span><span class="w"> </span><span class="p">(</span><span class="n">settings</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">settings_connection</span><span class="p">);</span>
+<a id="line-609" name="line-609"></a>
+<a id="line-610" name="line-610"></a><span class="w"> </span><span class="n">GTK_WIDGET_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">mate_color_selection_parent_class</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">unrealize</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-611" name="line-611"></a><span class="p">}</span>
+<a id="line-612" name="line-612"></a>
+<a id="line-613" name="line-613"></a><span class="cm">/* We override show-all since we have internal widgets that</span>
+<a id="line-614" name="line-614"></a><span class="cm"> * shouldn&#39;t be shown when you call show_all(), like the</span>
+<a id="line-615" name="line-615"></a><span class="cm"> * palette and opacity sliders.</span>
+<a id="line-616" name="line-616"></a><span class="cm"> */</span>
+<a id="line-617" name="line-617"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-618" name="line-618"></a><span class="n">mate_color_selection_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">)</span>
+<a id="line-619" name="line-619"></a><span class="p">{</span>
+<a id="line-620" name="line-620"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-621" name="line-621"></a><span class="p">}</span>
+<a id="line-622" name="line-622"></a>
+<a id="line-623" name="line-623"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-624" name="line-624"></a><span class="n">mate_color_selection_grab_broken</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-625" name="line-625"></a><span class="w"> </span><span class="n">GdkEventGrabBroken</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">)</span>
+<a id="line-626" name="line-626"></a><span class="p">{</span>
+<a id="line-627" name="line-627"></a><span class="w"> </span><span class="n">shutdown_eyedropper</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-628" name="line-628"></a>
+<a id="line-629" name="line-629"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-630" name="line-630"></a><span class="p">}</span>
+<a id="line-631" name="line-631"></a>
+<a id="line-632" name="line-632"></a><span class="cm">/*</span>
+<a id="line-633" name="line-633"></a><span class="cm"> *</span>
+<a id="line-634" name="line-634"></a><span class="cm"> * The Sample Color</span>
+<a id="line-635" name="line-635"></a><span class="cm"> *</span>
+<a id="line-636" name="line-636"></a><span class="cm"> */</span>
+<a id="line-637" name="line-637"></a>
+<a id="line-638" name="line-638"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="n">color_sample_draw_sample</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">which</span><span class="p">);</span>
+<a id="line-639" name="line-639"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">color_sample_update_samples</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-640" name="line-640"></a>
+<a id="line-641" name="line-641"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-642" name="line-642"></a><span class="nf">set_color_internal</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-643" name="line-643"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">)</span>
+<a id="line-644" name="line-644"></a><span class="p">{</span>
+<a id="line-645" name="line-645"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-646" name="line-646"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-647" name="line-647"></a>
+<a id="line-648" name="line-648"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-649" name="line-649"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">changing</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-650" name="line-650"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_RED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">0</span><span class="p">];</span>
+<a id="line-651" name="line-651"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_GREEN</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">1</span><span class="p">];</span>
+<a id="line-652" name="line-652"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_BLUE</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">2</span><span class="p">];</span>
+<a id="line-653" name="line-653"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_OPACITY</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">3</span><span class="p">];</span>
+<a id="line-654" name="line-654"></a><span class="w"> </span><span class="n">gtk_rgb_to_hsv</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_RED</span><span class="p">],</span>
+<a id="line-655" name="line-655"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_GREEN</span><span class="p">],</span>
+<a id="line-656" name="line-656"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_BLUE</span><span class="p">],</span>
+<a id="line-657" name="line-657"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_HUE</span><span class="p">],</span>
+<a id="line-658" name="line-658"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_SATURATION</span><span class="p">],</span>
+<a id="line-659" name="line-659"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_VALUE</span><span class="p">]);</span>
+<a id="line-660" name="line-660"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">default_set</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">FALSE</span><span class="p">)</span>
+<a id="line-661" name="line-661"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-662" name="line-662"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">COLORSEL_NUM_CHANNELS</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span>
+<a id="line-663" name="line-663"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_color</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-664" name="line-664"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-665" name="line-665"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">default_set</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-666" name="line-666"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">default_alpha_set</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-667" name="line-667"></a><span class="w"> </span><span class="n">update_color</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-668" name="line-668"></a><span class="p">}</span>
+<a id="line-669" name="line-669"></a>
+<a id="line-670" name="line-670"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-671" name="line-671"></a><span class="nf">set_color_icon</span><span class="w"> </span><span class="p">(</span><span class="n">GdkDragContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">,</span>
+<a id="line-672" name="line-672"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">colors</span><span class="p">)</span>
+<a id="line-673" name="line-673"></a><span class="p">{</span>
+<a id="line-674" name="line-674"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-675" name="line-675"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">pixel</span><span class="p">;</span>
+<a id="line-676" name="line-676"></a>
+<a id="line-677" name="line-677"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_COLORSPACE_RGB</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span>
+<a id="line-678" name="line-678"></a><span class="w"> </span><span class="mi">8</span><span class="p">,</span><span class="w"> </span><span class="mi">48</span><span class="p">,</span><span class="w"> </span><span class="mi">32</span><span class="p">);</span>
+<a id="line-679" name="line-679"></a>
+<a id="line-680" name="line-680"></a><span class="w"> </span><span class="n">pixel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(((</span><span class="n">UNSCALE</span><span class="w"> </span><span class="p">(</span><span class="n">colors</span><span class="p">[</span><span class="n">COLORSEL_RED</span><span class="p">])</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="mh">0xff00</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">16</span><span class="p">)</span><span class="w"> </span><span class="o">|</span>
+<a id="line-681" name="line-681"></a><span class="w"> </span><span class="p">((</span><span class="n">UNSCALE</span><span class="w"> </span><span class="p">(</span><span class="n">colors</span><span class="p">[</span><span class="n">COLORSEL_GREEN</span><span class="p">])</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="mh">0xff00</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;&lt;</span><span class="w"> </span><span class="mi">8</span><span class="p">)</span><span class="w"> </span><span class="o">|</span>
+<a id="line-682" name="line-682"></a><span class="w"> </span><span class="p">((</span><span class="n">UNSCALE</span><span class="w"> </span><span class="p">(</span><span class="n">colors</span><span class="p">[</span><span class="n">COLORSEL_BLUE</span><span class="p">])</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="mh">0xff00</span><span class="p">)));</span>
+<a id="line-683" name="line-683"></a>
+<a id="line-684" name="line-684"></a><span class="w"> </span><span class="n">gdk_pixbuf_fill</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="n">pixel</span><span class="p">);</span>
+<a id="line-685" name="line-685"></a>
+<a id="line-686" name="line-686"></a><span class="w"> </span><span class="n">gtk_drag_set_icon_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">,</span><span class="w"> </span><span class="n">pixbuf</span><span class="p">,</span><span class="w"> </span><span class="mi">-2</span><span class="p">,</span><span class="w"> </span><span class="mi">-2</span><span class="p">);</span>
+<a id="line-687" name="line-687"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span>
+<a id="line-688" name="line-688"></a><span class="p">}</span>
+<a id="line-689" name="line-689"></a>
+<a id="line-690" name="line-690"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-691" name="line-691"></a><span class="nf">color_sample_drag_begin</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-692" name="line-692"></a><span class="w"> </span><span class="n">GdkDragContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">,</span>
+<a id="line-693" name="line-693"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-694" name="line-694"></a><span class="p">{</span>
+<a id="line-695" name="line-695"></a><span class="w"> </span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">data</span><span class="p">;</span>
+<a id="line-696" name="line-696"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-697" name="line-697"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">colsrc</span><span class="p">;</span>
+<a id="line-698" name="line-698"></a>
+<a id="line-699" name="line-699"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-700" name="line-700"></a>
+<a id="line-701" name="line-701"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_sample</span><span class="p">)</span>
+<a id="line-702" name="line-702"></a><span class="w"> </span><span class="n">colsrc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_color</span><span class="p">;</span>
+<a id="line-703" name="line-703"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-704" name="line-704"></a><span class="w"> </span><span class="n">colsrc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">;</span>
+<a id="line-705" name="line-705"></a>
+<a id="line-706" name="line-706"></a><span class="w"> </span><span class="n">set_color_icon</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">,</span><span class="w"> </span><span class="n">colsrc</span><span class="p">);</span>
+<a id="line-707" name="line-707"></a><span class="p">}</span>
+<a id="line-708" name="line-708"></a>
+<a id="line-709" name="line-709"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-710" name="line-710"></a><span class="nf">color_sample_drag_end</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-711" name="line-711"></a><span class="w"> </span><span class="n">GdkDragContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">,</span>
+<a id="line-712" name="line-712"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-713" name="line-713"></a><span class="p">{</span>
+<a id="line-714" name="line-714"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;gtk-color-selection-drag-window&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-715" name="line-715"></a><span class="p">}</span>
+<a id="line-716" name="line-716"></a>
+<a id="line-717" name="line-717"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-718" name="line-718"></a><span class="nf">color_sample_drop_handle</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-719" name="line-719"></a><span class="w"> </span><span class="n">GdkDragContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">,</span>
+<a id="line-720" name="line-720"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x</span><span class="p">,</span>
+<a id="line-721" name="line-721"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">y</span><span class="p">,</span>
+<a id="line-722" name="line-722"></a><span class="w"> </span><span class="n">GtkSelectionData</span><span class="w"> </span><span class="o">*</span><span class="n">selection_data</span><span class="p">,</span>
+<a id="line-723" name="line-723"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">info</span><span class="p">,</span>
+<a id="line-724" name="line-724"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">time</span><span class="p">,</span>
+<a id="line-725" name="line-725"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-726" name="line-726"></a><span class="p">{</span>
+<a id="line-727" name="line-727"></a><span class="w"> </span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">data</span><span class="p">;</span>
+<a id="line-728" name="line-728"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-729" name="line-729"></a><span class="w"> </span><span class="n">guint16</span><span class="w"> </span><span class="o">*</span><span class="n">vals</span><span class="p">;</span>
+<a id="line-730" name="line-730"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">4</span><span class="p">];</span>
+<a id="line-731" name="line-731"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-732" name="line-732"></a>
+<a id="line-733" name="line-733"></a><span class="w"> </span><span class="cm">/* This is currently a guint16 array of the format:</span>
+<a id="line-734" name="line-734"></a><span class="cm"> * R</span>
+<a id="line-735" name="line-735"></a><span class="cm"> * G</span>
+<a id="line-736" name="line-736"></a><span class="cm"> * B</span>
+<a id="line-737" name="line-737"></a><span class="cm"> * opacity</span>
+<a id="line-738" name="line-738"></a><span class="cm"> */</span>
+<a id="line-739" name="line-739"></a>
+<a id="line-740" name="line-740"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_selection_data_get_length</span><span class="w"> </span><span class="p">(</span><span class="n">selection_data</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-741" name="line-741"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-742" name="line-742"></a>
+<a id="line-743" name="line-743"></a><span class="w"> </span><span class="cm">/* We accept drops with the wrong format, since the KDE color</span>
+<a id="line-744" name="line-744"></a><span class="cm"> * chooser incorrectly drops application/x-color with format 8.</span>
+<a id="line-745" name="line-745"></a><span class="cm"> */</span>
+<a id="line-746" name="line-746"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_selection_data_get_length</span><span class="w"> </span><span class="p">(</span><span class="n">selection_data</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">8</span><span class="p">)</span>
+<a id="line-747" name="line-747"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-748" name="line-748"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Received invalid color data</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">);</span>
+<a id="line-749" name="line-749"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-750" name="line-750"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-751" name="line-751"></a>
+<a id="line-752" name="line-752"></a><span class="w"> </span><span class="n">vals</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">guint16</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">gtk_selection_data_get_data</span><span class="w"> </span><span class="p">(</span><span class="n">selection_data</span><span class="p">);</span>
+<a id="line-753" name="line-753"></a>
+<a id="line-754" name="line-754"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">cur_sample</span><span class="p">)</span>
+<a id="line-755" name="line-755"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-756" name="line-756"></a><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gdouble</span><span class="p">)</span><span class="n">vals</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mh">0xffff</span><span class="p">;</span>
+<a id="line-757" name="line-757"></a><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gdouble</span><span class="p">)</span><span class="n">vals</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mh">0xffff</span><span class="p">;</span>
+<a id="line-758" name="line-758"></a><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gdouble</span><span class="p">)</span><span class="n">vals</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mh">0xffff</span><span class="p">;</span>
+<a id="line-759" name="line-759"></a><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gdouble</span><span class="p">)</span><span class="n">vals</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mh">0xffff</span><span class="p">;</span>
+<a id="line-760" name="line-760"></a>
+<a id="line-761" name="line-761"></a><span class="w"> </span><span class="n">set_color_internal</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="n">color</span><span class="p">);</span>
+<a id="line-762" name="line-762"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-763" name="line-763"></a><span class="p">}</span>
+<a id="line-764" name="line-764"></a>
+<a id="line-765" name="line-765"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-766" name="line-766"></a><span class="nf">color_sample_drag_handle</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-767" name="line-767"></a><span class="w"> </span><span class="n">GdkDragContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">,</span>
+<a id="line-768" name="line-768"></a><span class="w"> </span><span class="n">GtkSelectionData</span><span class="w"> </span><span class="o">*</span><span class="n">selection_data</span><span class="p">,</span>
+<a id="line-769" name="line-769"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">info</span><span class="p">,</span>
+<a id="line-770" name="line-770"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">time</span><span class="p">,</span>
+<a id="line-771" name="line-771"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-772" name="line-772"></a><span class="p">{</span>
+<a id="line-773" name="line-773"></a><span class="w"> </span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">data</span><span class="p">;</span>
+<a id="line-774" name="line-774"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-775" name="line-775"></a><span class="w"> </span><span class="n">guint16</span><span class="w"> </span><span class="n">vals</span><span class="p">[</span><span class="mi">4</span><span class="p">];</span>
+<a id="line-776" name="line-776"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">colsrc</span><span class="p">;</span>
+<a id="line-777" name="line-777"></a>
+<a id="line-778" name="line-778"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-779" name="line-779"></a>
+<a id="line-780" name="line-780"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_sample</span><span class="p">)</span>
+<a id="line-781" name="line-781"></a><span class="w"> </span><span class="n">colsrc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_color</span><span class="p">;</span>
+<a id="line-782" name="line-782"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-783" name="line-783"></a><span class="w"> </span><span class="n">colsrc</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">;</span>
+<a id="line-784" name="line-784"></a>
+<a id="line-785" name="line-785"></a><span class="w"> </span><span class="n">vals</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colsrc</span><span class="p">[</span><span class="n">COLORSEL_RED</span><span class="p">]</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mh">0xffff</span><span class="p">;</span>
+<a id="line-786" name="line-786"></a><span class="w"> </span><span class="n">vals</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colsrc</span><span class="p">[</span><span class="n">COLORSEL_GREEN</span><span class="p">]</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mh">0xffff</span><span class="p">;</span>
+<a id="line-787" name="line-787"></a><span class="w"> </span><span class="n">vals</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colsrc</span><span class="p">[</span><span class="n">COLORSEL_BLUE</span><span class="p">]</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mh">0xffff</span><span class="p">;</span>
+<a id="line-788" name="line-788"></a><span class="w"> </span><span class="n">vals</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">has_opacity</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">colsrc</span><span class="p">[</span><span class="n">COLORSEL_OPACITY</span><span class="p">]</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mh">0xffff</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="mh">0xffff</span><span class="p">;</span>
+<a id="line-789" name="line-789"></a>
+<a id="line-790" name="line-790"></a><span class="w"> </span><span class="n">gtk_selection_data_set</span><span class="w"> </span><span class="p">(</span><span class="n">selection_data</span><span class="p">,</span>
+<a id="line-791" name="line-791"></a><span class="w"> </span><span class="n">gdk_atom_intern_static_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;application/x-color&quot;</span><span class="p">),</span>
+<a id="line-792" name="line-792"></a><span class="w"> </span><span class="mi">16</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">vals</span><span class="p">,</span><span class="w"> </span><span class="mi">8</span><span class="p">);</span>
+<a id="line-793" name="line-793"></a><span class="p">}</span>
+<a id="line-794" name="line-794"></a>
+<a id="line-795" name="line-795"></a><span class="cm">/* which = 0 means draw old sample, which = 1 means draw new */</span>
+<a id="line-796" name="line-796"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-797" name="line-797"></a><span class="nf">color_sample_draw_sample</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">which</span><span class="p">)</span>
+<a id="line-798" name="line-798"></a><span class="p">{</span>
+<a id="line-799" name="line-799"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">da</span><span class="p">;</span>
+<a id="line-800" name="line-800"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">wid</span><span class="p">,</span><span class="w"> </span><span class="n">heig</span><span class="p">,</span><span class="w"> </span><span class="n">goff</span><span class="p">;</span>
+<a id="line-801" name="line-801"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-802" name="line-802"></a><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="n">allocation</span><span class="p">;</span>
+<a id="line-803" name="line-803"></a>
+<a id="line-804" name="line-804"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-805" name="line-805"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-806" name="line-806"></a>
+<a id="line-807" name="line-807"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">sample_area</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-808" name="line-808"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_widget_is_drawable</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">sample_area</span><span class="p">))</span>
+<a id="line-809" name="line-809"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-810" name="line-810"></a>
+<a id="line-811" name="line-811"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">which</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-812" name="line-812"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-813" name="line-813"></a><span class="w"> </span><span class="n">da</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_sample</span><span class="p">;</span>
+<a id="line-814" name="line-814"></a><span class="w"> </span><span class="n">goff</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-815" name="line-815"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-816" name="line-816"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-817" name="line-817"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-818" name="line-818"></a><span class="w"> </span><span class="n">da</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">cur_sample</span><span class="p">;</span>
+<a id="line-819" name="line-819"></a><span class="w"> </span><span class="n">gtk_widget_get_allocation</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_sample</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">allocation</span><span class="p">);</span>
+<a id="line-820" name="line-820"></a><span class="w"> </span><span class="n">goff</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="w"> </span><span class="o">%</span><span class="w"> </span><span class="mi">32</span><span class="p">;</span>
+<a id="line-821" name="line-821"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-822" name="line-822"></a>
+<a id="line-823" name="line-823"></a><span class="w"> </span><span class="n">gtk_widget_get_allocation</span><span class="w"> </span><span class="p">(</span><span class="n">da</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">allocation</span><span class="p">);</span>
+<a id="line-824" name="line-824"></a><span class="w"> </span><span class="n">wid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="p">;</span>
+<a id="line-825" name="line-825"></a><span class="w"> </span><span class="n">heig</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">height</span><span class="p">;</span>
+<a id="line-826" name="line-826"></a>
+<a id="line-827" name="line-827"></a><span class="w"> </span><span class="cm">/* Below needs tweaking for non-power-of-two */</span>
+<a id="line-828" name="line-828"></a>
+<a id="line-829" name="line-829"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">has_opacity</span><span class="p">)</span>
+<a id="line-830" name="line-830"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-831" name="line-831"></a><span class="w"> </span><span class="cm">/* Draw checks in background */</span>
+<a id="line-832" name="line-832"></a>
+<a id="line-833" name="line-833"></a><span class="w"> </span><span class="n">cairo_set_source_rgb</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="mf">0.5</span><span class="p">,</span><span class="w"> </span><span class="mf">0.5</span><span class="p">,</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span>
+<a id="line-834" name="line-834"></a><span class="w"> </span><span class="n">cairo_rectangle</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">wid</span><span class="p">,</span><span class="w"> </span><span class="n">heig</span><span class="p">);</span>
+<a id="line-835" name="line-835"></a><span class="w"> </span><span class="n">cairo_fill</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-836" name="line-836"></a>
+<a id="line-837" name="line-837"></a><span class="w"> </span><span class="n">cairo_set_source_rgb</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="mf">0.75</span><span class="p">,</span><span class="w"> </span><span class="mf">0.75</span><span class="p">,</span><span class="w"> </span><span class="mf">0.75</span><span class="p">);</span>
+<a id="line-838" name="line-838"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">goff</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="o">-</span><span class="n">CHECK_SIZE</span><span class="p">;</span><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">goff</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">wid</span><span class="p">;</span><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">CHECK_SIZE</span><span class="p">)</span>
+<a id="line-839" name="line-839"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">heig</span><span class="p">;</span><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">CHECK_SIZE</span><span class="p">)</span>
+<a id="line-840" name="line-840"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">x</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">CHECK_SIZE</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">CHECK_SIZE</span><span class="p">)</span><span class="w"> </span><span class="o">%</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-841" name="line-841"></a><span class="w"> </span><span class="n">cairo_rectangle</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">goff</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">CHECK_SIZE</span><span class="p">,</span><span class="w"> </span><span class="n">CHECK_SIZE</span><span class="p">);</span>
+<a id="line-842" name="line-842"></a><span class="w"> </span><span class="n">cairo_fill</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-843" name="line-843"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-844" name="line-844"></a>
+<a id="line-845" name="line-845"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">which</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-846" name="line-846"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-847" name="line-847"></a><span class="w"> </span><span class="n">cairo_set_source_rgba</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span>
+<a id="line-848" name="line-848"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_color</span><span class="p">[</span><span class="n">COLORSEL_RED</span><span class="p">],</span>
+<a id="line-849" name="line-849"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_color</span><span class="p">[</span><span class="n">COLORSEL_GREEN</span><span class="p">],</span>
+<a id="line-850" name="line-850"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_color</span><span class="p">[</span><span class="n">COLORSEL_BLUE</span><span class="p">],</span>
+<a id="line-851" name="line-851"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">has_opacity</span><span class="w"> </span><span class="o">?</span>
+<a id="line-852" name="line-852"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_color</span><span class="p">[</span><span class="n">COLORSEL_OPACITY</span><span class="p">]</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="mf">1.0</span><span class="p">);</span>
+<a id="line-853" name="line-853"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-854" name="line-854"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-855" name="line-855"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-856" name="line-856"></a><span class="w"> </span><span class="n">cairo_set_source_rgba</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span>
+<a id="line-857" name="line-857"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_RED</span><span class="p">],</span>
+<a id="line-858" name="line-858"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_GREEN</span><span class="p">],</span>
+<a id="line-859" name="line-859"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_BLUE</span><span class="p">],</span>
+<a id="line-860" name="line-860"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">has_opacity</span><span class="w"> </span><span class="o">?</span>
+<a id="line-861" name="line-861"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_OPACITY</span><span class="p">]</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="mf">1.0</span><span class="p">);</span>
+<a id="line-862" name="line-862"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-863" name="line-863"></a>
+<a id="line-864" name="line-864"></a><span class="w"> </span><span class="n">cairo_rectangle</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">wid</span><span class="p">,</span><span class="w"> </span><span class="n">heig</span><span class="p">);</span>
+<a id="line-865" name="line-865"></a><span class="w"> </span><span class="n">cairo_fill</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-866" name="line-866"></a><span class="p">}</span>
+<a id="line-867" name="line-867"></a>
+<a id="line-868" name="line-868"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-869" name="line-869"></a><span class="nf">color_sample_update_samples</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">)</span>
+<a id="line-870" name="line-870"></a><span class="p">{</span>
+<a id="line-871" name="line-871"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-872" name="line-872"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_sample</span><span class="p">);</span>
+<a id="line-873" name="line-873"></a><span class="w"> </span><span class="n">gtk_widget_queue_draw</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">cur_sample</span><span class="p">);</span>
+<a id="line-874" name="line-874"></a><span class="p">}</span>
+<a id="line-875" name="line-875"></a>
+<a id="line-876" name="line-876"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-877" name="line-877"></a><span class="nf">color_old_sample_draw</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">da</span><span class="p">,</span>
+<a id="line-878" name="line-878"></a><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">cr</span><span class="p">,</span>
+<a id="line-879" name="line-879"></a><span class="w"> </span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">)</span>
+<a id="line-880" name="line-880"></a><span class="p">{</span>
+<a id="line-881" name="line-881"></a><span class="w"> </span><span class="n">color_sample_draw_sample</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-882" name="line-882"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-883" name="line-883"></a><span class="p">}</span>
+<a id="line-884" name="line-884"></a>
+<a id="line-885" name="line-885"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-886" name="line-886"></a><span class="nf">color_cur_sample_draw</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">da</span><span class="p">,</span>
+<a id="line-887" name="line-887"></a><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">cr</span><span class="p">,</span>
+<a id="line-888" name="line-888"></a><span class="w"> </span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">)</span>
+<a id="line-889" name="line-889"></a><span class="p">{</span>
+<a id="line-890" name="line-890"></a><span class="w"> </span><span class="n">color_sample_draw_sample</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-891" name="line-891"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-892" name="line-892"></a><span class="p">}</span>
+<a id="line-893" name="line-893"></a>
+<a id="line-894" name="line-894"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-895" name="line-895"></a><span class="nf">color_sample_setup_dnd</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">sample</span><span class="p">)</span>
+<a id="line-896" name="line-896"></a><span class="p">{</span>
+<a id="line-897" name="line-897"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GtkTargetEntry</span><span class="w"> </span><span class="n">targets</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span>
+<a id="line-898" name="line-898"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="p">.</span><span class="n">target</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;application/x-color&quot;</span><span class="p">,</span><span class="w"> </span><span class="p">.</span><span class="n">flags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="p">.</span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="p">}</span>
+<a id="line-899" name="line-899"></a><span class="w"> </span><span class="p">};</span>
+<a id="line-900" name="line-900"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-901" name="line-901"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-902" name="line-902"></a>
+<a id="line-903" name="line-903"></a><span class="w"> </span><span class="n">gtk_drag_source_set</span><span class="w"> </span><span class="p">(</span><span class="n">sample</span><span class="p">,</span>
+<a id="line-904" name="line-904"></a><span class="w"> </span><span class="n">GDK_BUTTON1_MASK</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_BUTTON3_MASK</span><span class="p">,</span>
+<a id="line-905" name="line-905"></a><span class="w"> </span><span class="n">targets</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span>
+<a id="line-906" name="line-906"></a><span class="w"> </span><span class="n">GDK_ACTION_COPY</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_ACTION_MOVE</span><span class="p">);</span>
+<a id="line-907" name="line-907"></a>
+<a id="line-908" name="line-908"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">sample</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;drag-begin&quot;</span><span class="p">,</span>
+<a id="line-909" name="line-909"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">color_sample_drag_begin</span><span class="p">),</span>
+<a id="line-910" name="line-910"></a><span class="w"> </span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-911" name="line-911"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">sample</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">cur_sample</span><span class="p">)</span>
+<a id="line-912" name="line-912"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-913" name="line-913"></a>
+<a id="line-914" name="line-914"></a><span class="w"> </span><span class="n">gtk_drag_dest_set</span><span class="w"> </span><span class="p">(</span><span class="n">sample</span><span class="p">,</span>
+<a id="line-915" name="line-915"></a><span class="w"> </span><span class="n">GTK_DEST_DEFAULT_HIGHLIGHT</span><span class="w"> </span><span class="o">|</span>
+<a id="line-916" name="line-916"></a><span class="w"> </span><span class="n">GTK_DEST_DEFAULT_MOTION</span><span class="w"> </span><span class="o">|</span>
+<a id="line-917" name="line-917"></a><span class="w"> </span><span class="n">GTK_DEST_DEFAULT_DROP</span><span class="p">,</span>
+<a id="line-918" name="line-918"></a><span class="w"> </span><span class="n">targets</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span>
+<a id="line-919" name="line-919"></a><span class="w"> </span><span class="n">GDK_ACTION_COPY</span><span class="p">);</span>
+<a id="line-920" name="line-920"></a>
+<a id="line-921" name="line-921"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">sample</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;drag-end&quot;</span><span class="p">,</span>
+<a id="line-922" name="line-922"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">color_sample_drag_end</span><span class="p">),</span>
+<a id="line-923" name="line-923"></a><span class="w"> </span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-924" name="line-924"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-925" name="line-925"></a>
+<a id="line-926" name="line-926"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">sample</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;drag-data-get&quot;</span><span class="p">,</span>
+<a id="line-927" name="line-927"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">color_sample_drag_handle</span><span class="p">),</span>
+<a id="line-928" name="line-928"></a><span class="w"> </span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-929" name="line-929"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">sample</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;drag-data-received&quot;</span><span class="p">,</span>
+<a id="line-930" name="line-930"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">color_sample_drop_handle</span><span class="p">),</span>
+<a id="line-931" name="line-931"></a><span class="w"> </span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-932" name="line-932"></a>
+<a id="line-933" name="line-933"></a><span class="p">}</span>
+<a id="line-934" name="line-934"></a>
+<a id="line-935" name="line-935"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-936" name="line-936"></a><span class="nf">update_tooltips</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">)</span>
+<a id="line-937" name="line-937"></a><span class="p">{</span>
+<a id="line-938" name="line-938"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-939" name="line-939"></a>
+<a id="line-940" name="line-940"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-941" name="line-941"></a>
+<a id="line-942" name="line-942"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">has_palette</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">TRUE</span><span class="p">)</span>
+<a id="line-943" name="line-943"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-944" name="line-944"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_sample</span><span class="p">,</span>
+<a id="line-945" name="line-945"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;The previously-selected color, for comparison to the color you&#39;re selecting now. You can drag this color to a palette entry, or select this color as current by dragging it to the other color swatch alongside.&quot;</span><span class="p">));</span>
+<a id="line-946" name="line-946"></a>
+<a id="line-947" name="line-947"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">cur_sample</span><span class="p">,</span>
+<a id="line-948" name="line-948"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;The color you&#39;ve chosen. You can drag this color to a palette entry to save it for use in the future.&quot;</span><span class="p">));</span>
+<a id="line-949" name="line-949"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-950" name="line-950"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-951" name="line-951"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-952" name="line-952"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_sample</span><span class="p">,</span>
+<a id="line-953" name="line-953"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;The previously-selected color, for comparison to the color you&#39;re selecting now.&quot;</span><span class="p">));</span>
+<a id="line-954" name="line-954"></a>
+<a id="line-955" name="line-955"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">cur_sample</span><span class="p">,</span>
+<a id="line-956" name="line-956"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;The color you&#39;ve chosen.&quot;</span><span class="p">));</span>
+<a id="line-957" name="line-957"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-958" name="line-958"></a><span class="p">}</span>
+<a id="line-959" name="line-959"></a>
+<a id="line-960" name="line-960"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-961" name="line-961"></a><span class="nf">color_sample_new</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">)</span>
+<a id="line-962" name="line-962"></a><span class="p">{</span>
+<a id="line-963" name="line-963"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-964" name="line-964"></a>
+<a id="line-965" name="line-965"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-966" name="line-966"></a>
+<a id="line-967" name="line-967"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">sample_area</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_HORIZONTAL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-968" name="line-968"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_sample</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_drawing_area_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-969" name="line-969"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">cur_sample</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_drawing_area_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-970" name="line-970"></a>
+<a id="line-971" name="line-971"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">sample_area</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_sample</span><span class="p">,</span>
+<a id="line-972" name="line-972"></a><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-973" name="line-973"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">sample_area</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">cur_sample</span><span class="p">,</span>
+<a id="line-974" name="line-974"></a><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-975" name="line-975"></a>
+<a id="line-976" name="line-976"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_sample</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;draw&quot;</span><span class="p">,</span>
+<a id="line-977" name="line-977"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">color_old_sample_draw</span><span class="p">),</span>
+<a id="line-978" name="line-978"></a><span class="w"> </span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-979" name="line-979"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">cur_sample</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;draw&quot;</span><span class="p">,</span>
+<a id="line-980" name="line-980"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">color_cur_sample_draw</span><span class="p">),</span>
+<a id="line-981" name="line-981"></a><span class="w"> </span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-982" name="line-982"></a>
+<a id="line-983" name="line-983"></a><span class="w"> </span><span class="n">color_sample_setup_dnd</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_sample</span><span class="p">);</span>
+<a id="line-984" name="line-984"></a><span class="w"> </span><span class="n">color_sample_setup_dnd</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">cur_sample</span><span class="p">);</span>
+<a id="line-985" name="line-985"></a>
+<a id="line-986" name="line-986"></a><span class="w"> </span><span class="n">update_tooltips</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-987" name="line-987"></a>
+<a id="line-988" name="line-988"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">sample_area</span><span class="p">);</span>
+<a id="line-989" name="line-989"></a><span class="p">}</span>
+<a id="line-990" name="line-990"></a>
+<a id="line-991" name="line-991"></a><span class="cm">/*</span>
+<a id="line-992" name="line-992"></a><span class="cm"> *</span>
+<a id="line-993" name="line-993"></a><span class="cm"> * The palette area code</span>
+<a id="line-994" name="line-994"></a><span class="cm"> *</span>
+<a id="line-995" name="line-995"></a><span class="cm"> */</span>
+<a id="line-996" name="line-996"></a>
+<a id="line-997" name="line-997"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-998" name="line-998"></a><span class="nf">palette_get_color</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">drawing_area</span><span class="p">,</span><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">)</span>
+<a id="line-999" name="line-999"></a><span class="p">{</span>
+<a id="line-1000" name="line-1000"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">color_val</span><span class="p">;</span>
+<a id="line-1001" name="line-1001"></a>
+<a id="line-1002" name="line-1002"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">color</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1003" name="line-1003"></a>
+<a id="line-1004" name="line-1004"></a><span class="w"> </span><span class="n">color_val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_get_data</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;color_val&quot;</span><span class="p">);</span>
+<a id="line-1005" name="line-1005"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">color_val</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1006" name="line-1006"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1007" name="line-1007"></a><span class="w"> </span><span class="cm">/* Default to white for no good reason */</span>
+<a id="line-1008" name="line-1008"></a><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-1009" name="line-1009"></a><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-1010" name="line-1010"></a><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-1011" name="line-1011"></a><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-1012" name="line-1012"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-1013" name="line-1013"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1014" name="line-1014"></a>
+<a id="line-1015" name="line-1015"></a><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color_val</span><span class="p">[</span><span class="mi">0</span><span class="p">];</span>
+<a id="line-1016" name="line-1016"></a><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color_val</span><span class="p">[</span><span class="mi">1</span><span class="p">];</span>
+<a id="line-1017" name="line-1017"></a><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color_val</span><span class="p">[</span><span class="mi">2</span><span class="p">];</span>
+<a id="line-1018" name="line-1018"></a><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-1019" name="line-1019"></a><span class="p">}</span>
+<a id="line-1020" name="line-1020"></a>
+<a id="line-1021" name="line-1021"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1022" name="line-1022"></a><span class="nf">palette_paint</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">drawing_area</span><span class="p">,</span>
+<a id="line-1023" name="line-1023"></a><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">cr</span><span class="p">,</span>
+<a id="line-1024" name="line-1024"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-1025" name="line-1025"></a><span class="p">{</span>
+<a id="line-1026" name="line-1026"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">focus_width</span><span class="p">;</span>
+<a id="line-1027" name="line-1027"></a><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="n">allocation</span><span class="p">;</span>
+<a id="line-1028" name="line-1028"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">4</span><span class="p">];</span>
+<a id="line-1029" name="line-1029"></a>
+<a id="line-1030" name="line-1030"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_window</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1031" name="line-1031"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-1032" name="line-1032"></a>
+<a id="line-1033" name="line-1033"></a><span class="w"> </span><span class="n">gtk_widget_get_allocation</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">allocation</span><span class="p">);</span>
+<a id="line-1034" name="line-1034"></a>
+<a id="line-1035" name="line-1035"></a><span class="w"> </span><span class="n">palette_get_color</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">,</span><span class="w"> </span><span class="n">color</span><span class="p">);</span>
+<a id="line-1036" name="line-1036"></a><span class="w"> </span><span class="n">cairo_set_source_rgba</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">2</span><span class="p">],</span><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">3</span><span class="p">]);</span>
+<a id="line-1037" name="line-1037"></a><span class="w"> </span><span class="n">cairo_rectangle</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">height</span><span class="p">);</span>
+<a id="line-1038" name="line-1038"></a><span class="w"> </span><span class="n">cairo_fill</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-1039" name="line-1039"></a>
+<a id="line-1040" name="line-1040"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_has_focus</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">))</span>
+<a id="line-1041" name="line-1041"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1042" name="line-1042"></a><span class="w"> </span><span class="n">set_focus_line_attributes</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">,</span><span class="w"> </span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">focus_width</span><span class="p">);</span>
+<a id="line-1043" name="line-1043"></a>
+<a id="line-1044" name="line-1044"></a><span class="w"> </span><span class="n">cairo_rectangle</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span>
+<a id="line-1045" name="line-1045"></a><span class="w"> </span><span class="n">focus_width</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">2.</span><span class="p">,</span><span class="w"> </span><span class="n">focus_width</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">2.</span><span class="p">,</span>
+<a id="line-1046" name="line-1046"></a><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">width</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">focus_width</span><span class="p">,</span>
+<a id="line-1047" name="line-1047"></a><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">height</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">focus_width</span><span class="p">);</span>
+<a id="line-1048" name="line-1048"></a><span class="w"> </span><span class="n">cairo_stroke</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">);</span>
+<a id="line-1049" name="line-1049"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1050" name="line-1050"></a><span class="p">}</span>
+<a id="line-1051" name="line-1051"></a>
+<a id="line-1052" name="line-1052"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1053" name="line-1053"></a><span class="nf">set_focus_line_attributes</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">drawing_area</span><span class="p">,</span>
+<a id="line-1054" name="line-1054"></a><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">cr</span><span class="p">,</span>
+<a id="line-1055" name="line-1055"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">focus_width</span><span class="p">)</span>
+<a id="line-1056" name="line-1056"></a><span class="p">{</span>
+<a id="line-1057" name="line-1057"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">4</span><span class="p">];</span>
+<a id="line-1058" name="line-1058"></a><span class="w"> </span><span class="n">gint8</span><span class="w"> </span><span class="o">*</span><span class="n">dash_list</span><span class="p">;</span>
+<a id="line-1059" name="line-1059"></a>
+<a id="line-1060" name="line-1060"></a><span class="w"> </span><span class="n">gtk_widget_style_get</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">,</span>
+<a id="line-1061" name="line-1061"></a><span class="w"> </span><span class="s">&quot;focus-line-width&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">focus_width</span><span class="p">,</span>
+<a id="line-1062" name="line-1062"></a><span class="w"> </span><span class="s">&quot;focus-line-pattern&quot;</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="o">&amp;</span><span class="n">dash_list</span><span class="p">,</span>
+<a id="line-1063" name="line-1063"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1064" name="line-1064"></a>
+<a id="line-1065" name="line-1065"></a><span class="w"> </span><span class="n">palette_get_color</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">,</span><span class="w"> </span><span class="n">color</span><span class="p">);</span>
+<a id="line-1066" name="line-1066"></a>
+<a id="line-1067" name="line-1067"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">INTENSITY</span><span class="w"> </span><span class="p">(</span><span class="n">color</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">2</span><span class="p">])</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mf">0.5</span><span class="p">)</span>
+<a id="line-1068" name="line-1068"></a><span class="w"> </span><span class="n">cairo_set_source_rgb</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="mf">0.</span><span class="p">,</span><span class="w"> </span><span class="mf">0.</span><span class="p">,</span><span class="w"> </span><span class="mf">0.</span><span class="p">);</span>
+<a id="line-1069" name="line-1069"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1070" name="line-1070"></a><span class="w"> </span><span class="n">cairo_set_source_rgb</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="mf">1.</span><span class="p">,</span><span class="w"> </span><span class="mf">1.</span><span class="p">,</span><span class="w"> </span><span class="mf">1.</span><span class="p">);</span>
+<a id="line-1071" name="line-1071"></a>
+<a id="line-1072" name="line-1072"></a><span class="w"> </span><span class="n">cairo_set_line_width</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">focus_width</span><span class="p">);</span>
+<a id="line-1073" name="line-1073"></a>
+<a id="line-1074" name="line-1074"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">dash_list</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span>
+<a id="line-1075" name="line-1075"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1076" name="line-1076"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">n_dashes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strlen</span><span class="w"> </span><span class="p">((</span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">dash_list</span><span class="p">);</span>
+<a id="line-1077" name="line-1077"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">dashes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new</span><span class="w"> </span><span class="p">(</span><span class="n">gdouble</span><span class="p">,</span><span class="w"> </span><span class="n">n_dashes</span><span class="p">);</span>
+<a id="line-1078" name="line-1078"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">total_length</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-1079" name="line-1079"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">dash_offset</span><span class="p">;</span>
+<a id="line-1080" name="line-1080"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-1081" name="line-1081"></a>
+<a id="line-1082" name="line-1082"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">n_dashes</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span>
+<a id="line-1083" name="line-1083"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1084" name="line-1084"></a><span class="w"> </span><span class="n">dashes</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">dash_list</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-1085" name="line-1085"></a><span class="w"> </span><span class="n">total_length</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">dash_list</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-1086" name="line-1086"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1087" name="line-1087"></a>
+<a id="line-1088" name="line-1088"></a><span class="w"> </span><span class="cm">/* The dash offset here aligns the pattern to integer pixels</span>
+<a id="line-1089" name="line-1089"></a><span class="cm"> * by starting the dash at the right side of the left border</span>
+<a id="line-1090" name="line-1090"></a><span class="cm"> * Negative dash offsets in cairo don&#39;t work</span>
+<a id="line-1091" name="line-1091"></a><span class="cm"> * (https://bugs.freedesktop.org/show_bug.cgi?id=2729)</span>
+<a id="line-1092" name="line-1092"></a><span class="cm"> */</span>
+<a id="line-1093" name="line-1093"></a><span class="w"> </span><span class="n">dash_offset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="o">*</span><span class="n">focus_width</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mf">2.</span><span class="p">;</span>
+<a id="line-1094" name="line-1094"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">dash_offset</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-1095" name="line-1095"></a><span class="w"> </span><span class="n">dash_offset</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">total_length</span><span class="p">;</span>
+<a id="line-1096" name="line-1096"></a>
+<a id="line-1097" name="line-1097"></a><span class="w"> </span><span class="n">cairo_set_dash</span><span class="w"> </span><span class="p">(</span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">dashes</span><span class="p">,</span><span class="w"> </span><span class="n">n_dashes</span><span class="p">,</span><span class="w"> </span><span class="n">dash_offset</span><span class="p">);</span>
+<a id="line-1098" name="line-1098"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dashes</span><span class="p">);</span>
+<a id="line-1099" name="line-1099"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1100" name="line-1100"></a>
+<a id="line-1101" name="line-1101"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">dash_list</span><span class="p">);</span>
+<a id="line-1102" name="line-1102"></a><span class="p">}</span>
+<a id="line-1103" name="line-1103"></a>
+<a id="line-1104" name="line-1104"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1105" name="line-1105"></a><span class="nf">palette_drag_begin</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-1106" name="line-1106"></a><span class="w"> </span><span class="n">GdkDragContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">,</span>
+<a id="line-1107" name="line-1107"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-1108" name="line-1108"></a><span class="p">{</span>
+<a id="line-1109" name="line-1109"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">colors</span><span class="p">[</span><span class="mi">4</span><span class="p">];</span>
+<a id="line-1110" name="line-1110"></a>
+<a id="line-1111" name="line-1111"></a><span class="w"> </span><span class="n">palette_get_color</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">colors</span><span class="p">);</span>
+<a id="line-1112" name="line-1112"></a><span class="w"> </span><span class="n">set_color_icon</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">,</span><span class="w"> </span><span class="n">colors</span><span class="p">);</span>
+<a id="line-1113" name="line-1113"></a><span class="p">}</span>
+<a id="line-1114" name="line-1114"></a>
+<a id="line-1115" name="line-1115"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1116" name="line-1116"></a><span class="nf">palette_drag_handle</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-1117" name="line-1117"></a><span class="w"> </span><span class="n">GdkDragContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">,</span>
+<a id="line-1118" name="line-1118"></a><span class="w"> </span><span class="n">GtkSelectionData</span><span class="w"> </span><span class="o">*</span><span class="n">selection_data</span><span class="p">,</span>
+<a id="line-1119" name="line-1119"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">info</span><span class="p">,</span>
+<a id="line-1120" name="line-1120"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">time</span><span class="p">,</span>
+<a id="line-1121" name="line-1121"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-1122" name="line-1122"></a><span class="p">{</span>
+<a id="line-1123" name="line-1123"></a><span class="w"> </span><span class="n">guint16</span><span class="w"> </span><span class="n">vals</span><span class="p">[</span><span class="mi">4</span><span class="p">];</span>
+<a id="line-1124" name="line-1124"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">colsrc</span><span class="p">[</span><span class="mi">4</span><span class="p">];</span>
+<a id="line-1125" name="line-1125"></a>
+<a id="line-1126" name="line-1126"></a><span class="w"> </span><span class="n">palette_get_color</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">colsrc</span><span class="p">);</span>
+<a id="line-1127" name="line-1127"></a>
+<a id="line-1128" name="line-1128"></a><span class="w"> </span><span class="n">vals</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colsrc</span><span class="p">[</span><span class="n">COLORSEL_RED</span><span class="p">]</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mh">0xffff</span><span class="p">;</span>
+<a id="line-1129" name="line-1129"></a><span class="w"> </span><span class="n">vals</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colsrc</span><span class="p">[</span><span class="n">COLORSEL_GREEN</span><span class="p">]</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mh">0xffff</span><span class="p">;</span>
+<a id="line-1130" name="line-1130"></a><span class="w"> </span><span class="n">vals</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colsrc</span><span class="p">[</span><span class="n">COLORSEL_BLUE</span><span class="p">]</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mh">0xffff</span><span class="p">;</span>
+<a id="line-1131" name="line-1131"></a><span class="w"> </span><span class="n">vals</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mh">0xffff</span><span class="p">;</span>
+<a id="line-1132" name="line-1132"></a>
+<a id="line-1133" name="line-1133"></a><span class="w"> </span><span class="n">gtk_selection_data_set</span><span class="w"> </span><span class="p">(</span><span class="n">selection_data</span><span class="p">,</span>
+<a id="line-1134" name="line-1134"></a><span class="w"> </span><span class="n">gdk_atom_intern_static_string</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;application/x-color&quot;</span><span class="p">),</span>
+<a id="line-1135" name="line-1135"></a><span class="w"> </span><span class="mi">16</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">vals</span><span class="p">,</span><span class="w"> </span><span class="mi">8</span><span class="p">);</span>
+<a id="line-1136" name="line-1136"></a><span class="p">}</span>
+<a id="line-1137" name="line-1137"></a>
+<a id="line-1138" name="line-1138"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1139" name="line-1139"></a><span class="nf">palette_drag_end</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-1140" name="line-1140"></a><span class="w"> </span><span class="n">GdkDragContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">,</span>
+<a id="line-1141" name="line-1141"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-1142" name="line-1142"></a><span class="p">{</span>
+<a id="line-1143" name="line-1143"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;gtk-color-selection-drag-window&quot;</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1144" name="line-1144"></a><span class="p">}</span>
+<a id="line-1145" name="line-1145"></a>
+<a id="line-1146" name="line-1146"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1147" name="line-1147"></a><span class="nf">get_current_colors</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">)</span>
+<a id="line-1148" name="line-1148"></a><span class="p">{</span>
+<a id="line-1149" name="line-1149"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">colors</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-1150" name="line-1150"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">n_colors</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-1151" name="line-1151"></a>
+<a id="line-1152" name="line-1152"></a><span class="w"> </span><span class="n">mate_color_selection_palette_from_string</span><span class="w"> </span><span class="p">(</span><span class="n">DEFAULT_COLOR_PALETTE</span><span class="p">,</span>
+<a id="line-1153" name="line-1153"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">colors</span><span class="p">,</span>
+<a id="line-1154" name="line-1154"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">n_colors</span><span class="p">);</span>
+<a id="line-1155" name="line-1155"></a>
+<a id="line-1156" name="line-1156"></a><span class="w"> </span><span class="cm">/* make sure that we fill every slot */</span>
+<a id="line-1157" name="line-1157"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">n_colors</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_CUSTOM_PALETTE_WIDTH</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">GTK_CUSTOM_PALETTE_HEIGHT</span><span class="p">);</span>
+<a id="line-1158" name="line-1158"></a>
+<a id="line-1159" name="line-1159"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">colors</span><span class="p">;</span>
+<a id="line-1160" name="line-1160"></a><span class="p">}</span>
+<a id="line-1161" name="line-1161"></a>
+<a id="line-1162" name="line-1162"></a><span class="cm">/* Changes the model color */</span>
+<a id="line-1163" name="line-1163"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1164" name="line-1164"></a><span class="nf">palette_change_color</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">drawing_area</span><span class="p">,</span>
+<a id="line-1165" name="line-1165"></a><span class="w"> </span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-1166" name="line-1166"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">)</span>
+<a id="line-1167" name="line-1167"></a><span class="p">{</span>
+<a id="line-1168" name="line-1168"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">;</span>
+<a id="line-1169" name="line-1169"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-1170" name="line-1170"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="n">gdk_color</span><span class="p">;</span>
+<a id="line-1171" name="line-1171"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">current_colors</span><span class="p">;</span>
+<a id="line-1172" name="line-1172"></a><span class="w"> </span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">;</span>
+<a id="line-1173" name="line-1173"></a>
+<a id="line-1174" name="line-1174"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">));</span>
+<a id="line-1175" name="line-1175"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_DRAWING_AREA</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">));</span>
+<a id="line-1176" name="line-1176"></a>
+<a id="line-1177" name="line-1177"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-1178" name="line-1178"></a>
+<a id="line-1179" name="line-1179"></a><span class="w"> </span><span class="n">gdk_color</span><span class="p">.</span><span class="n">red</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">0</span><span class="p">];</span>
+<a id="line-1180" name="line-1180"></a><span class="w"> </span><span class="n">gdk_color</span><span class="p">.</span><span class="n">green</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">1</span><span class="p">];</span>
+<a id="line-1181" name="line-1181"></a><span class="w"> </span><span class="n">gdk_color</span><span class="p">.</span><span class="n">blue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">2</span><span class="p">];</span>
+<a id="line-1182" name="line-1182"></a>
+<a id="line-1183" name="line-1183"></a><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-1184" name="line-1184"></a><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Quiet GCC */</span>
+<a id="line-1185" name="line-1185"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">x</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">GTK_CUSTOM_PALETTE_WIDTH</span><span class="p">)</span>
+<a id="line-1186" name="line-1186"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1187" name="line-1187"></a><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-1188" name="line-1188"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">y</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">GTK_CUSTOM_PALETTE_HEIGHT</span><span class="p">)</span>
+<a id="line-1189" name="line-1189"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1190" name="line-1190"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">custom_palette</span><span class="p">[</span><span class="n">x</span><span class="p">][</span><span class="n">y</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">drawing_area</span><span class="p">)</span>
+<a id="line-1191" name="line-1191"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span>
+<a id="line-1192" name="line-1192"></a>
+<a id="line-1193" name="line-1193"></a><span class="w"> </span><span class="o">++</span><span class="n">y</span><span class="p">;</span>
+<a id="line-1194" name="line-1194"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1195" name="line-1195"></a>
+<a id="line-1196" name="line-1196"></a><span class="w"> </span><span class="o">++</span><span class="n">x</span><span class="p">;</span>
+<a id="line-1197" name="line-1197"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1198" name="line-1198"></a>
+<a id="line-1199" name="line-1199"></a><span class="w"> </span><span class="nl">out</span><span class="p">:</span>
+<a id="line-1200" name="line-1200"></a>
+<a id="line-1201" name="line-1201"></a><span class="w"> </span><span class="n">g_assert</span><span class="w"> </span><span class="p">(</span><span class="n">x</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">GTK_CUSTOM_PALETTE_WIDTH</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">GTK_CUSTOM_PALETTE_HEIGHT</span><span class="p">);</span>
+<a id="line-1202" name="line-1202"></a>
+<a id="line-1203" name="line-1203"></a><span class="w"> </span><span class="n">current_colors</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_current_colors</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-1204" name="line-1204"></a><span class="w"> </span><span class="n">current_colors</span><span class="p">[</span><span class="n">y</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">GTK_CUSTOM_PALETTE_WIDTH</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">x</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_color</span><span class="p">;</span>
+<a id="line-1205" name="line-1205"></a>
+<a id="line-1206" name="line-1206"></a><span class="w"> </span><span class="n">screen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_screen</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">));</span>
+<a id="line-1207" name="line-1207"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">change_palette_hook</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">default_change_palette_func</span><span class="p">)</span>
+<a id="line-1208" name="line-1208"></a><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="w"> </span><span class="n">change_palette_hook</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">current_colors</span><span class="p">,</span>
+<a id="line-1209" name="line-1209"></a><span class="w"> </span><span class="n">GTK_CUSTOM_PALETTE_WIDTH</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">GTK_CUSTOM_PALETTE_HEIGHT</span><span class="p">);</span>
+<a id="line-1210" name="line-1210"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">noscreen_change_palette_hook</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">default_noscreen_change_palette_func</span><span class="p">)</span>
+<a id="line-1211" name="line-1211"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1212" name="line-1212"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">gdk_screen_get_default</span><span class="w"> </span><span class="p">())</span>
+<a id="line-1213" name="line-1213"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;mate_color_selection_set_change_palette_hook used by widget is not on the default screen.&quot;</span><span class="p">);</span>
+<a id="line-1214" name="line-1214"></a><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="w"> </span><span class="n">noscreen_change_palette_hook</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">current_colors</span><span class="p">,</span>
+<a id="line-1215" name="line-1215"></a><span class="w"> </span><span class="n">GTK_CUSTOM_PALETTE_WIDTH</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">GTK_CUSTOM_PALETTE_HEIGHT</span><span class="p">);</span>
+<a id="line-1216" name="line-1216"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1217" name="line-1217"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1218" name="line-1218"></a><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="w"> </span><span class="n">change_palette_hook</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">current_colors</span><span class="p">,</span>
+<a id="line-1219" name="line-1219"></a><span class="w"> </span><span class="n">GTK_CUSTOM_PALETTE_WIDTH</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">GTK_CUSTOM_PALETTE_HEIGHT</span><span class="p">);</span>
+<a id="line-1220" name="line-1220"></a>
+<a id="line-1221" name="line-1221"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">current_colors</span><span class="p">);</span>
+<a id="line-1222" name="line-1222"></a><span class="p">}</span>
+<a id="line-1223" name="line-1223"></a>
+<a id="line-1224" name="line-1224"></a><span class="cm">/* Changes the view color */</span>
+<a id="line-1225" name="line-1225"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1226" name="line-1226"></a><span class="nf">palette_set_color</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">drawing_area</span><span class="p">,</span>
+<a id="line-1227" name="line-1227"></a><span class="w"> </span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-1228" name="line-1228"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">)</span>
+<a id="line-1229" name="line-1229"></a><span class="p">{</span>
+<a id="line-1230" name="line-1230"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">pointer</span><span class="p">;</span>
+<a id="line-1231" name="line-1231"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">new_color</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="p">,</span><span class="w"> </span><span class="mi">4</span><span class="p">);</span>
+<a id="line-1232" name="line-1232"></a>
+<a id="line-1233" name="line-1233"></a><span class="w"> </span><span class="n">pointer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_get_data</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;color_set&quot;</span><span class="p">);</span>
+<a id="line-1234" name="line-1234"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">pointer</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">GPOINTER_TO_INT</span><span class="w"> </span><span class="p">(</span><span class="n">pointer</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-1235" name="line-1235"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1236" name="line-1236"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GtkTargetEntry</span><span class="w"> </span><span class="n">targets</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1237" name="line-1237"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="p">.</span><span class="n">target</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;application/x-color&quot;</span><span class="p">,</span><span class="w"> </span><span class="p">.</span><span class="n">flags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="p">.</span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="p">}</span>
+<a id="line-1238" name="line-1238"></a><span class="w"> </span><span class="p">};</span>
+<a id="line-1239" name="line-1239"></a><span class="w"> </span><span class="n">gtk_drag_source_set</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">,</span>
+<a id="line-1240" name="line-1240"></a><span class="w"> </span><span class="n">GDK_BUTTON1_MASK</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_BUTTON3_MASK</span><span class="p">,</span>
+<a id="line-1241" name="line-1241"></a><span class="w"> </span><span class="n">targets</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span>
+<a id="line-1242" name="line-1242"></a><span class="w"> </span><span class="n">GDK_ACTION_COPY</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_ACTION_MOVE</span><span class="p">);</span>
+<a id="line-1243" name="line-1243"></a>
+<a id="line-1244" name="line-1244"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;drag-begin&quot;</span><span class="p">,</span>
+<a id="line-1245" name="line-1245"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">palette_drag_begin</span><span class="p">),</span>
+<a id="line-1246" name="line-1246"></a><span class="w"> </span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-1247" name="line-1247"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;drag-data-get&quot;</span><span class="p">,</span>
+<a id="line-1248" name="line-1248"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">palette_drag_handle</span><span class="p">),</span>
+<a id="line-1249" name="line-1249"></a><span class="w"> </span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-1250" name="line-1250"></a>
+<a id="line-1251" name="line-1251"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;color_set&quot;</span><span class="p">,</span>
+<a id="line-1252" name="line-1252"></a><span class="w"> </span><span class="n">GINT_TO_POINTER</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="p">));</span>
+<a id="line-1253" name="line-1253"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1254" name="line-1254"></a>
+<a id="line-1255" name="line-1255"></a><span class="w"> </span><span class="n">new_color</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">0</span><span class="p">];</span>
+<a id="line-1256" name="line-1256"></a><span class="w"> </span><span class="n">new_color</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">1</span><span class="p">];</span>
+<a id="line-1257" name="line-1257"></a><span class="w"> </span><span class="n">new_color</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">2</span><span class="p">];</span>
+<a id="line-1258" name="line-1258"></a><span class="w"> </span><span class="n">new_color</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-1259" name="line-1259"></a>
+<a id="line-1260" name="line-1260"></a><span class="w"> </span><span class="n">g_object_set_data_full</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;color_val&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">new_color</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">GDestroyNotify</span><span class="p">)</span><span class="n">g_free</span><span class="p">);</span>
+<a id="line-1261" name="line-1261"></a><span class="p">}</span>
+<a id="line-1262" name="line-1262"></a>
+<a id="line-1263" name="line-1263"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-1264" name="line-1264"></a><span class="nf">palette_draw</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">drawing_area</span><span class="p">,</span>
+<a id="line-1265" name="line-1265"></a><span class="w"> </span><span class="n">cairo_t</span><span class="w"> </span><span class="o">*</span><span class="n">cr</span><span class="p">,</span>
+<a id="line-1266" name="line-1266"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-1267" name="line-1267"></a><span class="p">{</span>
+<a id="line-1268" name="line-1268"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_window</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1269" name="line-1269"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1270" name="line-1270"></a>
+<a id="line-1271" name="line-1271"></a><span class="w"> </span><span class="n">palette_paint</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">,</span><span class="w"> </span><span class="n">cr</span><span class="p">,</span><span class="w"> </span><span class="n">data</span><span class="p">);</span>
+<a id="line-1272" name="line-1272"></a>
+<a id="line-1273" name="line-1273"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1274" name="line-1274"></a><span class="p">}</span>
+<a id="line-1275" name="line-1275"></a>
+<a id="line-1276" name="line-1276"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1277" name="line-1277"></a><span class="nf">save_color_selected</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menuitem</span><span class="p">,</span>
+<a id="line-1278" name="line-1278"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-1279" name="line-1279"></a><span class="p">{</span>
+<a id="line-1280" name="line-1280"></a><span class="w"> </span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">;</span>
+<a id="line-1281" name="line-1281"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">drawing_area</span><span class="p">;</span>
+<a id="line-1282" name="line-1282"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-1283" name="line-1283"></a>
+<a id="line-1284" name="line-1284"></a><span class="w"> </span><span class="n">drawing_area</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span>
+<a id="line-1285" name="line-1285"></a>
+<a id="line-1286" name="line-1286"></a><span class="w"> </span><span class="n">colorsel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">g_object_get_data</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">),</span>
+<a id="line-1287" name="line-1287"></a><span class="w"> </span><span class="s">&quot;gtk-color-sel&quot;</span><span class="p">));</span>
+<a id="line-1288" name="line-1288"></a>
+<a id="line-1289" name="line-1289"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-1290" name="line-1290"></a>
+<a id="line-1291" name="line-1291"></a><span class="w"> </span><span class="n">palette_change_color</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">,</span><span class="w"> </span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">);</span>
+<a id="line-1292" name="line-1292"></a><span class="p">}</span>
+<a id="line-1293" name="line-1293"></a>
+<a id="line-1294" name="line-1294"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1295" name="line-1295"></a><span class="nf">do_popup</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-1296" name="line-1296"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">drawing_area</span><span class="p">,</span>
+<a id="line-1297" name="line-1297"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="n">trigger_event</span><span class="p">)</span>
+<a id="line-1298" name="line-1298"></a><span class="p">{</span>
+<a id="line-1299" name="line-1299"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menu</span><span class="p">;</span>
+<a id="line-1300" name="line-1300"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">mi</span><span class="p">;</span>
+<a id="line-1301" name="line-1301"></a>
+<a id="line-1302" name="line-1302"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">),</span>
+<a id="line-1303" name="line-1303"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;gtk-color-sel&quot;</span><span class="p">),</span>
+<a id="line-1304" name="line-1304"></a><span class="w"> </span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-1305" name="line-1305"></a>
+<a id="line-1306" name="line-1306"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1307" name="line-1307"></a>
+<a id="line-1308" name="line-1308"></a><span class="w"> </span><span class="n">mi</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_item_new_with_mnemonic</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Save color here&quot;</span><span class="p">));</span>
+<a id="line-1309" name="line-1309"></a>
+<a id="line-1310" name="line-1310"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">mi</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;activate&quot;</span><span class="p">,</span>
+<a id="line-1311" name="line-1311"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">save_color_selected</span><span class="p">),</span>
+<a id="line-1312" name="line-1312"></a><span class="w"> </span><span class="n">drawing_area</span><span class="p">);</span>
+<a id="line-1313" name="line-1313"></a>
+<a id="line-1314" name="line-1314"></a><span class="w"> </span><span class="n">gtk_menu_shell_append</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU_SHELL</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">mi</span><span class="p">);</span>
+<a id="line-1315" name="line-1315"></a>
+<a id="line-1316" name="line-1316"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">mi</span><span class="p">);</span>
+<a id="line-1317" name="line-1317"></a>
+<a id="line-1318" name="line-1318"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">trigger_event</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">gdk_event_triggers_context_menu</span><span class="w"> </span><span class="p">(</span><span class="n">trigger_event</span><span class="p">))</span>
+<a id="line-1319" name="line-1319"></a><span class="w"> </span><span class="n">gtk_menu_popup_at_pointer</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">trigger_event</span><span class="p">);</span>
+<a id="line-1320" name="line-1320"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-1321" name="line-1321"></a><span class="w"> </span><span class="cm">/* We use the drawing area&#39;s parent to anchor the menu because of GTK bug</span>
+<a id="line-1322" name="line-1322"></a><span class="cm"> * https://gitlab.gnome.org/GNOME/gtk/-/issues/6166 that leads to</span>
+<a id="line-1323" name="line-1323"></a><span class="cm"> * misplacement of the popup if the anchor widget has its own window.</span>
+<a id="line-1324" name="line-1324"></a><span class="cm"> * The drawing area ought to have its own window though, as it is mandatory</span>
+<a id="line-1325" name="line-1325"></a><span class="cm"> * for setting it up as a drag source.</span>
+<a id="line-1326" name="line-1326"></a><span class="cm"> * Using the parent is OK in our case because the drawing area&#39;s parent is</span>
+<a id="line-1327" name="line-1327"></a><span class="cm"> * a frame that has it as its only child, and thus size and placement is</span>
+<a id="line-1328" name="line-1328"></a><span class="cm"> * appropriate for placing the menu. */</span>
+<a id="line-1329" name="line-1329"></a><span class="w"> </span><span class="n">gtk_menu_popup_at_widget</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_MENU</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">),</span>
+<a id="line-1330" name="line-1330"></a><span class="w"> </span><span class="n">gtk_widget_get_parent</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">),</span>
+<a id="line-1331" name="line-1331"></a><span class="w"> </span><span class="n">GDK_GRAVITY_CENTER</span><span class="p">,</span>
+<a id="line-1332" name="line-1332"></a><span class="w"> </span><span class="n">GDK_GRAVITY_NORTH_WEST</span><span class="p">,</span>
+<a id="line-1333" name="line-1333"></a><span class="w"> </span><span class="n">trigger_event</span><span class="p">);</span>
+<a id="line-1334" name="line-1334"></a><span class="p">}</span>
+<a id="line-1335" name="line-1335"></a>
+<a id="line-1336" name="line-1336"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-1337" name="line-1337"></a><span class="nf">palette_enter</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">drawing_area</span><span class="p">,</span>
+<a id="line-1338" name="line-1338"></a><span class="w"> </span><span class="n">GdkEventCrossing</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span>
+<a id="line-1339" name="line-1339"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-1340" name="line-1340"></a><span class="p">{</span>
+<a id="line-1341" name="line-1341"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">),</span>
+<a id="line-1342" name="line-1342"></a><span class="w"> </span><span class="s">&quot;gtk-colorsel-have-pointer&quot;</span><span class="p">,</span>
+<a id="line-1343" name="line-1343"></a><span class="w"> </span><span class="n">GUINT_TO_POINTER</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">));</span>
+<a id="line-1344" name="line-1344"></a>
+<a id="line-1345" name="line-1345"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1346" name="line-1346"></a><span class="p">}</span>
+<a id="line-1347" name="line-1347"></a>
+<a id="line-1348" name="line-1348"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-1349" name="line-1349"></a><span class="nf">palette_leave</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">drawing_area</span><span class="p">,</span>
+<a id="line-1350" name="line-1350"></a><span class="w"> </span><span class="n">GdkEventCrossing</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span>
+<a id="line-1351" name="line-1351"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-1352" name="line-1352"></a><span class="p">{</span>
+<a id="line-1353" name="line-1353"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">),</span>
+<a id="line-1354" name="line-1354"></a><span class="w"> </span><span class="s">&quot;gtk-colorsel-have-pointer&quot;</span><span class="p">,</span>
+<a id="line-1355" name="line-1355"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1356" name="line-1356"></a>
+<a id="line-1357" name="line-1357"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1358" name="line-1358"></a><span class="p">}</span>
+<a id="line-1359" name="line-1359"></a>
+<a id="line-1360" name="line-1360"></a><span class="cm">/* private function copied from gtk2/gtkmain.c */</span>
+<a id="line-1361" name="line-1361"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-1362" name="line-1362"></a><span class="nf">_gtk_button_event_triggers_context_menu</span><span class="w"> </span><span class="p">(</span><span class="n">GdkEventButton</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">)</span>
+<a id="line-1363" name="line-1363"></a><span class="p">{</span>
+<a id="line-1364" name="line-1364"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-&gt;</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_BUTTON_PRESS</span><span class="p">)</span>
+<a id="line-1365" name="line-1365"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1366" name="line-1366"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-&gt;</span><span class="n">button</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">3</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-1367" name="line-1367"></a><span class="w"> </span><span class="o">!</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-&gt;</span><span class="n">state</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_BUTTON1_MASK</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_BUTTON2_MASK</span><span class="p">)))</span>
+<a id="line-1368" name="line-1368"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1369" name="line-1369"></a>
+<a id="line-1370" name="line-1370"></a><span class="cp">#ifdef GDK_WINDOWING_QUARTZ</span>
+<a id="line-1371" name="line-1371"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-&gt;</span><span class="n">button</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-1372" name="line-1372"></a><span class="w"> </span><span class="o">!</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-&gt;</span><span class="n">state</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_BUTTON2_MASK</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_BUTTON3_MASK</span><span class="p">))</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-1373" name="line-1373"></a><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-&gt;</span><span class="n">state</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">GDK_CONTROL_MASK</span><span class="p">))</span>
+<a id="line-1374" name="line-1374"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1375" name="line-1375"></a><span class="cp">#endif</span>
+<a id="line-1376" name="line-1376"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1377" name="line-1377"></a>
+<a id="line-1378" name="line-1378"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1379" name="line-1379"></a><span class="p">}</span>
+<a id="line-1380" name="line-1380"></a>
+<a id="line-1381" name="line-1381"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-1382" name="line-1382"></a><span class="nf">palette_press</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">drawing_area</span><span class="p">,</span>
+<a id="line-1383" name="line-1383"></a><span class="w"> </span><span class="n">GdkEventButton</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span>
+<a id="line-1384" name="line-1384"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-1385" name="line-1385"></a><span class="p">{</span>
+<a id="line-1386" name="line-1386"></a><span class="w"> </span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span>
+<a id="line-1387" name="line-1387"></a>
+<a id="line-1388" name="line-1388"></a><span class="w"> </span><span class="n">gtk_widget_grab_focus</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">);</span>
+<a id="line-1389" name="line-1389"></a>
+<a id="line-1390" name="line-1390"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">_gtk_button_event_triggers_context_menu</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="p">))</span>
+<a id="line-1391" name="line-1391"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1392" name="line-1392"></a><span class="w"> </span><span class="n">do_popup</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="n">drawing_area</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">event</span><span class="p">);</span>
+<a id="line-1393" name="line-1393"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1394" name="line-1394"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1395" name="line-1395"></a>
+<a id="line-1396" name="line-1396"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1397" name="line-1397"></a><span class="p">}</span>
+<a id="line-1398" name="line-1398"></a>
+<a id="line-1399" name="line-1399"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-1400" name="line-1400"></a><span class="nf">palette_release</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">drawing_area</span><span class="p">,</span>
+<a id="line-1401" name="line-1401"></a><span class="w"> </span><span class="n">GdkEventButton</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span>
+<a id="line-1402" name="line-1402"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-1403" name="line-1403"></a><span class="p">{</span>
+<a id="line-1404" name="line-1404"></a><span class="w"> </span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span>
+<a id="line-1405" name="line-1405"></a>
+<a id="line-1406" name="line-1406"></a><span class="w"> </span><span class="n">gtk_widget_grab_focus</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">);</span>
+<a id="line-1407" name="line-1407"></a>
+<a id="line-1408" name="line-1408"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-&gt;</span><span class="n">button</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-1409" name="line-1409"></a><span class="w"> </span><span class="n">g_object_get_data</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">),</span>
+<a id="line-1410" name="line-1410"></a><span class="w"> </span><span class="s">&quot;gtk-colorsel-have-pointer&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1411" name="line-1411"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1412" name="line-1412"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">pointer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_get_data</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;color_set&quot;</span><span class="p">);</span>
+<a id="line-1413" name="line-1413"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">pointer</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">GPOINTER_TO_INT</span><span class="w"> </span><span class="p">(</span><span class="n">pointer</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-1414" name="line-1414"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1415" name="line-1415"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">4</span><span class="p">];</span>
+<a id="line-1416" name="line-1416"></a><span class="w"> </span><span class="n">palette_get_color</span><span class="w"> </span><span class="p">(</span><span class="n">drawing_area</span><span class="p">,</span><span class="w"> </span><span class="n">color</span><span class="p">);</span>
+<a id="line-1417" name="line-1417"></a><span class="w"> </span><span class="n">set_color_internal</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="n">color</span><span class="p">);</span>
+<a id="line-1418" name="line-1418"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1419" name="line-1419"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1420" name="line-1420"></a>
+<a id="line-1421" name="line-1421"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1422" name="line-1422"></a><span class="p">}</span>
+<a id="line-1423" name="line-1423"></a>
+<a id="line-1424" name="line-1424"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1425" name="line-1425"></a><span class="nf">palette_drop_handle</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-1426" name="line-1426"></a><span class="w"> </span><span class="n">GdkDragContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">,</span>
+<a id="line-1427" name="line-1427"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x</span><span class="p">,</span>
+<a id="line-1428" name="line-1428"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">y</span><span class="p">,</span>
+<a id="line-1429" name="line-1429"></a><span class="w"> </span><span class="n">GtkSelectionData</span><span class="w"> </span><span class="o">*</span><span class="n">selection_data</span><span class="p">,</span>
+<a id="line-1430" name="line-1430"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">info</span><span class="p">,</span>
+<a id="line-1431" name="line-1431"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">time</span><span class="p">,</span>
+<a id="line-1432" name="line-1432"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-1433" name="line-1433"></a><span class="p">{</span>
+<a id="line-1434" name="line-1434"></a><span class="w"> </span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span>
+<a id="line-1435" name="line-1435"></a><span class="w"> </span><span class="n">guint16</span><span class="w"> </span><span class="o">*</span><span class="n">vals</span><span class="p">;</span>
+<a id="line-1436" name="line-1436"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">4</span><span class="p">];</span>
+<a id="line-1437" name="line-1437"></a>
+<a id="line-1438" name="line-1438"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_selection_data_get_length</span><span class="w"> </span><span class="p">(</span><span class="n">selection_data</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-1439" name="line-1439"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-1440" name="line-1440"></a>
+<a id="line-1441" name="line-1441"></a><span class="w"> </span><span class="cm">/* We accept drops with the wrong format, since the KDE color</span>
+<a id="line-1442" name="line-1442"></a><span class="cm"> * chooser incorrectly drops application/x-color with format 8.</span>
+<a id="line-1443" name="line-1443"></a><span class="cm"> */</span>
+<a id="line-1444" name="line-1444"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_selection_data_get_length</span><span class="w"> </span><span class="p">(</span><span class="n">selection_data</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">8</span><span class="p">)</span>
+<a id="line-1445" name="line-1445"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1446" name="line-1446"></a><span class="w"> </span><span class="n">g_warning</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;Received invalid color data</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">);</span>
+<a id="line-1447" name="line-1447"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-1448" name="line-1448"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1449" name="line-1449"></a>
+<a id="line-1450" name="line-1450"></a><span class="w"> </span><span class="n">vals</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">guint16</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">gtk_selection_data_get_data</span><span class="w"> </span><span class="p">(</span><span class="n">selection_data</span><span class="p">);</span>
+<a id="line-1451" name="line-1451"></a>
+<a id="line-1452" name="line-1452"></a><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gdouble</span><span class="p">)</span><span class="n">vals</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mh">0xffff</span><span class="p">;</span>
+<a id="line-1453" name="line-1453"></a><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gdouble</span><span class="p">)</span><span class="n">vals</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mh">0xffff</span><span class="p">;</span>
+<a id="line-1454" name="line-1454"></a><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gdouble</span><span class="p">)</span><span class="n">vals</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mh">0xffff</span><span class="p">;</span>
+<a id="line-1455" name="line-1455"></a><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gdouble</span><span class="p">)</span><span class="n">vals</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mh">0xffff</span><span class="p">;</span>
+<a id="line-1456" name="line-1456"></a><span class="w"> </span><span class="n">palette_change_color</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="n">color</span><span class="p">);</span>
+<a id="line-1457" name="line-1457"></a><span class="w"> </span><span class="n">set_color_internal</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="n">color</span><span class="p">);</span>
+<a id="line-1458" name="line-1458"></a><span class="p">}</span>
+<a id="line-1459" name="line-1459"></a>
+<a id="line-1460" name="line-1460"></a><span class="k">static</span><span class="w"> </span><span class="n">gint</span>
+<a id="line-1461" name="line-1461"></a><span class="nf">palette_activate</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-1462" name="line-1462"></a><span class="w"> </span><span class="n">GdkEventKey</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span>
+<a id="line-1463" name="line-1463"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-1464" name="line-1464"></a><span class="p">{</span>
+<a id="line-1465" name="line-1465"></a><span class="w"> </span><span class="cm">/* should have a drawing area subclass with an activate signal */</span>
+<a id="line-1466" name="line-1466"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">event</span><span class="o">-&gt;</span><span class="n">keyval</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_KEY_space</span><span class="p">)</span><span class="w"> </span><span class="o">||</span>
+<a id="line-1467" name="line-1467"></a><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-&gt;</span><span class="n">keyval</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_KEY_Return</span><span class="p">)</span><span class="w"> </span><span class="o">||</span>
+<a id="line-1468" name="line-1468"></a><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-&gt;</span><span class="n">keyval</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_KEY_ISO_Enter</span><span class="p">)</span><span class="w"> </span><span class="o">||</span>
+<a id="line-1469" name="line-1469"></a><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-&gt;</span><span class="n">keyval</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_KEY_KP_Enter</span><span class="p">)</span><span class="w"> </span><span class="o">||</span>
+<a id="line-1470" name="line-1470"></a><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-&gt;</span><span class="n">keyval</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_KEY_KP_Space</span><span class="p">))</span>
+<a id="line-1471" name="line-1471"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1472" name="line-1472"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">pointer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_get_data</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;color_set&quot;</span><span class="p">);</span>
+<a id="line-1473" name="line-1473"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">pointer</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">GPOINTER_TO_INT</span><span class="w"> </span><span class="p">(</span><span class="n">pointer</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-1474" name="line-1474"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1475" name="line-1475"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">4</span><span class="p">];</span>
+<a id="line-1476" name="line-1476"></a><span class="w"> </span><span class="n">palette_get_color</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">color</span><span class="p">);</span>
+<a id="line-1477" name="line-1477"></a><span class="w"> </span><span class="n">set_color_internal</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">),</span><span class="w"> </span><span class="n">color</span><span class="p">);</span>
+<a id="line-1478" name="line-1478"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1479" name="line-1479"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1480" name="line-1480"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1481" name="line-1481"></a>
+<a id="line-1482" name="line-1482"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1483" name="line-1483"></a><span class="p">}</span>
+<a id="line-1484" name="line-1484"></a>
+<a id="line-1485" name="line-1485"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-1486" name="line-1486"></a><span class="nf">palette_popup</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span>
+<a id="line-1487" name="line-1487"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-1488" name="line-1488"></a><span class="p">{</span>
+<a id="line-1489" name="line-1489"></a><span class="w"> </span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span>
+<a id="line-1490" name="line-1490"></a>
+<a id="line-1491" name="line-1491"></a><span class="w"> </span><span class="n">do_popup</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1492" name="line-1492"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1493" name="line-1493"></a><span class="p">}</span>
+<a id="line-1494" name="line-1494"></a>
+<a id="line-1495" name="line-1495"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="o">*</span>
+<a id="line-1496" name="line-1496"></a><span class="nf">palette_new</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">)</span>
+<a id="line-1497" name="line-1497"></a><span class="p">{</span>
+<a id="line-1498" name="line-1498"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GtkTargetEntry</span><span class="w"> </span><span class="n">targets</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span>
+<a id="line-1499" name="line-1499"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="p">.</span><span class="n">target</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;application/x-color&quot;</span><span class="p">,</span><span class="w"> </span><span class="p">.</span><span class="n">flags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="p">.</span><span class="n">info</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="p">}</span>
+<a id="line-1500" name="line-1500"></a><span class="w"> </span><span class="p">};</span>
+<a id="line-1501" name="line-1501"></a>
+<a id="line-1502" name="line-1502"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_drawing_area_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1503" name="line-1503"></a>
+<a id="line-1504" name="line-1504"></a><span class="w"> </span><span class="n">gtk_widget_set_can_focus</span><span class="w"> </span><span class="p">(</span><span class="n">retval</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-1505" name="line-1505"></a>
+<a id="line-1506" name="line-1506"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">retval</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;color_set&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">GINT_TO_POINTER</span><span class="w"> </span><span class="p">(</span><span class="mi">0</span><span class="p">));</span>
+<a id="line-1507" name="line-1507"></a><span class="w"> </span><span class="n">gtk_widget_set_events</span><span class="w"> </span><span class="p">(</span><span class="n">retval</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_BUTTON_PRESS_MASK</span>
+<a id="line-1508" name="line-1508"></a><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_BUTTON_RELEASE_MASK</span>
+<a id="line-1509" name="line-1509"></a><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_EXPOSURE_MASK</span>
+<a id="line-1510" name="line-1510"></a><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_ENTER_NOTIFY_MASK</span>
+<a id="line-1511" name="line-1511"></a><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_LEAVE_NOTIFY_MASK</span><span class="p">);</span>
+<a id="line-1512" name="line-1512"></a>
+<a id="line-1513" name="line-1513"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">retval</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;draw&quot;</span><span class="p">,</span>
+<a id="line-1514" name="line-1514"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">palette_draw</span><span class="p">),</span><span class="w"> </span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-1515" name="line-1515"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">retval</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;button-press-event&quot;</span><span class="p">,</span>
+<a id="line-1516" name="line-1516"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">palette_press</span><span class="p">),</span><span class="w"> </span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-1517" name="line-1517"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">retval</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;button-release-event&quot;</span><span class="p">,</span>
+<a id="line-1518" name="line-1518"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">palette_release</span><span class="p">),</span><span class="w"> </span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-1519" name="line-1519"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">retval</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;enter-notify-event&quot;</span><span class="p">,</span>
+<a id="line-1520" name="line-1520"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">palette_enter</span><span class="p">),</span><span class="w"> </span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-1521" name="line-1521"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">retval</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;leave-notify-event&quot;</span><span class="p">,</span>
+<a id="line-1522" name="line-1522"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">palette_leave</span><span class="p">),</span><span class="w"> </span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-1523" name="line-1523"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">retval</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;key-press-event&quot;</span><span class="p">,</span>
+<a id="line-1524" name="line-1524"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">palette_activate</span><span class="p">),</span><span class="w"> </span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-1525" name="line-1525"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">retval</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;popup-menu&quot;</span><span class="p">,</span>
+<a id="line-1526" name="line-1526"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">palette_popup</span><span class="p">),</span><span class="w"> </span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-1527" name="line-1527"></a>
+<a id="line-1528" name="line-1528"></a><span class="w"> </span><span class="n">gtk_drag_dest_set</span><span class="w"> </span><span class="p">(</span><span class="n">retval</span><span class="p">,</span>
+<a id="line-1529" name="line-1529"></a><span class="w"> </span><span class="n">GTK_DEST_DEFAULT_HIGHLIGHT</span><span class="w"> </span><span class="o">|</span>
+<a id="line-1530" name="line-1530"></a><span class="w"> </span><span class="n">GTK_DEST_DEFAULT_MOTION</span><span class="w"> </span><span class="o">|</span>
+<a id="line-1531" name="line-1531"></a><span class="w"> </span><span class="n">GTK_DEST_DEFAULT_DROP</span><span class="p">,</span>
+<a id="line-1532" name="line-1532"></a><span class="w"> </span><span class="n">targets</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span>
+<a id="line-1533" name="line-1533"></a><span class="w"> </span><span class="n">GDK_ACTION_COPY</span><span class="p">);</span>
+<a id="line-1534" name="line-1534"></a>
+<a id="line-1535" name="line-1535"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">retval</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;drag-end&quot;</span><span class="p">,</span>
+<a id="line-1536" name="line-1536"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">palette_drag_end</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1537" name="line-1537"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">retval</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;drag-data-received&quot;</span><span class="p">,</span>
+<a id="line-1538" name="line-1538"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">palette_drop_handle</span><span class="p">),</span><span class="w"> </span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-1539" name="line-1539"></a>
+<a id="line-1540" name="line-1540"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">retval</span><span class="p">,</span>
+<a id="line-1541" name="line-1541"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Click this palette entry to make it the current color. To change this entry, drag a color swatch here or right-click it and select </span><span class="se">\&quot;</span><span class="s">Save color here.</span><span class="se">\&quot;</span><span class="s">&quot;</span><span class="p">));</span>
+<a id="line-1542" name="line-1542"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span>
+<a id="line-1543" name="line-1543"></a><span class="p">}</span>
+<a id="line-1544" name="line-1544"></a>
+<a id="line-1545" name="line-1545"></a><span class="cm">/*</span>
+<a id="line-1546" name="line-1546"></a><span class="cm"> *</span>
+<a id="line-1547" name="line-1547"></a><span class="cm"> * The actual MateColorSelection widget</span>
+<a id="line-1548" name="line-1548"></a><span class="cm"> *</span>
+<a id="line-1549" name="line-1549"></a><span class="cm"> */</span>
+<a id="line-1550" name="line-1550"></a>
+<a id="line-1551" name="line-1551"></a><span class="k">static</span><span class="w"> </span><span class="n">GdkCursor</span><span class="w"> </span><span class="o">*</span>
+<a id="line-1552" name="line-1552"></a><span class="nf">make_picker_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">)</span>
+<a id="line-1553" name="line-1553"></a><span class="p">{</span>
+<a id="line-1554" name="line-1554"></a><span class="w"> </span><span class="n">GdkCursor</span><span class="w"> </span><span class="o">*</span><span class="n">cursor</span><span class="p">;</span>
+<a id="line-1555" name="line-1555"></a>
+<a id="line-1556" name="line-1556"></a><span class="w"> </span><span class="n">cursor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_cursor_new_from_name</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_screen_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">),</span>
+<a id="line-1557" name="line-1557"></a><span class="w"> </span><span class="s">&quot;color-picker&quot;</span><span class="p">);</span>
+<a id="line-1558" name="line-1558"></a>
+<a id="line-1559" name="line-1559"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">cursor</span><span class="p">)</span>
+<a id="line-1560" name="line-1560"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1561" name="line-1561"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-1562" name="line-1562"></a>
+<a id="line-1563" name="line-1563"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_new_from_data</span><span class="w"> </span><span class="p">(</span><span class="n">dropper_bits</span><span class="p">,</span>
+<a id="line-1564" name="line-1564"></a><span class="w"> </span><span class="n">GDK_COLORSPACE_RGB</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">8</span><span class="p">,</span>
+<a id="line-1565" name="line-1565"></a><span class="w"> </span><span class="n">DROPPER_WIDTH</span><span class="p">,</span><span class="w"> </span><span class="n">DROPPER_HEIGHT</span><span class="p">,</span>
+<a id="line-1566" name="line-1566"></a><span class="w"> </span><span class="n">DROPPER_STRIDE</span><span class="p">,</span>
+<a id="line-1567" name="line-1567"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1568" name="line-1568"></a>
+<a id="line-1569" name="line-1569"></a><span class="w"> </span><span class="n">cursor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_cursor_new_from_pixbuf</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_screen_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">),</span>
+<a id="line-1570" name="line-1570"></a><span class="w"> </span><span class="n">pixbuf</span><span class="p">,</span>
+<a id="line-1571" name="line-1571"></a><span class="w"> </span><span class="n">DROPPER_X_HOT</span><span class="p">,</span><span class="w"> </span><span class="n">DROPPER_Y_HOT</span><span class="p">);</span>
+<a id="line-1572" name="line-1572"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span>
+<a id="line-1573" name="line-1573"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1574" name="line-1574"></a>
+<a id="line-1575" name="line-1575"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">cursor</span><span class="p">;</span>
+<a id="line-1576" name="line-1576"></a><span class="p">}</span>
+<a id="line-1577" name="line-1577"></a>
+<a id="line-1578" name="line-1578"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1579" name="line-1579"></a><span class="nf">grab_color_at_mouse</span><span class="w"> </span><span class="p">(</span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-1580" name="line-1580"></a><span class="w"> </span><span class="n">GdkDevice</span><span class="w"> </span><span class="o">*</span><span class="n">device</span><span class="p">,</span>
+<a id="line-1581" name="line-1581"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x_root</span><span class="p">,</span>
+<a id="line-1582" name="line-1582"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">y_root</span><span class="p">,</span>
+<a id="line-1583" name="line-1583"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-1584" name="line-1584"></a><span class="p">{</span>
+<a id="line-1585" name="line-1585"></a><span class="w"> </span><span class="n">GdkPixbuf</span><span class="w"> </span><span class="o">*</span><span class="n">pixbuf</span><span class="p">;</span>
+<a id="line-1586" name="line-1586"></a><span class="w"> </span><span class="n">guchar</span><span class="w"> </span><span class="o">*</span><span class="n">pixels</span><span class="p">;</span>
+<a id="line-1587" name="line-1587"></a><span class="w"> </span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">data</span><span class="p">;</span>
+<a id="line-1588" name="line-1588"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-1589" name="line-1589"></a><span class="w"> </span><span class="n">GdkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">root_window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_screen_get_root_window</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">);</span>
+<a id="line-1590" name="line-1590"></a>
+<a id="line-1591" name="line-1591"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-1592" name="line-1592"></a>
+<a id="line-1593" name="line-1593"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_from_window</span><span class="w"> </span><span class="p">(</span><span class="n">root_window</span><span class="p">,</span>
+<a id="line-1594" name="line-1594"></a><span class="w"> </span><span class="n">x_root</span><span class="p">,</span><span class="w"> </span><span class="n">y_root</span><span class="p">,</span>
+<a id="line-1595" name="line-1595"></a><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-1596" name="line-1596"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">pixbuf</span><span class="p">)</span>
+<a id="line-1597" name="line-1597"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1598" name="line-1598"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">;</span>
+<a id="line-1599" name="line-1599"></a><span class="w"> </span><span class="n">GdkWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_device_get_window_at_position</span><span class="w"> </span><span class="p">(</span><span class="n">device</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">y</span><span class="p">);</span>
+<a id="line-1600" name="line-1600"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">window</span><span class="p">)</span>
+<a id="line-1601" name="line-1601"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-1602" name="line-1602"></a><span class="w"> </span><span class="n">pixbuf</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_from_window</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">,</span>
+<a id="line-1603" name="line-1603"></a><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span>
+<a id="line-1604" name="line-1604"></a><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-1605" name="line-1605"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">pixbuf</span><span class="p">)</span>
+<a id="line-1606" name="line-1606"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-1607" name="line-1607"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1608" name="line-1608"></a><span class="w"> </span><span class="n">pixels</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_pixbuf_get_pixels</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span>
+<a id="line-1609" name="line-1609"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_RED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">SCALE</span><span class="p">(</span><span class="n">pixels</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mh">0x101</span><span class="p">);</span>
+<a id="line-1610" name="line-1610"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_GREEN</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">SCALE</span><span class="p">(</span><span class="n">pixels</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mh">0x101</span><span class="p">);</span>
+<a id="line-1611" name="line-1611"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_BLUE</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">SCALE</span><span class="p">(</span><span class="n">pixels</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mh">0x101</span><span class="p">);</span>
+<a id="line-1612" name="line-1612"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">pixbuf</span><span class="p">);</span>
+<a id="line-1613" name="line-1613"></a>
+<a id="line-1614" name="line-1614"></a><span class="w"> </span><span class="n">gtk_rgb_to_hsv</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_RED</span><span class="p">],</span>
+<a id="line-1615" name="line-1615"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_GREEN</span><span class="p">],</span>
+<a id="line-1616" name="line-1616"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_BLUE</span><span class="p">],</span>
+<a id="line-1617" name="line-1617"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_HUE</span><span class="p">],</span>
+<a id="line-1618" name="line-1618"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_SATURATION</span><span class="p">],</span>
+<a id="line-1619" name="line-1619"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_VALUE</span><span class="p">]);</span>
+<a id="line-1620" name="line-1620"></a>
+<a id="line-1621" name="line-1621"></a><span class="w"> </span><span class="n">update_color</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-1622" name="line-1622"></a><span class="p">}</span>
+<a id="line-1623" name="line-1623"></a>
+<a id="line-1624" name="line-1624"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1625" name="line-1625"></a><span class="nf">shutdown_eyedropper</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">)</span>
+<a id="line-1626" name="line-1626"></a><span class="p">{</span>
+<a id="line-1627" name="line-1627"></a><span class="w"> </span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">;</span>
+<a id="line-1628" name="line-1628"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-1629" name="line-1629"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-1630" name="line-1630"></a><span class="w"> </span><span class="n">GdkSeat</span><span class="w"> </span><span class="o">*</span><span class="n">seat</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_display_get_default_seat</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-1631" name="line-1631"></a>
+<a id="line-1632" name="line-1632"></a><span class="w"> </span><span class="n">colorsel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-1633" name="line-1633"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-1634" name="line-1634"></a>
+<a id="line-1635" name="line-1635"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">has_grab</span><span class="p">)</span>
+<a id="line-1636" name="line-1636"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1637" name="line-1637"></a><span class="w"> </span><span class="n">gdk_seat_ungrab</span><span class="w"> </span><span class="p">(</span><span class="n">seat</span><span class="p">);</span>
+<a id="line-1638" name="line-1638"></a><span class="w"> </span><span class="n">gtk_grab_remove</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">dropper_grab_widget</span><span class="p">);</span>
+<a id="line-1639" name="line-1639"></a>
+<a id="line-1640" name="line-1640"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">has_grab</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1641" name="line-1641"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1642" name="line-1642"></a><span class="p">}</span>
+<a id="line-1643" name="line-1643"></a>
+<a id="line-1644" name="line-1644"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1645" name="line-1645"></a><span class="nf">mouse_motion</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">invisible</span><span class="p">,</span>
+<a id="line-1646" name="line-1646"></a><span class="w"> </span><span class="n">GdkEventMotion</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span>
+<a id="line-1647" name="line-1647"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-1648" name="line-1648"></a><span class="p">{</span>
+<a id="line-1649" name="line-1649"></a><span class="w"> </span><span class="n">grab_color_at_mouse</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_event_get_screen</span><span class="w"> </span><span class="p">((</span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">event</span><span class="p">),</span>
+<a id="line-1650" name="line-1650"></a><span class="w"> </span><span class="n">gdk_event_get_device</span><span class="w"> </span><span class="p">((</span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">event</span><span class="p">),</span>
+<a id="line-1651" name="line-1651"></a><span class="w"> </span><span class="n">event</span><span class="o">-&gt;</span><span class="n">x_root</span><span class="p">,</span><span class="w"> </span><span class="n">event</span><span class="o">-&gt;</span><span class="n">y_root</span><span class="p">,</span><span class="w"> </span><span class="n">data</span><span class="p">);</span>
+<a id="line-1652" name="line-1652"></a><span class="p">}</span>
+<a id="line-1653" name="line-1653"></a>
+<a id="line-1654" name="line-1654"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-1655" name="line-1655"></a><span class="nf">mouse_release</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">invisible</span><span class="p">,</span>
+<a id="line-1656" name="line-1656"></a><span class="w"> </span><span class="n">GdkEventButton</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span>
+<a id="line-1657" name="line-1657"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-1658" name="line-1658"></a><span class="p">{</span>
+<a id="line-1659" name="line-1659"></a><span class="w"> </span><span class="cm">/* MateColorSelection *colorsel = data; */</span>
+<a id="line-1660" name="line-1660"></a>
+<a id="line-1661" name="line-1661"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-&gt;</span><span class="n">button</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span>
+<a id="line-1662" name="line-1662"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1663" name="line-1663"></a>
+<a id="line-1664" name="line-1664"></a><span class="w"> </span><span class="n">grab_color_at_mouse</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_event_get_screen</span><span class="w"> </span><span class="p">((</span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">event</span><span class="p">),</span>
+<a id="line-1665" name="line-1665"></a><span class="w"> </span><span class="n">gdk_event_get_device</span><span class="w"> </span><span class="p">((</span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">event</span><span class="p">),</span>
+<a id="line-1666" name="line-1666"></a><span class="w"> </span><span class="n">event</span><span class="o">-&gt;</span><span class="n">x_root</span><span class="p">,</span><span class="w"> </span><span class="n">event</span><span class="o">-&gt;</span><span class="n">y_root</span><span class="p">,</span><span class="w"> </span><span class="n">data</span><span class="p">);</span>
+<a id="line-1667" name="line-1667"></a>
+<a id="line-1668" name="line-1668"></a><span class="w"> </span><span class="n">shutdown_eyedropper</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">));</span>
+<a id="line-1669" name="line-1669"></a>
+<a id="line-1670" name="line-1670"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">invisible</span><span class="p">,</span>
+<a id="line-1671" name="line-1671"></a><span class="w"> </span><span class="n">mouse_motion</span><span class="p">,</span>
+<a id="line-1672" name="line-1672"></a><span class="w"> </span><span class="n">data</span><span class="p">);</span>
+<a id="line-1673" name="line-1673"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">invisible</span><span class="p">,</span>
+<a id="line-1674" name="line-1674"></a><span class="w"> </span><span class="n">mouse_release</span><span class="p">,</span>
+<a id="line-1675" name="line-1675"></a><span class="w"> </span><span class="n">data</span><span class="p">);</span>
+<a id="line-1676" name="line-1676"></a>
+<a id="line-1677" name="line-1677"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1678" name="line-1678"></a><span class="p">}</span>
+<a id="line-1679" name="line-1679"></a>
+<a id="line-1680" name="line-1680"></a><span class="cm">/* Helper Functions */</span>
+<a id="line-1681" name="line-1681"></a>
+<a id="line-1682" name="line-1682"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-1683" name="line-1683"></a><span class="nf">key_press</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">invisible</span><span class="p">,</span>
+<a id="line-1684" name="line-1684"></a><span class="w"> </span><span class="n">GdkEventKey</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span>
+<a id="line-1685" name="line-1685"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-1686" name="line-1686"></a><span class="p">{</span>
+<a id="line-1687" name="line-1687"></a><span class="w"> </span><span class="n">GdkDevice</span><span class="w"> </span><span class="o">*</span><span class="n">device</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">pointer_device</span><span class="p">;</span>
+<a id="line-1688" name="line-1688"></a><span class="w"> </span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_event_get_screen</span><span class="w"> </span><span class="p">((</span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">event</span><span class="p">);</span>
+<a id="line-1689" name="line-1689"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">event</span><span class="o">-&gt;</span><span class="n">state</span><span class="w"> </span><span class="o">&amp;</span><span class="w"> </span><span class="n">gtk_accelerator_get_default_mod_mask</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1690" name="line-1690"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">;</span>
+<a id="line-1691" name="line-1691"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">dx</span><span class="p">,</span><span class="w"> </span><span class="n">dy</span><span class="p">;</span>
+<a id="line-1692" name="line-1692"></a>
+<a id="line-1693" name="line-1693"></a><span class="w"> </span><span class="n">device</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_event_get_device</span><span class="w"> </span><span class="p">((</span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">event</span><span class="p">);</span>
+<a id="line-1694" name="line-1694"></a><span class="w"> </span><span class="n">pointer_device</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_device_get_associated_device</span><span class="w"> </span><span class="p">(</span><span class="n">device</span><span class="p">);</span>
+<a id="line-1695" name="line-1695"></a><span class="w"> </span><span class="n">gdk_device_get_position</span><span class="w"> </span><span class="p">(</span><span class="n">pointer_device</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&amp;</span><span class="n">y</span><span class="p">);</span>
+<a id="line-1696" name="line-1696"></a>
+<a id="line-1697" name="line-1697"></a><span class="w"> </span><span class="n">dx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-1698" name="line-1698"></a><span class="w"> </span><span class="n">dy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-1699" name="line-1699"></a>
+<a id="line-1700" name="line-1700"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-&gt;</span><span class="n">keyval</span><span class="p">)</span>
+<a id="line-1701" name="line-1701"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1702" name="line-1702"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_space</span><span class="p">:</span>
+<a id="line-1703" name="line-1703"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_Return</span><span class="p">:</span>
+<a id="line-1704" name="line-1704"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_ISO_Enter</span><span class="p">:</span>
+<a id="line-1705" name="line-1705"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_Enter</span><span class="p">:</span>
+<a id="line-1706" name="line-1706"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_Space</span><span class="p">:</span>
+<a id="line-1707" name="line-1707"></a><span class="w"> </span><span class="n">grab_color_at_mouse</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">pointer_device</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">data</span><span class="p">);</span>
+<a id="line-1708" name="line-1708"></a><span class="w"> </span><span class="cm">/* fall through */</span>
+<a id="line-1709" name="line-1709"></a>
+<a id="line-1710" name="line-1710"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_Escape</span><span class="p">:</span>
+<a id="line-1711" name="line-1711"></a><span class="w"> </span><span class="n">shutdown_eyedropper</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span>
+<a id="line-1712" name="line-1712"></a>
+<a id="line-1713" name="line-1713"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">invisible</span><span class="p">,</span>
+<a id="line-1714" name="line-1714"></a><span class="w"> </span><span class="n">mouse_press</span><span class="p">,</span>
+<a id="line-1715" name="line-1715"></a><span class="w"> </span><span class="n">data</span><span class="p">);</span>
+<a id="line-1716" name="line-1716"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">invisible</span><span class="p">,</span>
+<a id="line-1717" name="line-1717"></a><span class="w"> </span><span class="n">key_press</span><span class="p">,</span>
+<a id="line-1718" name="line-1718"></a><span class="w"> </span><span class="n">data</span><span class="p">);</span>
+<a id="line-1719" name="line-1719"></a>
+<a id="line-1720" name="line-1720"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1721" name="line-1721"></a>
+<a id="line-1722" name="line-1722"></a><span class="cp">#if defined GDK_WINDOWING_X11</span>
+<a id="line-1723" name="line-1723"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_Up</span><span class="p">:</span>
+<a id="line-1724" name="line-1724"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_Up</span><span class="p">:</span>
+<a id="line-1725" name="line-1725"></a><span class="w"> </span><span class="n">dy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_MOD1_MASK</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="o">-</span><span class="n">BIG_STEP</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-1726" name="line-1726"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1727" name="line-1727"></a>
+<a id="line-1728" name="line-1728"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_Down</span><span class="p">:</span>
+<a id="line-1729" name="line-1729"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_Down</span><span class="p">:</span>
+<a id="line-1730" name="line-1730"></a><span class="w"> </span><span class="n">dy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_MOD1_MASK</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">BIG_STEP</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-1731" name="line-1731"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1732" name="line-1732"></a>
+<a id="line-1733" name="line-1733"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_Left</span><span class="p">:</span>
+<a id="line-1734" name="line-1734"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_Left</span><span class="p">:</span>
+<a id="line-1735" name="line-1735"></a><span class="w"> </span><span class="n">dx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_MOD1_MASK</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="o">-</span><span class="n">BIG_STEP</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
+<a id="line-1736" name="line-1736"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1737" name="line-1737"></a>
+<a id="line-1738" name="line-1738"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_Right</span><span class="p">:</span>
+<a id="line-1739" name="line-1739"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_Right</span><span class="p">:</span>
+<a id="line-1740" name="line-1740"></a><span class="w"> </span><span class="n">dx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_MOD1_MASK</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">BIG_STEP</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-1741" name="line-1741"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1742" name="line-1742"></a><span class="cp">#endif</span>
+<a id="line-1743" name="line-1743"></a>
+<a id="line-1744" name="line-1744"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-1745" name="line-1745"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1746" name="line-1746"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1747" name="line-1747"></a>
+<a id="line-1748" name="line-1748"></a><span class="w"> </span><span class="n">gdk_device_warp</span><span class="w"> </span><span class="p">(</span><span class="n">pointer_device</span><span class="p">,</span><span class="w"> </span><span class="n">screen</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">dx</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">dy</span><span class="p">);</span>
+<a id="line-1749" name="line-1749"></a>
+<a id="line-1750" name="line-1750"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1751" name="line-1751"></a>
+<a id="line-1752" name="line-1752"></a><span class="p">}</span>
+<a id="line-1753" name="line-1753"></a>
+<a id="line-1754" name="line-1754"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-1755" name="line-1755"></a><span class="nf">mouse_press</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">invisible</span><span class="p">,</span>
+<a id="line-1756" name="line-1756"></a><span class="w"> </span><span class="n">GdkEventButton</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span>
+<a id="line-1757" name="line-1757"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-1758" name="line-1758"></a><span class="p">{</span>
+<a id="line-1759" name="line-1759"></a><span class="w"> </span><span class="cm">/* MateColorSelection *colorsel = data; */</span>
+<a id="line-1760" name="line-1760"></a>
+<a id="line-1761" name="line-1761"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-&gt;</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_BUTTON_PRESS</span><span class="w"> </span><span class="o">&amp;&amp;</span>
+<a id="line-1762" name="line-1762"></a><span class="w"> </span><span class="n">event</span><span class="o">-&gt;</span><span class="n">button</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span>
+<a id="line-1763" name="line-1763"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1764" name="line-1764"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">invisible</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;motion-notify-event&quot;</span><span class="p">,</span>
+<a id="line-1765" name="line-1765"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">mouse_motion</span><span class="p">),</span>
+<a id="line-1766" name="line-1766"></a><span class="w"> </span><span class="n">data</span><span class="p">);</span>
+<a id="line-1767" name="line-1767"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">invisible</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;button-release-event&quot;</span><span class="p">,</span>
+<a id="line-1768" name="line-1768"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">mouse_release</span><span class="p">),</span>
+<a id="line-1769" name="line-1769"></a><span class="w"> </span><span class="n">data</span><span class="p">);</span>
+<a id="line-1770" name="line-1770"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">invisible</span><span class="p">,</span>
+<a id="line-1771" name="line-1771"></a><span class="w"> </span><span class="n">mouse_press</span><span class="p">,</span>
+<a id="line-1772" name="line-1772"></a><span class="w"> </span><span class="n">data</span><span class="p">);</span>
+<a id="line-1773" name="line-1773"></a><span class="w"> </span><span class="n">g_signal_handlers_disconnect_by_func</span><span class="w"> </span><span class="p">(</span><span class="n">invisible</span><span class="p">,</span>
+<a id="line-1774" name="line-1774"></a><span class="w"> </span><span class="n">key_press</span><span class="p">,</span>
+<a id="line-1775" name="line-1775"></a><span class="w"> </span><span class="n">data</span><span class="p">);</span>
+<a id="line-1776" name="line-1776"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1777" name="line-1777"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1778" name="line-1778"></a>
+<a id="line-1779" name="line-1779"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1780" name="line-1780"></a><span class="p">}</span>
+<a id="line-1781" name="line-1781"></a>
+<a id="line-1782" name="line-1782"></a><span class="cm">/* when the button is clicked */</span>
+<a id="line-1783" name="line-1783"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1784" name="line-1784"></a><span class="nf">get_screen_color</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">button</span><span class="p">)</span>
+<a id="line-1785" name="line-1785"></a><span class="p">{</span>
+<a id="line-1786" name="line-1786"></a><span class="w"> </span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_get_data</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">button</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;COLORSEL&quot;</span><span class="p">);</span>
+<a id="line-1787" name="line-1787"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-1788" name="line-1788"></a><span class="w"> </span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_screen</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">button</span><span class="p">));</span>
+<a id="line-1789" name="line-1789"></a><span class="w"> </span><span class="n">GdkCursor</span><span class="w"> </span><span class="o">*</span><span class="n">picker_cursor</span><span class="p">;</span>
+<a id="line-1790" name="line-1790"></a><span class="w"> </span><span class="n">GdkGrabStatus</span><span class="w"> </span><span class="n">grab_status</span><span class="p">;</span>
+<a id="line-1791" name="line-1791"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">grab_widget</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">toplevel</span><span class="p">;</span>
+<a id="line-1792" name="line-1792"></a><span class="w"> </span><span class="n">GdkDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">;</span>
+<a id="line-1793" name="line-1793"></a><span class="w"> </span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">;</span>
+<a id="line-1794" name="line-1794"></a><span class="w"> </span><span class="n">GdkSeat</span><span class="w"> </span><span class="o">*</span><span class="n">seat</span><span class="p">;</span>
+<a id="line-1795" name="line-1795"></a>
+<a id="line-1796" name="line-1796"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">time</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_get_current_event_time</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1797" name="line-1797"></a><span class="w"> </span><span class="n">event</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_get_current_event</span><span class="w"> </span><span class="p">();</span>
+<a id="line-1798" name="line-1798"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">dropper_grab_widget</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span>
+<a id="line-1799" name="line-1799"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1800" name="line-1800"></a><span class="w"> </span><span class="n">grab_widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_window_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW_POPUP</span><span class="p">);</span>
+<a id="line-1801" name="line-1801"></a><span class="w"> </span><span class="n">gtk_window_set_screen</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">grab_widget</span><span class="p">),</span><span class="w"> </span><span class="n">screen</span><span class="p">);</span>
+<a id="line-1802" name="line-1802"></a><span class="w"> </span><span class="n">gtk_window_resize</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">grab_widget</span><span class="p">),</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-1803" name="line-1803"></a><span class="w"> </span><span class="n">gtk_window_move</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">grab_widget</span><span class="p">),</span><span class="w"> </span><span class="mi">-100</span><span class="p">,</span><span class="w"> </span><span class="mi">-100</span><span class="p">);</span>
+<a id="line-1804" name="line-1804"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">grab_widget</span><span class="p">);</span>
+<a id="line-1805" name="line-1805"></a>
+<a id="line-1806" name="line-1806"></a><span class="w"> </span><span class="n">gtk_widget_add_events</span><span class="w"> </span><span class="p">(</span><span class="n">grab_widget</span><span class="p">,</span>
+<a id="line-1807" name="line-1807"></a><span class="w"> </span><span class="n">GDK_BUTTON_RELEASE_MASK</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_BUTTON_PRESS_MASK</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_POINTER_MOTION_MASK</span><span class="p">);</span>
+<a id="line-1808" name="line-1808"></a>
+<a id="line-1809" name="line-1809"></a><span class="w"> </span><span class="n">toplevel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_toplevel</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">));</span>
+<a id="line-1810" name="line-1810"></a>
+<a id="line-1811" name="line-1811"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">toplevel</span><span class="p">))</span>
+<a id="line-1812" name="line-1812"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1813" name="line-1813"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_window_get_group</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">toplevel</span><span class="p">)))</span>
+<a id="line-1814" name="line-1814"></a><span class="w"> </span><span class="n">gtk_window_group_add_window</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_window_get_group</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">toplevel</span><span class="p">)),</span>
+<a id="line-1815" name="line-1815"></a><span class="w"> </span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">grab_widget</span><span class="p">));</span>
+<a id="line-1816" name="line-1816"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1817" name="line-1817"></a>
+<a id="line-1818" name="line-1818"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">dropper_grab_widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">grab_widget</span><span class="p">;</span>
+<a id="line-1819" name="line-1819"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1820" name="line-1820"></a>
+<a id="line-1821" name="line-1821"></a><span class="w"> </span><span class="n">display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_display</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">dropper_grab_widget</span><span class="p">);</span>
+<a id="line-1822" name="line-1822"></a><span class="w"> </span><span class="n">seat</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_display_get_default_seat</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span>
+<a id="line-1823" name="line-1823"></a>
+<a id="line-1824" name="line-1824"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_seat_grab</span><span class="w"> </span><span class="p">(</span><span class="n">seat</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_widget_get_window</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">dropper_grab_widget</span><span class="p">),</span>
+<a id="line-1825" name="line-1825"></a><span class="w"> </span><span class="n">GDK_SEAT_CAPABILITY_KEYBOARD</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span>
+<a id="line-1826" name="line-1826"></a><span class="w"> </span><span class="n">event</span><span class="p">,</span>
+<a id="line-1827" name="line-1827"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">GDK_GRAB_SUCCESS</span><span class="p">)</span>
+<a id="line-1828" name="line-1828"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1829" name="line-1829"></a><span class="w"> </span><span class="n">gdk_event_free</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="p">);</span>
+<a id="line-1830" name="line-1830"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-1831" name="line-1831"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1832" name="line-1832"></a>
+<a id="line-1833" name="line-1833"></a><span class="w"> </span><span class="n">picker_cursor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">make_picker_cursor</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">);</span>
+<a id="line-1834" name="line-1834"></a><span class="w"> </span><span class="n">grab_status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_seat_grab</span><span class="w"> </span><span class="p">(</span><span class="n">seat</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_widget_get_window</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">dropper_grab_widget</span><span class="p">),</span>
+<a id="line-1835" name="line-1835"></a><span class="w"> </span><span class="n">GDK_SEAT_CAPABILITY_POINTER</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">picker_cursor</span><span class="p">,</span>
+<a id="line-1836" name="line-1836"></a><span class="w"> </span><span class="n">event</span><span class="p">,</span>
+<a id="line-1837" name="line-1837"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1838" name="line-1838"></a><span class="w"> </span><span class="n">gdk_event_free</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="p">);</span>
+<a id="line-1839" name="line-1839"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">picker_cursor</span><span class="p">);</span>
+<a id="line-1840" name="line-1840"></a>
+<a id="line-1841" name="line-1841"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">grab_status</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">GDK_GRAB_SUCCESS</span><span class="p">)</span>
+<a id="line-1842" name="line-1842"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1843" name="line-1843"></a><span class="w"> </span><span class="n">gdk_seat_ungrab</span><span class="w"> </span><span class="p">(</span><span class="n">seat</span><span class="p">);</span>
+<a id="line-1844" name="line-1844"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-1845" name="line-1845"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1846" name="line-1846"></a>
+<a id="line-1847" name="line-1847"></a><span class="w"> </span><span class="n">gtk_grab_add</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">dropper_grab_widget</span><span class="p">);</span>
+<a id="line-1848" name="line-1848"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">grab_time</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">time</span><span class="p">;</span>
+<a id="line-1849" name="line-1849"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">has_grab</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-1850" name="line-1850"></a>
+<a id="line-1851" name="line-1851"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">dropper_grab_widget</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;button-press-event&quot;</span><span class="p">,</span>
+<a id="line-1852" name="line-1852"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">mouse_press</span><span class="p">),</span><span class="w"> </span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-1853" name="line-1853"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">dropper_grab_widget</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;key-press-event&quot;</span><span class="p">,</span>
+<a id="line-1854" name="line-1854"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">key_press</span><span class="p">),</span><span class="w"> </span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-1855" name="line-1855"></a><span class="p">}</span>
+<a id="line-1856" name="line-1856"></a>
+<a id="line-1857" name="line-1857"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1858" name="line-1858"></a><span class="nf">hex_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">hex_entry</span><span class="p">,</span>
+<a id="line-1859" name="line-1859"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-1860" name="line-1860"></a><span class="p">{</span>
+<a id="line-1861" name="line-1861"></a><span class="w"> </span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">;</span>
+<a id="line-1862" name="line-1862"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-1863" name="line-1863"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="n">color</span><span class="p">;</span>
+<a id="line-1864" name="line-1864"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">;</span>
+<a id="line-1865" name="line-1865"></a>
+<a id="line-1866" name="line-1866"></a><span class="w"> </span><span class="n">colorsel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span>
+<a id="line-1867" name="line-1867"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-1868" name="line-1868"></a>
+<a id="line-1869" name="line-1869"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">changing</span><span class="p">)</span>
+<a id="line-1870" name="line-1870"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-1871" name="line-1871"></a>
+<a id="line-1872" name="line-1872"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_editable_get_chars</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_EDITABLE</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">hex_entry</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span>
+<a id="line-1873" name="line-1873"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_str_has_prefix</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;#&quot;</span><span class="p">))</span>
+<a id="line-1874" name="line-1874"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1875" name="line-1875"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">);</span>
+<a id="line-1876" name="line-1876"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;#&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-1877" name="line-1877"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tmp</span><span class="p">;</span>
+<a id="line-1878" name="line-1878"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1879" name="line-1879"></a>
+<a id="line-1880" name="line-1880"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_rgba_parse</span><span class="w"> </span><span class="p">(</span><span class="o">&amp;</span><span class="n">color</span><span class="p">,</span><span class="w"> </span><span class="n">text</span><span class="p">))</span>
+<a id="line-1881" name="line-1881"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1882" name="line-1882"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_RED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color</span><span class="p">.</span><span class="n">red</span><span class="p">;</span>
+<a id="line-1883" name="line-1883"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_GREEN</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color</span><span class="p">.</span><span class="n">green</span><span class="p">;</span>
+<a id="line-1884" name="line-1884"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_BLUE</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color</span><span class="p">.</span><span class="n">blue</span><span class="p">;</span>
+<a id="line-1885" name="line-1885"></a><span class="w"> </span><span class="n">gtk_rgb_to_hsv</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_RED</span><span class="p">],</span>
+<a id="line-1886" name="line-1886"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_GREEN</span><span class="p">],</span>
+<a id="line-1887" name="line-1887"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_BLUE</span><span class="p">],</span>
+<a id="line-1888" name="line-1888"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_HUE</span><span class="p">],</span>
+<a id="line-1889" name="line-1889"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_SATURATION</span><span class="p">],</span>
+<a id="line-1890" name="line-1890"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_VALUE</span><span class="p">]);</span>
+<a id="line-1891" name="line-1891"></a><span class="w"> </span><span class="n">update_color</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-1892" name="line-1892"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1893" name="line-1893"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">);</span>
+<a id="line-1894" name="line-1894"></a><span class="p">}</span>
+<a id="line-1895" name="line-1895"></a>
+<a id="line-1896" name="line-1896"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span>
+<a id="line-1897" name="line-1897"></a><span class="nf">hex_focus_out</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">hex_entry</span><span class="p">,</span>
+<a id="line-1898" name="line-1898"></a><span class="w"> </span><span class="n">GdkEventFocus</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span>
+<a id="line-1899" name="line-1899"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-1900" name="line-1900"></a><span class="p">{</span>
+<a id="line-1901" name="line-1901"></a><span class="w"> </span><span class="n">hex_changed</span><span class="w"> </span><span class="p">(</span><span class="n">hex_entry</span><span class="p">,</span><span class="w"> </span><span class="n">data</span><span class="p">);</span>
+<a id="line-1902" name="line-1902"></a>
+<a id="line-1903" name="line-1903"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-1904" name="line-1904"></a><span class="p">}</span>
+<a id="line-1905" name="line-1905"></a>
+<a id="line-1906" name="line-1906"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1907" name="line-1907"></a><span class="nf">hsv_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="p">,</span>
+<a id="line-1908" name="line-1908"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-1909" name="line-1909"></a><span class="p">{</span>
+<a id="line-1910" name="line-1910"></a><span class="w"> </span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">;</span>
+<a id="line-1911" name="line-1911"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-1912" name="line-1912"></a>
+<a id="line-1913" name="line-1913"></a><span class="w"> </span><span class="n">colorsel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span>
+<a id="line-1914" name="line-1914"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-1915" name="line-1915"></a>
+<a id="line-1916" name="line-1916"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">changing</span><span class="p">)</span>
+<a id="line-1917" name="line-1917"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-1918" name="line-1918"></a>
+<a id="line-1919" name="line-1919"></a><span class="w"> </span><span class="n">mate_hsv_get_color</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_HSV</span><span class="w"> </span><span class="p">(</span><span class="n">hsv</span><span class="p">),</span>
+<a id="line-1920" name="line-1920"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_HUE</span><span class="p">],</span>
+<a id="line-1921" name="line-1921"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_SATURATION</span><span class="p">],</span>
+<a id="line-1922" name="line-1922"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_VALUE</span><span class="p">]);</span>
+<a id="line-1923" name="line-1923"></a><span class="w"> </span><span class="n">gtk_hsv_to_rgb</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_HUE</span><span class="p">],</span>
+<a id="line-1924" name="line-1924"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_SATURATION</span><span class="p">],</span>
+<a id="line-1925" name="line-1925"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_VALUE</span><span class="p">],</span>
+<a id="line-1926" name="line-1926"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_RED</span><span class="p">],</span>
+<a id="line-1927" name="line-1927"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_GREEN</span><span class="p">],</span>
+<a id="line-1928" name="line-1928"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_BLUE</span><span class="p">]);</span>
+<a id="line-1929" name="line-1929"></a><span class="w"> </span><span class="n">update_color</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-1930" name="line-1930"></a><span class="p">}</span>
+<a id="line-1931" name="line-1931"></a>
+<a id="line-1932" name="line-1932"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1933" name="line-1933"></a><span class="nf">adjustment_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GtkAdjustment</span><span class="w"> </span><span class="o">*</span><span class="n">adjustment</span><span class="p">,</span>
+<a id="line-1934" name="line-1934"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-1935" name="line-1935"></a><span class="p">{</span>
+<a id="line-1936" name="line-1936"></a><span class="w"> </span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">;</span>
+<a id="line-1937" name="line-1937"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-1938" name="line-1938"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">value</span><span class="p">;</span>
+<a id="line-1939" name="line-1939"></a>
+<a id="line-1940" name="line-1940"></a><span class="w"> </span><span class="n">colorsel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">g_object_get_data</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">adjustment</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;COLORSEL&quot;</span><span class="p">));</span>
+<a id="line-1941" name="line-1941"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-1942" name="line-1942"></a><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_adjustment_get_value</span><span class="w"> </span><span class="p">(</span><span class="n">adjustment</span><span class="p">);</span>
+<a id="line-1943" name="line-1943"></a>
+<a id="line-1944" name="line-1944"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">changing</span><span class="p">)</span>
+<a id="line-1945" name="line-1945"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-1946" name="line-1946"></a>
+<a id="line-1947" name="line-1947"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">GPOINTER_TO_INT</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">))</span>
+<a id="line-1948" name="line-1948"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-1949" name="line-1949"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">COLORSEL_SATURATION</span><span class="p">:</span>
+<a id="line-1950" name="line-1950"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">COLORSEL_VALUE</span><span class="p">:</span>
+<a id="line-1951" name="line-1951"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">GPOINTER_TO_INT</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">)]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">100</span><span class="p">;</span>
+<a id="line-1952" name="line-1952"></a><span class="w"> </span><span class="n">gtk_hsv_to_rgb</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_HUE</span><span class="p">],</span>
+<a id="line-1953" name="line-1953"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_SATURATION</span><span class="p">],</span>
+<a id="line-1954" name="line-1954"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_VALUE</span><span class="p">],</span>
+<a id="line-1955" name="line-1955"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_RED</span><span class="p">],</span>
+<a id="line-1956" name="line-1956"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_GREEN</span><span class="p">],</span>
+<a id="line-1957" name="line-1957"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_BLUE</span><span class="p">]);</span>
+<a id="line-1958" name="line-1958"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1959" name="line-1959"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">COLORSEL_HUE</span><span class="p">:</span>
+<a id="line-1960" name="line-1960"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">GPOINTER_TO_INT</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">)]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">360</span><span class="p">;</span>
+<a id="line-1961" name="line-1961"></a><span class="w"> </span><span class="n">gtk_hsv_to_rgb</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_HUE</span><span class="p">],</span>
+<a id="line-1962" name="line-1962"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_SATURATION</span><span class="p">],</span>
+<a id="line-1963" name="line-1963"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_VALUE</span><span class="p">],</span>
+<a id="line-1964" name="line-1964"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_RED</span><span class="p">],</span>
+<a id="line-1965" name="line-1965"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_GREEN</span><span class="p">],</span>
+<a id="line-1966" name="line-1966"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_BLUE</span><span class="p">]);</span>
+<a id="line-1967" name="line-1967"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1968" name="line-1968"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">COLORSEL_RED</span><span class="p">:</span>
+<a id="line-1969" name="line-1969"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">COLORSEL_GREEN</span><span class="p">:</span>
+<a id="line-1970" name="line-1970"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">COLORSEL_BLUE</span><span class="p">:</span>
+<a id="line-1971" name="line-1971"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">GPOINTER_TO_INT</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">)]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">255</span><span class="p">;</span>
+<a id="line-1972" name="line-1972"></a>
+<a id="line-1973" name="line-1973"></a><span class="w"> </span><span class="n">gtk_rgb_to_hsv</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_RED</span><span class="p">],</span>
+<a id="line-1974" name="line-1974"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_GREEN</span><span class="p">],</span>
+<a id="line-1975" name="line-1975"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_BLUE</span><span class="p">],</span>
+<a id="line-1976" name="line-1976"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_HUE</span><span class="p">],</span>
+<a id="line-1977" name="line-1977"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_SATURATION</span><span class="p">],</span>
+<a id="line-1978" name="line-1978"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_VALUE</span><span class="p">]);</span>
+<a id="line-1979" name="line-1979"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1980" name="line-1980"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-1981" name="line-1981"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">GPOINTER_TO_INT</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">)]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">255</span><span class="p">;</span>
+<a id="line-1982" name="line-1982"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-1983" name="line-1983"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-1984" name="line-1984"></a><span class="w"> </span><span class="n">update_color</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-1985" name="line-1985"></a><span class="p">}</span>
+<a id="line-1986" name="line-1986"></a>
+<a id="line-1987" name="line-1987"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-1988" name="line-1988"></a><span class="nf">opacity_entry_changed</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">opacity_entry</span><span class="p">,</span>
+<a id="line-1989" name="line-1989"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-1990" name="line-1990"></a><span class="p">{</span>
+<a id="line-1991" name="line-1991"></a><span class="w"> </span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">;</span>
+<a id="line-1992" name="line-1992"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-1993" name="line-1993"></a><span class="w"> </span><span class="n">GtkAdjustment</span><span class="w"> </span><span class="o">*</span><span class="n">adj</span><span class="p">;</span>
+<a id="line-1994" name="line-1994"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">;</span>
+<a id="line-1995" name="line-1995"></a>
+<a id="line-1996" name="line-1996"></a><span class="w"> </span><span class="n">colorsel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">);</span>
+<a id="line-1997" name="line-1997"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-1998" name="line-1998"></a>
+<a id="line-1999" name="line-1999"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">changing</span><span class="p">)</span>
+<a id="line-2000" name="line-2000"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span>
+<a id="line-2001" name="line-2001"></a>
+<a id="line-2002" name="line-2002"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_editable_get_chars</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_EDITABLE</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_entry</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span>
+<a id="line-2003" name="line-2003"></a><span class="w"> </span><span class="n">adj</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_range_get_adjustment</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_RANGE</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_slider</span><span class="p">));</span>
+<a id="line-2004" name="line-2004"></a><span class="w"> </span><span class="n">gtk_adjustment_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">adj</span><span class="p">,</span><span class="w"> </span><span class="n">g_strtod</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span>
+<a id="line-2005" name="line-2005"></a>
+<a id="line-2006" name="line-2006"></a><span class="w"> </span><span class="n">update_color</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-2007" name="line-2007"></a>
+<a id="line-2008" name="line-2008"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">);</span>
+<a id="line-2009" name="line-2009"></a><span class="p">}</span>
+<a id="line-2010" name="line-2010"></a>
+<a id="line-2011" name="line-2011"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-2012" name="line-2012"></a><span class="nf">make_label_spinbutton</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-2013" name="line-2013"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">**</span><span class="n">spinbutton</span><span class="p">,</span>
+<a id="line-2014" name="line-2014"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">,</span>
+<a id="line-2015" name="line-2015"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">grid</span><span class="p">,</span>
+<a id="line-2016" name="line-2016"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">i</span><span class="p">,</span>
+<a id="line-2017" name="line-2017"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">j</span><span class="p">,</span>
+<a id="line-2018" name="line-2018"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">channel_type</span><span class="p">,</span>
+<a id="line-2019" name="line-2019"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">tooltip</span><span class="p">)</span>
+<a id="line-2020" name="line-2020"></a><span class="p">{</span>
+<a id="line-2021" name="line-2021"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">;</span>
+<a id="line-2022" name="line-2022"></a><span class="w"> </span><span class="n">GtkAdjustment</span><span class="w"> </span><span class="o">*</span><span class="n">adjust</span><span class="p">;</span>
+<a id="line-2023" name="line-2023"></a>
+<a id="line-2024" name="line-2024"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">channel_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">COLORSEL_HUE</span><span class="p">)</span>
+<a id="line-2025" name="line-2025"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-2026" name="line-2026"></a><span class="w"> </span><span class="n">adjust</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_ADJUSTMENT</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_adjustment_new</span><span class="w"> </span><span class="p">(</span><span class="mf">0.0</span><span class="p">,</span><span class="w"> </span><span class="mf">0.0</span><span class="p">,</span><span class="w"> </span><span class="mf">360.0</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="p">,</span><span class="w"> </span><span class="mf">0.0</span><span class="p">));</span>
+<a id="line-2027" name="line-2027"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2028" name="line-2028"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">channel_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">COLORSEL_SATURATION</span><span class="w"> </span><span class="o">||</span>
+<a id="line-2029" name="line-2029"></a><span class="w"> </span><span class="n">channel_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">COLORSEL_VALUE</span><span class="p">)</span>
+<a id="line-2030" name="line-2030"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-2031" name="line-2031"></a><span class="w"> </span><span class="n">adjust</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_ADJUSTMENT</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_adjustment_new</span><span class="w"> </span><span class="p">(</span><span class="mf">0.0</span><span class="p">,</span><span class="w"> </span><span class="mf">0.0</span><span class="p">,</span><span class="w"> </span><span class="mf">100.0</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="p">,</span><span class="w"> </span><span class="mf">0.0</span><span class="p">));</span>
+<a id="line-2032" name="line-2032"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2033" name="line-2033"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-2034" name="line-2034"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-2035" name="line-2035"></a><span class="w"> </span><span class="n">adjust</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_ADJUSTMENT</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_adjustment_new</span><span class="w"> </span><span class="p">(</span><span class="mf">0.0</span><span class="p">,</span><span class="w"> </span><span class="mf">0.0</span><span class="p">,</span><span class="w"> </span><span class="mf">255.0</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="p">,</span><span class="w"> </span><span class="mf">1.0</span><span class="p">,</span><span class="w"> </span><span class="mf">0.0</span><span class="p">));</span>
+<a id="line-2036" name="line-2036"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2037" name="line-2037"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">adjust</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;COLORSEL&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-2038" name="line-2038"></a><span class="w"> </span><span class="o">*</span><span class="n">spinbutton</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_spin_button_new</span><span class="w"> </span><span class="p">(</span><span class="n">adjust</span><span class="p">,</span><span class="w"> </span><span class="mf">10.0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-2039" name="line-2039"></a>
+<a id="line-2040" name="line-2040"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">spinbutton</span><span class="p">,</span><span class="w"> </span><span class="n">tooltip</span><span class="p">);</span>
+<a id="line-2041" name="line-2041"></a>
+<a id="line-2042" name="line-2042"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">adjust</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;value-changed&quot;</span><span class="p">,</span>
+<a id="line-2043" name="line-2043"></a><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">adjustment_changed</span><span class="p">),</span>
+<a id="line-2044" name="line-2044"></a><span class="w"> </span><span class="n">GINT_TO_POINTER</span><span class="w"> </span><span class="p">(</span><span class="n">channel_type</span><span class="p">));</span>
+<a id="line-2045" name="line-2045"></a><span class="w"> </span><span class="n">label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new_with_mnemonic</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">);</span>
+<a id="line-2046" name="line-2046"></a><span class="w"> </span><span class="n">gtk_label_set_mnemonic_widget</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">),</span><span class="w"> </span><span class="o">*</span><span class="n">spinbutton</span><span class="p">);</span>
+<a id="line-2047" name="line-2047"></a>
+<a id="line-2048" name="line-2048"></a><span class="w"> </span><span class="n">gtk_label_set_xalign</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">),</span><span class="w"> </span><span class="mf">0.0</span><span class="p">);</span>
+<a id="line-2049" name="line-2049"></a><span class="w"> </span><span class="n">gtk_grid_attach</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">j</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-2050" name="line-2050"></a><span class="w"> </span><span class="n">gtk_grid_attach</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="o">*</span><span class="n">spinbutton</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="o">+</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">j</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-2051" name="line-2051"></a><span class="p">}</span>
+<a id="line-2052" name="line-2052"></a>
+<a id="line-2053" name="line-2053"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-2054" name="line-2054"></a><span class="nf">make_palette_frame</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-2055" name="line-2055"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">grid</span><span class="p">,</span>
+<a id="line-2056" name="line-2056"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">i</span><span class="p">,</span>
+<a id="line-2057" name="line-2057"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">j</span><span class="p">)</span>
+<a id="line-2058" name="line-2058"></a><span class="p">{</span>
+<a id="line-2059" name="line-2059"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">frame</span><span class="p">;</span>
+<a id="line-2060" name="line-2060"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-2061" name="line-2061"></a>
+<a id="line-2062" name="line-2062"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-2063" name="line-2063"></a><span class="w"> </span><span class="n">frame</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_frame_new</span><span class="w"> </span><span class="p">(</span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2064" name="line-2064"></a><span class="w"> </span><span class="n">gtk_frame_set_shadow_type</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_FRAME</span><span class="w"> </span><span class="p">(</span><span class="n">frame</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_SHADOW_IN</span><span class="p">);</span>
+<a id="line-2065" name="line-2065"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">custom_palette</span><span class="p">[</span><span class="n">i</span><span class="p">][</span><span class="n">j</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">palette_new</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-2066" name="line-2066"></a><span class="w"> </span><span class="n">gtk_widget_set_size_request</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">custom_palette</span><span class="p">[</span><span class="n">i</span><span class="p">][</span><span class="n">j</span><span class="p">],</span><span class="w"> </span><span class="n">CUSTOM_PALETTE_ENTRY_WIDTH</span><span class="p">,</span><span class="w"> </span><span class="n">CUSTOM_PALETTE_ENTRY_HEIGHT</span><span class="p">);</span>
+<a id="line-2067" name="line-2067"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">frame</span><span class="p">),</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">custom_palette</span><span class="p">[</span><span class="n">i</span><span class="p">][</span><span class="n">j</span><span class="p">]);</span>
+<a id="line-2068" name="line-2068"></a><span class="w"> </span><span class="n">gtk_widget_set_hexpand</span><span class="w"> </span><span class="p">(</span><span class="n">frame</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-2069" name="line-2069"></a><span class="w"> </span><span class="n">gtk_grid_attach</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_GRID</span><span class="w"> </span><span class="p">(</span><span class="n">grid</span><span class="p">),</span><span class="w"> </span><span class="n">frame</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">j</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-2070" name="line-2070"></a><span class="p">}</span>
+<a id="line-2071" name="line-2071"></a>
+<a id="line-2072" name="line-2072"></a><span class="cm">/* Set the palette entry [x][y] to be the currently selected one. */</span>
+<a id="line-2073" name="line-2073"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-2074" name="line-2074"></a><span class="nf">set_selected_palette</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">y</span><span class="p">)</span>
+<a id="line-2075" name="line-2075"></a><span class="p">{</span>
+<a id="line-2076" name="line-2076"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-2077" name="line-2077"></a>
+<a id="line-2078" name="line-2078"></a><span class="w"> </span><span class="n">gtk_widget_grab_focus</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">custom_palette</span><span class="p">[</span><span class="n">x</span><span class="p">][</span><span class="n">y</span><span class="p">]);</span>
+<a id="line-2079" name="line-2079"></a><span class="p">}</span>
+<a id="line-2080" name="line-2080"></a>
+<a id="line-2081" name="line-2081"></a><span class="k">static</span><span class="w"> </span><span class="kt">double</span>
+<a id="line-2082" name="line-2082"></a><span class="nf">scale_round</span><span class="w"> </span><span class="p">(</span><span class="kt">double</span><span class="w"> </span><span class="n">val</span><span class="p">,</span><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">factor</span><span class="p">)</span>
+<a id="line-2083" name="line-2083"></a><span class="p">{</span>
+<a id="line-2084" name="line-2084"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">floor</span><span class="w"> </span><span class="p">(</span><span class="n">val</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">factor</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mf">0.5</span><span class="p">);</span>
+<a id="line-2085" name="line-2085"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MAX</span><span class="w"> </span><span class="p">(</span><span class="n">val</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-2086" name="line-2086"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MIN</span><span class="w"> </span><span class="p">(</span><span class="n">val</span><span class="p">,</span><span class="w"> </span><span class="n">factor</span><span class="p">);</span>
+<a id="line-2087" name="line-2087"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">val</span><span class="p">;</span>
+<a id="line-2088" name="line-2088"></a><span class="p">}</span>
+<a id="line-2089" name="line-2089"></a>
+<a id="line-2090" name="line-2090"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-2091" name="line-2091"></a><span class="nf">update_color</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">)</span>
+<a id="line-2092" name="line-2092"></a><span class="p">{</span>
+<a id="line-2093" name="line-2093"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-2094" name="line-2094"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="n">entryval</span><span class="p">[</span><span class="mi">12</span><span class="p">];</span>
+<a id="line-2095" name="line-2095"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="n">opacity_text</span><span class="p">[</span><span class="mi">32</span><span class="p">];</span>
+<a id="line-2096" name="line-2096"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">ptr</span><span class="p">;</span>
+<a id="line-2097" name="line-2097"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">r</span><span class="p">;</span>
+<a id="line-2098" name="line-2098"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">g</span><span class="p">;</span>
+<a id="line-2099" name="line-2099"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">b</span><span class="p">;</span>
+<a id="line-2100" name="line-2100"></a>
+<a id="line-2101" name="line-2101"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">changing</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-2102" name="line-2102"></a><span class="w"> </span><span class="n">color_sample_update_samples</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-2103" name="line-2103"></a>
+<a id="line-2104" name="line-2104"></a><span class="w"> </span><span class="n">mate_hsv_set_color</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_HSV</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">triangle_colorsel</span><span class="p">),</span>
+<a id="line-2105" name="line-2105"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_HUE</span><span class="p">],</span>
+<a id="line-2106" name="line-2106"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_SATURATION</span><span class="p">],</span>
+<a id="line-2107" name="line-2107"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_VALUE</span><span class="p">]);</span>
+<a id="line-2108" name="line-2108"></a><span class="w"> </span><span class="n">gtk_adjustment_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_spin_button_get_adjustment</span>
+<a id="line-2109" name="line-2109"></a><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">hue_spinbutton</span><span class="p">)),</span>
+<a id="line-2110" name="line-2110"></a><span class="w"> </span><span class="n">scale_round</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_HUE</span><span class="p">],</span><span class="w"> </span><span class="mi">360</span><span class="p">));</span>
+<a id="line-2111" name="line-2111"></a><span class="w"> </span><span class="n">gtk_adjustment_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_spin_button_get_adjustment</span>
+<a id="line-2112" name="line-2112"></a><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">sat_spinbutton</span><span class="p">)),</span>
+<a id="line-2113" name="line-2113"></a><span class="w"> </span><span class="n">scale_round</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_SATURATION</span><span class="p">],</span><span class="w"> </span><span class="mi">100</span><span class="p">));</span>
+<a id="line-2114" name="line-2114"></a><span class="w"> </span><span class="n">gtk_adjustment_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_spin_button_get_adjustment</span>
+<a id="line-2115" name="line-2115"></a><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">val_spinbutton</span><span class="p">)),</span>
+<a id="line-2116" name="line-2116"></a><span class="w"> </span><span class="n">scale_round</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_VALUE</span><span class="p">],</span><span class="w"> </span><span class="mi">100</span><span class="p">));</span>
+<a id="line-2117" name="line-2117"></a><span class="w"> </span><span class="n">gtk_adjustment_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_spin_button_get_adjustment</span>
+<a id="line-2118" name="line-2118"></a><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">red_spinbutton</span><span class="p">)),</span>
+<a id="line-2119" name="line-2119"></a><span class="w"> </span><span class="n">scale_round</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_RED</span><span class="p">],</span><span class="w"> </span><span class="mi">255</span><span class="p">));</span>
+<a id="line-2120" name="line-2120"></a><span class="w"> </span><span class="n">gtk_adjustment_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_spin_button_get_adjustment</span>
+<a id="line-2121" name="line-2121"></a><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">green_spinbutton</span><span class="p">)),</span>
+<a id="line-2122" name="line-2122"></a><span class="w"> </span><span class="n">scale_round</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_GREEN</span><span class="p">],</span><span class="w"> </span><span class="mi">255</span><span class="p">));</span>
+<a id="line-2123" name="line-2123"></a><span class="w"> </span><span class="n">gtk_adjustment_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_spin_button_get_adjustment</span>
+<a id="line-2124" name="line-2124"></a><span class="w"> </span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">blue_spinbutton</span><span class="p">)),</span>
+<a id="line-2125" name="line-2125"></a><span class="w"> </span><span class="n">scale_round</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_BLUE</span><span class="p">],</span><span class="w"> </span><span class="mi">255</span><span class="p">));</span>
+<a id="line-2126" name="line-2126"></a><span class="w"> </span><span class="n">gtk_adjustment_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_range_get_adjustment</span>
+<a id="line-2127" name="line-2127"></a><span class="w"> </span><span class="p">(</span><span class="n">GTK_RANGE</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_slider</span><span class="p">)),</span>
+<a id="line-2128" name="line-2128"></a><span class="w"> </span><span class="n">scale_round</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_OPACITY</span><span class="p">],</span><span class="w"> </span><span class="mi">255</span><span class="p">));</span>
+<a id="line-2129" name="line-2129"></a>
+<a id="line-2130" name="line-2130"></a><span class="w"> </span><span class="n">g_snprintf</span><span class="w"> </span><span class="p">(</span><span class="n">opacity_text</span><span class="p">,</span><span class="w"> </span><span class="mi">32</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;%.0f&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">scale_round</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_OPACITY</span><span class="p">],</span><span class="w"> </span><span class="mi">255</span><span class="p">));</span>
+<a id="line-2131" name="line-2131"></a><span class="w"> </span><span class="n">gtk_entry_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ENTRY</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_entry</span><span class="p">),</span><span class="w"> </span><span class="n">opacity_text</span><span class="p">);</span>
+<a id="line-2132" name="line-2132"></a>
+<a id="line-2133" name="line-2133"></a><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">scale_round</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_RED</span><span class="p">],</span><span class="w"> </span><span class="mi">255</span><span class="p">);</span>
+<a id="line-2134" name="line-2134"></a><span class="w"> </span><span class="n">g</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">scale_round</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_GREEN</span><span class="p">],</span><span class="w"> </span><span class="mi">255</span><span class="p">);</span>
+<a id="line-2135" name="line-2135"></a><span class="w"> </span><span class="n">b</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">scale_round</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_BLUE</span><span class="p">],</span><span class="w"> </span><span class="mi">255</span><span class="p">);</span>
+<a id="line-2136" name="line-2136"></a><span class="w"> </span><span class="n">g_snprintf</span><span class="w"> </span><span class="p">(</span><span class="n">entryval</span><span class="p">,</span><span class="w"> </span><span class="mi">11</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;#%2X%2X%2X&quot;</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">guint</span><span class="p">)</span><span class="w"> </span><span class="n">r</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">guint</span><span class="p">)</span><span class="w"> </span><span class="n">g</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">guint</span><span class="p">)</span><span class="w"> </span><span class="n">b</span><span class="p">);</span>
+<a id="line-2137" name="line-2137"></a>
+<a id="line-2138" name="line-2138"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">entryval</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">ptr</span><span class="p">;</span><span class="w"> </span><span class="n">ptr</span><span class="o">++</span><span class="p">)</span>
+<a id="line-2139" name="line-2139"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">ptr</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39; &#39;</span><span class="p">)</span>
+<a id="line-2140" name="line-2140"></a><span class="w"> </span><span class="o">*</span><span class="n">ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;0&#39;</span><span class="p">;</span>
+<a id="line-2141" name="line-2141"></a><span class="w"> </span><span class="n">gtk_entry_set_text</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ENTRY</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">hex_entry</span><span class="p">),</span><span class="w"> </span><span class="n">entryval</span><span class="p">);</span>
+<a id="line-2142" name="line-2142"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">changing</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-2143" name="line-2143"></a>
+<a id="line-2144" name="line-2144"></a><span class="w"> </span><span class="n">g_object_ref</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-2145" name="line-2145"></a>
+<a id="line-2146" name="line-2146"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="n">color_selection_signals</span><span class="p">[</span><span class="n">COLOR_CHANGED</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-2147" name="line-2147"></a>
+<a id="line-2148" name="line-2148"></a><span class="w"> </span><span class="n">g_object_freeze_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">));</span>
+<a id="line-2149" name="line-2149"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;current-rgba&quot;</span><span class="p">);</span>
+<a id="line-2150" name="line-2150"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;current-alpha&quot;</span><span class="p">);</span>
+<a id="line-2151" name="line-2151"></a><span class="w"> </span><span class="n">g_object_thaw_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">));</span>
+<a id="line-2152" name="line-2152"></a>
+<a id="line-2153" name="line-2153"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-2154" name="line-2154"></a><span class="p">}</span>
+<a id="line-2155" name="line-2155"></a>
+<a id="line-2156" name="line-2156"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-2157" name="line-2157"></a><span class="nf">update_palette</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">)</span>
+<a id="line-2158" name="line-2158"></a><span class="p">{</span>
+<a id="line-2159" name="line-2159"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">current_colors</span><span class="p">;</span>
+<a id="line-2160" name="line-2160"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">j</span><span class="p">;</span>
+<a id="line-2161" name="line-2161"></a>
+<a id="line-2162" name="line-2162"></a><span class="w"> </span><span class="n">current_colors</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_current_colors</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-2163" name="line-2163"></a>
+<a id="line-2164" name="line-2164"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">GTK_CUSTOM_PALETTE_HEIGHT</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span>
+<a id="line-2165" name="line-2165"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-2166" name="line-2166"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">GTK_CUSTOM_PALETTE_WIDTH</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span>
+<a id="line-2167" name="line-2167"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-2168" name="line-2168"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">index</span><span class="p">;</span>
+<a id="line-2169" name="line-2169"></a>
+<a id="line-2170" name="line-2170"></a><span class="w"> </span><span class="n">index</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">GTK_CUSTOM_PALETTE_WIDTH</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">j</span><span class="p">;</span>
+<a id="line-2171" name="line-2171"></a>
+<a id="line-2172" name="line-2172"></a><span class="w"> </span><span class="n">mate_color_selection_set_palette_color</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-2173" name="line-2173"></a><span class="w"> </span><span class="n">index</span><span class="p">,</span>
+<a id="line-2174" name="line-2174"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">current_colors</span><span class="p">[</span><span class="n">index</span><span class="p">]);</span>
+<a id="line-2175" name="line-2175"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2176" name="line-2176"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2177" name="line-2177"></a>
+<a id="line-2178" name="line-2178"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">current_colors</span><span class="p">);</span>
+<a id="line-2179" name="line-2179"></a><span class="p">}</span>
+<a id="line-2180" name="line-2180"></a>
+<a id="line-2181" name="line-2181"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-2182" name="line-2182"></a><span class="nf">palette_change_notify_instance</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span>
+<a id="line-2183" name="line-2183"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">,</span>
+<a id="line-2184" name="line-2184"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span>
+<a id="line-2185" name="line-2185"></a><span class="p">{</span>
+<a id="line-2186" name="line-2186"></a><span class="w"> </span><span class="n">update_palette</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">data</span><span class="p">));</span>
+<a id="line-2187" name="line-2187"></a><span class="p">}</span>
+<a id="line-2188" name="line-2188"></a>
+<a id="line-2189" name="line-2189"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-2190" name="line-2190"></a><span class="nf">default_noscreen_change_palette_func</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">colors</span><span class="p">,</span>
+<a id="line-2191" name="line-2191"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">n_colors</span><span class="p">)</span>
+<a id="line-2192" name="line-2192"></a><span class="p">{</span>
+<a id="line-2193" name="line-2193"></a><span class="w"> </span><span class="n">default_change_palette_func</span><span class="w"> </span><span class="p">(</span><span class="n">gdk_screen_get_default</span><span class="w"> </span><span class="p">(),</span><span class="w"> </span><span class="n">colors</span><span class="p">,</span><span class="w"> </span><span class="n">n_colors</span><span class="p">);</span>
+<a id="line-2194" name="line-2194"></a><span class="p">}</span>
+<a id="line-2195" name="line-2195"></a>
+<a id="line-2196" name="line-2196"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-2197" name="line-2197"></a><span class="nf">default_change_palette_func</span><span class="w"> </span><span class="p">(</span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-2198" name="line-2198"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">colors</span><span class="p">,</span>
+<a id="line-2199" name="line-2199"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">n_colors</span><span class="p">)</span>
+<a id="line-2200" name="line-2200"></a><span class="p">{</span>
+<a id="line-2201" name="line-2201"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">;</span>
+<a id="line-2202" name="line-2202"></a>
+<a id="line-2203" name="line-2203"></a><span class="w"> </span><span class="n">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_color_selection_palette_to_string</span><span class="w"> </span><span class="p">(</span><span class="n">colors</span><span class="p">,</span><span class="w"> </span><span class="n">n_colors</span><span class="p">);</span>
+<a id="line-2204" name="line-2204"></a>
+<a id="line-2205" name="line-2205"></a><span class="w"> </span><span class="n">g_object_set</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_settings_get_for_screen</span><span class="w"> </span><span class="p">(</span><span class="n">screen</span><span class="p">)),</span>
+<a id="line-2206" name="line-2206"></a><span class="w"> </span><span class="s">&quot;gtk-color-palette&quot;</span><span class="p">,</span>
+<a id="line-2207" name="line-2207"></a><span class="w"> </span><span class="n">str</span><span class="p">,</span>
+<a id="line-2208" name="line-2208"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2209" name="line-2209"></a>
+<a id="line-2210" name="line-2210"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">);</span>
+<a id="line-2211" name="line-2211"></a><span class="p">}</span>
+<a id="line-2212" name="line-2212"></a>
+<a id="line-2213" name="line-2213"></a><span class="cm">/**</span>
+<a id="line-2214" name="line-2214"></a><span class="cm"> * mate_color_selection_new:</span>
+<a id="line-2215" name="line-2215"></a><span class="cm"> *</span>
+<a id="line-2216" name="line-2216"></a><span class="cm"> * Creates a new MateColorSelection.</span>
+<a id="line-2217" name="line-2217"></a><span class="cm"> *</span>
+<a id="line-2218" name="line-2218"></a><span class="cm"> * Return value: a new #MateColorSelection</span>
+<a id="line-2219" name="line-2219"></a><span class="cm"> **/</span>
+<a id="line-2220" name="line-2220"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span>
+<a id="line-2221" name="line-2221"></a><span class="nf">mate_color_selection_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
+<a id="line-2222" name="line-2222"></a><span class="p">{</span>
+<a id="line-2223" name="line-2223"></a><span class="w"> </span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">;</span>
+<a id="line-2224" name="line-2224"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-2225" name="line-2225"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">4</span><span class="p">];</span>
+<a id="line-2226" name="line-2226"></a><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-2227" name="line-2227"></a><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-2228" name="line-2228"></a><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-2229" name="line-2229"></a><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1.0</span><span class="p">;</span>
+<a id="line-2230" name="line-2230"></a>
+<a id="line-2231" name="line-2231"></a><span class="w"> </span><span class="n">colorsel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_TYPE_COLOR_SELECTION</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;orientation&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2232" name="line-2232"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-2233" name="line-2233"></a><span class="w"> </span><span class="n">set_color_internal</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="n">color</span><span class="p">);</span>
+<a id="line-2234" name="line-2234"></a><span class="w"> </span><span class="n">mate_color_selection_set_has_opacity_control</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-2235" name="line-2235"></a>
+<a id="line-2236" name="line-2236"></a><span class="w"> </span><span class="cm">/* We want to make sure that default_set is FALSE */</span>
+<a id="line-2237" name="line-2237"></a><span class="w"> </span><span class="cm">/* This way the user can still set it */</span>
+<a id="line-2238" name="line-2238"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">default_set</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-2239" name="line-2239"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">default_alpha_set</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-2240" name="line-2240"></a>
+<a id="line-2241" name="line-2241"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-2242" name="line-2242"></a><span class="p">}</span>
+<a id="line-2243" name="line-2243"></a>
+<a id="line-2244" name="line-2244"></a><span class="cm">/**</span>
+<a id="line-2245" name="line-2245"></a><span class="cm"> * mate_color_selection_get_has_opacity_control:</span>
+<a id="line-2246" name="line-2246"></a><span class="cm"> * @colorsel: a #MateColorSelection.</span>
+<a id="line-2247" name="line-2247"></a><span class="cm"> *</span>
+<a id="line-2248" name="line-2248"></a><span class="cm"> * Determines whether the colorsel has an opacity control.</span>
+<a id="line-2249" name="line-2249"></a><span class="cm"> *</span>
+<a id="line-2250" name="line-2250"></a><span class="cm"> * Return value: %TRUE if the @colorsel has an opacity control. %FALSE if it does&#39;t.</span>
+<a id="line-2251" name="line-2251"></a><span class="cm"> **/</span>
+<a id="line-2252" name="line-2252"></a><span class="n">gboolean</span>
+<a id="line-2253" name="line-2253"></a><span class="nf">mate_color_selection_get_has_opacity_control</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">)</span>
+<a id="line-2254" name="line-2254"></a><span class="p">{</span>
+<a id="line-2255" name="line-2255"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-2256" name="line-2256"></a>
+<a id="line-2257" name="line-2257"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-2258" name="line-2258"></a>
+<a id="line-2259" name="line-2259"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-2260" name="line-2260"></a>
+<a id="line-2261" name="line-2261"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">has_opacity</span><span class="p">;</span>
+<a id="line-2262" name="line-2262"></a><span class="p">}</span>
+<a id="line-2263" name="line-2263"></a>
+<a id="line-2264" name="line-2264"></a><span class="cm">/**</span>
+<a id="line-2265" name="line-2265"></a><span class="cm"> * mate_color_selection_set_has_opacity_control:</span>
+<a id="line-2266" name="line-2266"></a><span class="cm"> * @colorsel: a #MateColorSelection.</span>
+<a id="line-2267" name="line-2267"></a><span class="cm"> * @has_opacity: %TRUE if @colorsel can set the opacity, %FALSE otherwise.</span>
+<a id="line-2268" name="line-2268"></a><span class="cm"> *</span>
+<a id="line-2269" name="line-2269"></a><span class="cm"> * Sets the @colorsel to use or not use opacity.</span>
+<a id="line-2270" name="line-2270"></a><span class="cm"> *</span>
+<a id="line-2271" name="line-2271"></a><span class="cm"> **/</span>
+<a id="line-2272" name="line-2272"></a><span class="kt">void</span>
+<a id="line-2273" name="line-2273"></a><span class="nf">mate_color_selection_set_has_opacity_control</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-2274" name="line-2274"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">has_opacity</span><span class="p">)</span>
+<a id="line-2275" name="line-2275"></a><span class="p">{</span>
+<a id="line-2276" name="line-2276"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-2277" name="line-2277"></a>
+<a id="line-2278" name="line-2278"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">));</span>
+<a id="line-2279" name="line-2279"></a>
+<a id="line-2280" name="line-2280"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-2281" name="line-2281"></a><span class="w"> </span><span class="n">has_opacity</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">has_opacity</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-2282" name="line-2282"></a>
+<a id="line-2283" name="line-2283"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">has_opacity</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">has_opacity</span><span class="p">)</span>
+<a id="line-2284" name="line-2284"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-2285" name="line-2285"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">has_opacity</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">has_opacity</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-2286" name="line-2286"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">has_opacity</span><span class="p">)</span>
+<a id="line-2287" name="line-2287"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-2288" name="line-2288"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_slider</span><span class="p">);</span>
+<a id="line-2289" name="line-2289"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_label</span><span class="p">);</span>
+<a id="line-2290" name="line-2290"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_entry</span><span class="p">);</span>
+<a id="line-2291" name="line-2291"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2292" name="line-2292"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-2293" name="line-2293"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-2294" name="line-2294"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_slider</span><span class="p">);</span>
+<a id="line-2295" name="line-2295"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_label</span><span class="p">);</span>
+<a id="line-2296" name="line-2296"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">opacity_entry</span><span class="p">);</span>
+<a id="line-2297" name="line-2297"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2298" name="line-2298"></a><span class="w"> </span><span class="n">color_sample_update_samples</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-2299" name="line-2299"></a>
+<a id="line-2300" name="line-2300"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;has-opacity-control&quot;</span><span class="p">);</span>
+<a id="line-2301" name="line-2301"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2302" name="line-2302"></a><span class="p">}</span>
+<a id="line-2303" name="line-2303"></a>
+<a id="line-2304" name="line-2304"></a><span class="cm">/**</span>
+<a id="line-2305" name="line-2305"></a><span class="cm"> * mate_color_selection_get_has_palette:</span>
+<a id="line-2306" name="line-2306"></a><span class="cm"> * @colorsel: a #MateColorSelection.</span>
+<a id="line-2307" name="line-2307"></a><span class="cm"> *</span>
+<a id="line-2308" name="line-2308"></a><span class="cm"> * Determines whether the color selector has a color palette.</span>
+<a id="line-2309" name="line-2309"></a><span class="cm"> *</span>
+<a id="line-2310" name="line-2310"></a><span class="cm"> * Return value: %TRUE if the selector has a palette. %FALSE if it hasn&#39;t.</span>
+<a id="line-2311" name="line-2311"></a><span class="cm"> **/</span>
+<a id="line-2312" name="line-2312"></a><span class="n">gboolean</span>
+<a id="line-2313" name="line-2313"></a><span class="nf">mate_color_selection_get_has_palette</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">)</span>
+<a id="line-2314" name="line-2314"></a><span class="p">{</span>
+<a id="line-2315" name="line-2315"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-2316" name="line-2316"></a>
+<a id="line-2317" name="line-2317"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-2318" name="line-2318"></a>
+<a id="line-2319" name="line-2319"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-2320" name="line-2320"></a>
+<a id="line-2321" name="line-2321"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">has_palette</span><span class="p">;</span>
+<a id="line-2322" name="line-2322"></a><span class="p">}</span>
+<a id="line-2323" name="line-2323"></a>
+<a id="line-2324" name="line-2324"></a><span class="cm">/**</span>
+<a id="line-2325" name="line-2325"></a><span class="cm"> * mate_color_selection_set_has_palette:</span>
+<a id="line-2326" name="line-2326"></a><span class="cm"> * @colorsel: a #MateColorSelection.</span>
+<a id="line-2327" name="line-2327"></a><span class="cm"> * @has_palette: %TRUE if palette is to be visible, %FALSE otherwise.</span>
+<a id="line-2328" name="line-2328"></a><span class="cm"> *</span>
+<a id="line-2329" name="line-2329"></a><span class="cm"> * Shows and hides the palette based upon the value of @has_palette.</span>
+<a id="line-2330" name="line-2330"></a><span class="cm"> *</span>
+<a id="line-2331" name="line-2331"></a><span class="cm"> **/</span>
+<a id="line-2332" name="line-2332"></a><span class="kt">void</span>
+<a id="line-2333" name="line-2333"></a><span class="nf">mate_color_selection_set_has_palette</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-2334" name="line-2334"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">has_palette</span><span class="p">)</span>
+<a id="line-2335" name="line-2335"></a><span class="p">{</span>
+<a id="line-2336" name="line-2336"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-2337" name="line-2337"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">));</span>
+<a id="line-2338" name="line-2338"></a>
+<a id="line-2339" name="line-2339"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-2340" name="line-2340"></a><span class="w"> </span><span class="n">has_palette</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">has_palette</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-2341" name="line-2341"></a>
+<a id="line-2342" name="line-2342"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">has_palette</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">has_palette</span><span class="p">)</span>
+<a id="line-2343" name="line-2343"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-2344" name="line-2344"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">has_palette</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">has_palette</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-2345" name="line-2345"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">has_palette</span><span class="p">)</span>
+<a id="line-2346" name="line-2346"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">palette_frame</span><span class="p">);</span>
+<a id="line-2347" name="line-2347"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-2348" name="line-2348"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">palette_frame</span><span class="p">);</span>
+<a id="line-2349" name="line-2349"></a>
+<a id="line-2350" name="line-2350"></a><span class="w"> </span><span class="n">update_tooltips</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-2351" name="line-2351"></a>
+<a id="line-2352" name="line-2352"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">),</span><span class="w"> </span><span class="s">&quot;has-palette&quot;</span><span class="p">);</span>
+<a id="line-2353" name="line-2353"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2354" name="line-2354"></a><span class="p">}</span>
+<a id="line-2355" name="line-2355"></a>
+<a id="line-2356" name="line-2356"></a><span class="cm">/**</span>
+<a id="line-2357" name="line-2357"></a><span class="cm"> * mate_color_selection_set_current_rgba:</span>
+<a id="line-2358" name="line-2358"></a><span class="cm"> * @colorsel: a #MateColorSelection.</span>
+<a id="line-2359" name="line-2359"></a><span class="cm"> * @color: A #GdkRGBA to set the current color with.</span>
+<a id="line-2360" name="line-2360"></a><span class="cm"> *</span>
+<a id="line-2361" name="line-2361"></a><span class="cm"> * Sets the current color to be @color. The first time this is called, it will</span>
+<a id="line-2362" name="line-2362"></a><span class="cm"> * also set the original color to be @color too.</span>
+<a id="line-2363" name="line-2363"></a><span class="cm"> **/</span>
+<a id="line-2364" name="line-2364"></a><span class="kt">void</span>
+<a id="line-2365" name="line-2365"></a><span class="nf">mate_color_selection_set_current_rgba</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-2366" name="line-2366"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">rgba</span><span class="p">)</span>
+<a id="line-2367" name="line-2367"></a><span class="p">{</span>
+<a id="line-2368" name="line-2368"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-2369" name="line-2369"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-2370" name="line-2370"></a>
+<a id="line-2371" name="line-2371"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">));</span>
+<a id="line-2372" name="line-2372"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">rgba</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2373" name="line-2373"></a>
+<a id="line-2374" name="line-2374"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-2375" name="line-2375"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">changing</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-2376" name="line-2376"></a>
+<a id="line-2377" name="line-2377"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_RED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CLAMP</span><span class="w"> </span><span class="p">(</span><span class="n">rgba</span><span class="o">-&gt;</span><span class="n">red</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-2378" name="line-2378"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_GREEN</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CLAMP</span><span class="w"> </span><span class="p">(</span><span class="n">rgba</span><span class="o">-&gt;</span><span class="n">green</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-2379" name="line-2379"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_BLUE</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CLAMP</span><span class="w"> </span><span class="p">(</span><span class="n">rgba</span><span class="o">-&gt;</span><span class="n">blue</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-2380" name="line-2380"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_OPACITY</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CLAMP</span><span class="w"> </span><span class="p">(</span><span class="n">rgba</span><span class="o">-&gt;</span><span class="n">alpha</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-2381" name="line-2381"></a>
+<a id="line-2382" name="line-2382"></a><span class="w"> </span><span class="n">gtk_rgb_to_hsv</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_RED</span><span class="p">],</span>
+<a id="line-2383" name="line-2383"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_GREEN</span><span class="p">],</span>
+<a id="line-2384" name="line-2384"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_BLUE</span><span class="p">],</span>
+<a id="line-2385" name="line-2385"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_HUE</span><span class="p">],</span>
+<a id="line-2386" name="line-2386"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_SATURATION</span><span class="p">],</span>
+<a id="line-2387" name="line-2387"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_VALUE</span><span class="p">]);</span>
+<a id="line-2388" name="line-2388"></a>
+<a id="line-2389" name="line-2389"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">default_set</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">FALSE</span><span class="p">)</span>
+<a id="line-2390" name="line-2390"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-2391" name="line-2391"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">COLORSEL_NUM_CHANNELS</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span>
+<a id="line-2392" name="line-2392"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_color</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-2393" name="line-2393"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2394" name="line-2394"></a>
+<a id="line-2395" name="line-2395"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">default_set</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-2396" name="line-2396"></a><span class="w"> </span><span class="n">update_color</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-2397" name="line-2397"></a><span class="p">}</span>
+<a id="line-2398" name="line-2398"></a>
+<a id="line-2399" name="line-2399"></a><span class="cm">/**</span>
+<a id="line-2400" name="line-2400"></a><span class="cm"> * mate_color_selection_set_current_alpha:</span>
+<a id="line-2401" name="line-2401"></a><span class="cm"> * @colorsel: a #MateColorSelection.</span>
+<a id="line-2402" name="line-2402"></a><span class="cm"> * @alpha: an integer between 0 and 65535.</span>
+<a id="line-2403" name="line-2403"></a><span class="cm"> *</span>
+<a id="line-2404" name="line-2404"></a><span class="cm"> * Sets the current opacity to be @alpha. The first time this is called, it will</span>
+<a id="line-2405" name="line-2405"></a><span class="cm"> * also set the original opacity to be @alpha too.</span>
+<a id="line-2406" name="line-2406"></a><span class="cm"> **/</span>
+<a id="line-2407" name="line-2407"></a><span class="kt">void</span>
+<a id="line-2408" name="line-2408"></a><span class="nf">mate_color_selection_set_current_alpha</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-2409" name="line-2409"></a><span class="w"> </span><span class="n">guint16</span><span class="w"> </span><span class="n">alpha</span><span class="p">)</span>
+<a id="line-2410" name="line-2410"></a><span class="p">{</span>
+<a id="line-2411" name="line-2411"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-2412" name="line-2412"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-2413" name="line-2413"></a>
+<a id="line-2414" name="line-2414"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">));</span>
+<a id="line-2415" name="line-2415"></a>
+<a id="line-2416" name="line-2416"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-2417" name="line-2417"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">changing</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-2418" name="line-2418"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_OPACITY</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">SCALE</span><span class="w"> </span><span class="p">(</span><span class="n">alpha</span><span class="p">);</span>
+<a id="line-2419" name="line-2419"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">default_alpha_set</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">FALSE</span><span class="p">)</span>
+<a id="line-2420" name="line-2420"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-2421" name="line-2421"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">COLORSEL_NUM_CHANNELS</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span>
+<a id="line-2422" name="line-2422"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_color</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">i</span><span class="p">];</span>
+<a id="line-2423" name="line-2423"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2424" name="line-2424"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">default_alpha_set</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-2425" name="line-2425"></a><span class="w"> </span><span class="n">update_color</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-2426" name="line-2426"></a><span class="p">}</span>
+<a id="line-2427" name="line-2427"></a>
+<a id="line-2428" name="line-2428"></a><span class="cm">/**</span>
+<a id="line-2429" name="line-2429"></a><span class="cm"> * mate_color_selection_set_color:</span>
+<a id="line-2430" name="line-2430"></a><span class="cm"> * @colorsel: a #MateColorSelection.</span>
+<a id="line-2431" name="line-2431"></a><span class="cm"> * @color: an array of 4 doubles specifying the red, green, blue and opacity</span>
+<a id="line-2432" name="line-2432"></a><span class="cm"> * to set the current color to.</span>
+<a id="line-2433" name="line-2433"></a><span class="cm"> *</span>
+<a id="line-2434" name="line-2434"></a><span class="cm"> * Sets the current color to be @color. The first time this is called, it will</span>
+<a id="line-2435" name="line-2435"></a><span class="cm"> * also set the original color to be @color too.</span>
+<a id="line-2436" name="line-2436"></a><span class="cm"> *</span>
+<a id="line-2437" name="line-2437"></a><span class="cm"> * Deprecated: 2.0: Use mate_color_selection_set_current_color() instead.</span>
+<a id="line-2438" name="line-2438"></a><span class="cm"> **/</span>
+<a id="line-2439" name="line-2439"></a><span class="kt">void</span>
+<a id="line-2440" name="line-2440"></a><span class="nf">mate_color_selection_set_color</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-2441" name="line-2441"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">)</span>
+<a id="line-2442" name="line-2442"></a><span class="p">{</span>
+<a id="line-2443" name="line-2443"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">));</span>
+<a id="line-2444" name="line-2444"></a>
+<a id="line-2445" name="line-2445"></a><span class="w"> </span><span class="n">set_color_internal</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="n">color</span><span class="p">);</span>
+<a id="line-2446" name="line-2446"></a><span class="p">}</span>
+<a id="line-2447" name="line-2447"></a>
+<a id="line-2448" name="line-2448"></a><span class="cm">/**</span>
+<a id="line-2449" name="line-2449"></a><span class="cm"> * mate_color_selection_get_current_rgba:</span>
+<a id="line-2450" name="line-2450"></a><span class="cm"> * @colorsel: a #MateColorSelection.</span>
+<a id="line-2451" name="line-2451"></a><span class="cm"> * @color: (out): a #GdkRGBA to fill in with the current color.</span>
+<a id="line-2452" name="line-2452"></a><span class="cm"> *</span>
+<a id="line-2453" name="line-2453"></a><span class="cm"> * Sets @color to be the current color in the MateColorSelection widget.</span>
+<a id="line-2454" name="line-2454"></a><span class="cm"> **/</span>
+<a id="line-2455" name="line-2455"></a><span class="kt">void</span>
+<a id="line-2456" name="line-2456"></a><span class="nf">mate_color_selection_get_current_rgba</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-2457" name="line-2457"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">)</span>
+<a id="line-2458" name="line-2458"></a><span class="p">{</span>
+<a id="line-2459" name="line-2459"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-2460" name="line-2460"></a>
+<a id="line-2461" name="line-2461"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">));</span>
+<a id="line-2462" name="line-2462"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">color</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2463" name="line-2463"></a>
+<a id="line-2464" name="line-2464"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-2465" name="line-2465"></a><span class="w"> </span><span class="n">color</span><span class="o">-&gt;</span><span class="n">red</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_RED</span><span class="p">];</span>
+<a id="line-2466" name="line-2466"></a><span class="w"> </span><span class="n">color</span><span class="o">-&gt;</span><span class="n">green</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_GREEN</span><span class="p">];</span>
+<a id="line-2467" name="line-2467"></a><span class="w"> </span><span class="n">color</span><span class="o">-&gt;</span><span class="n">blue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_BLUE</span><span class="p">];</span>
+<a id="line-2468" name="line-2468"></a><span class="p">}</span>
+<a id="line-2469" name="line-2469"></a>
+<a id="line-2470" name="line-2470"></a><span class="cm">/**</span>
+<a id="line-2471" name="line-2471"></a><span class="cm"> * mate_color_selection_get_current_alpha:</span>
+<a id="line-2472" name="line-2472"></a><span class="cm"> * @colorsel: a #MateColorSelection.</span>
+<a id="line-2473" name="line-2473"></a><span class="cm"> *</span>
+<a id="line-2474" name="line-2474"></a><span class="cm"> * Returns the current alpha value.</span>
+<a id="line-2475" name="line-2475"></a><span class="cm"> *</span>
+<a id="line-2476" name="line-2476"></a><span class="cm"> * Return value: an integer between 0 and 65535.</span>
+<a id="line-2477" name="line-2477"></a><span class="cm"> **/</span>
+<a id="line-2478" name="line-2478"></a><span class="n">guint16</span>
+<a id="line-2479" name="line-2479"></a><span class="nf">mate_color_selection_get_current_alpha</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">)</span>
+<a id="line-2480" name="line-2480"></a><span class="p">{</span>
+<a id="line-2481" name="line-2481"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-2482" name="line-2482"></a>
+<a id="line-2483" name="line-2483"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-2484" name="line-2484"></a>
+<a id="line-2485" name="line-2485"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-2486" name="line-2486"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">has_opacity</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">UNSCALE</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_OPACITY</span><span class="p">])</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="mi">65535</span><span class="p">;</span>
+<a id="line-2487" name="line-2487"></a><span class="p">}</span>
+<a id="line-2488" name="line-2488"></a>
+<a id="line-2489" name="line-2489"></a><span class="cm">/**</span>
+<a id="line-2490" name="line-2490"></a><span class="cm"> * mate_color_selection_get_color:</span>
+<a id="line-2491" name="line-2491"></a><span class="cm"> * @colorsel: a #MateColorSelection.</span>
+<a id="line-2492" name="line-2492"></a><span class="cm"> * @color: an array of 4 #gdouble to fill in with the current color.</span>
+<a id="line-2493" name="line-2493"></a><span class="cm"> *</span>
+<a id="line-2494" name="line-2494"></a><span class="cm"> * Sets @color to be the current color in the MateColorSelection widget.</span>
+<a id="line-2495" name="line-2495"></a><span class="cm"> *</span>
+<a id="line-2496" name="line-2496"></a><span class="cm"> * Deprecated: 2.0: Use mate_color_selection_get_current_color() instead.</span>
+<a id="line-2497" name="line-2497"></a><span class="cm"> **/</span>
+<a id="line-2498" name="line-2498"></a><span class="kt">void</span>
+<a id="line-2499" name="line-2499"></a><span class="nf">mate_color_selection_get_color</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-2500" name="line-2500"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">)</span>
+<a id="line-2501" name="line-2501"></a><span class="p">{</span>
+<a id="line-2502" name="line-2502"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-2503" name="line-2503"></a>
+<a id="line-2504" name="line-2504"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">));</span>
+<a id="line-2505" name="line-2505"></a>
+<a id="line-2506" name="line-2506"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-2507" name="line-2507"></a><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_RED</span><span class="p">];</span>
+<a id="line-2508" name="line-2508"></a><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_GREEN</span><span class="p">];</span>
+<a id="line-2509" name="line-2509"></a><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_BLUE</span><span class="p">];</span>
+<a id="line-2510" name="line-2510"></a><span class="w"> </span><span class="n">color</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">has_opacity</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">color</span><span class="p">[</span><span class="n">COLORSEL_OPACITY</span><span class="p">]</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="mi">65535</span><span class="p">;</span>
+<a id="line-2511" name="line-2511"></a><span class="p">}</span>
+<a id="line-2512" name="line-2512"></a>
+<a id="line-2513" name="line-2513"></a><span class="cm">/**</span>
+<a id="line-2514" name="line-2514"></a><span class="cm"> * mate_color_selection_set_previous_color:</span>
+<a id="line-2515" name="line-2515"></a><span class="cm"> * @colorsel: a #MateColorSelection.</span>
+<a id="line-2516" name="line-2516"></a><span class="cm"> * @color: a #GdkRGBA to set the previous color with.</span>
+<a id="line-2517" name="line-2517"></a><span class="cm"> *</span>
+<a id="line-2518" name="line-2518"></a><span class="cm"> * Sets the &#39;previous&#39; color to be @color. This function should be called with</span>
+<a id="line-2519" name="line-2519"></a><span class="cm"> * some hesitations, as it might seem confusing to have that color change.</span>
+<a id="line-2520" name="line-2520"></a><span class="cm"> * Calling mate_color_selection_set_current_color() will also set this color the first</span>
+<a id="line-2521" name="line-2521"></a><span class="cm"> * time it is called.</span>
+<a id="line-2522" name="line-2522"></a><span class="cm"> **/</span>
+<a id="line-2523" name="line-2523"></a><span class="kt">void</span>
+<a id="line-2524" name="line-2524"></a><span class="nf">mate_color_selection_set_previous_color</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-2525" name="line-2525"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">)</span>
+<a id="line-2526" name="line-2526"></a><span class="p">{</span>
+<a id="line-2527" name="line-2527"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-2528" name="line-2528"></a>
+<a id="line-2529" name="line-2529"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">));</span>
+<a id="line-2530" name="line-2530"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">color</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2531" name="line-2531"></a>
+<a id="line-2532" name="line-2532"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-2533" name="line-2533"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">changing</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-2534" name="line-2534"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_color</span><span class="p">[</span><span class="n">COLORSEL_RED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color</span><span class="o">-&gt;</span><span class="n">red</span><span class="p">;</span>
+<a id="line-2535" name="line-2535"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_color</span><span class="p">[</span><span class="n">COLORSEL_GREEN</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color</span><span class="o">-&gt;</span><span class="n">green</span><span class="p">;</span>
+<a id="line-2536" name="line-2536"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_color</span><span class="p">[</span><span class="n">COLORSEL_BLUE</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color</span><span class="o">-&gt;</span><span class="n">blue</span><span class="p">;</span>
+<a id="line-2537" name="line-2537"></a><span class="w"> </span><span class="n">gtk_rgb_to_hsv</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_color</span><span class="p">[</span><span class="n">COLORSEL_RED</span><span class="p">],</span>
+<a id="line-2538" name="line-2538"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_color</span><span class="p">[</span><span class="n">COLORSEL_GREEN</span><span class="p">],</span>
+<a id="line-2539" name="line-2539"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_color</span><span class="p">[</span><span class="n">COLORSEL_BLUE</span><span class="p">],</span>
+<a id="line-2540" name="line-2540"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_color</span><span class="p">[</span><span class="n">COLORSEL_HUE</span><span class="p">],</span>
+<a id="line-2541" name="line-2541"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_color</span><span class="p">[</span><span class="n">COLORSEL_SATURATION</span><span class="p">],</span>
+<a id="line-2542" name="line-2542"></a><span class="w"> </span><span class="o">&amp;</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_color</span><span class="p">[</span><span class="n">COLORSEL_VALUE</span><span class="p">]);</span>
+<a id="line-2543" name="line-2543"></a><span class="w"> </span><span class="n">color_sample_update_samples</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-2544" name="line-2544"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">default_set</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-2545" name="line-2545"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">changing</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-2546" name="line-2546"></a><span class="p">}</span>
+<a id="line-2547" name="line-2547"></a>
+<a id="line-2548" name="line-2548"></a><span class="cm">/**</span>
+<a id="line-2549" name="line-2549"></a><span class="cm"> * mate_color_selection_set_previous_alpha:</span>
+<a id="line-2550" name="line-2550"></a><span class="cm"> * @colorsel: a #MateColorSelection.</span>
+<a id="line-2551" name="line-2551"></a><span class="cm"> * @alpha: an integer between 0 and 65535.</span>
+<a id="line-2552" name="line-2552"></a><span class="cm"> *</span>
+<a id="line-2553" name="line-2553"></a><span class="cm"> * Sets the &#39;previous&#39; alpha to be @alpha. This function should be called with</span>
+<a id="line-2554" name="line-2554"></a><span class="cm"> * some hesitations, as it might seem confusing to have that alpha change.</span>
+<a id="line-2555" name="line-2555"></a><span class="cm"> **/</span>
+<a id="line-2556" name="line-2556"></a><span class="kt">void</span>
+<a id="line-2557" name="line-2557"></a><span class="nf">mate_color_selection_set_previous_alpha</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-2558" name="line-2558"></a><span class="w"> </span><span class="n">guint16</span><span class="w"> </span><span class="n">alpha</span><span class="p">)</span>
+<a id="line-2559" name="line-2559"></a><span class="p">{</span>
+<a id="line-2560" name="line-2560"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-2561" name="line-2561"></a>
+<a id="line-2562" name="line-2562"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">));</span>
+<a id="line-2563" name="line-2563"></a>
+<a id="line-2564" name="line-2564"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-2565" name="line-2565"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">changing</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-2566" name="line-2566"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_color</span><span class="p">[</span><span class="n">COLORSEL_OPACITY</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">SCALE</span><span class="w"> </span><span class="p">(</span><span class="n">alpha</span><span class="p">);</span>
+<a id="line-2567" name="line-2567"></a><span class="w"> </span><span class="n">color_sample_update_samples</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-2568" name="line-2568"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">default_alpha_set</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-2569" name="line-2569"></a><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">changing</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-2570" name="line-2570"></a><span class="p">}</span>
+<a id="line-2571" name="line-2571"></a>
+<a id="line-2572" name="line-2572"></a><span class="cm">/**</span>
+<a id="line-2573" name="line-2573"></a><span class="cm"> * mate_color_selection_get_previous_color:</span>
+<a id="line-2574" name="line-2574"></a><span class="cm"> * @colorsel: a #MateColorSelection.</span>
+<a id="line-2575" name="line-2575"></a><span class="cm"> * @color: (out): a #GdkRGBA to fill in with the original color value.</span>
+<a id="line-2576" name="line-2576"></a><span class="cm"> *</span>
+<a id="line-2577" name="line-2577"></a><span class="cm"> * Fills @color in with the original color value.</span>
+<a id="line-2578" name="line-2578"></a><span class="cm"> **/</span>
+<a id="line-2579" name="line-2579"></a><span class="kt">void</span>
+<a id="line-2580" name="line-2580"></a><span class="nf">mate_color_selection_get_previous_color</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-2581" name="line-2581"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">)</span>
+<a id="line-2582" name="line-2582"></a><span class="p">{</span>
+<a id="line-2583" name="line-2583"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-2584" name="line-2584"></a>
+<a id="line-2585" name="line-2585"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">));</span>
+<a id="line-2586" name="line-2586"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">color</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-2587" name="line-2587"></a>
+<a id="line-2588" name="line-2588"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-2589" name="line-2589"></a><span class="w"> </span><span class="n">color</span><span class="o">-&gt;</span><span class="n">red</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_color</span><span class="p">[</span><span class="n">COLORSEL_RED</span><span class="p">];</span>
+<a id="line-2590" name="line-2590"></a><span class="w"> </span><span class="n">color</span><span class="o">-&gt;</span><span class="n">green</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_color</span><span class="p">[</span><span class="n">COLORSEL_GREEN</span><span class="p">];</span>
+<a id="line-2591" name="line-2591"></a><span class="w"> </span><span class="n">color</span><span class="o">-&gt;</span><span class="n">blue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_color</span><span class="p">[</span><span class="n">COLORSEL_BLUE</span><span class="p">];</span>
+<a id="line-2592" name="line-2592"></a><span class="p">}</span>
+<a id="line-2593" name="line-2593"></a>
+<a id="line-2594" name="line-2594"></a><span class="cm">/**</span>
+<a id="line-2595" name="line-2595"></a><span class="cm"> * mate_color_selection_get_previous_alpha:</span>
+<a id="line-2596" name="line-2596"></a><span class="cm"> * @colorsel: a #MateColorSelection.</span>
+<a id="line-2597" name="line-2597"></a><span class="cm"> *</span>
+<a id="line-2598" name="line-2598"></a><span class="cm"> * Returns the previous alpha value.</span>
+<a id="line-2599" name="line-2599"></a><span class="cm"> *</span>
+<a id="line-2600" name="line-2600"></a><span class="cm"> * Return value: an integer between 0 and 65535.</span>
+<a id="line-2601" name="line-2601"></a><span class="cm"> **/</span>
+<a id="line-2602" name="line-2602"></a><span class="n">guint16</span>
+<a id="line-2603" name="line-2603"></a><span class="nf">mate_color_selection_get_previous_alpha</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">)</span>
+<a id="line-2604" name="line-2604"></a><span class="p">{</span>
+<a id="line-2605" name="line-2605"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-2606" name="line-2606"></a>
+<a id="line-2607" name="line-2607"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span>
+<a id="line-2608" name="line-2608"></a>
+<a id="line-2609" name="line-2609"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-2610" name="line-2610"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">has_opacity</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">UNSCALE</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">old_color</span><span class="p">[</span><span class="n">COLORSEL_OPACITY</span><span class="p">])</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="mi">65535</span><span class="p">;</span>
+<a id="line-2611" name="line-2611"></a><span class="p">}</span>
+<a id="line-2612" name="line-2612"></a>
+<a id="line-2613" name="line-2613"></a><span class="cm">/**</span>
+<a id="line-2614" name="line-2614"></a><span class="cm"> * mate_color_selection_set_palette_color:</span>
+<a id="line-2615" name="line-2615"></a><span class="cm"> * @colorsel: a #MateColorSelection.</span>
+<a id="line-2616" name="line-2616"></a><span class="cm"> * @index: the color index of the palette.</span>
+<a id="line-2617" name="line-2617"></a><span class="cm"> * @color: A #GdkRGBA to set the palette with.</span>
+<a id="line-2618" name="line-2618"></a><span class="cm"> *</span>
+<a id="line-2619" name="line-2619"></a><span class="cm"> * Sets the palette located at @index to have @color as its color.</span>
+<a id="line-2620" name="line-2620"></a><span class="cm"> *</span>
+<a id="line-2621" name="line-2621"></a><span class="cm"> **/</span>
+<a id="line-2622" name="line-2622"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-2623" name="line-2623"></a><span class="nf">mate_color_selection_set_palette_color</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-2624" name="line-2624"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">index</span><span class="p">,</span>
+<a id="line-2625" name="line-2625"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">)</span>
+<a id="line-2626" name="line-2626"></a><span class="p">{</span>
+<a id="line-2627" name="line-2627"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-2628" name="line-2628"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">;</span>
+<a id="line-2629" name="line-2629"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="n">col</span><span class="p">[</span><span class="mi">3</span><span class="p">];</span>
+<a id="line-2630" name="line-2630"></a>
+<a id="line-2631" name="line-2631"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">));</span>
+<a id="line-2632" name="line-2632"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">index</span><span class="w"> </span><span class="o">&gt;=</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">index</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">GTK_CUSTOM_PALETTE_WIDTH</span><span class="o">*</span><span class="n">GTK_CUSTOM_PALETTE_HEIGHT</span><span class="p">);</span>
+<a id="line-2633" name="line-2633"></a>
+<a id="line-2634" name="line-2634"></a><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">index</span><span class="w"> </span><span class="o">%</span><span class="w"> </span><span class="n">GTK_CUSTOM_PALETTE_WIDTH</span><span class="p">;</span>
+<a id="line-2635" name="line-2635"></a><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">index</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">GTK_CUSTOM_PALETTE_WIDTH</span><span class="p">;</span>
+<a id="line-2636" name="line-2636"></a>
+<a id="line-2637" name="line-2637"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-2638" name="line-2638"></a><span class="w"> </span><span class="n">col</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color</span><span class="o">-&gt;</span><span class="n">red</span><span class="p">;</span>
+<a id="line-2639" name="line-2639"></a><span class="w"> </span><span class="n">col</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color</span><span class="o">-&gt;</span><span class="n">green</span><span class="p">;</span>
+<a id="line-2640" name="line-2640"></a><span class="w"> </span><span class="n">col</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">color</span><span class="o">-&gt;</span><span class="n">blue</span><span class="p">;</span>
+<a id="line-2641" name="line-2641"></a>
+<a id="line-2642" name="line-2642"></a><span class="w"> </span><span class="n">palette_set_color</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">custom_palette</span><span class="p">[</span><span class="n">x</span><span class="p">][</span><span class="n">y</span><span class="p">],</span><span class="w"> </span><span class="n">colorsel</span><span class="p">,</span><span class="w"> </span><span class="n">col</span><span class="p">);</span>
+<a id="line-2643" name="line-2643"></a><span class="p">}</span>
+<a id="line-2644" name="line-2644"></a>
+<a id="line-2645" name="line-2645"></a><span class="cm">/**</span>
+<a id="line-2646" name="line-2646"></a><span class="cm"> * mate_color_selection_is_adjusting:</span>
+<a id="line-2647" name="line-2647"></a><span class="cm"> * @colorsel: a #MateColorSelection.</span>
+<a id="line-2648" name="line-2648"></a><span class="cm"> *</span>
+<a id="line-2649" name="line-2649"></a><span class="cm"> * Gets the current state of the @colorsel.</span>
+<a id="line-2650" name="line-2650"></a><span class="cm"> *</span>
+<a id="line-2651" name="line-2651"></a><span class="cm"> * Return value: %TRUE if the user is currently dragging a color around, and %FALSE</span>
+<a id="line-2652" name="line-2652"></a><span class="cm"> * if the selection has stopped.</span>
+<a id="line-2653" name="line-2653"></a><span class="cm"> **/</span>
+<a id="line-2654" name="line-2654"></a><span class="n">gboolean</span>
+<a id="line-2655" name="line-2655"></a><span class="nf">mate_color_selection_is_adjusting</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">)</span>
+<a id="line-2656" name="line-2656"></a><span class="p">{</span>
+<a id="line-2657" name="line-2657"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-2658" name="line-2658"></a>
+<a id="line-2659" name="line-2659"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_COLOR_SELECTION</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-2660" name="line-2660"></a>
+<a id="line-2661" name="line-2661"></a><span class="w"> </span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-2662" name="line-2662"></a>
+<a id="line-2663" name="line-2663"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">mate_hsv_is_adjusting</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_HSV</span><span class="w"> </span><span class="p">(</span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">triangle_colorsel</span><span class="p">)));</span>
+<a id="line-2664" name="line-2664"></a><span class="p">}</span>
+<a id="line-2665" name="line-2665"></a>
+<a id="line-2666" name="line-2666"></a><span class="cm">/**</span>
+<a id="line-2667" name="line-2667"></a><span class="cm"> * mate_color_selection_palette_from_string:</span>
+<a id="line-2668" name="line-2668"></a><span class="cm"> * @str: a string encoding a color palette.</span>
+<a id="line-2669" name="line-2669"></a><span class="cm"> * @colors: (out) (array length=n_colors): return location for allocated</span>
+<a id="line-2670" name="line-2670"></a><span class="cm"> * array of #GdkRGBA.</span>
+<a id="line-2671" name="line-2671"></a><span class="cm"> * @n_colors: return location for length of array.</span>
+<a id="line-2672" name="line-2672"></a><span class="cm"> *</span>
+<a id="line-2673" name="line-2673"></a><span class="cm"> * Parses a color palette string; the string is a colon-separated</span>
+<a id="line-2674" name="line-2674"></a><span class="cm"> * list of color names readable by gdk_color_parse().</span>
+<a id="line-2675" name="line-2675"></a><span class="cm"> *</span>
+<a id="line-2676" name="line-2676"></a><span class="cm"> * Return value: %TRUE if a palette was successfully parsed.</span>
+<a id="line-2677" name="line-2677"></a><span class="cm"> **/</span>
+<a id="line-2678" name="line-2678"></a><span class="n">gboolean</span>
+<a id="line-2679" name="line-2679"></a><span class="nf">mate_color_selection_palette_from_string</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">,</span>
+<a id="line-2680" name="line-2680"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">**</span><span class="n">colors</span><span class="p">,</span>
+<a id="line-2681" name="line-2681"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">n_colors</span><span class="p">)</span>
+<a id="line-2682" name="line-2682"></a><span class="p">{</span>
+<a id="line-2683" name="line-2683"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">retval</span><span class="p">;</span>
+<a id="line-2684" name="line-2684"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">count</span><span class="p">;</span>
+<a id="line-2685" name="line-2685"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">;</span>
+<a id="line-2686" name="line-2686"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">start</span><span class="p">;</span>
+<a id="line-2687" name="line-2687"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">copy</span><span class="p">;</span>
+<a id="line-2688" name="line-2688"></a>
+<a id="line-2689" name="line-2689"></a><span class="w"> </span><span class="n">count</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-2690" name="line-2690"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2691" name="line-2691"></a><span class="w"> </span><span class="n">copy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">);</span>
+<a id="line-2692" name="line-2692"></a>
+<a id="line-2693" name="line-2693"></a><span class="w"> </span><span class="n">start</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">copy</span><span class="p">;</span>
+<a id="line-2694" name="line-2694"></a><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">copy</span><span class="p">;</span>
+<a id="line-2695" name="line-2695"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">)</span>
+<a id="line-2696" name="line-2696"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-2697" name="line-2697"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">p</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;:&#39;</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">)</span>
+<a id="line-2698" name="line-2698"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-2699" name="line-2699"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">done</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-2700" name="line-2700"></a>
+<a id="line-2701" name="line-2701"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">start</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">p</span><span class="p">)</span>
+<a id="line-2702" name="line-2702"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-2703" name="line-2703"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">failed</span><span class="p">;</span><span class="w"> </span><span class="cm">/* empty entry */</span>
+<a id="line-2704" name="line-2704"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2705" name="line-2705"></a>
+<a id="line-2706" name="line-2706"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">p</span><span class="p">)</span>
+<a id="line-2707" name="line-2707"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-2708" name="line-2708"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;\0&#39;</span><span class="p">;</span>
+<a id="line-2709" name="line-2709"></a><span class="w"> </span><span class="n">done</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-2710" name="line-2710"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2711" name="line-2711"></a>
+<a id="line-2712" name="line-2712"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_renew</span><span class="w"> </span><span class="p">(</span><span class="n">GdkRGBA</span><span class="p">,</span><span class="w"> </span><span class="n">retval</span><span class="p">,</span><span class="w"> </span><span class="n">count</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-2713" name="line-2713"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gdk_rgba_parse</span><span class="w"> </span><span class="p">(</span><span class="n">retval</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">count</span><span class="p">,</span><span class="w"> </span><span class="n">start</span><span class="p">))</span>
+<a id="line-2714" name="line-2714"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-2715" name="line-2715"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">failed</span><span class="p">;</span>
+<a id="line-2716" name="line-2716"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2717" name="line-2717"></a>
+<a id="line-2718" name="line-2718"></a><span class="w"> </span><span class="o">++</span><span class="n">count</span><span class="p">;</span>
+<a id="line-2719" name="line-2719"></a>
+<a id="line-2720" name="line-2720"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">done</span><span class="p">)</span>
+<a id="line-2721" name="line-2721"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-2722" name="line-2722"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-2723" name="line-2723"></a><span class="w"> </span><span class="n">start</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
+<a id="line-2724" name="line-2724"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2725" name="line-2725"></a>
+<a id="line-2726" name="line-2726"></a><span class="w"> </span><span class="o">++</span><span class="n">p</span><span class="p">;</span>
+<a id="line-2727" name="line-2727"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2728" name="line-2728"></a>
+<a id="line-2729" name="line-2729"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">copy</span><span class="p">);</span>
+<a id="line-2730" name="line-2730"></a>
+<a id="line-2731" name="line-2731"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">colors</span><span class="p">)</span>
+<a id="line-2732" name="line-2732"></a><span class="w"> </span><span class="o">*</span><span class="n">colors</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span>
+<a id="line-2733" name="line-2733"></a><span class="w"> </span><span class="k">else</span>
+<a id="line-2734" name="line-2734"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">retval</span><span class="p">);</span>
+<a id="line-2735" name="line-2735"></a>
+<a id="line-2736" name="line-2736"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n_colors</span><span class="p">)</span>
+<a id="line-2737" name="line-2737"></a><span class="w"> </span><span class="o">*</span><span class="n">n_colors</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">count</span><span class="p">;</span>
+<a id="line-2738" name="line-2738"></a>
+<a id="line-2739" name="line-2739"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span>
+<a id="line-2740" name="line-2740"></a>
+<a id="line-2741" name="line-2741"></a><span class="w"> </span><span class="nl">failed</span><span class="p">:</span>
+<a id="line-2742" name="line-2742"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">copy</span><span class="p">);</span>
+<a id="line-2743" name="line-2743"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">retval</span><span class="p">);</span>
+<a id="line-2744" name="line-2744"></a>
+<a id="line-2745" name="line-2745"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">colors</span><span class="p">)</span>
+<a id="line-2746" name="line-2746"></a><span class="w"> </span><span class="o">*</span><span class="n">colors</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2747" name="line-2747"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n_colors</span><span class="p">)</span>
+<a id="line-2748" name="line-2748"></a><span class="w"> </span><span class="o">*</span><span class="n">n_colors</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-2749" name="line-2749"></a>
+<a id="line-2750" name="line-2750"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span>
+<a id="line-2751" name="line-2751"></a><span class="p">}</span>
+<a id="line-2752" name="line-2752"></a>
+<a id="line-2753" name="line-2753"></a><span class="cm">/**</span>
+<a id="line-2754" name="line-2754"></a><span class="cm"> * mate_color_selection_palette_to_string:</span>
+<a id="line-2755" name="line-2755"></a><span class="cm"> * @colors: (array length=n_colors): an array of colors.</span>
+<a id="line-2756" name="line-2756"></a><span class="cm"> * @n_colors: length of the array.</span>
+<a id="line-2757" name="line-2757"></a><span class="cm"> *</span>
+<a id="line-2758" name="line-2758"></a><span class="cm"> * Encodes a palette as a string, useful for persistent storage.</span>
+<a id="line-2759" name="line-2759"></a><span class="cm"> *</span>
+<a id="line-2760" name="line-2760"></a><span class="cm"> * Return value: allocated string encoding the palette.</span>
+<a id="line-2761" name="line-2761"></a><span class="cm"> **/</span>
+<a id="line-2762" name="line-2762"></a><span class="n">gchar</span><span class="o">*</span>
+<a id="line-2763" name="line-2763"></a><span class="nf">mate_color_selection_palette_to_string</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">colors</span><span class="p">,</span>
+<a id="line-2764" name="line-2764"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">n_colors</span><span class="p">)</span>
+<a id="line-2765" name="line-2765"></a><span class="p">{</span>
+<a id="line-2766" name="line-2766"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">i</span><span class="p">;</span>
+<a id="line-2767" name="line-2767"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">strs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span>
+<a id="line-2768" name="line-2768"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">retval</span><span class="p">;</span>
+<a id="line-2769" name="line-2769"></a>
+<a id="line-2770" name="line-2770"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n_colors</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-2771" name="line-2771"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;&quot;</span><span class="p">);</span>
+<a id="line-2772" name="line-2772"></a>
+<a id="line-2773" name="line-2773"></a><span class="w"> </span><span class="n">strs</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_new0</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">,</span><span class="w"> </span><span class="n">n_colors</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span>
+<a id="line-2774" name="line-2774"></a>
+<a id="line-2775" name="line-2775"></a><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
+<a id="line-2776" name="line-2776"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">n_colors</span><span class="p">)</span>
+<a id="line-2777" name="line-2777"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-2778" name="line-2778"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">ptr</span><span class="p">;</span>
+<a id="line-2779" name="line-2779"></a>
+<a id="line-2780" name="line-2780"></a><span class="w"> </span><span class="n">strs</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span>
+<a id="line-2781" name="line-2781"></a><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;#%2X%2X%2X&quot;</span><span class="p">,</span>
+<a id="line-2782" name="line-2782"></a><span class="w"> </span><span class="p">(</span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">int</span><span class="p">)</span><span class="n">colors</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">red</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">255</span><span class="p">,</span>
+<a id="line-2783" name="line-2783"></a><span class="w"> </span><span class="p">(</span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">int</span><span class="p">)</span><span class="n">colors</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">green</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">255</span><span class="p">,</span>
+<a id="line-2784" name="line-2784"></a><span class="w"> </span><span class="p">(</span><span class="kt">unsigned</span><span class="w"> </span><span class="kt">int</span><span class="p">)</span><span class="n">colors</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">blue</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">255</span><span class="p">);</span>
+<a id="line-2785" name="line-2785"></a>
+<a id="line-2786" name="line-2786"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strs</span><span class="p">[</span><span class="n">i</span><span class="p">];</span><span class="w"> </span><span class="o">*</span><span class="n">ptr</span><span class="p">;</span><span class="w"> </span><span class="n">ptr</span><span class="o">++</span><span class="p">)</span>
+<a id="line-2787" name="line-2787"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">ptr</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">&#39; &#39;</span><span class="p">)</span>
+<a id="line-2788" name="line-2788"></a><span class="w"> </span><span class="o">*</span><span class="n">ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">&#39;0&#39;</span><span class="p">;</span>
+<a id="line-2789" name="line-2789"></a>
+<a id="line-2790" name="line-2790"></a><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">;</span>
+<a id="line-2791" name="line-2791"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-2792" name="line-2792"></a>
+<a id="line-2793" name="line-2793"></a><span class="w"> </span><span class="n">retval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strjoinv</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;:&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">strs</span><span class="p">);</span>
+<a id="line-2794" name="line-2794"></a>
+<a id="line-2795" name="line-2795"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">strs</span><span class="p">);</span>
+<a id="line-2796" name="line-2796"></a>
+<a id="line-2797" name="line-2797"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">retval</span><span class="p">;</span>
+<a id="line-2798" name="line-2798"></a><span class="p">}</span>
+<a id="line-2799" name="line-2799"></a>
+<a id="line-2800" name="line-2800"></a><span class="cm">/**</span>
+<a id="line-2801" name="line-2801"></a><span class="cm"> * mate_color_selection_set_change_palette_hook:</span>
+<a id="line-2802" name="line-2802"></a><span class="cm"> * @func: a function to call when the custom palette needs saving.</span>
+<a id="line-2803" name="line-2803"></a><span class="cm"> *</span>
+<a id="line-2804" name="line-2804"></a><span class="cm"> * Installs a global function to be called whenever the user tries to</span>
+<a id="line-2805" name="line-2805"></a><span class="cm"> * modify the palette in a color selection. This function should save</span>
+<a id="line-2806" name="line-2806"></a><span class="cm"> * the new palette contents, and update the GtkSettings property</span>
+<a id="line-2807" name="line-2807"></a><span class="cm"> * &quot;gtk-color-palette&quot; so all MateColorSelection widgets will be modified.</span>
+<a id="line-2808" name="line-2808"></a><span class="cm"> *</span>
+<a id="line-2809" name="line-2809"></a><span class="cm"> * Return value: the previous change palette hook (that was replaced).</span>
+<a id="line-2810" name="line-2810"></a><span class="cm"> *</span>
+<a id="line-2811" name="line-2811"></a><span class="cm"> * Deprecated: 2.4: This function does not work in multihead environments.</span>
+<a id="line-2812" name="line-2812"></a><span class="cm"> * Use mate_color_selection_set_change_palette_with_screen_hook() instead.</span>
+<a id="line-2813" name="line-2813"></a><span class="cm"> *</span>
+<a id="line-2814" name="line-2814"></a><span class="cm"> **/</span>
+<a id="line-2815" name="line-2815"></a><span class="n">MateColorSelectionChangePaletteFunc</span>
+<a id="line-2816" name="line-2816"></a><span class="nf">mate_color_selection_set_change_palette_hook</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelectionChangePaletteFunc</span><span class="w"> </span><span class="n">func</span><span class="p">)</span>
+<a id="line-2817" name="line-2817"></a><span class="p">{</span>
+<a id="line-2818" name="line-2818"></a><span class="w"> </span><span class="n">MateColorSelectionChangePaletteFunc</span><span class="w"> </span><span class="n">old</span><span class="p">;</span>
+<a id="line-2819" name="line-2819"></a>
+<a id="line-2820" name="line-2820"></a><span class="w"> </span><span class="n">old</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">noscreen_change_palette_hook</span><span class="p">;</span>
+<a id="line-2821" name="line-2821"></a>
+<a id="line-2822" name="line-2822"></a><span class="w"> </span><span class="n">noscreen_change_palette_hook</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">func</span><span class="p">;</span>
+<a id="line-2823" name="line-2823"></a>
+<a id="line-2824" name="line-2824"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">old</span><span class="p">;</span>
+<a id="line-2825" name="line-2825"></a><span class="p">}</span>
+<a id="line-2826" name="line-2826"></a>
+<a id="line-2827" name="line-2827"></a><span class="cm">/**</span>
+<a id="line-2828" name="line-2828"></a><span class="cm"> * mate_color_selection_set_change_palette_with_screen_hook:</span>
+<a id="line-2829" name="line-2829"></a><span class="cm"> * @func: a function to call when the custom palette needs saving.</span>
+<a id="line-2830" name="line-2830"></a><span class="cm"> *</span>
+<a id="line-2831" name="line-2831"></a><span class="cm"> * Installs a global function to be called whenever the user tries to</span>
+<a id="line-2832" name="line-2832"></a><span class="cm"> * modify the palette in a color selection. This function should save</span>
+<a id="line-2833" name="line-2833"></a><span class="cm"> * the new palette contents, and update the GtkSettings property</span>
+<a id="line-2834" name="line-2834"></a><span class="cm"> * &quot;gtk-color-palette&quot; so all MateColorSelection widgets will be modified.</span>
+<a id="line-2835" name="line-2835"></a><span class="cm"> *</span>
+<a id="line-2836" name="line-2836"></a><span class="cm"> * Return value: the previous change palette hook (that was replaced).</span>
+<a id="line-2837" name="line-2837"></a><span class="cm"> *</span>
+<a id="line-2838" name="line-2838"></a><span class="cm"> * Since: 1.9.1</span>
+<a id="line-2839" name="line-2839"></a><span class="cm"> **/</span>
+<a id="line-2840" name="line-2840"></a><span class="n">MateColorSelectionChangePaletteWithScreenFunc</span>
+<a id="line-2841" name="line-2841"></a><span class="nf">mate_color_selection_set_change_palette_with_screen_hook</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelectionChangePaletteWithScreenFunc</span><span class="w"> </span><span class="n">func</span><span class="p">)</span>
+<a id="line-2842" name="line-2842"></a><span class="p">{</span>
+<a id="line-2843" name="line-2843"></a><span class="w"> </span><span class="n">MateColorSelectionChangePaletteWithScreenFunc</span><span class="w"> </span><span class="n">old</span><span class="p">;</span>
+<a id="line-2844" name="line-2844"></a>
+<a id="line-2845" name="line-2845"></a><span class="w"> </span><span class="n">old</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">change_palette_hook</span><span class="p">;</span>
+<a id="line-2846" name="line-2846"></a>
+<a id="line-2847" name="line-2847"></a><span class="w"> </span><span class="n">change_palette_hook</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">func</span><span class="p">;</span>
+<a id="line-2848" name="line-2848"></a>
+<a id="line-2849" name="line-2849"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">old</span><span class="p">;</span>
+<a id="line-2850" name="line-2850"></a><span class="p">}</span>
+<a id="line-2851" name="line-2851"></a>
+<a id="line-2852" name="line-2852"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-2853" name="line-2853"></a><span class="nf">make_control_relations</span><span class="w"> </span><span class="p">(</span><span class="n">AtkObject</span><span class="w"> </span><span class="o">*</span><span class="n">atk_obj</span><span class="p">,</span>
+<a id="line-2854" name="line-2854"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">)</span>
+<a id="line-2855" name="line-2855"></a><span class="p">{</span>
+<a id="line-2856" name="line-2856"></a><span class="w"> </span><span class="n">AtkObject</span><span class="w"> </span><span class="o">*</span><span class="n">obj</span><span class="p">;</span>
+<a id="line-2857" name="line-2857"></a>
+<a id="line-2858" name="line-2858"></a><span class="w"> </span><span class="n">obj</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_accessible</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">);</span>
+<a id="line-2859" name="line-2859"></a><span class="w"> </span><span class="n">atk_object_add_relationship</span><span class="w"> </span><span class="p">(</span><span class="n">atk_obj</span><span class="p">,</span><span class="w"> </span><span class="n">ATK_RELATION_CONTROLLED_BY</span><span class="p">,</span><span class="w"> </span><span class="n">obj</span><span class="p">);</span>
+<a id="line-2860" name="line-2860"></a><span class="w"> </span><span class="n">atk_object_add_relationship</span><span class="w"> </span><span class="p">(</span><span class="n">obj</span><span class="p">,</span><span class="w"> </span><span class="n">ATK_RELATION_CONTROLLER_FOR</span><span class="p">,</span><span class="w"> </span><span class="n">atk_obj</span><span class="p">);</span>
+<a id="line-2861" name="line-2861"></a><span class="p">}</span>
+<a id="line-2862" name="line-2862"></a>
+<a id="line-2863" name="line-2863"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-2864" name="line-2864"></a><span class="nf">make_all_relations</span><span class="w"> </span><span class="p">(</span><span class="n">AtkObject</span><span class="w"> </span><span class="o">*</span><span class="n">atk_obj</span><span class="p">,</span>
+<a id="line-2865" name="line-2865"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">)</span>
+<a id="line-2866" name="line-2866"></a><span class="p">{</span>
+<a id="line-2867" name="line-2867"></a><span class="w"> </span><span class="n">make_control_relations</span><span class="w"> </span><span class="p">(</span><span class="n">atk_obj</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">hue_spinbutton</span><span class="p">);</span>
+<a id="line-2868" name="line-2868"></a><span class="w"> </span><span class="n">make_control_relations</span><span class="w"> </span><span class="p">(</span><span class="n">atk_obj</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">sat_spinbutton</span><span class="p">);</span>
+<a id="line-2869" name="line-2869"></a><span class="w"> </span><span class="n">make_control_relations</span><span class="w"> </span><span class="p">(</span><span class="n">atk_obj</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">val_spinbutton</span><span class="p">);</span>
+<a id="line-2870" name="line-2870"></a><span class="w"> </span><span class="n">make_control_relations</span><span class="w"> </span><span class="p">(</span><span class="n">atk_obj</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">red_spinbutton</span><span class="p">);</span>
+<a id="line-2871" name="line-2871"></a><span class="w"> </span><span class="n">make_control_relations</span><span class="w"> </span><span class="p">(</span><span class="n">atk_obj</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">green_spinbutton</span><span class="p">);</span>
+<a id="line-2872" name="line-2872"></a><span class="w"> </span><span class="n">make_control_relations</span><span class="w"> </span><span class="p">(</span><span class="n">atk_obj</span><span class="p">,</span><span class="w"> </span><span class="n">priv</span><span class="o">-&gt;</span><span class="n">blue_spinbutton</span><span class="p">);</span>
+<a id="line-2873" name="line-2873"></a><span class="p">}</span>
+<a id="line-2874" name="line-2874"></a>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/6.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/6.html
new file mode 100644
index 0000000..e21ff1d
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/6.html
@@ -0,0 +1,309 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/private.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> private.h</p>
+<a href="6.html#line-28"> missingIncludeSystem 28</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal">10</span>
+<span class="normal">11</span>
+<span class="normal">12</span>
+<span class="normal">13</span>
+<span class="normal">14</span>
+<span class="normal">15</span>
+<span class="normal">16</span>
+<span class="normal">17</span>
+<span class="normal">18</span>
+<span class="normal">19</span>
+<span class="normal">20</span>
+<span class="normal">21</span>
+<span class="normal">22</span>
+<span class="normal">23</span>
+<span class="normal">24</span>
+<span class="normal">25</span>
+<span class="normal">26</span>
+<span class="normal">27</span>
+<span class="normal">28</span>
+<span class="normal">29</span>
+<span class="normal">30</span>
+<span class="normal">31</span>
+<span class="normal">32</span>
+<span class="normal">33</span>
+<span class="normal">34</span>
+<span class="normal">35</span>
+<span class="normal">36</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* private.h: various private functions</span>
+<a id="line-2" name="line-2"></a>
+<a id="line-3" name="line-3"></a><span class="cm"> Copyright 2009, Novell, Inc.</span>
+<a id="line-4" name="line-4"></a>
+<a id="line-5" name="line-5"></a><span class="cm"> This file is part of the Mate Library.</span>
+<a id="line-6" name="line-6"></a>
+<a id="line-7" name="line-7"></a><span class="cm"> The Mate Library is free software; you can redistribute it and/or</span>
+<a id="line-8" name="line-8"></a><span class="cm"> modify it under the terms of the GNU Library General Public License as</span>
+<a id="line-9" name="line-9"></a><span class="cm"> published by the Free Software Foundation; either version 2 of the</span>
+<a id="line-10" name="line-10"></a><span class="cm"> License, or (at your option) any later version.</span>
+<a id="line-11" name="line-11"></a>
+<a id="line-12" name="line-12"></a><span class="cm"> The Mate Library is distributed in the hope that it will be useful,</span>
+<a id="line-13" name="line-13"></a><span class="cm"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-14" name="line-14"></a><span class="cm"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-15" name="line-15"></a><span class="cm"> Library General Public License for more details.</span>
+<a id="line-16" name="line-16"></a>
+<a id="line-17" name="line-17"></a><span class="cm"> You should have received a copy of the GNU Library General Public</span>
+<a id="line-18" name="line-18"></a><span class="cm"> License along with the Mate Library; see the file COPYING.LIB. If not,</span>
+<a id="line-19" name="line-19"></a><span class="cm"> write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,</span>
+<a id="line-20" name="line-20"></a><span class="cm"> Boston, MA 02110-1301, USA.</span>
+<a id="line-21" name="line-21"></a>
+<a id="line-22" name="line-22"></a><span class="cm"> Author: Vincent Untz &lt;[email protected]&gt;</span>
+<a id="line-23" name="line-23"></a><span class="cm">*/</span>
+<a id="line-24" name="line-24"></a>
+<a id="line-25" name="line-25"></a><span class="cp">#ifndef __MATE_DESKTOP_PRIVATE_H__</span>
+<a id="line-26" name="line-26"></a><span class="cp">#define __MATE_DESKTOP_PRIVATE_H__</span>
+<a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib.h&gt;</span><span class="error2">&lt;--- Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a>
+<a id="line-30" name="line-30"></a><span class="n">G_BEGIN_DECLS</span>
+<a id="line-31" name="line-31"></a>
+<a id="line-32" name="line-32"></a><span class="kt">void</span><span class="w"> </span><span class="n">_mate_desktop_init_i18n</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-33" name="line-33"></a>
+<a id="line-34" name="line-34"></a><span class="n">G_END_DECLS</span>
+<a id="line-35" name="line-35"></a>
+<a id="line-36" name="line-36"></a><span class="cp">#endif</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/7.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/7.html
new file mode 100644
index 0000000..447abdb
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/7.html
@@ -0,0 +1,489 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/mate-colorsel.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-colorsel.h</p>
+<a href="7.html#line-31"> missingIncludeSystem 31</a><a href="7.html#line-32"> missingIncludeSystem 32</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal"> 10</span>
+<span class="normal"> 11</span>
+<span class="normal"> 12</span>
+<span class="normal"> 13</span>
+<span class="normal"> 14</span>
+<span class="normal"> 15</span>
+<span class="normal"> 16</span>
+<span class="normal"> 17</span>
+<span class="normal"> 18</span>
+<span class="normal"> 19</span>
+<span class="normal"> 20</span>
+<span class="normal"> 21</span>
+<span class="normal"> 22</span>
+<span class="normal"> 23</span>
+<span class="normal"> 24</span>
+<span class="normal"> 25</span>
+<span class="normal"> 26</span>
+<span class="normal"> 27</span>
+<span class="normal"> 28</span>
+<span class="normal"> 29</span>
+<span class="normal"> 30</span>
+<span class="normal"> 31</span>
+<span class="normal"> 32</span>
+<span class="normal"> 33</span>
+<span class="normal"> 34</span>
+<span class="normal"> 35</span>
+<span class="normal"> 36</span>
+<span class="normal"> 37</span>
+<span class="normal"> 38</span>
+<span class="normal"> 39</span>
+<span class="normal"> 40</span>
+<span class="normal"> 41</span>
+<span class="normal"> 42</span>
+<span class="normal"> 43</span>
+<span class="normal"> 44</span>
+<span class="normal"> 45</span>
+<span class="normal"> 46</span>
+<span class="normal"> 47</span>
+<span class="normal"> 48</span>
+<span class="normal"> 49</span>
+<span class="normal"> 50</span>
+<span class="normal"> 51</span>
+<span class="normal"> 52</span>
+<span class="normal"> 53</span>
+<span class="normal"> 54</span>
+<span class="normal"> 55</span>
+<span class="normal"> 56</span>
+<span class="normal"> 57</span>
+<span class="normal"> 58</span>
+<span class="normal"> 59</span>
+<span class="normal"> 60</span>
+<span class="normal"> 61</span>
+<span class="normal"> 62</span>
+<span class="normal"> 63</span>
+<span class="normal"> 64</span>
+<span class="normal"> 65</span>
+<span class="normal"> 66</span>
+<span class="normal"> 67</span>
+<span class="normal"> 68</span>
+<span class="normal"> 69</span>
+<span class="normal"> 70</span>
+<span class="normal"> 71</span>
+<span class="normal"> 72</span>
+<span class="normal"> 73</span>
+<span class="normal"> 74</span>
+<span class="normal"> 75</span>
+<span class="normal"> 76</span>
+<span class="normal"> 77</span>
+<span class="normal"> 78</span>
+<span class="normal"> 79</span>
+<span class="normal"> 80</span>
+<span class="normal"> 81</span>
+<span class="normal"> 82</span>
+<span class="normal"> 83</span>
+<span class="normal"> 84</span>
+<span class="normal"> 85</span>
+<span class="normal"> 86</span>
+<span class="normal"> 87</span>
+<span class="normal"> 88</span>
+<span class="normal"> 89</span>
+<span class="normal"> 90</span>
+<span class="normal"> 91</span>
+<span class="normal"> 92</span>
+<span class="normal"> 93</span>
+<span class="normal"> 94</span>
+<span class="normal"> 95</span>
+<span class="normal"> 96</span>
+<span class="normal"> 97</span>
+<span class="normal"> 98</span>
+<span class="normal"> 99</span>
+<span class="normal">100</span>
+<span class="normal">101</span>
+<span class="normal">102</span>
+<span class="normal">103</span>
+<span class="normal">104</span>
+<span class="normal">105</span>
+<span class="normal">106</span>
+<span class="normal">107</span>
+<span class="normal">108</span>
+<span class="normal">109</span>
+<span class="normal">110</span>
+<span class="normal">111</span>
+<span class="normal">112</span>
+<span class="normal">113</span>
+<span class="normal">114</span>
+<span class="normal">115</span>
+<span class="normal">116</span>
+<span class="normal">117</span>
+<span class="normal">118</span>
+<span class="normal">119</span>
+<span class="normal">120</span>
+<span class="normal">121</span>
+<span class="normal">122</span>
+<span class="normal">123</span>
+<span class="normal">124</span>
+<span class="normal">125</span>
+<span class="normal">126</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* GTK - The GIMP Toolkit</span>
+<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2000 Red Hat, Inc.</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald</span>
+<a id="line-4" name="line-4"></a><span class="cm"> *</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * You should have received a copy of the GNU Lesser General Public</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * License along with this library; if not, write to the</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330,</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Boston, MA 02111-1307, USA.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> */</span>
+<a id="line-20" name="line-20"></a>
+<a id="line-21" name="line-21"></a><span class="cm">/*</span>
+<a id="line-22" name="line-22"></a><span class="cm"> * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS</span>
+<a id="line-23" name="line-23"></a><span class="cm"> * file for a list of people on the GTK+ Team. See the ChangeLog</span>
+<a id="line-24" name="line-24"></a><span class="cm"> * files for a list of changes. These files are distributed with</span>
+<a id="line-25" name="line-25"></a><span class="cm"> * GTK+ at ftp://ftp.gtk.org/pub/gtk/.</span>
+<a id="line-26" name="line-26"></a><span class="cm"> */</span>
+<a id="line-27" name="line-27"></a>
+<a id="line-28" name="line-28"></a><span class="cp">#ifndef __MATE_COLOR_SELECTION_H__</span>
+<a id="line-29" name="line-29"></a><span class="cp">#define __MATE_COLOR_SELECTION_H__</span>
+<a id="line-30" name="line-30"></a>
+<a id="line-31" name="line-31"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib.h&gt;</span><span class="error2">&lt;--- Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-32" name="line-32"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-33" name="line-33"></a>
+<a id="line-34" name="line-34"></a><span class="n">G_BEGIN_DECLS</span>
+<a id="line-35" name="line-35"></a>
+<a id="line-36" name="line-36"></a><span class="cp">#define MATE_TYPE_COLOR_SELECTION (mate_color_selection_get_type ())</span>
+<a id="line-37" name="line-37"></a><span class="cp">#define MATE_COLOR_SELECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATE_TYPE_COLOR_SELECTION, MateColorSelection))</span>
+<a id="line-38" name="line-38"></a><span class="cp">#define MATE_COLOR_SELECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MATE_TYPE_COLOR_SELECTION, MateColorSelectionClass))</span>
+<a id="line-39" name="line-39"></a><span class="cp">#define MATE_IS_COLOR_SELECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MATE_TYPE_COLOR_SELECTION))</span>
+<a id="line-40" name="line-40"></a><span class="cp">#define MATE_IS_COLOR_SELECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MATE_TYPE_COLOR_SELECTION))</span>
+<a id="line-41" name="line-41"></a><span class="cp">#define MATE_COLOR_SELECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MATE_TYPE_COLOR_SELECTION, MateColorSelectionClass))</span>
+<a id="line-42" name="line-42"></a>
+<a id="line-43" name="line-43"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_MateColorSelection</span><span class="w"> </span><span class="n">MateColorSelection</span><span class="p">;</span>
+<a id="line-44" name="line-44"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_MateColorSelectionClass</span><span class="w"> </span><span class="n">MateColorSelectionClass</span><span class="p">;</span>
+<a id="line-45" name="line-45"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_MateColorSelectionPrivate</span><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="p">;</span>
+<a id="line-46" name="line-46"></a>
+<a id="line-47" name="line-47"></a><span class="k">typedef</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="w"> </span><span class="n">MateColorSelectionChangePaletteFunc</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">colors</span><span class="p">,</span>
+<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">n_colors</span><span class="p">);</span>
+<a id="line-49" name="line-49"></a><span class="k">typedef</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="w"> </span><span class="n">MateColorSelectionChangePaletteWithScreenFunc</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">GdkScreen</span><span class="w"> </span><span class="o">*</span><span class="n">screen</span><span class="p">,</span>
+<a id="line-50" name="line-50"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">colors</span><span class="p">,</span>
+<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">n_colors</span><span class="p">);</span>
+<a id="line-52" name="line-52"></a>
+<a id="line-53" name="line-53"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_MateColorSelection</span>
+<a id="line-54" name="line-54"></a><span class="p">{</span>
+<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">GtkBox</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span>
+<a id="line-56" name="line-56"></a>
+<a id="line-57" name="line-57"></a><span class="w"> </span><span class="cm">/* &lt; private_data &gt; */</span>
+<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">MateColorSelectionPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">private_data</span><span class="p">;</span>
+<a id="line-59" name="line-59"></a><span class="p">};</span>
+<a id="line-60" name="line-60"></a>
+<a id="line-61" name="line-61"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_MateColorSelectionClass</span>
+<a id="line-62" name="line-62"></a><span class="p">{</span>
+<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">GtkBoxClass</span><span class="w"> </span><span class="n">parent_class</span><span class="p">;</span>
+<a id="line-64" name="line-64"></a>
+<a id="line-65" name="line-65"></a><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">color_changed</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">color_selection</span><span class="p">);</span>
+<a id="line-66" name="line-66"></a>
+<a id="line-67" name="line-67"></a><span class="w"> </span><span class="cm">/* Padding for future expansion */</span>
+<a id="line-68" name="line-68"></a><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">_gtk_reserved1</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-69" name="line-69"></a><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">_gtk_reserved2</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-70" name="line-70"></a><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">_gtk_reserved3</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-71" name="line-71"></a><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">_gtk_reserved4</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-72" name="line-72"></a><span class="p">};</span>
+<a id="line-73" name="line-73"></a>
+<a id="line-74" name="line-74"></a><span class="cm">/* ColorSelection */</span>
+<a id="line-75" name="line-75"></a>
+<a id="line-76" name="line-76"></a><span class="n">GType</span><span class="w"> </span><span class="nf">mate_color_selection_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"> </span><span class="n">G_GNUC_CONST</span><span class="p">;</span>
+<a id="line-77" name="line-77"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="nf">mate_color_selection_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-78" name="line-78"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_color_selection_get_has_opacity_control</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-79" name="line-79"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_color_selection_set_has_opacity_control</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">has_opacity</span><span class="p">);</span>
+<a id="line-81" name="line-81"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_color_selection_get_has_palette</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-82" name="line-82"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_color_selection_set_has_palette</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">has_palette</span><span class="p">);</span>
+<a id="line-84" name="line-84"></a>
+<a id="line-85" name="line-85"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_color_selection_set_current_rgba</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">);</span>
+<a id="line-87" name="line-87"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_color_selection_set_current_alpha</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">guint16</span><span class="w"> </span><span class="n">alpha</span><span class="p">);</span>
+<a id="line-89" name="line-89"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_color_selection_get_current_rgba</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">);</span>
+<a id="line-91" name="line-91"></a><span class="n">guint16</span><span class="w"> </span><span class="nf">mate_color_selection_get_current_alpha</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-92" name="line-92"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_color_selection_set_previous_color</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">);</span>
+<a id="line-94" name="line-94"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_color_selection_set_previous_alpha</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">guint16</span><span class="w"> </span><span class="n">alpha</span><span class="p">);</span>
+<a id="line-96" name="line-96"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_color_selection_get_previous_color</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">);</span>
+<a id="line-98" name="line-98"></a><span class="n">guint16</span><span class="w"> </span><span class="nf">mate_color_selection_get_previous_alpha</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-99" name="line-99"></a>
+<a id="line-100" name="line-100"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_color_selection_is_adjusting</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-101" name="line-101"></a>
+<a id="line-102" name="line-102"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_color_selection_palette_from_string</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">,</span>
+<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">**</span><span class="n">colors</span><span class="p">,</span>
+<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">n_colors</span><span class="p">);</span>
+<a id="line-105" name="line-105"></a><span class="n">gchar</span><span class="o">*</span><span class="w"> </span><span class="nf">mate_color_selection_palette_to_string</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">GdkRGBA</span><span class="w"> </span><span class="o">*</span><span class="n">colors</span><span class="p">,</span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">n_colors</span><span class="p">);</span>
+<a id="line-107" name="line-107"></a>
+<a id="line-108" name="line-108"></a><span class="cp">#ifndef GTK_DISABLE_DEPRECATED</span>
+<a id="line-109" name="line-109"></a><span class="cp">#ifndef GDK_MULTIHEAD_SAFE</span>
+<a id="line-110" name="line-110"></a><span class="n">MateColorSelectionChangePaletteFunc</span><span class="w"> </span><span class="nf">mate_color_selection_set_change_palette_hook</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelectionChangePaletteFunc</span><span class="w"> </span><span class="n">func</span><span class="p">);</span>
+<a id="line-111" name="line-111"></a><span class="cp">#endif</span>
+<a id="line-112" name="line-112"></a><span class="cp">#endif</span>
+<a id="line-113" name="line-113"></a>
+<a id="line-114" name="line-114"></a><span class="n">MateColorSelectionChangePaletteWithScreenFunc</span><span class="w"> </span><span class="nf">mate_color_selection_set_change_palette_with_screen_hook</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelectionChangePaletteWithScreenFunc</span><span class="w"> </span><span class="n">func</span><span class="p">);</span>
+<a id="line-115" name="line-115"></a>
+<a id="line-116" name="line-116"></a><span class="cp">#ifndef GTK_DISABLE_DEPRECATED</span>
+<a id="line-117" name="line-117"></a><span class="cm">/* Deprecated calls: */</span>
+<a id="line-118" name="line-118"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_color_selection_set_color</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">);</span>
+<a id="line-120" name="line-120"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_color_selection_get_color</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelection</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">,</span>
+<a id="line-121" name="line-121"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">color</span><span class="p">);</span>
+<a id="line-122" name="line-122"></a><span class="cp">#endif </span><span class="cm">/* GTK_DISABLE_DEPRECATED */</span>
+<a id="line-123" name="line-123"></a>
+<a id="line-124" name="line-124"></a><span class="n">G_END_DECLS</span>
+<a id="line-125" name="line-125"></a>
+<a id="line-126" name="line-126"></a><span class="cp">#endif </span><span class="cm">/* __MATE_COLOR_SELECTION_H__ */</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/8.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/8.html
new file mode 100644
index 0000000..7f7826d
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/8.html
@@ -0,0 +1,433 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/mate-hsv.h</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-hsv.h</p>
+<a href="8.html#line-36"> missingIncludeSystem 36</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal">10</span>
+<span class="normal">11</span>
+<span class="normal">12</span>
+<span class="normal">13</span>
+<span class="normal">14</span>
+<span class="normal">15</span>
+<span class="normal">16</span>
+<span class="normal">17</span>
+<span class="normal">18</span>
+<span class="normal">19</span>
+<span class="normal">20</span>
+<span class="normal">21</span>
+<span class="normal">22</span>
+<span class="normal">23</span>
+<span class="normal">24</span>
+<span class="normal">25</span>
+<span class="normal">26</span>
+<span class="normal">27</span>
+<span class="normal">28</span>
+<span class="normal">29</span>
+<span class="normal">30</span>
+<span class="normal">31</span>
+<span class="normal">32</span>
+<span class="normal">33</span>
+<span class="normal">34</span>
+<span class="normal">35</span>
+<span class="normal">36</span>
+<span class="normal">37</span>
+<span class="normal">38</span>
+<span class="normal">39</span>
+<span class="normal">40</span>
+<span class="normal">41</span>
+<span class="normal">42</span>
+<span class="normal">43</span>
+<span class="normal">44</span>
+<span class="normal">45</span>
+<span class="normal">46</span>
+<span class="normal">47</span>
+<span class="normal">48</span>
+<span class="normal">49</span>
+<span class="normal">50</span>
+<span class="normal">51</span>
+<span class="normal">52</span>
+<span class="normal">53</span>
+<span class="normal">54</span>
+<span class="normal">55</span>
+<span class="normal">56</span>
+<span class="normal">57</span>
+<span class="normal">58</span>
+<span class="normal">59</span>
+<span class="normal">60</span>
+<span class="normal">61</span>
+<span class="normal">62</span>
+<span class="normal">63</span>
+<span class="normal">64</span>
+<span class="normal">65</span>
+<span class="normal">66</span>
+<span class="normal">67</span>
+<span class="normal">68</span>
+<span class="normal">69</span>
+<span class="normal">70</span>
+<span class="normal">71</span>
+<span class="normal">72</span>
+<span class="normal">73</span>
+<span class="normal">74</span>
+<span class="normal">75</span>
+<span class="normal">76</span>
+<span class="normal">77</span>
+<span class="normal">78</span>
+<span class="normal">79</span>
+<span class="normal">80</span>
+<span class="normal">81</span>
+<span class="normal">82</span>
+<span class="normal">83</span>
+<span class="normal">84</span>
+<span class="normal">85</span>
+<span class="normal">86</span>
+<span class="normal">87</span>
+<span class="normal">88</span>
+<span class="normal">89</span>
+<span class="normal">90</span>
+<span class="normal">91</span>
+<span class="normal">92</span>
+<span class="normal">93</span>
+<span class="normal">94</span>
+<span class="normal">95</span>
+<span class="normal">96</span>
+<span class="normal">97</span>
+<span class="normal">98</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* HSV color selector for GTK+</span>
+<a id="line-2" name="line-2"></a><span class="cm"> *</span>
+<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 1999 The Free Software Foundation</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * Copyright (C) 2019-2021 MATE Developers</span>
+<a id="line-5" name="line-5"></a><span class="cm"> *</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * Authors: Simon Budig &lt;[email protected]&gt; (original code)</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * Federico Mena-Quintero &lt;[email protected]&gt; (cleanup for GTK+)</span>
+<a id="line-8" name="line-8"></a><span class="cm"> * Jonathan Blandford &lt;[email protected]&gt; (cleanup for GTK+)</span>
+<a id="line-9" name="line-9"></a><span class="cm"> *</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-13" name="line-13"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-14" name="line-14"></a><span class="cm"> *</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-18" name="line-18"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-19" name="line-19"></a><span class="cm"> *</span>
+<a id="line-20" name="line-20"></a><span class="cm"> * You should have received a copy of the GNU Lesser General Public</span>
+<a id="line-21" name="line-21"></a><span class="cm"> * License along with this library. If not, see &lt;http://www.gnu.org/licenses/&gt;.</span>
+<a id="line-22" name="line-22"></a><span class="cm"> */</span>
+<a id="line-23" name="line-23"></a>
+<a id="line-24" name="line-24"></a><span class="cm">/*</span>
+<a id="line-25" name="line-25"></a><span class="cm"> * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS</span>
+<a id="line-26" name="line-26"></a><span class="cm"> * file for a list of people on the GTK+ Team. See the ChangeLog</span>
+<a id="line-27" name="line-27"></a><span class="cm"> * files for a list of changes. These files are distributed with</span>
+<a id="line-28" name="line-28"></a><span class="cm"> * GTK+ at ftp://ftp.gtk.org/pub/gtk/.</span>
+<a id="line-29" name="line-29"></a><span class="cm"> *</span>
+<a id="line-30" name="line-30"></a><span class="cm"> * Modified to work internally in mate-desktop by Pablo Barciela 2019</span>
+<a id="line-31" name="line-31"></a><span class="cm"> */</span>
+<a id="line-32" name="line-32"></a>
+<a id="line-33" name="line-33"></a><span class="cp">#ifndef __MATE_HSV_H__</span>
+<a id="line-34" name="line-34"></a><span class="cp">#define __MATE_HSV_H__</span>
+<a id="line-35" name="line-35"></a>
+<a id="line-36" name="line-36"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-37" name="line-37"></a>
+<a id="line-38" name="line-38"></a><span class="n">G_BEGIN_DECLS</span>
+<a id="line-39" name="line-39"></a>
+<a id="line-40" name="line-40"></a><span class="cp">#define MATE_TYPE_HSV (mate_hsv_get_type ())</span>
+<a id="line-41" name="line-41"></a><span class="cp">#define MATE_HSV(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATE_TYPE_HSV, MateHSV))</span>
+<a id="line-42" name="line-42"></a><span class="cp">#define MATE_HSV_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MATE_TYPE_HSV, MateHSVClass))</span>
+<a id="line-43" name="line-43"></a><span class="cp">#define MATE_IS_HSV(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MATE_TYPE_HSV))</span>
+<a id="line-44" name="line-44"></a><span class="cp">#define MATE_IS_HSV_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MATE_TYPE_HSV))</span>
+<a id="line-45" name="line-45"></a><span class="cp">#define MATE_HSV_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MATE_TYPE_HSV, MateHSVClass))</span>
+<a id="line-46" name="line-46"></a>
+<a id="line-47" name="line-47"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_MateHSV</span><span class="w"> </span><span class="n">MateHSV</span><span class="p">;</span>
+<a id="line-48" name="line-48"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_MateHSVPrivate</span><span class="w"> </span><span class="n">MateHSVPrivate</span><span class="p">;</span>
+<a id="line-49" name="line-49"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">_MateHSVClass</span><span class="w"> </span><span class="n">MateHSVClass</span><span class="p">;</span>
+<a id="line-50" name="line-50"></a>
+<a id="line-51" name="line-51"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_MateHSV</span>
+<a id="line-52" name="line-52"></a><span class="p">{</span>
+<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span>
+<a id="line-54" name="line-54"></a>
+<a id="line-55" name="line-55"></a><span class="w"> </span><span class="cm">/*&lt; private &gt;*/</span>
+<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">MateHSVPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span>
+<a id="line-57" name="line-57"></a><span class="p">};</span>
+<a id="line-58" name="line-58"></a>
+<a id="line-59" name="line-59"></a><span class="k">struct</span><span class="w"> </span><span class="nc">_MateHSVClass</span>
+<a id="line-60" name="line-60"></a><span class="p">{</span>
+<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">GtkWidgetClass</span><span class="w"> </span><span class="n">parent_class</span><span class="p">;</span>
+<a id="line-62" name="line-62"></a>
+<a id="line-63" name="line-63"></a><span class="w"> </span><span class="cm">/* Notification signals */</span>
+<a id="line-64" name="line-64"></a><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="w"> </span><span class="n">changed</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="p">);</span>
+<a id="line-65" name="line-65"></a>
+<a id="line-66" name="line-66"></a><span class="w"> </span><span class="cm">/* Keybindings */</span>
+<a id="line-67" name="line-67"></a><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="w"> </span><span class="n">move</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="p">,</span>
+<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">GtkDirectionType</span><span class="w"> </span><span class="n">type</span><span class="p">);</span>
+<a id="line-69" name="line-69"></a>
+<a id="line-70" name="line-70"></a><span class="w"> </span><span class="cm">/* Padding for future expansion */</span>
+<a id="line-71" name="line-71"></a><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">_gtk_reserved1</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-72" name="line-72"></a><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">_gtk_reserved2</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-73" name="line-73"></a><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">_gtk_reserved3</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">_gtk_reserved4</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-75" name="line-75"></a><span class="p">};</span>
+<a id="line-76" name="line-76"></a>
+<a id="line-77" name="line-77"></a><span class="n">GType</span><span class="w"> </span><span class="nf">mate_hsv_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"> </span><span class="n">G_GNUC_CONST</span><span class="p">;</span>
+<a id="line-78" name="line-78"></a><span class="n">GtkWidget</span><span class="o">*</span><span class="w"> </span><span class="nf">mate_hsv_new</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span>
+<a id="line-79" name="line-79"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_hsv_set_color</span><span class="w"> </span><span class="p">(</span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="p">,</span>
+<a id="line-80" name="line-80"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">h</span><span class="p">,</span>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">s</span><span class="p">,</span>
+<a id="line-82" name="line-82"></a><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">v</span><span class="p">);</span>
+<a id="line-83" name="line-83"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_hsv_get_color</span><span class="w"> </span><span class="p">(</span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="p">,</span>
+<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">h</span><span class="p">,</span>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">,</span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">gdouble</span><span class="w"> </span><span class="o">*</span><span class="n">v</span><span class="p">);</span>
+<a id="line-87" name="line-87"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_hsv_set_metrics</span><span class="w"> </span><span class="p">(</span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="p">,</span>
+<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">size</span><span class="p">,</span>
+<a id="line-89" name="line-89"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ring_width</span><span class="p">);</span>
+<a id="line-90" name="line-90"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mate_hsv_get_metrics</span><span class="w"> </span><span class="p">(</span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="p">,</span>
+<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">size</span><span class="p">,</span>
+<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">ring_width</span><span class="p">);</span>
+<a id="line-93" name="line-93"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mate_hsv_is_adjusting</span><span class="w"> </span><span class="p">(</span><span class="n">MateHSV</span><span class="w"> </span><span class="o">*</span><span class="n">hsv</span><span class="p">);</span>
+<a id="line-94" name="line-94"></a>
+<a id="line-95" name="line-95"></a><span class="n">G_END_DECLS</span>
+<a id="line-96" name="line-96"></a>
+<a id="line-97" name="line-97"></a><span class="cp">#endif </span><span class="cm">/* __MATE_HSV_H__ */</span>
+<a id="line-98" name="line-98"></a>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/9.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/9.html
new file mode 100644
index 0000000..a4ccc11
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/9.html
@@ -0,0 +1,721 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+pre { line-height: 125%; }
+td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
+td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
+.highlight .hll { background-color: #ffffcc }
+.highlight { background: #ffffff; }
+.highlight .c { color: #888888 } /* Comment */
+.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
+.highlight .k { color: #008800; font-weight: bold } /* Keyword */
+.highlight .o { color: #333333 } /* Operator */
+.highlight .ch { color: #888888 } /* Comment.Hashbang */
+.highlight .cm { color: #888888 } /* Comment.Multiline */
+.highlight .cp { color: #557799 } /* Comment.Preproc */
+.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
+.highlight .c1 { color: #888888 } /* Comment.Single */
+.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
+.highlight .gd { color: #A00000 } /* Generic.Deleted */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #FF0000 } /* Generic.Error */
+.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.highlight .gi { color: #00A000 } /* Generic.Inserted */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.highlight .gt { color: #0044DD } /* Generic.Traceback */
+.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
+.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
+.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
+.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
+.highlight .s { background-color: #fff0f0 } /* Literal.String */
+.highlight .na { color: #0000CC } /* Name.Attribute */
+.highlight .nb { color: #007020 } /* Name.Builtin */
+.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
+.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
+.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
+.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
+.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
+.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.highlight .nt { color: #007700 } /* Name.Tag */
+.highlight .nv { color: #996633 } /* Name.Variable */
+.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
+.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
+.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
+.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
+.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
+.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */
+.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
+.highlight .sc { color: #0044DD } /* Literal.String.Char */
+.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */
+.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
+.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */
+.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
+.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
+.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
+.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
+.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
+.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
+.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
+.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
+.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */
+.highlight .vc { color: #336699 } /* Name.Variable.Class */
+.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
+.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
+.highlight .vm { color: #996633 } /* Name.Variable.Magic */
+.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: libmate-desktop/mate-colorseldialog.c</h1>
+
+ </div>
+
+ <div id="menu">
+ <p><a href="index.html">Defects:</a> mate-colorseldialog.c</p>
+<a href="9.html#line-26"> missingInclude 26</a><a href="9.html#line-28"> missingIncludeSystem 28</a><a href="9.html#line-29"> missingIncludeSystem 29</a><a href="9.html#line-30"> missingIncludeSystem 30</a><a href="9.html#line-31"> missingIncludeSystem 31</a><a href="9.html#line-52"> unknownMacro 52</a>
+ </div>
+ <div id="content">
+<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
+<span class="normal"> 2</span>
+<span class="normal"> 3</span>
+<span class="normal"> 4</span>
+<span class="normal"> 5</span>
+<span class="normal"> 6</span>
+<span class="normal"> 7</span>
+<span class="normal"> 8</span>
+<span class="normal"> 9</span>
+<span class="normal"> 10</span>
+<span class="normal"> 11</span>
+<span class="normal"> 12</span>
+<span class="normal"> 13</span>
+<span class="normal"> 14</span>
+<span class="normal"> 15</span>
+<span class="normal"> 16</span>
+<span class="normal"> 17</span>
+<span class="normal"> 18</span>
+<span class="normal"> 19</span>
+<span class="normal"> 20</span>
+<span class="normal"> 21</span>
+<span class="normal"> 22</span>
+<span class="normal"> 23</span>
+<span class="normal"> 24</span>
+<span class="normal"> 25</span>
+<span class="normal"> 26</span>
+<span class="normal"> 27</span>
+<span class="normal"> 28</span>
+<span class="normal"> 29</span>
+<span class="normal"> 30</span>
+<span class="normal"> 31</span>
+<span class="normal"> 32</span>
+<span class="normal"> 33</span>
+<span class="normal"> 34</span>
+<span class="normal"> 35</span>
+<span class="normal"> 36</span>
+<span class="normal"> 37</span>
+<span class="normal"> 38</span>
+<span class="normal"> 39</span>
+<span class="normal"> 40</span>
+<span class="normal"> 41</span>
+<span class="normal"> 42</span>
+<span class="normal"> 43</span>
+<span class="normal"> 44</span>
+<span class="normal"> 45</span>
+<span class="normal"> 46</span>
+<span class="normal"> 47</span>
+<span class="normal"> 48</span>
+<span class="normal"> 49</span>
+<span class="normal"> 50</span>
+<span class="normal"> 51</span>
+<span class="normal"> 52</span>
+<span class="normal"> 53</span>
+<span class="normal"> 54</span>
+<span class="normal"> 55</span>
+<span class="normal"> 56</span>
+<span class="normal"> 57</span>
+<span class="normal"> 58</span>
+<span class="normal"> 59</span>
+<span class="normal"> 60</span>
+<span class="normal"> 61</span>
+<span class="normal"> 62</span>
+<span class="normal"> 63</span>
+<span class="normal"> 64</span>
+<span class="normal"> 65</span>
+<span class="normal"> 66</span>
+<span class="normal"> 67</span>
+<span class="normal"> 68</span>
+<span class="normal"> 69</span>
+<span class="normal"> 70</span>
+<span class="normal"> 71</span>
+<span class="normal"> 72</span>
+<span class="normal"> 73</span>
+<span class="normal"> 74</span>
+<span class="normal"> 75</span>
+<span class="normal"> 76</span>
+<span class="normal"> 77</span>
+<span class="normal"> 78</span>
+<span class="normal"> 79</span>
+<span class="normal"> 80</span>
+<span class="normal"> 81</span>
+<span class="normal"> 82</span>
+<span class="normal"> 83</span>
+<span class="normal"> 84</span>
+<span class="normal"> 85</span>
+<span class="normal"> 86</span>
+<span class="normal"> 87</span>
+<span class="normal"> 88</span>
+<span class="normal"> 89</span>
+<span class="normal"> 90</span>
+<span class="normal"> 91</span>
+<span class="normal"> 92</span>
+<span class="normal"> 93</span>
+<span class="normal"> 94</span>
+<span class="normal"> 95</span>
+<span class="normal"> 96</span>
+<span class="normal"> 97</span>
+<span class="normal"> 98</span>
+<span class="normal"> 99</span>
+<span class="normal">100</span>
+<span class="normal">101</span>
+<span class="normal">102</span>
+<span class="normal">103</span>
+<span class="normal">104</span>
+<span class="normal">105</span>
+<span class="normal">106</span>
+<span class="normal">107</span>
+<span class="normal">108</span>
+<span class="normal">109</span>
+<span class="normal">110</span>
+<span class="normal">111</span>
+<span class="normal">112</span>
+<span class="normal">113</span>
+<span class="normal">114</span>
+<span class="normal">115</span>
+<span class="normal">116</span>
+<span class="normal">117</span>
+<span class="normal">118</span>
+<span class="normal">119</span>
+<span class="normal">120</span>
+<span class="normal">121</span>
+<span class="normal">122</span>
+<span class="normal">123</span>
+<span class="normal">124</span>
+<span class="normal">125</span>
+<span class="normal">126</span>
+<span class="normal">127</span>
+<span class="normal">128</span>
+<span class="normal">129</span>
+<span class="normal">130</span>
+<span class="normal">131</span>
+<span class="normal">132</span>
+<span class="normal">133</span>
+<span class="normal">134</span>
+<span class="normal">135</span>
+<span class="normal">136</span>
+<span class="normal">137</span>
+<span class="normal">138</span>
+<span class="normal">139</span>
+<span class="normal">140</span>
+<span class="normal">141</span>
+<span class="normal">142</span>
+<span class="normal">143</span>
+<span class="normal">144</span>
+<span class="normal">145</span>
+<span class="normal">146</span>
+<span class="normal">147</span>
+<span class="normal">148</span>
+<span class="normal">149</span>
+<span class="normal">150</span>
+<span class="normal">151</span>
+<span class="normal">152</span>
+<span class="normal">153</span>
+<span class="normal">154</span>
+<span class="normal">155</span>
+<span class="normal">156</span>
+<span class="normal">157</span>
+<span class="normal">158</span>
+<span class="normal">159</span>
+<span class="normal">160</span>
+<span class="normal">161</span>
+<span class="normal">162</span>
+<span class="normal">163</span>
+<span class="normal">164</span>
+<span class="normal">165</span>
+<span class="normal">166</span>
+<span class="normal">167</span>
+<span class="normal">168</span>
+<span class="normal">169</span>
+<span class="normal">170</span>
+<span class="normal">171</span>
+<span class="normal">172</span>
+<span class="normal">173</span>
+<span class="normal">174</span>
+<span class="normal">175</span>
+<span class="normal">176</span>
+<span class="normal">177</span>
+<span class="normal">178</span>
+<span class="normal">179</span>
+<span class="normal">180</span>
+<span class="normal">181</span>
+<span class="normal">182</span>
+<span class="normal">183</span>
+<span class="normal">184</span>
+<span class="normal">185</span>
+<span class="normal">186</span>
+<span class="normal">187</span>
+<span class="normal">188</span>
+<span class="normal">189</span>
+<span class="normal">190</span>
+<span class="normal">191</span>
+<span class="normal">192</span>
+<span class="normal">193</span>
+<span class="normal">194</span>
+<span class="normal">195</span>
+<span class="normal">196</span>
+<span class="normal">197</span>
+<span class="normal">198</span>
+<span class="normal">199</span>
+<span class="normal">200</span>
+<span class="normal">201</span>
+<span class="normal">202</span>
+<span class="normal">203</span>
+<span class="normal">204</span>
+<span class="normal">205</span>
+<span class="normal">206</span>
+<span class="normal">207</span>
+<span class="normal">208</span>
+<span class="normal">209</span>
+<span class="normal">210</span>
+<span class="normal">211</span>
+<span class="normal">212</span>
+<span class="normal">213</span>
+<span class="normal">214</span>
+<span class="normal">215</span>
+<span class="normal">216</span>
+<span class="normal">217</span>
+<span class="normal">218</span>
+<span class="normal">219</span>
+<span class="normal">220</span>
+<span class="normal">221</span>
+<span class="normal">222</span>
+<span class="normal">223</span>
+<span class="normal">224</span>
+<span class="normal">225</span>
+<span class="normal">226</span>
+<span class="normal">227</span>
+<span class="normal">228</span>
+<span class="normal">229</span>
+<span class="normal">230</span>
+<span class="normal">231</span>
+<span class="normal">232</span>
+<span class="normal">233</span>
+<span class="normal">234</span>
+<span class="normal">235</span>
+<span class="normal">236</span>
+<span class="normal">237</span>
+<span class="normal">238</span>
+<span class="normal">239</span>
+<span class="normal">240</span>
+<span class="normal">241</span>
+<span class="normal">242</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/* GTK - The GIMP Toolkit</span>
+<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald</span>
+<a id="line-3" name="line-3"></a><span class="cm"> *</span>
+<a id="line-4" name="line-4"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span>
+<a id="line-5" name="line-5"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span>
+<a id="line-6" name="line-6"></a><span class="cm"> * License as published by the Free Software Foundation; either</span>
+<a id="line-7" name="line-7"></a><span class="cm"> * version 2 of the License, or (at your option) any later version.</span>
+<a id="line-8" name="line-8"></a><span class="cm"> *</span>
+<a id="line-9" name="line-9"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span>
+<a id="line-10" name="line-10"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a id="line-11" name="line-11"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a id="line-12" name="line-12"></a><span class="cm"> * Lesser General Public License for more details.</span>
+<a id="line-13" name="line-13"></a><span class="cm"> *</span>
+<a id="line-14" name="line-14"></a><span class="cm"> * You should have received a copy of the GNU Lesser General Public</span>
+<a id="line-15" name="line-15"></a><span class="cm"> * License along with this library; if not, write to the</span>
+<a id="line-16" name="line-16"></a><span class="cm"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330,</span>
+<a id="line-17" name="line-17"></a><span class="cm"> * Boston, MA 02111-1307, USA.</span>
+<a id="line-18" name="line-18"></a><span class="cm"> */</span>
+<a id="line-19" name="line-19"></a>
+<a id="line-20" name="line-20"></a><span class="cm">/*</span>
+<a id="line-21" name="line-21"></a><span class="cm"> * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS</span>
+<a id="line-22" name="line-22"></a><span class="cm"> * file for a list of people on the GTK+ Team. See the ChangeLog</span>
+<a id="line-23" name="line-23"></a><span class="cm"> * files for a list of changes. These files are distributed with</span>
+<a id="line-24" name="line-24"></a><span class="cm"> * GTK+ at ftp://ftp.gtk.org/pub/gtk/.</span>
+<a id="line-25" name="line-25"></a><span class="cm"> */</span>
+<a id="line-26" name="line-26"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;config.h&quot;</span><span class="error2">&lt;--- Include file: "config.h" not found.</span>
+</span><a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;private.h&quot;</span>
+<a id="line-28" name="line-28"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;string.h&gt;</span><span class="error2">&lt;--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-29" name="line-29"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib.h&gt;</span><span class="error2">&lt;--- Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-30" name="line-30"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;gtk/gtk.h&gt;</span><span class="error2">&lt;--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-31" name="line-31"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;glib/gi18n-lib.h&gt;</span><span class="error2">&lt;--- Include file: <glib/gi18n-lib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span>
+</span><a id="line-32" name="line-32"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;mate-colorsel.h&quot;</span>
+<a id="line-33" name="line-33"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">&quot;mate-colorseldialog.h&quot;</span>
+<a id="line-34" name="line-34"></a>
+<a id="line-35" name="line-35"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span>
+<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">PROP_0</span><span class="p">,</span>
+<a id="line-37" name="line-37"></a><span class="w"> </span><span class="n">PROP_COLOR_SELECTION</span><span class="p">,</span>
+<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">PROP_OK_BUTTON</span><span class="p">,</span>
+<a id="line-39" name="line-39"></a><span class="w"> </span><span class="n">PROP_CANCEL_BUTTON</span><span class="p">,</span>
+<a id="line-40" name="line-40"></a><span class="w"> </span><span class="n">PROP_HELP_BUTTON</span>
+<a id="line-41" name="line-41"></a><span class="p">};</span>
+<a id="line-42" name="line-42"></a>
+<a id="line-43" name="line-43"></a><span class="cm">/***************************/</span>
+<a id="line-44" name="line-44"></a><span class="cm">/* MateColorSelectionDialog */</span>
+<a id="line-45" name="line-45"></a><span class="cm">/***************************/</span>
+<a id="line-46" name="line-46"></a>
+<a id="line-47" name="line-47"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">mate_color_selection_dialog_buildable_interface_init</span><span class="w"> </span><span class="p">(</span><span class="n">GtkBuildableIface</span><span class="w"> </span><span class="o">*</span><span class="n">iface</span><span class="p">);</span>
+<a id="line-48" name="line-48"></a><span class="k">static</span><span class="w"> </span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nf">mate_color_selection_dialog_buildable_get_internal_child</span><span class="w"> </span><span class="p">(</span><span class="n">GtkBuildable</span><span class="w"> </span><span class="o">*</span><span class="n">buildable</span><span class="p">,</span>
+<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">GtkBuilder</span><span class="w"> </span><span class="o">*</span><span class="n">builder</span><span class="p">,</span>
+<a id="line-50" name="line-50"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">childname</span><span class="p">);</span>
+<a id="line-51" name="line-51"></a>
+<a id="line-52" name="line-52"></a><span class="hll"><span class="n">G_DEFINE_TYPE_WITH_CODE</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelectionDialog</span><span class="p">,</span><span class="w"> </span><span class="n">mate_color_selection_dialog</span><span class="p">,</span><span class="error2">&lt;--- There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_CODE is a macro then please configure it.</span>
+</span><a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">GTK_TYPE_DIALOG</span><span class="p">,</span>
+<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">G_IMPLEMENT_INTERFACE</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TYPE_BUILDABLE</span><span class="p">,</span>
+<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">mate_color_selection_dialog_buildable_interface_init</span><span class="p">))</span>
+<a id="line-56" name="line-56"></a>
+<a id="line-57" name="line-57"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkBuildableIface</span><span class="w"> </span><span class="o">*</span><span class="n">parent_buildable_iface</span><span class="p">;</span>
+<a id="line-58" name="line-58"></a>
+<a id="line-59" name="line-59"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-60" name="line-60"></a><span class="nf">mate_color_selection_dialog_get_property</span><span class="w"> </span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span>
+<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span>
+<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span>
+<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span>
+<a id="line-64" name="line-64"></a><span class="p">{</span>
+<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">MateColorSelectionDialog</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">;</span>
+<a id="line-66" name="line-66"></a>
+<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">colorsel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATE_COLOR_SELECTION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span>
+<a id="line-68" name="line-68"></a>
+<a id="line-69" name="line-69"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span>
+<a id="line-70" name="line-70"></a><span class="w"> </span><span class="p">{</span>
+<a id="line-71" name="line-71"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_COLOR_SELECTION</span><span class="p">:</span>
+<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">g_value_set_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-73" name="line-73"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-74" name="line-74"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_OK_BUTTON</span><span class="p">:</span>
+<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">g_value_set_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">ok_button</span><span class="p">);</span>
+<a id="line-76" name="line-76"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-77" name="line-77"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_CANCEL_BUTTON</span><span class="p">:</span>
+<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">g_value_set_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">cancel_button</span><span class="p">);</span>
+<a id="line-79" name="line-79"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-80" name="line-80"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_HELP_BUTTON</span><span class="p">:</span>
+<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">g_value_set_object</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">help_button</span><span class="p">);</span>
+<a id="line-82" name="line-82"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-83" name="line-83"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span>
+<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span>
+<a id="line-85" name="line-85"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span>
+<a id="line-86" name="line-86"></a><span class="w"> </span><span class="p">}</span>
+<a id="line-87" name="line-87"></a><span class="p">}</span>
+<a id="line-88" name="line-88"></a>
+<a id="line-89" name="line-89"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-90" name="line-90"></a><span class="nf">mate_color_selection_dialog_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelectionDialogClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span>
+<a id="line-91" name="line-91"></a><span class="p">{</span>
+<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">gobject_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">klass</span><span class="p">);</span>
+<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">gobject_class</span><span class="o">-&gt;</span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_color_selection_dialog_get_property</span><span class="p">;</span>
+<a id="line-94" name="line-94"></a>
+<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">,</span>
+<a id="line-96" name="line-96"></a><span class="w"> </span><span class="n">PROP_COLOR_SELECTION</span><span class="p">,</span>
+<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;color-selection&quot;</span><span class="p">,</span>
+<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Color Selection&quot;</span><span class="p">),</span>
+<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;The color selection embedded in the dialog.&quot;</span><span class="p">),</span>
+<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">GTK_TYPE_WIDGET</span><span class="p">,</span>
+<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">G_PARAM_READABLE</span><span class="p">));</span>
+<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">,</span>
+<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">PROP_OK_BUTTON</span><span class="p">,</span>
+<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;ok-button&quot;</span><span class="p">,</span>
+<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;OK Button&quot;</span><span class="p">),</span>
+<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;The OK button of the dialog.&quot;</span><span class="p">),</span>
+<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">GTK_TYPE_WIDGET</span><span class="p">,</span>
+<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">G_PARAM_READABLE</span><span class="p">));</span>
+<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">,</span>
+<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">PROP_CANCEL_BUTTON</span><span class="p">,</span>
+<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;cancel-button&quot;</span><span class="p">,</span>
+<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Cancel Button&quot;</span><span class="p">),</span>
+<a id="line-113" name="line-113"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;The cancel button of the dialog.&quot;</span><span class="p">),</span>
+<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">GTK_TYPE_WIDGET</span><span class="p">,</span>
+<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">G_PARAM_READABLE</span><span class="p">));</span>
+<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="w"> </span><span class="p">(</span><span class="n">gobject_class</span><span class="p">,</span>
+<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">PROP_HELP_BUTTON</span><span class="p">,</span>
+<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="w"> </span><span class="p">(</span><span class="s">&quot;help-button&quot;</span><span class="p">,</span>
+<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Help Button&quot;</span><span class="p">),</span>
+<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;The help button of the dialog.&quot;</span><span class="p">),</span>
+<a id="line-121" name="line-121"></a><span class="w"> </span><span class="n">GTK_TYPE_WIDGET</span><span class="p">,</span>
+<a id="line-122" name="line-122"></a><span class="w"> </span><span class="n">G_PARAM_READABLE</span><span class="p">));</span>
+<a id="line-123" name="line-123"></a><span class="p">}</span>
+<a id="line-124" name="line-124"></a>
+<a id="line-125" name="line-125"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="o">*</span>
+<a id="line-126" name="line-126"></a><span class="nf">mate_add_dialog_button</span><span class="w"> </span><span class="p">(</span><span class="n">GtkDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span>
+<a id="line-127" name="line-127"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">,</span>
+<a id="line-128" name="line-128"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">icon</span><span class="p">,</span>
+<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">GtkResponseType</span><span class="w"> </span><span class="n">response</span><span class="p">)</span>
+<a id="line-130" name="line-130"></a><span class="p">{</span>
+<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">;</span>
+<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span>
+<a id="line-133" name="line-133"></a>
+<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_button_new_with_mnemonic</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">);</span>
+<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="n">icon</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_BUTTON</span><span class="p">);</span>
+<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">gtk_button_set_image</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">image</span><span class="p">);</span>
+<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">gtk_dialog_add_action_widget</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">,</span><span class="w"> </span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">response</span><span class="p">);</span>
+<a id="line-138" name="line-138"></a>
+<a id="line-139" name="line-139"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">widget</span><span class="p">;</span>
+<a id="line-140" name="line-140"></a><span class="p">}</span>
+<a id="line-141" name="line-141"></a>
+<a id="line-142" name="line-142"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-143" name="line-143"></a><span class="nf">mate_color_selection_dialog_init</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelectionDialog</span><span class="w"> </span><span class="o">*</span><span class="n">colorseldiag</span><span class="p">)</span>
+<a id="line-144" name="line-144"></a><span class="p">{</span>
+<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">GtkDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">colorseldiag</span><span class="p">);</span>
+<a id="line-146" name="line-146"></a>
+<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">_mate_desktop_init_i18n</span><span class="w"> </span><span class="p">();</span>
+<a id="line-148" name="line-148"></a>
+<a id="line-149" name="line-149"></a><span class="w"> </span><span class="n">gtk_container_set_border_width</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">),</span><span class="w"> </span><span class="mi">5</span><span class="p">);</span>
+<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">gtk_box_set_spacing</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_dialog_get_content_area</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">)),</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span>
+<a id="line-151" name="line-151"></a>
+<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">colorseldiag</span><span class="o">-&gt;</span><span class="n">colorsel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_color_selection_new</span><span class="w"> </span><span class="p">();</span>
+<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">gtk_container_set_border_width</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">colorseldiag</span><span class="o">-&gt;</span><span class="n">colorsel</span><span class="p">),</span><span class="w"> </span><span class="mi">5</span><span class="p">);</span>
+<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">mate_color_selection_set_has_palette</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_COLOR_SELECTION</span><span class="p">(</span><span class="n">colorseldiag</span><span class="o">-&gt;</span><span class="n">colorsel</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">mate_color_selection_set_has_opacity_control</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_COLOR_SELECTION</span><span class="p">(</span><span class="n">colorseldiag</span><span class="o">-&gt;</span><span class="n">colorsel</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_dialog_get_content_area</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">colorseldiag</span><span class="p">))),</span><span class="w"> </span><span class="n">colorseldiag</span><span class="o">-&gt;</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-157" name="line-157"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">colorseldiag</span><span class="o">-&gt;</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-158" name="line-158"></a>
+<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">colorseldiag</span><span class="o">-&gt;</span><span class="n">cancel_button</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_add_dialog_button</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">colorseldiag</span><span class="p">),</span>
+<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_Cancel&quot;</span><span class="p">),</span>
+<a id="line-161" name="line-161"></a><span class="w"> </span><span class="s">&quot;gtk-cancel&quot;</span><span class="p">,</span>
+<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">GTK_RESPONSE_CANCEL</span><span class="p">);</span>
+<a id="line-163" name="line-163"></a>
+<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">colorseldiag</span><span class="o">-&gt;</span><span class="n">ok_button</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_add_dialog_button</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">colorseldiag</span><span class="p">),</span>
+<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;_OK&quot;</span><span class="p">),</span>
+<a id="line-166" name="line-166"></a><span class="w"> </span><span class="s">&quot;gtk-ok&quot;</span><span class="p">,</span>
+<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">);</span>
+<a id="line-168" name="line-168"></a>
+<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">gtk_widget_set_can_default</span><span class="w"> </span><span class="p">(</span><span class="n">colorseldiag</span><span class="o">-&gt;</span><span class="n">ok_button</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span>
+<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">gtk_widget_grab_default</span><span class="w"> </span><span class="p">(</span><span class="n">colorseldiag</span><span class="o">-&gt;</span><span class="n">ok_button</span><span class="p">);</span>
+<a id="line-171" name="line-171"></a>
+<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">colorseldiag</span><span class="o">-&gt;</span><span class="n">help_button</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_add_dialog_button</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">colorseldiag</span><span class="p">),</span>
+<a id="line-173" name="line-173"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Help&quot;</span><span class="p">),</span>
+<a id="line-174" name="line-174"></a><span class="w"> </span><span class="s">&quot;help-browser&quot;</span><span class="p">,</span>
+<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">GTK_RESPONSE_HELP</span><span class="p">);</span>
+<a id="line-176" name="line-176"></a>
+<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="w"> </span><span class="p">(</span><span class="n">colorseldiag</span><span class="o">-&gt;</span><span class="n">help_button</span><span class="p">);</span>
+<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">colorseldiag</span><span class="o">-&gt;</span><span class="n">cancel_button</span><span class="p">);</span>
+<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="w"> </span><span class="p">(</span><span class="n">colorseldiag</span><span class="o">-&gt;</span><span class="n">ok_button</span><span class="p">);</span>
+<a id="line-180" name="line-180"></a>
+<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">gtk_window_set_title</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">colorseldiag</span><span class="p">),</span>
+<a id="line-182" name="line-182"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">&quot;Color Selection&quot;</span><span class="p">));</span>
+<a id="line-183" name="line-183"></a>
+<a id="line-184" name="line-184"></a><span class="w"> </span><span class="c1">//_gtk_dialog_set_ignore_separator (dialog, TRUE);</span>
+<a id="line-185" name="line-185"></a><span class="p">}</span>
+<a id="line-186" name="line-186"></a>
+<a id="line-187" name="line-187"></a><span class="n">GtkWidget</span><span class="o">*</span>
+<a id="line-188" name="line-188"></a><span class="nf">mate_color_selection_dialog_new</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">title</span><span class="p">)</span>
+<a id="line-189" name="line-189"></a><span class="p">{</span>
+<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">MateColorSelectionDialog</span><span class="w"> </span><span class="o">*</span><span class="n">colorseldiag</span><span class="p">;</span>
+<a id="line-191" name="line-191"></a>
+<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">colorseldiag</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_TYPE_COLOR_SELECTION_DIALOG</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-193" name="line-193"></a>
+<a id="line-194" name="line-194"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">title</span><span class="p">)</span>
+<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">gtk_window_set_title</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">colorseldiag</span><span class="p">),</span><span class="w"> </span><span class="n">title</span><span class="p">);</span>
+<a id="line-196" name="line-196"></a>
+<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">gtk_window_set_resizable</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">colorseldiag</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span>
+<a id="line-198" name="line-198"></a>
+<a id="line-199" name="line-199"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">colorseldiag</span><span class="p">);</span>
+<a id="line-200" name="line-200"></a><span class="p">}</span>
+<a id="line-201" name="line-201"></a>
+<a id="line-202" name="line-202"></a><span class="cm">/**</span>
+<a id="line-203" name="line-203"></a><span class="cm"> * mate_color_selection_dialog_get_color_selection:</span>
+<a id="line-204" name="line-204"></a><span class="cm"> * @colorsel: a #MateColorSelectionDialog</span>
+<a id="line-205" name="line-205"></a><span class="cm"> *</span>
+<a id="line-206" name="line-206"></a><span class="cm"> * Retrieves the #MateColorSelection widget embedded in the dialog.</span>
+<a id="line-207" name="line-207"></a><span class="cm"> *</span>
+<a id="line-208" name="line-208"></a><span class="cm"> * Returns: (transfer none): the embedded #MateColorSelection</span>
+<a id="line-209" name="line-209"></a><span class="cm"> *</span>
+<a id="line-210" name="line-210"></a><span class="cm"> * Since: 1.9.1</span>
+<a id="line-211" name="line-211"></a><span class="cm"> **/</span>
+<a id="line-212" name="line-212"></a><span class="n">GtkWidget</span><span class="o">*</span>
+<a id="line-213" name="line-213"></a><span class="nf">mate_color_selection_dialog_get_color_selection</span><span class="w"> </span><span class="p">(</span><span class="n">MateColorSelectionDialog</span><span class="w"> </span><span class="o">*</span><span class="n">colorsel</span><span class="p">)</span>
+<a id="line-214" name="line-214"></a><span class="p">{</span>
+<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_IS_COLOR_SELECTION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">colorsel</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span>
+<a id="line-216" name="line-216"></a>
+<a id="line-217" name="line-217"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">colorsel</span><span class="o">-&gt;</span><span class="n">colorsel</span><span class="p">;</span>
+<a id="line-218" name="line-218"></a><span class="p">}</span>
+<a id="line-219" name="line-219"></a>
+<a id="line-220" name="line-220"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span>
+<a id="line-221" name="line-221"></a><span class="nf">mate_color_selection_dialog_buildable_interface_init</span><span class="w"> </span><span class="p">(</span><span class="n">GtkBuildableIface</span><span class="w"> </span><span class="o">*</span><span class="n">iface</span><span class="p">)</span>
+<a id="line-222" name="line-222"></a><span class="p">{</span>
+<a id="line-223" name="line-223"></a><span class="w"> </span><span class="n">parent_buildable_iface</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_type_interface_peek_parent</span><span class="w"> </span><span class="p">(</span><span class="n">iface</span><span class="p">);</span>
+<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">iface</span><span class="o">-&gt;</span><span class="n">get_internal_child</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mate_color_selection_dialog_buildable_get_internal_child</span><span class="p">;</span>
+<a id="line-225" name="line-225"></a><span class="p">}</span>
+<a id="line-226" name="line-226"></a>
+<a id="line-227" name="line-227"></a><span class="k">static</span><span class="w"> </span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span>
+<a id="line-228" name="line-228"></a><span class="nf">mate_color_selection_dialog_buildable_get_internal_child</span><span class="w"> </span><span class="p">(</span><span class="n">GtkBuildable</span><span class="w"> </span><span class="o">*</span><span class="n">buildable</span><span class="p">,</span>
+<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">GtkBuilder</span><span class="w"> </span><span class="o">*</span><span class="n">builder</span><span class="p">,</span>
+<a id="line-230" name="line-230"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">childname</span><span class="p">)</span>
+<a id="line-231" name="line-231"></a><span class="p">{</span>
+<a id="line-232" name="line-232"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">childname</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;ok_button&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-233" name="line-233"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_COLOR_SELECTION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">buildable</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">ok_button</span><span class="p">);</span>
+<a id="line-234" name="line-234"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">childname</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;cancel_button&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-235" name="line-235"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_COLOR_SELECTION_DIALOG</span><span class="w"> </span><span class="p">(</span><span class="n">buildable</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">cancel_button</span><span class="p">);</span>
+<a id="line-236" name="line-236"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">childname</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;help_button&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-237" name="line-237"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_COLOR_SELECTION_DIALOG</span><span class="p">(</span><span class="n">buildable</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">help_button</span><span class="p">);</span>
+<a id="line-238" name="line-238"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">childname</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;color_selection&quot;</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
+<a id="line-239" name="line-239"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">G_OBJECT</span><span class="w"> </span><span class="p">(</span><span class="n">MATE_COLOR_SELECTION_DIALOG</span><span class="p">(</span><span class="n">buildable</span><span class="p">)</span><span class="o">-&gt;</span><span class="n">colorsel</span><span class="p">);</span>
+<a id="line-240" name="line-240"></a>
+<a id="line-241" name="line-241"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">parent_buildable_iface</span><span class="o">-&gt;</span><span class="n">get_internal_child</span><span class="w"> </span><span class="p">(</span><span class="n">buildable</span><span class="p">,</span><span class="w"> </span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="n">childname</span><span class="p">);</span>
+<a id="line-242" name="line-242"></a><span class="p">}</span>
+</pre></div></td></tr></table></div>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/index.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/index.html
new file mode 100644
index 0000000..ed3bef6
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/index.html
@@ -0,0 +1,493 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop</h1>
+ <div id="filters">
+
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="error"checked/>error</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="warning"disabled/>warning</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="portability"checked/>portability</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="performance"disabled/>performance</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="style"checked/>style</label>
+ <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="information"checked/>information</label>
+ |
+ <label class="checkBtn"><input type="checkbox" onclick="toggleTool(this)" id="cppcheck"checked/>cppcheck</label>
+ <label class="checkBtn disabled"><input type="checkbox" onclick="toggleTool(this)" id="clang-tidy"disabled/>clang-tidy</label>
+ |
+ <label class="severityHeader">File: <input type="text" oninput="filterFile(this.value)"/></label>
+ <label class="severityHeader">Filter: <input type="text" oninput="filterText(this.value)"/></label>
+ </div>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Defect summary</a> </p>
+
+ <label><input type="checkbox" class="idToggle" onclick="toggleAll()" checked> Toggle all</label>
+ <table>
+ <tr><th>Show</th><th>#</th><th>Defect ID</th></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingIncludeSystem" name="missingIncludeSystem" checked></td><td>166</td><td>missingIncludeSystem</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="varFuncNullUB" name="varFuncNullUB" checked></td><td>23</td><td>varFuncNullUB</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="unknownMacro" name="unknownMacro" checked></td><td>10</td><td>unknownMacro</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="constVariablePointer" name="constVariablePointer" checked></td><td>9</td><td>constVariablePointer</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingInclude" name="missingInclude" checked></td><td>6</td><td>missingInclude</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="variableScope" name="variableScope" checked></td><td>5</td><td>variableScope</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="constParameterPointer" name="constParameterPointer" checked></td><td>2</td><td>constParameterPointer</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="checkersReport" name="checkersReport" checked></td><td>1</td><td>checkersReport</td></tr>
+ <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="multiCondition" name="multiCondition" checked></td><td>1</td><td>multiCondition</td></tr>
+ <tr><td></td><td>223</td><td>total</td></tr>
+ </table>
+ <p><a href="stats.html">Statistics</a></p>
+ </div>
+ <div id="content_index">
+
+ <table class="summaryTable">
+ <tr><th>Line</th><th>Id</th><th>CWE</th><th>Severity</th><th>Message</th></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="35.html"></a></td></tr>
+ <tr class="checkersReport sev_information issue"><td></td><td>checkersReport</td><td></td><td>information</td><td>Active checkers: There was critical errors (use --checkers-report=&lt;filename&gt; to see details)</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="0.html">libmate-desktop/display-name.c</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-25">25</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;config.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n-lib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-27">27</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;stdlib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;math.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;stdio.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-30">30</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-31">31</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="variableScope sev_style issue"><td><a href="0.html#line-196">196</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable &apos;code&apos; can be reduced.</td></tr>
+ <tr class="variableScope sev_style issue"><td><a href="0.html#line-196">196</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable &apos;name&apos; can be reduced.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="1.html">libmate-desktop/edid-parse.c</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="1.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;stdlib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="1.html#line-27">27</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="1.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;math.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="1.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="2.html">libmate-desktop/mate-bg-crossfade.c</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-22">22</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-23">23</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;math.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-24">24</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;stdarg.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gio/gio.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gdk/gdk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gdk/gdkx.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-30">30</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;X11/Xlib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-31">31</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;X11/Xatom.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-32">32</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-34">34</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;cairo.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-35">35</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;cairo-xlib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-38">38</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;mate-bg.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="unknownMacro sev_error issue"><td><a href="2.html#line-69">69</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="3.html">libmate-desktop/mate-bg-crossfade.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="3.html#line-32">32</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="3.html#line-33">33</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gdk/gdk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="3.html#line-34">34</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="4.html">libmate-desktop/mate-bg.c</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-33">33</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-34">34</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;math.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-35">35</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;stdarg.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-36">36</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;stdlib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-38">38</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gstdio.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-39">39</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gio/gio.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-41">41</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gdk/gdkx.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-42">42</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;X11/Xlib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-43">43</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;X11/Xatom.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-45">45</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;cairo.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-48">48</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;mate-bg.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-49">49</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;mate-bg-crossfade.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-51">51</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;cairo-xlib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="unknownMacro sev_error issue"><td><a href="4.html#line-122">122</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE is a macro then please configure it.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="5.html">libmate-desktop/mate-colorsel.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="5.html#line-28">28</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="5.html#line-30">30</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;math.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="5.html#line-31">31</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="5.html#line-33">33</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gdk/gdkx.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="5.html#line-34">34</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gdk/gdkkeysyms.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="5.html#line-35">35</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="5.html#line-36">36</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n-lib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="unknownMacro sev_error issue"><td><a href="5.html#line-243">243</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="7.html">libmate-desktop/mate-colorsel.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="7.html#line-31">31</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="7.html#line-32">32</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="9.html">libmate-desktop/mate-colorseldialog.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="9.html#line-26">26</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="9.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="9.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="9.html#line-30">30</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="9.html#line-31">31</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n-lib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="unknownMacro sev_error issue"><td><a href="9.html#line-52">52</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_CODE is a macro then please configure it.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="10.html">libmate-desktop/mate-colorseldialog.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="10.html#line-30">30</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="10.html#line-31">31</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="11.html">libmate-desktop/mate-dconf.c</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="11.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;config.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="11.html#line-32">32</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="11.html#line-34">34</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;dconf.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="12.html">libmate-desktop/mate-dconf.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="12.html#line-31">31</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="13.html">libmate-desktop/mate-desktop-item.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="13.html#line-30">30</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="13.html#line-32">32</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;limits.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="13.html#line-33">33</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;ctype.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="13.html#line-34">34</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;stdio.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="13.html#line-35">35</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="13.html#line-36">36</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;sys/types.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="13.html#line-37">37</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;dirent.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="13.html#line-38">38</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;unistd.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="13.html#line-39">39</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;time.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="13.html#line-40">40</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="13.html#line-41">41</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n-lib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="13.html#line-42">42</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;locale.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="13.html#line-43">43</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;stdlib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="13.html#line-45">45</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gio/gio.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="13.html#line-49">49</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;libsn/sn.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="13.html#line-50">50</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gdk/gdk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="13.html#line-51">51</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gdk/gdkx.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="13.html#line-52">52</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="13.html#line-57">57</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;mate-desktop-item.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="13.html#line-58">58</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;mate-desktop-utils.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="constVariablePointer sev_style issue"><td><a href="13.html#line-916">916</a></td><td>constVariablePointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Variable &apos;li&apos; can be declared as pointer to const</td></tr>
+ <tr class="constVariablePointer sev_style issue"><td><a href="13.html#line-945">945</a></td><td>constVariablePointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Variable &apos;p&apos; can be declared as pointer to const</td></tr>
+ <tr class="variableScope sev_style issue"><td><a href="13.html#line-2338">2338</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable &apos;exec&apos; can be reduced.</td></tr>
+ <tr class="constVariablePointer sev_style issue"><td><a href="13.html#line-2844">2844</a></td><td>constVariablePointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Variable &apos;l&apos; can be declared as pointer to const</td></tr>
+ <tr class="variableScope sev_style issue"><td><a href="13.html#line-3156">3156</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable &apos;s&apos; can be reduced.</td></tr>
+ <tr class="varFuncNullUB sev_portability issue"><td><a href="13.html#line-3175">3175</a></td><td>varFuncNullUB</td><td><a href="https://cwe.mitre.org/data/definitions/475.html">475</a></td><td>portability</td><td>Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.</td></tr>
+ <tr class="varFuncNullUB sev_portability issue"><td><a href="13.html#line-3177">3177</a></td><td>varFuncNullUB</td><td><a href="https://cwe.mitre.org/data/definitions/475.html">475</a></td><td>portability</td><td>Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.</td></tr>
+ <tr class="varFuncNullUB sev_portability issue"><td><a href="13.html#line-3178">3178</a></td><td>varFuncNullUB</td><td><a href="https://cwe.mitre.org/data/definitions/475.html">475</a></td><td>portability</td><td>Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.</td></tr>
+ <tr class="varFuncNullUB sev_portability issue"><td><a href="13.html#line-3179">3179</a></td><td>varFuncNullUB</td><td><a href="https://cwe.mitre.org/data/definitions/475.html">475</a></td><td>portability</td><td>Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.</td></tr>
+ <tr class="varFuncNullUB sev_portability issue"><td><a href="13.html#line-3181">3181</a></td><td>varFuncNullUB</td><td><a href="https://cwe.mitre.org/data/definitions/475.html">475</a></td><td>portability</td><td>Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.</td></tr>
+ <tr class="varFuncNullUB sev_portability issue"><td><a href="13.html#line-3183">3183</a></td><td>varFuncNullUB</td><td><a href="https://cwe.mitre.org/data/definitions/475.html">475</a></td><td>portability</td><td>Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.</td></tr>
+ <tr class="varFuncNullUB sev_portability issue"><td><a href="13.html#line-3185">3185</a></td><td>varFuncNullUB</td><td><a href="https://cwe.mitre.org/data/definitions/475.html">475</a></td><td>portability</td><td>Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.</td></tr>
+ <tr class="varFuncNullUB sev_portability issue"><td><a href="13.html#line-3186">3186</a></td><td>varFuncNullUB</td><td><a href="https://cwe.mitre.org/data/definitions/475.html">475</a></td><td>portability</td><td>Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.</td></tr>
+ <tr class="varFuncNullUB sev_portability issue"><td><a href="13.html#line-3188">3188</a></td><td>varFuncNullUB</td><td><a href="https://cwe.mitre.org/data/definitions/475.html">475</a></td><td>portability</td><td>Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.</td></tr>
+ <tr class="varFuncNullUB sev_portability issue"><td><a href="13.html#line-3189">3189</a></td><td>varFuncNullUB</td><td><a href="https://cwe.mitre.org/data/definitions/475.html">475</a></td><td>portability</td><td>Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.</td></tr>
+ <tr class="varFuncNullUB sev_portability issue"><td><a href="13.html#line-3190">3190</a></td><td>varFuncNullUB</td><td><a href="https://cwe.mitre.org/data/definitions/475.html">475</a></td><td>portability</td><td>Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.</td></tr>
+ <tr class="varFuncNullUB sev_portability issue"><td><a href="13.html#line-3191">3191</a></td><td>varFuncNullUB</td><td><a href="https://cwe.mitre.org/data/definitions/475.html">475</a></td><td>portability</td><td>Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.</td></tr>
+ <tr class="varFuncNullUB sev_portability issue"><td><a href="13.html#line-3192">3192</a></td><td>varFuncNullUB</td><td><a href="https://cwe.mitre.org/data/definitions/475.html">475</a></td><td>portability</td><td>Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.</td></tr>
+ <tr class="varFuncNullUB sev_portability issue"><td><a href="13.html#line-3193">3193</a></td><td>varFuncNullUB</td><td><a href="https://cwe.mitre.org/data/definitions/475.html">475</a></td><td>portability</td><td>Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.</td></tr>
+ <tr class="varFuncNullUB sev_portability issue"><td><a href="13.html#line-3194">3194</a></td><td>varFuncNullUB</td><td><a href="https://cwe.mitre.org/data/definitions/475.html">475</a></td><td>portability</td><td>Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.</td></tr>
+ <tr class="varFuncNullUB sev_portability issue"><td><a href="13.html#line-3195">3195</a></td><td>varFuncNullUB</td><td><a href="https://cwe.mitre.org/data/definitions/475.html">475</a></td><td>portability</td><td>Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.</td></tr>
+ <tr class="varFuncNullUB sev_portability issue"><td><a href="13.html#line-3196">3196</a></td><td>varFuncNullUB</td><td><a href="https://cwe.mitre.org/data/definitions/475.html">475</a></td><td>portability</td><td>Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.</td></tr>
+ <tr class="varFuncNullUB sev_portability issue"><td><a href="13.html#line-3197">3197</a></td><td>varFuncNullUB</td><td><a href="https://cwe.mitre.org/data/definitions/475.html">475</a></td><td>portability</td><td>Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.</td></tr>
+ <tr class="varFuncNullUB sev_portability issue"><td><a href="13.html#line-3198">3198</a></td><td>varFuncNullUB</td><td><a href="https://cwe.mitre.org/data/definitions/475.html">475</a></td><td>portability</td><td>Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.</td></tr>
+ <tr class="varFuncNullUB sev_portability issue"><td><a href="13.html#line-3199">3199</a></td><td>varFuncNullUB</td><td><a href="https://cwe.mitre.org/data/definitions/475.html">475</a></td><td>portability</td><td>Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.</td></tr>
+ <tr class="varFuncNullUB sev_portability issue"><td><a href="13.html#line-3201">3201</a></td><td>varFuncNullUB</td><td><a href="https://cwe.mitre.org/data/definitions/475.html">475</a></td><td>portability</td><td>Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.</td></tr>
+ <tr class="varFuncNullUB sev_portability issue"><td><a href="13.html#line-3203">3203</a></td><td>varFuncNullUB</td><td><a href="https://cwe.mitre.org/data/definitions/475.html">475</a></td><td>portability</td><td>Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.</td></tr>
+ <tr class="varFuncNullUB sev_portability issue"><td><a href="13.html#line-3205">3205</a></td><td>varFuncNullUB</td><td><a href="https://cwe.mitre.org/data/definitions/475.html">475</a></td><td>portability</td><td>Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.</td></tr>
+ <tr class="constVariablePointer sev_style issue"><td><a href="13.html#line-3422">3422</a></td><td>constVariablePointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Variable &apos;brace&apos; can be declared as pointer to const</td></tr>
+ <tr class="constParameterPointer sev_style issue"><td><a href="13.html#line-3497">3497</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter &apos;item&apos; can be declared as pointer to const</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="14.html">libmate-desktop/mate-desktop-thumbnail.c</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="14.html#line-27">27</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;config.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="14.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="14.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gstdio.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="14.html#line-31">31</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gdk-pixbuf/gdk-pixbuf.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="14.html#line-32">32</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="14.html#line-33">33</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;stdlib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="unknownMacro sev_error issue"><td><a href="14.html#line-62">62</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="15.html">libmate-desktop/mate-desktop-thumbnail.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="15.html#line-33">33</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="15.html#line-34">34</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib-object.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="15.html#line-35">35</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;time.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="15.html#line-36">36</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gdk-pixbuf/gdk-pixbuf.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="16.html">libmate-desktop/mate-desktop-utils.c</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="16.html#line-27">27</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;config.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="16.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="16.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gio/gio.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="16.html#line-30">30</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n-lib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="16.html#line-31">31</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gdk/gdk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="16.html#line-32">32</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="16.html#line-35">35</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;mate-desktop-utils.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="multiCondition sev_style issue"><td><a href="16.html#line-139">139</a></td><td>multiCondition</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Expression is always true because &apos;else if&apos; condition is opposite to previous condition at line 133.</td></tr>
+ <tr class="constParameterPointer sev_style issue"><td><a href="16.html#line-243">243</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter &apos;a&apos; can be declared as pointer to const</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="17.html">libmate-desktop/mate-gsettings.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="17.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="17.html#line-30">30</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gio/gio.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="18.html">libmate-desktop/mate-hsv.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="18.html#line-34">34</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="18.html#line-39">39</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;math.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="18.html#line-40">40</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="18.html#line-42">42</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="unknownMacro sev_error issue"><td><a href="18.html#line-128">128</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="8.html">libmate-desktop/mate-hsv.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="8.html#line-36">36</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="19.html">libmate-desktop/mate-image-menu-item.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="19.html#line-18">18</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="19.html#line-19">19</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="19.html#line-20">20</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="19.html#line-21">21</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gstdio.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="unknownMacro sev_error issue"><td><a href="19.html#line-35">35</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="20.html">libmate-desktop/mate-image-menu-item.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="20.html#line-21">21</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="21.html">libmate-desktop/mate-languages.c</a></td></tr>
+ <tr class="missingInclude sev_information issue"><td><a href="21.html#line-23">23</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: &quot;config.h&quot; not found.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="21.html#line-25">25</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;stdlib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="21.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;stdio.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="21.html#line-27">27</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;unistd.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="21.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="21.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;errno.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="21.html#line-30">30</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;dirent.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="21.html#line-31">31</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;locale.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="21.html#line-32">32</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;langinfo.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="21.html#line-33">33</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;sys/stat.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="21.html#line-35">35</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="21.html#line-36">36</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="21.html#line-37">37</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gstdio.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="21.html#line-42">42</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;langinfo.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="constVariablePointer sev_style issue"><td><a href="21.html#line-401">401</a></td><td>constVariablePointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Variable &apos;old_locale&apos; can be declared as pointer to const</td></tr>
+ <tr class="variableScope sev_style issue"><td><a href="21.html#line-534">534</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable &apos;linep&apos; can be reduced.</td></tr>
+ <tr class="constVariablePointer sev_style issue"><td><a href="21.html#line-587">587</a></td><td>constVariablePointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Variable &apos;locale&apos; can be declared as pointer to const</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="22.html">libmate-desktop/mate-languages.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="22.html#line-30">30</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="23.html">libmate-desktop/mate-rr-config.c</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="23.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;config.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="23.html#line-30">30</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n-lib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="23.html#line-31">31</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;stdlib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="23.html#line-32">32</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="23.html#line-33">33</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="23.html#line-34">34</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gstdio.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="23.html#line-36">36</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;X11/Xlib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="23.html#line-37">37</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gdk/gdkx.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="unknownMacro sev_error issue"><td><a href="23.html#line-94">94</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="25.html">libmate-desktop/mate-rr-config.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="25.html#line-34">34</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="25.html#line-35">35</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib-object.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="27.html">libmate-desktop/mate-rr-labeler.c</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="27.html#line-30">30</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;config.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="27.html#line-31">31</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n-lib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="27.html#line-32">32</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="27.html#line-34">34</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;X11/Xproto.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="27.html#line-35">35</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;X11/Xlib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="27.html#line-36">36</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;X11/Xutil.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="27.html#line-37">37</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;X11/Xatom.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="27.html#line-38">38</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gdk/gdkx.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="constVariablePointer sev_style issue"><td><a href="27.html#line-110">110</a></td><td>constVariablePointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Variable &apos;workareas&apos; can be declared as pointer to const</td></tr>
+ <tr class="constVariablePointer sev_style issue"><td><a href="27.html#line-170">170</a></td><td>constVariablePointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Variable &apos;xev&apos; can be declared as pointer to const</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="28.html">libmate-desktop/mate-rr-output-info.c</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="28.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;config.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="unknownMacro sev_error issue"><td><a href="28.html#line-33">33</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_PRIVATE is a macro then please configure it.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="26.html">libmate-desktop/mate-rr-private.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="26.html#line-4">4</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;X11/Xlib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="26.html#line-7">7</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;X11/extensions/Xrandr.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="29.html">libmate-desktop/mate-rr.c</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="29.html#line-27">27</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;config.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="29.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n-lib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="29.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="29.html#line-30">30</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;X11/Xlib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="29.html#line-33">33</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;X11/extensions/Xrandr.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="29.html#line-36">36</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="29.html#line-37">37</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gdk/gdkx.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="29.html#line-38">38</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;X11/Xatom.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="unknownMacro sev_error issue"><td><a href="29.html#line-168">168</a></td><td>unknownMacro</td><td></td><td>error</td><td class="error">There is an unknown macro here somewhere. Configuration is required. If G_DEFINE_TYPE_WITH_CODE is a macro then please configure it.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="24.html">libmate-desktop/mate-rr.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="24.html#line-31">31</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="24.html#line-32">32</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gdk/gdk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="6.html">libmate-desktop/private.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="6.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="30.html">libmate-desktop/test-desktop-thumbnail.c</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="30.html#line-27">27</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="31.html">libmate-desktop/test-ditem.c</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="31.html#line-19">19</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;config.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="31.html#line-20">20</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;string.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="31.html#line-21">21</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;unistd.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="31.html#line-23">23</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;mate-desktop-item.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="31.html#line-25">25</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;locale.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="31.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;stdlib.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="constVariablePointer sev_style issue"><td><a href="31.html#line-132">132</a></td><td>constVariablePointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Variable &apos;file&apos; can be declared as pointer to const</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="32.html">libmate-desktop/test-languages.c</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="32.html#line-18">18</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;stdio.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="32.html#line-19">19</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;locale.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="33.html">mate-about/mate-about.h</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="33.html#line-25">25</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;config.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="33.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="33.html#line-27">27</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tbody class="fileEntry">
+ <tr><td colspan="5"><a href="34.html">tools/mate-color-select.c</a></td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="34.html#line-26">26</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;config.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="34.html#line-27">27</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;gtk/gtk.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="34.html#line-28">28</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;glib/gi18n.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="34.html#line-29">29</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;libmate-desktop/mate-colorseldialog.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ <tr class="missingIncludeSystem sev_information issue"><td><a href="34.html#line-30">30</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: &lt;libmate-desktop/mate-colorsel.h&gt; not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr>
+ </tbody>
+ </table>
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/stats.html b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/stats.html
new file mode 100644
index 0000000..a8e79f4
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/stats.html
@@ -0,0 +1,199 @@
+
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Cppcheck - HTML report - mate-desktop</title>
+ <link rel="stylesheet" href="style.css">
+ <style>
+
+ </style>
+ <script>
+ function getStyle(el, styleProp) {
+ var y;
+
+ if (el.currentStyle) {
+ y = el.currentStyle[styleProp];
+ } else if (window.getComputedStyle) {
+ y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp);
+ }
+
+ return y;
+ }
+
+ function toggle() {
+ var el = this.expandable_content;
+ var mark = this.expandable_marker;
+
+ if (el.style.display === "block") {
+ el.style.display = "none";
+ mark.textContent = "[+]";
+ } else {
+ el.style.display = "block";
+ mark.textContent = "[-]";
+ }
+ }
+
+ function initExpandables() {
+ var elements = document.querySelectorAll(".expandable");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var el = elements[i];
+ var clickable = el.querySelector("span");
+ var marker = clickable.querySelector(".marker");
+ var content = el.querySelector(".content");
+ var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right"));
+ content.style.width = width + "px";
+ clickable.expandable_content = content;
+ clickable.expandable_marker = marker;
+ clickable.addEventListener("click", toggle);
+ }
+ }
+
+ function toggleDisplay(cb) {
+ var elements = document.querySelectorAll("." + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("id-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleSeverity(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+ var elements = document.querySelectorAll(".sev_" + cb.id);
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("severity-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleTool(cb) {
+ cb.parentElement.classList.toggle("unchecked", !cb.checked);
+
+ var elements;
+ if (cb.id == "clang-tidy")
+ elements = document.querySelectorAll("[class^=clang-tidy-]");
+ else
+ elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ elements[i].classList.toggle("tool-filtered", !cb.checked);
+ }
+
+ updateFileRows();
+ }
+
+ function toggleAll() {
+ var elements = document.querySelectorAll(".idToggle");
+
+ // starting from 1 since 0 is the "toggle all" input
+ for (var i = 1, len = elements.length; i < len; i++) {
+ var changed = elements[i].checked != elements[0].checked;
+ if (changed) {
+ elements[i].checked = elements[0].checked;
+ toggleDisplay(elements[i]);
+ }
+ }
+ }
+
+ function filterFile(filter) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase());
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+ }
+
+ function filterText(text) {
+ filter = text.toLowerCase();
+ var elements = document.querySelectorAll(".issue");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = false;
+ var fields = elements[i].querySelectorAll("td");
+ for (var n = 0, num = fields.length; n < num; n++) {
+ if (fields[n].textContent.toLowerCase().includes(filter)) {
+ visible = true;
+ break;
+ }
+ }
+ elements[i].classList.toggle("text-filtered", !visible);
+ }
+
+ updateFileRows();
+ }
+
+ function updateFileRows(element) {
+ var elements = document.querySelectorAll(".fileEntry");
+
+ for (var i = 0, len = elements.length; i < len; i++) {
+ var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)");
+ elements[i].classList.toggle("file-filtered", !visible);
+ }
+ }
+
+ window.addEventListener("load", initExpandables);
+ </script>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header" class="header">
+ <h1>Cppcheck report - mate-desktop: Statistics</h1>
+
+ </div>
+
+ <div id="menu_index">
+ <p><a href="index.html">Back to summary</a> </p>
+
+ </div>
+ <div id="content_index">
+<p><span class="statHeader">Top 10 files for error severity, total findings: 10</span><br>
+&#160;&#160;&#160;1&#160;<a href="29.html"> libmate-desktop/mate-rr.c</a><br>
+&#160;&#160;&#160;1&#160;<a href="28.html"> libmate-desktop/mate-rr-output-info.c</a><br>
+&#160;&#160;&#160;1&#160;<a href="23.html"> libmate-desktop/mate-rr-config.c</a><br>
+&#160;&#160;&#160;1&#160;<a href="19.html"> libmate-desktop/mate-image-menu-item.c</a><br>
+&#160;&#160;&#160;1&#160;<a href="18.html"> libmate-desktop/mate-hsv.c</a><br>
+&#160;&#160;&#160;1&#160;<a href="14.html"> libmate-desktop/mate-desktop-thumbnail.c</a><br>
+&#160;&#160;&#160;1&#160;<a href="9.html"> libmate-desktop/mate-colorseldialog.c</a><br>
+&#160;&#160;&#160;1&#160;<a href="5.html"> libmate-desktop/mate-colorsel.c</a><br>
+&#160;&#160;&#160;1&#160;<a href="4.html"> libmate-desktop/mate-bg.c</a><br>
+&#160;&#160;&#160;1&#160;<a href="2.html"> libmate-desktop/mate-bg-crossfade.c</a><br>
+</p>
+<p><span class="statHeader">Top 10 files for portability severity, total findings: 23</span><br>
+&#160;&#160;&#160;23&#160;<a href="13.html"> libmate-desktop/mate-desktop-item.c</a><br>
+</p>
+<p><span class="statHeader">Top 10 files for style severity, total findings: 17</span><br>
+&#160;&#160;&#160;7&#160;<a href="13.html"> libmate-desktop/mate-desktop-item.c</a><br>
+&#160;&#160;&#160;3&#160;<a href="21.html"> libmate-desktop/mate-languages.c</a><br>
+&#160;&#160;&#160;2&#160;<a href="27.html"> libmate-desktop/mate-rr-labeler.c</a><br>
+&#160;&#160;&#160;2&#160;<a href="16.html"> libmate-desktop/mate-desktop-utils.c</a><br>
+&#160;&#160;&#160;2&#160;<a href="0.html"> libmate-desktop/display-name.c</a><br>
+&#160;&#160;&#160;1&#160;<a href="31.html"> libmate-desktop/test-ditem.c</a><br>
+</p>
+<p><span class="statHeader">Top 10 files for information severity, total findings: 172</span><br>
+&#160;&#160;&#160;20&#160;<a href="13.html"> libmate-desktop/mate-desktop-item.c</a><br>
+&#160;&#160;&#160;14&#160;<a href="21.html"> libmate-desktop/mate-languages.c</a><br>
+&#160;&#160;&#160;13&#160;<a href="4.html"> libmate-desktop/mate-bg.c</a><br>
+&#160;&#160;&#160;12&#160;<a href="2.html"> libmate-desktop/mate-bg-crossfade.c</a><br>
+&#160;&#160;&#160;8&#160;&#160;<a href="29.html"> libmate-desktop/mate-rr.c</a><br>
+&#160;&#160;&#160;8&#160;&#160;<a href="27.html"> libmate-desktop/mate-rr-labeler.c</a><br>
+&#160;&#160;&#160;8&#160;&#160;<a href="23.html"> libmate-desktop/mate-rr-config.c</a><br>
+&#160;&#160;&#160;7&#160;&#160;<a href="16.html"> libmate-desktop/mate-desktop-utils.c</a><br>
+&#160;&#160;&#160;7&#160;&#160;<a href="5.html"> libmate-desktop/mate-colorsel.c</a><br>
+&#160;&#160;&#160;7&#160;&#160;<a href="0.html"> libmate-desktop/display-name.c</a><br>
+</p>
+
+ </div>
+ <div id="footer" class="footer">
+ <p>
+ Created by Cppcheck 2.13.0 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>)
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/style.css b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/style.css
new file mode 100644
index 0000000..3897bfa
--- /dev/null
+++ b/2024-04-04-053447-3634-cppcheck@fee79b755996_1.28/style.css
@@ -0,0 +1,177 @@
+
+body {
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
+ font-size: 13px;
+ line-height: 1.5;
+ height: 100%;
+ margin: 0;
+}
+
+#wrapper {
+ position: fixed;
+ height: 100vh;
+ width: 100vw;
+ display: grid;
+ grid-template-rows: fit-content(8rem) auto fit-content(8rem);
+ grid-template-columns: fit-content(25%) 1fr;
+ grid-template-areas:
+ "header header"
+ "menu content"
+ "footer footer";
+}
+
+h1 {
+ margin: 0 0 8px -2px;
+ font-size: 175%;
+}
+
+.header {
+ padding: 0 0 5px 15px;
+ grid-area: header;
+ border-bottom: thin solid #aaa;
+}
+
+.footer {
+ grid-area: footer;
+ border-top: thin solid #aaa;
+ font-size: 85%;
+
+}
+
+.footer > p {
+ margin: 4px;
+}
+
+#menu,
+#menu_index {
+ grid-area: menu;
+ text-align: left;
+ overflow: auto;
+ padding: 0 23px 15px 15px;
+ border-right: thin solid #aaa;
+ min-width: 200px;
+}
+
+#menu > a {
+ display: block;
+ margin-left: 10px;
+ font-size: 12px;
+}
+
+#content,
+#content_index {
+ grid-area: content;
+ padding: 0px 5px 15px 15px;
+ overflow: auto;
+}
+
+label {
+ white-space: nowrap;
+}
+
+label.checkBtn.disabled {
+ color: #606060;
+ background: #e0e0e0;
+ font-style: italic;
+}
+
+label.checkBtn, input[type="text"] {
+ border: 1px solid grey;
+ border-radius: 4px;
+ box-shadow: 1px 1px inset;
+ padding: 1px 5px;
+}
+
+label.checkBtn {
+ white-space: nowrap;
+ background: #ccddff;
+}
+
+label.unchecked {
+ background: #eff8ff;
+ box-shadow: 1px 1px 1px;
+}
+
+label.checkBtn:hover, label.unchecked:hover{
+ box-shadow: 0 0 2px;
+}
+
+label.disabled:hover {
+ box-shadow: 1px 1px inset;
+}
+
+label.checkBtn > input {
+ display:none;
+}
+
+.summaryTable {
+ width: 100%;
+}
+
+table.summaryTable td { padding: 0 5px 0 5px; }
+
+.statHeader, .severityHeader {
+ font-weight: bold;
+}
+
+.warning {
+ background-color: #ffffa7;
+}
+
+.error {
+ background-color: #ffb7b7;
+}
+
+.error2 {
+ background-color: #faa;
+ display: inline-block;
+ margin-left: 4px;
+}
+
+.inconclusive {
+ background-color: #b6b6b4;
+}
+
+.inconclusive2 {
+ background-color: #b6b6b4;
+ display: inline-block;
+ margin-left: 4px;
+}
+
+.verbose {
+ display: inline-block;
+ vertical-align: top;
+ cursor: help;
+}
+
+.verbose .content {
+ display: none;
+ position: absolute;
+ padding: 10px;
+ margin: 4px;
+ max-width: 40%;
+ white-space: pre-wrap;
+ border: 1px solid #000;
+ background-color: #ffffcc;
+ cursor: auto;
+}
+
+.highlight .hll {
+ padding: 1px;
+}
+
+.highlighttable {
+ background-color: #fff;
+ position: relative;
+ margin: -10px;
+}
+
+.linenos {
+ border-right: thin solid #aaa;
+ color: #d3d3d3;
+ padding-right: 6px;
+}
+
+.id-filtered, .severity-filtered, .file-filtered, .tool-filtered, .text-filtered {
+ visibility: collapse;
+}